/* Design tokens of the Xiding H5 prototype: colour, type and spacing, light and dark, per locale.
   Generated by tools/extract-prototype.ts from reference/prototype/xiding-app.html (artifact version 1794795084-6f6a). Do not edit; run pnpm extract.
   The prototype loads its fonts from Google Fonts; production self-hosts them (PLAN.md section 5). */

:root {
  --paper: #EEF2F1;
  --surface: #FFFFFF;
  --ink: #000000;
  --muted: #4E5A58;
  --line: #CDD6D4;
  --teal: #628F8A;
  --teal-text: #3D6560;
  --focus: #2F5B56;
  --brand-teal: #628F8A;
  --brand-black: #000000;
  --brand-white: #FFFFFF;
  --font-serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  --font-sans: "Instrument Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-figure: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --font-display: var(--font-serif);
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-40: 40px;
  --space-72: 72px;
  --radius-sm: 3px;
  --radius-md: 4px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000000;
    --surface: #141B1A;
    --ink: #FFFFFF;
    --muted: #A9B6B3;
    --line: #2C3836;
    --teal: #7FA9A3;
    --teal-text: #9CC2BC;
    --focus: #9CC2BC;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #000000;
  --surface: #141B1A;
  --ink: #FFFFFF;
  --muted: #A9B6B3;
  --line: #2C3836;
  --teal: #7FA9A3;
  --teal-text: #9CC2BC;
  --focus: #9CC2BC;
  color-scheme: dark;
}

:root[lang="en"] {
  --font-display: var(--font-figure);
}

:root[lang="zh-Hant"] {
  --font-serif: "Noto Serif TC", "Noto Serif SC", "Songti TC", PMingLiU, serif;
  --font-sans: "Instrument Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
}

:root {
  --g: 20px;
  --tap: 44px;
  --r: 14px;
  --nav: 52px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--font-sans);
}
a { color: var(--teal-text); text-underline-offset: .18em; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.site-shell { width: min(70rem, calc(100% - 2rem)); margin-inline: auto; }
.bar, .section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.bar { min-height: 4.5rem; }
.brand { color: var(--ink); text-decoration: none; font: 600 1.25rem var(--font-display); }
.languages, .tabs { display: flex; gap: .3rem; }
.languages a, .tabs a { padding: .5rem .65rem; text-decoration: none; }
.languages [aria-current], .tabs [aria-current] { background: var(--surface); color: var(--ink); font-weight: 600; }
.tabs { overflow: auto; white-space: nowrap; border-bottom: 1px solid var(--line); }
.intro { padding: clamp(2.5rem, 7vw, 6rem) 0 2rem; }
.intro h1 { margin: 0; font: 500 clamp(2.5rem, 8vw, 5rem)/1.1 var(--font-display); }
.intro p { margin: .9rem 0 0; color: var(--muted); font-size: 1.1rem; }
.section-head { margin-bottom: .65rem; }
h2 { font: 600 1.2rem/1.3 var(--font-display); margin: 0; }
.grid { list-style: none; padding: 0 0 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .8rem; }
.grid li { min-width: 0; }
.card { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; padding: 1.2rem; }
a.card:hover { border-color: var(--focus); }
.card p { margin: .5rem 0 0; color: var(--muted); }
.meta { display: block; color: var(--teal-text); font: .85rem var(--font-mono); margin-bottom: .7rem; }
.fact { max-width: 24rem; }
.back { margin-block: 1.5rem; }


.staff-page { max-width: 44rem; padding-bottom: 2rem; }
.staff-page form, .staff-page label { display: grid; gap: .55rem; }
.staff-page form { margin-block: 1rem; }
.staff-page input, .staff-page select, .staff-page textarea, .staff-page button {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: .45rem .65rem;
}
.staff-page button { width: fit-content; cursor: pointer; }
.staff-page button + button { margin-left: .45rem; }
.staff-application-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.staff-page [hidden] { display: none; }

.member-page { max-width: 44rem; padding-bottom: 3rem; }
.member-page form, .member-page label { display: grid; gap: .55rem; }
.member-page form { max-width: 26rem; margin-block: 1rem; }
.member-page input, .member-page select, .member-page textarea, .member-page button {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: .45rem .65rem;
}
.member-page select { min-width: 0; width: 100%; }
.member-page button { width: fit-content; cursor: pointer; }
.member-page :is(input, select, textarea, button):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.member-page .card button { margin: .55rem .45rem 0 0; }
.member-page [hidden] { display: none; }
#member-ticket-code { overflow-wrap: anywhere; }
