@font-face {
  font-family: 'Schibsted Grotesk';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/SchibstedGrotesk_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/SchibstedGrotesk_600SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/SchibstedGrotesk_800ExtraBold.ttf') format('truetype');
}

/* Tokens mirror src/lib/theme.ts (lightColors / darkColors). */
:root {
  color-scheme: light dark;
  --bg: #f4f5f2;
  --card: #ffffff;
  --inset: #f4f5f2;
  --ink: #1b211c;
  --muted: #5e6a62;
  --border: #e3e6e0;
  --accent: #175243;
  --on-accent: #f2f6f1;
  --on-accent-muted: #bfd6c6;
  --on-accent-eyebrow: #a8cbb4;
  --ridge: #0c332b;
  --chip-green-bg: #e2ede7;
  --chip-green-ink: #2e6b4f;
  --chip-grey-bg: #e9ece8;
  --chip-grey-ink: #58645d;
  --chip-gold-bg: #f7edd9;
  --chip-gold-ink: #8b5315;
  --link: #175243;
  --radius-card: 20px;
  --radius-hero: 24px;
  --radius-button: 16px;
  --radius-inset: 14px;
  --wrap: 68rem;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a16;
    --card: #1e2721;
    --inset: #2a322c;
    --ink: #f2f5f1;
    --muted: #94a096;
    --border: #273129;
    --accent: #8fd3b0;
    --chip-green-bg: #24382e;
    --chip-green-ink: #9bd8b6;
    --chip-grey-bg: #2a322c;
    --chip-grey-ink: #97a29b;
    --chip-gold-bg: #3a2f1e;
    --chip-gold-ink: #e4b778;
    --link: #8fd3b0;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    'Schibsted Grotesk',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius-inset);
  font-weight: 600;
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  display: block;
  width: 168px;
  height: auto;
}
.site-nav {
  display: flex;
  gap: 1.25rem;
}
.site-nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
}

/* Hero: a deep pine slab, like the app's anchor card. */
.hero {
  background: var(--ridge);
  color: var(--on-accent);
  border-radius: var(--radius-hero);
  padding: 2rem 1.25rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero p {
  margin: 0 0 1.5rem;
  color: var(--on-accent-muted);
  font-size: 1.1875rem;
  max-width: 32rem;
}
.hero .note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--on-accent-eyebrow);
}
.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-button);
  background: var(--on-accent);
  color: var(--ridge);
  font-weight: 600;
  text-decoration: none;
}
.button:hover {
  background: #ffffff;
}
.hero :focus-visible {
  outline-color: var(--on-accent);
}

/* The roster: what the app is actually for. */
.roster {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  margin: 0;
}
.roster h2 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
}
.roster .when {
  margin: 0.15rem 0 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.roster ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.roster li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
}
.roster li small {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.3;
}
.chip {
  flex: none;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--chip-grey-bg);
  color: var(--chip-grey-ink);
}
.chip.yes {
  background: var(--chip-green-bg);
  color: var(--chip-green-ink);
}
.chip.maybe {
  background: var(--chip-gold-bg);
  color: var(--chip-gold-ink);
}
.roster figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Sections */
.section {
  padding: 3rem 0 0;
}
.section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.625rem, 5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: var(--measure);
}
.features {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.features li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
}
.features h3 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  line-height: 1.3;
}
.features p {
  margin: 0;
  color: var(--muted);
}
.beta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  padding: 1.5rem 1.25rem;
}
.beta h2 {
  margin-bottom: 0.75rem;
}
.beta p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}
.beta .button {
  background: var(--accent);
  color: var(--bg);
}
.beta .button:hover {
  filter: brightness(1.1);
}

/* Prose pages (support, privacy) */
.prose {
  max-width: var(--measure);
  padding: 1.5rem 0 0;
}
.prose h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.prose h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.prose p,
.prose dd {
  margin: 0 0 1rem;
}
.prose dt {
  font-weight: 600;
  margin-top: 1.25rem;
}
.prose dd {
  margin-left: 0;
  color: var(--muted);
}
.prose .lede {
  color: var(--muted);
  font-size: 1.1875rem;
}
.prose .updated {
  color: var(--muted);
  font-size: 0.9375rem;
}
.prose p,
.prose dd {
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}
.site-footer a {
  color: var(--muted);
  padding: 0.4rem 0;
}
.site-footer a:hover {
  color: var(--ink);
}
.site-footer p {
  margin: 0;
  padding: 0.4rem 0;
}

@media (min-width: 48rem) {
  body {
    font-size: 1.125rem;
  }
  .wrap {
    padding: 0 2rem;
  }
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 3.5rem 3rem;
    gap: 3rem;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .beta {
    padding: 2.25rem 2.5rem;
  }
}

@media (min-width: 64rem) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: background-color 0.15s ease;
  }
}
