:root {
  --bg: #F5F4EF;
  --fg: #121614;
  --muted: #5B625E;
  --accent: #1F4D3A;
  --rule: #DAD8D0;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1A14;
    --fg: #EEF1EE;
    --muted: #9AA8A0;
    --accent: #7FBF98;
    --rule: #24352C;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p { margin: 0; }

/* Layout: mobile first */
.wrap {
  min-height: 100svh;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mark {
  width: 1rem;
  height: 1.35rem;
  fill: var(--accent);
}

.hero { padding-top: 2rem; }

h1 {
  font-size: clamp(2.4rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.accent { color: var(--accent); }

.sides {
  display: grid;
  gap: 2rem;
}

.side {
  border-top: 2px solid var(--fg);
  padding-top: 1rem;
  display: grid;
  gap: 0.35rem;
}

.num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.num span {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 0.3rem;
  color: var(--muted);
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.tags {
  color: var(--accent);
  font-weight: 600;
}

.side p:last-child,
.meet { color: var(--muted); }

.links a {
  display: inline-block;
  padding: 0.75rem 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  transition: text-underline-offset 150ms ease;
}

.links a:hover { text-underline-offset: 0.4em; }

.links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.foot {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

/* Wider screens */
@media (min-width: 720px) {
  .wrap {
    padding: 2.5rem 2.5rem 2.5rem;
    gap: 3.5rem;
  }
  .hero { padding-top: 4rem; }
  .sides {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .num { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
