/* Math Daily site — indigo app identity, Space Grotesk to match Sawir Studio. */
:root {
  --bg: #f4f4fb;
  --surface: #ffffff;
  --ink: #16151f;
  --muted: #5d5b6e;
  --rule: #e2e1ee;
  --accent: #5b4df2;
  --accent-ink: #ffffff;
  --radius: 18px;
  --maxw: 760px;
  --font: "Space Grotesk", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e17;
    --surface: #1a1926;
    --ink: #f1f0fa;
    --muted: #a3a1b8;
    --rule: #2c2a3d;
    --accent: #8b80ff;
    --accent-ink: #0f0e17;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
a { color: var(--accent); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
header.bar { border-bottom: 1px solid var(--rule); }
header.bar .wrap { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
header.bar img { width: 36px; height: 36px; border-radius: 9px; }
header.bar a.home { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
header.bar nav { margin-left: auto; display: flex; gap: 18px; font-size: 15px; }
header.bar nav a { color: var(--muted); text-decoration: none; }
header.bar nav a:hover, header.bar nav a[aria-current] { color: var(--ink); }
main { padding-block: 48px 64px; }
h1 { font-size: clamp(32px, 7vw, 48px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 22px; margin: 36px 0 8px; }
p.lede { font-size: 20px; color: var(--muted); margin: 0 0 28px; }
.muted { color: var(--muted); }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 14px 22px; border-radius: 14px; font-weight: 600; text-decoration: none; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.shots img { width: 100%; height: auto; border-radius: 28px; border: 1px solid var(--rule); }
.features { display: grid; gap: 12px; margin: 28px 0; padding: 0; list-style: none; }
.features li { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; }
details { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
footer { border-top: 1px solid var(--rule); padding-block: 24px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.gang { display: flex; gap: 12px; margin-bottom: 20px; }
.gang .monster { width: clamp(56px, 16vw, 84px); height: auto; }
.monsters { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.monsters li { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 16px; display: grid; justify-items: center; text-align: center; gap: 2px; align-content: start; }
.monsters .monster { width: 88px; height: 88px; object-fit: contain; margin-bottom: 6px; }
@media (min-width: 640px) { .monsters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
h1.with-monster { display: flex; align-items: center; gap: 12px; }
h1.with-monster .monster { width: 1.4em; height: auto; flex: none; }
