@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}

/* Dark first, like the Phonetics app; a warm light theme for light-mode readers. */
:root {
  --bg: #000000;
  --surface: #111111;
  --border: #262626;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #f97066;
  --accent-text: #f97066;
  --on-accent: #000000;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fffaf8;
    --surface: #ffffff;
    --border: #eeddd8;
    --text: #1c1917;
    --muted: #57534e;
    --accent-text: #c2362c;
    color-scheme: light;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, .wordmark { font-family: var(--display); line-height: 1.15; }
h1 { font-weight: 700; letter-spacing: -0.02em; }
h2, h3 { font-weight: 700; letter-spacing: -0.01em; }

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.wordmark img { width: 28px; height: 28px; display: block; }
.site-nav { display: flex; gap: 20px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

main { flex: 1; }

/* Home */
.hero { padding: 56px 0 40px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); margin: 0 0 20px; }
.lede { font-size: 1.2rem; color: var(--muted); margin: 0; max-width: 36rem; }

.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  margin: 8px 0 48px;
}
.product-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product h2 { font-size: 1.75rem; margin: 0; }
.pill {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 10px;
}
.product p { margin: 14px 0 0; }
.product .status { color: var(--muted); font-size: 0.95rem; }
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 24px;
}
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 12px;
}
.button:hover { filter: brightness(1.08); }

.contact { padding-bottom: 64px; }
.contact h2 { font-size: 1.35rem; margin: 0 0 8px; }
.contact p { margin: 0 0 6px; color: var(--muted); }

/* Policy and support pages */
.doc { padding: 40px 0 64px; max-width: 40rem; }
.doc h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin: 0 0 10px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; font-size: 0.95rem; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 10px; }
.doc h3 { font-size: 1.1rem; margin: 28px 0 6px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--accent-text); }

.summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px 6px;
  margin: 0 0 8px;
}
.summary h2 { margin-top: 0; font-size: 1.1rem; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0 0 8px;
}
.callout p:last-child { margin-bottom: 0; }
.big-link { font-family: var(--display); font-weight: 700; font-size: 1.35rem; }

address { font-style: normal; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 24px;
  padding-bottom: 32px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }
