/* Shared look for every page: tokens, base, nav, footnote, home and about. The picker's step styles live in picker.html. */
:root {
  --ink: #111; --mid: #666; --faint: #C6C6C6; --rule: #E5E5E5; --quiet: #999; --mark: #FFE600;
  --pad: 48px; --prompt: 26px; --word: clamp(30px, 4.4vw, 46px); --join: clamp(20px, 3vw, 30px); --nav-h: 64px;
}
@media (max-width: 640px) { :root { --pad: 22px; --prompt: 18px; --nav-h: 56px; } }
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--ink); }
body { font-family: 'Instrument Sans', system-ui, sans-serif; line-height: 1.3; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

html[lang="zh-CN"] body { font-family: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Instrument Sans', system-ui, sans-serif; }
html[lang="zh-CN"] .words, html[lang="zh-CN"] .hero, html[lang="zh-CN"] .row .dish, html[lang="zh-CN"] .row .n { letter-spacing: 0; }
html[lang="zh-CN"] .join, html[lang="zh-CN"] .derived, html[lang="zh-CN"] .sub { font-style: normal; }

/* Nav: wordmark, the picker as the thing to press, about, language. */
.nav { height: var(--nav-h); display: flex; align-items: center; gap: 22px; max-width: 1000px; margin: 0 auto; padding: 0 var(--pad); font-size: 15px; }
.nav .brand img { display: block; height: 24px; width: auto; }
.nav .brand { font-weight: 700; text-decoration: none; margin-right: auto; letter-spacing: -.01em; }
.nav a:not(.brand) { text-decoration: none; color: var(--mid); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .go { color: var(--ink); font-weight: 700; background: var(--mark); padding: 4px 8px; }
.nav .lang { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--mark); padding: 2px 4px; }
@media (max-width: 640px) {
  .nav { gap: 14px; font-size: 14px; white-space: nowrap; }
  .nav .how { font-size: 0; } .nav .how::after { content: attr(data-short); font-size: 14px; } /* phones get the short label; the full one stays as the accessible name */
}

main { max-width: 1000px; margin: 0 auto; padding: 0 var(--pad); }

/* Footnote: one quiet line. */
.footnote { max-width: 1000px; margin: 0 auto; padding: 26px var(--pad) 30px; font-size: 11px; color: var(--quiet); }

/* Home */
.home { min-height: calc(100vh - var(--nav-h)); min-height: calc(100dvh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; padding: 34px 0 60px; }
.hero { font-weight: 700; font-size: clamp(38px, 7vw, 84px); line-height: 1.02; letter-spacing: -.03em; margin: 0; max-width: 14ch; }
.hero mark { background: var(--mark); color: inherit; padding: 0 6px; box-shadow: 6px 0 0 var(--mark), -6px 0 0 var(--mark); white-space: nowrap; }
html[lang="zh-CN"] .hero { line-height: 1.2; }
html[lang="zh-CN"] .hero mark { padding: 2px 6px; }
.sub { font-size: clamp(18px, 2.2vw, 24px); color: var(--mid); font-style: italic; margin: 18px 0 0; max-width: 34ch; }
.cta { display: inline-block; margin-top: 34px; font-weight: 700; font-size: clamp(22px, 3vw, 32px); color: var(--ink); text-decoration: none; background: var(--mark); padding: 8px 14px; box-shadow: 6px 0 0 var(--mark), -6px 0 0 var(--mark); margin-left: 6px; align-self: flex-start; }
.live { margin-top: 40px; font-size: 14px; color: var(--mid); }

/* About */
.about { padding: 34px 0 40px; }
.about h1 { font-weight: 700; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.025em; margin: 0 0 18px; }
.about h2 { font-size: 17px; font-weight: 700; margin: 26px 0 4px; display: inline-block; border-bottom: 3px solid var(--mark); }
.about h2 + p { margin-top: 0; }
.about p { font-size: 17px; line-height: 1.55; max-width: 62ch; color: var(--ink); margin: 0 0 14px; }
