/* Token values copied from app/src/styles/tokens.css. Brand work adds no
   colour or typeface (.hyperloop/preferences.md P5). */
:root {
  color-scheme: light dark;
  --c-bg: #fafbfa; --c-surface: #f1f3f1; --c-raised: #e8ebe9;
  --c-line: #dfe3e0; --c-line-strong: #cdd3cf;
  --c-fg: #14181a; --c-fg-soft: #39413e; --c-muted: #5a6360;
  --c-accent: #1f5c46; --c-accent-soft: #e6efea; --c-on-accent: #ffffff;
  --f-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --r-md: 10px; --r-lg: 14px; --r-pill: 999px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #0d1211; --c-surface: #161d1b; --c-raised: #1f2926;
    --c-line: #263230; --c-line-strong: #33423f;
    --c-fg: #e8edea; --c-fg-soft: #c3ccc8; --c-muted: #97a29d;
    --c-accent: #5cc79c; --c-accent-soft: #14261f; --c-on-accent: #06120d;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-fg);
  font: 400 1.0625rem/1.6 var(--f-sans);
}
a { color: var(--c-accent); text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--s-5), 68rem); margin-inline: auto; }
.narrow { max-width: 40rem; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--s-5);
}
.brand { display: flex; align-items: center; gap: var(--s-2); color: var(--c-fg); text-decoration: none; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.mark { color: var(--c-accent); flex: none; }
.status-pill {
  font-size: 0.875rem; font-weight: 500; color: var(--c-fg-soft);
  border: 1px solid var(--c-line-strong); border-radius: var(--r-pill);
  padding: var(--s-1) var(--s-3);
}

.hero { padding-block: var(--s-7) calc(var(--s-7) * 2); display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 52rem) { .hero { grid-template-columns: 1.3fr 1fr; } }
h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.05;
  letter-spacing: -0.03em; font-weight: 600; margin: 0 0 var(--s-5);
  text-wrap: balance;
}
.lede { font-size: clamp(1.125rem, 2vw, 1.3125rem); color: var(--c-fg-soft); margin: 0; text-wrap: pretty; }
.hero .mark { width: min(45%, 22rem); height: auto; justify-self: center; }
@media (min-width: 52rem) { .hero .mark { width: min(100%, 22rem); } }
/* The hero's slow pulse (design/hero-pulse.svg): the four circles breathe out of
   step. None with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .mark.pulse circle { transform-box: fill-box; transform-origin: center;
    animation: hero-pulse 6s cubic-bezier(0.364, 0, 0.636, 1) infinite; }
  .mark.pulse circle:nth-child(2) { animation-delay: -3s; }
  .mark.pulse circle:nth-child(3) { animation-delay: -4.5s; }
  .mark.pulse circle:nth-child(4) { animation-delay: -1.5s; }
}
@keyframes hero-pulse {
  0%, 100% { transform: scale(0.88); opacity: 0.90; }
  40% { transform: scale(1.06); opacity: 1; }
}

section.band { border-top: 1px solid var(--c-line); padding-block: var(--s-7) calc(var(--s-7) * 1.5); }
.eyebrow { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-accent); margin: 0 0 var(--s-3); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 var(--s-5); text-wrap: balance; }
h3 { font-size: 1.125rem; font-weight: 600; margin: 0 0 var(--s-2); }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
.soft { color: var(--c-fg-soft); }

.say {
  display: inline-flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap;
  background: var(--c-accent-soft); border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5); margin: var(--s-2) 0 var(--s-5);
}
.say .word { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
.say .how { font-size: 1.25rem; color: var(--c-fg-soft); }
.say .how b { color: var(--c-fg); font-weight: 600; }

.story { display: grid; gap: var(--s-4); }
@media (min-width: 52rem) { .story { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }

.principles { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: var(--s-4); }
@media (min-width: 40rem) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles li {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--s-5);
}
.principles p { color: var(--c-fg-soft); margin: 0; }

.closing { text-align: center; }
.closing .narrow { margin-inline: auto; }

footer.site {
  border-top: 1px solid var(--c-line); padding-block: var(--s-6);
  color: var(--c-muted); font-size: 0.9375rem;
  /* Copyright left, the legal links centred, the age note right. */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-3) var(--s-5);
}
footer.site .legal-links { display: flex; gap: var(--s-2); }
footer.site .age { justify-self: end; }
@media (max-width: 40rem) {
  footer.site { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  footer.site .age { justify-self: center; }
}

/* Tabs: Home and About. The current page is marked with aria-current. */
nav.tabs { display: flex; align-items: center; gap: var(--s-1); }
nav.tabs a {
  color: var(--c-fg-soft); text-decoration: none; font-weight: 500; font-size: 0.9375rem;
  padding: var(--s-2) var(--s-3); border-radius: var(--r-pill);
  min-height: 44px; display: inline-flex; align-items: center;
}
nav.tabs a:hover { color: var(--c-fg); background: var(--c-surface); }
nav.tabs a[aria-current="page"] { color: var(--c-fg); background: var(--c-raised); }
nav.tabs a.signin { color: var(--c-on-accent); background: var(--c-accent); margin-left: var(--s-2); }
nav.tabs a.signin:hover { color: var(--c-on-accent); background: var(--c-accent); }

.steps { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: var(--s-6); counter-reset: step; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; border-top: 2px solid var(--c-accent); padding-top: var(--s-4); }
/* The number leads the title on its line: "1. Say what you're looking for". */
.steps h3::before { content: counter(step) ". "; color: var(--c-accent); }
.steps p { color: var(--c-fg-soft); margin: 0; }

.page-head { padding-block: var(--s-7); }

/* The pronunciation sits immediately after the wordmark (Juddson, 2026-11-06). */
header.site { flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.lockup { display: flex; align-items: center; gap: var(--s-3); }
.pron { color: var(--c-muted); font-size: 0.9375rem; white-space: nowrap; padding-top: 2px; }
.pron b { color: var(--c-fg-soft); font-weight: 600; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Legal pages: long-form prose, centred, wider on desktop but still a reading
   measure (about 90 characters at body size). */
.legal { max-width: 58rem; margin-inline: auto; padding-bottom: var(--s-7); }
.legal h2 { font-size: 1.375rem; margin: var(--s-7) 0 var(--s-3); letter-spacing: -0.01em; }
.legal h3 { margin-top: var(--s-5); }
.legal ul { padding-left: 1.25rem; margin: 0 0 var(--s-4); }
.legal li { margin-bottom: var(--s-2); }
.legal .meta { color: var(--c-muted); font-size: 0.9375rem; }
.notice {
  background: var(--c-accent-soft); border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5); margin: var(--s-5) 0;
}
.notice p:last-child { margin-bottom: 0; }

/* Phones: one header row. The pronunciation drops to a small line directly
   under the wordmark (still immediately after it); Home is hidden, since the
   wordmark is the home link; About and Sign in sit at the right. */
@media (max-width: 39.99rem) {
  header.site { flex-wrap: nowrap; padding-block: var(--s-4); }
  .lockup { flex-direction: column; align-items: flex-start; gap: 0; }
  .brand { font-size: 1.125rem; }
  .brand .mark { width: 28px; height: 28px; }
  .pron { font-size: 0.8125rem; padding: 0 0 0 36px; }
  nav.tabs a:first-child { display: none; }
  nav.tabs a { padding-inline: var(--s-3); white-space: nowrap; }
  nav.tabs { flex: none; }
  nav.tabs a.signin { margin-left: var(--s-1); }
  .hero { padding-block: var(--s-5) var(--s-7); gap: var(--s-5); }
  .hero .mark { width: min(80%, 22rem); }
}

/* The Android download page (site/android/, D14 item 6). */
a.download { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s-5);
  border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-on-accent);
  font-weight: 600; text-decoration: none; margin-top: var(--s-5); }
a.download:hover { color: var(--c-on-accent); }
.install { padding-left: 1.25em; display: grid; gap: var(--s-3); color: var(--c-fg-soft); }
.install b { color: var(--c-fg); }
.note { color: var(--c-muted); font-size: 0.9375rem; }
