/* 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);
}

/* Public pages outside the app shell (spaces, activities, people, agreement), on the 西顶 XIDING design system:
   a flat paper page, Songti titles tracked open, ruled rows in place of boxed cards, figures in Cormorant. */
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-text); text-underline-offset: .22em; text-decoration-color: var(--line); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.site-shell { width: min(44rem, calc(100% - 2.5rem)); margin-inline: auto; }
.bar, .section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.bar { min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font: 700 1.05rem/1 var(--font-serif); letter-spacing: .2em; }
.brand::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 7px 0 0 var(--teal); margin-right: 7px; }
.languages, .tabs { display: flex; gap: .2rem; }
.languages a { position: relative; display: grid; place-items: center; min-width: 40px; min-height: 44px; color: var(--muted); text-decoration: none; font: 500 13px/1 var(--font-sans); letter-spacing: .08em; }
.languages a[aria-current] { color: var(--ink); }
.languages a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 1px; background: var(--ink); }
.tabs { overflow: auto; white-space: nowrap; border-bottom: 2px solid var(--ink); scrollbar-width: none; }
.tabs a { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 .9rem 0 0; color: var(--muted); text-decoration: none; font: 500 14px/1 var(--font-sans); letter-spacing: .2em; }
.tabs a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.tabs a[aria-current] { color: var(--ink); font-weight: 600; }
.tabs a[aria-current]::before { background: var(--teal); }
:root[lang="en"] .tabs a { letter-spacing: .08em; }
.intro { padding: clamp(3rem, 9vw, 6rem) 0 2rem; }
.intro + .grid { border-top: 2px solid var(--ink); }
.intro h1 { margin: 0; font: 700 clamp(2.6rem, 9vw, 4.5rem)/1.1 var(--font-serif); letter-spacing: .08em; }
:root[lang="en"] .intro h1 { font: 600 clamp(3rem, 10vw, 5rem)/1 var(--font-display); letter-spacing: -.01em; }
.intro p { margin: 1rem 0 0; max-width: 34rem; color: var(--muted); font: 600 1.1rem/1.7 var(--font-serif); letter-spacing: .06em; }
:root[lang="en"] .intro p { font: 500 1.3rem/1.35 var(--font-display); letter-spacing: 0; }
.section-head { margin-bottom: .65rem; }
h2 { font: 700 1.2rem/1.3 var(--font-serif); letter-spacing: .1em; margin: 0; }
:root[lang="en"] h2 { font: 600 1.45rem/1.15 var(--font-display); letter-spacing: 0; }
.grid { list-style: none; margin: 0; padding: 0 0 4rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); column-gap: 2rem; }
.grid li { min-width: 0; border-bottom: 1px solid var(--line); }
.card { display: grid; grid-template-columns: minmax(0, 1fr); height: 100%; color: var(--ink); text-decoration: none; padding: 1.25rem 0; transition: color .15s; }
a.card { grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; }
a.card > * { grid-column: 1; }
a.card::after { content: ""; grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--teal); box-shadow: 6px 0 0 var(--teal); transition: transform .18s ease-out; }
a.card:hover { color: var(--teal-text); }
a.card:hover::after { transform: translateX(4px); }
.card p { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; }
.meta { display: block; color: var(--teal-text); font: 600 .78rem/1 var(--font-sans); letter-spacing: .2em; margin-bottom: .6rem; font-variant-numeric: tabular-nums; }
.fact { max-width: 24rem; border-top: 2px solid var(--ink); }
.fact p { font: 600 3rem/1 var(--font-figure); color: var(--ink); }
.back { margin-block: 2rem; }
.back a { color: var(--ink); text-decoration: none; letter-spacing: .14em; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.back a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 7px 0 0 var(--teal); margin-right: 7px; }
main > p time { display: inline-block; margin-top: 1.5rem; font: 600 2rem/1 var(--font-figure); color: var(--teal-text); font-variant-numeric: lining-nums tabular-nums; }
main > p:has(time) { border-top: 2px solid var(--ink); padding-top: .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; }

/* 艺术 · 教育 · 生活方式 (/about): the introduction on the 西顶 XIDING design system. Shared by the web app (/about, served in
   /calendar.css) and the shareable page (tools/about-artifact.ts). It reads only design-system tokens, and it responds
   to the width of its own container, not the screen: in the app it sits in a 440px column even on a desk. */

.ab { container-type: inline-size; display: block; background: var(--paper); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
.ab * { box-sizing: border-box; }
.ab :where(h1, h2, p, ul, ol, figure, blockquote) { margin: 0; padding: 0; }
.ab :where(ul, ol) { list-style: none; }
.ab a { color: inherit; text-decoration: none; }
.ab a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.ab-pair { width: .62em; height: .35em; margin: 0 .55em; flex: none; fill: currentColor; vertical-align: .14em; }
.ab-dot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; }
.ab-ink--mei { background: var(--brand-teal); }
.ab-ink--zhi { background: var(--ink); }
.ab-ink--li { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- the cover: a temple-teal field carrying the name, the mark cropped by its edge ---------- */
.ab-cover { display: grid; }
.ab-field { position: relative; overflow: hidden; display: grid; align-content: end; gap: 14px; min-height: 500px; padding: 28px 22px 30px; background: var(--brand-teal); color: var(--brand-white); }
.ab-field__mark { position: absolute; top: 24px; right: -46px; height: 248px; width: auto; color: var(--brand-white); }
.ab-eyebrow { position: absolute; top: 26px; left: 22px; display: grid; gap: 8px; font: 500 11px/1 var(--font-sans); letter-spacing: .42em; }
.ab-eyebrow span + span { color: rgba(255, 255, 255, .74); letter-spacing: .3em; }
.ab-title { position: relative; font: 700 60px/1.08 var(--font-serif); letter-spacing: .06em; text-wrap: balance; }
.ab-tagline { position: relative; display: flex; flex-wrap: wrap; align-items: center; font: 700 21px/1.4 var(--font-serif); letter-spacing: .16em; }
.ab-latin { position: relative; font: 500 11px/1.5 var(--font-sans); letter-spacing: .42em; color: rgba(255, 255, 255, .78); }
/* 探索西顶: the cover's one call to act, leading to sign-in; it ends on the pair dot */
.ab-explore { position: relative; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0 14px 0 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); color: var(--brand-white); font: 600 14px/1 var(--font-sans); letter-spacing: .2em; transition: background .15s, color .15s; }
.ab .ab-explore { color: var(--brand-white); }
.ab-explore:hover { background: var(--brand-white); }
.ab .ab-explore:hover { color: var(--brand-teal); }
.ab-explore .ab-pair { margin-right: 0; }
.ab[lang="en"] .ab-title { font: 600 68px/1 var(--font-figure); letter-spacing: -.01em; }
.ab[lang="en"] .ab-tagline { font: 600 24px/1.2 var(--font-figure); letter-spacing: .02em; }

/* photographs: flat, edge to edge, flagged while they are concept images */
.ab-photo { position: relative; overflow: hidden; background: var(--line); }
.ab-photo img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; }
.ab-photo figcaption { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; background: rgba(0, 0, 0, .62); color: #FFFFFF; font: 500 10px/1 var(--font-sans); letter-spacing: .14em; }
.ab-photo--cover { aspect-ratio: 4 / 3; }

/* the introduction and the index of the three brands */
.ab-intro { display: grid; gap: 40px; padding: 36px 22px 56px; }
.ab-lede { max-width: 34em; font: 600 17px/1.95 var(--font-serif); letter-spacing: .04em; text-wrap: pretty; }
.ab[lang="en"] .ab-lede { font: 500 21px/1.45 var(--font-figure); letter-spacing: 0; }
/* the A4 PDF of this page, in the language shown (tools/export-about.ts) */
.ab-download { justify-self: start; display: inline-grid; grid-auto-flow: column; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px 0 16px; background: var(--ink); color: var(--paper); }
.ab .ab-download { color: var(--paper); }
.ab-download b { font: 600 15px/1 var(--font-sans); letter-spacing: .12em; }
.ab-download small { font: 500 10.5px/1 var(--font-sans); letter-spacing: .2em; opacity: .72; }
.ab-download__icon { width: 22px; height: 22px; color: var(--paper); }
.ab-download:hover { background: var(--teal-text); }
.ab-index__head { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font: 700 19px/1.3 var(--font-serif); letter-spacing: .14em; }
.ab[lang="en"] .ab-index__head { font: 600 24px/1.1 var(--font-figure); letter-spacing: 0; }
.ab-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 76px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: color .15s; }
.ab-row .ab-dot { width: 22px; height: 22px; transition: transform .18s ease-out; }
.ab-row__name { display: grid; gap: 6px; min-width: 0; }
.ab-row__name b { font: 700 24px/1.15 var(--font-serif); letter-spacing: .12em; }
.ab[lang="en"] .ab-row__name b { font: 600 28px/1 var(--font-figure); letter-spacing: 0; }
.ab-row__name small { font: 500 10.5px/1.2 var(--font-sans); letter-spacing: .36em; color: var(--muted); }
.ab-row__no { font: 600 22px/1 var(--font-figure); color: var(--teal-text); font-variant-numeric: lining-nums tabular-nums; }
.ab-row:hover { color: var(--teal-text); }
.ab-row:hover .ab-dot { transform: scale(1.18); }

/* ---------- a brand: its ink, its name, three services, its pictures, its three lines ---------- */
.ab-brand { display: grid; gap: 28px; padding: 64px 22px 8px; }
.ab-brand__head { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 2px solid var(--ink); font: 600 11px/1 var(--font-sans); letter-spacing: .32em; color: var(--teal-text); }
.ab-brand__no { margin-left: auto; font: 600 15px/1 var(--font-figure); letter-spacing: .1em; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.ab-brand__words { display: grid; gap: 10px; }
.ab-brand__name { font: 700 54px/1.1 var(--font-serif); letter-spacing: .06em; text-wrap: balance; }
.ab[lang="en"] .ab-brand__name { font: 600 60px/1 var(--font-figure); letter-spacing: -.01em; }
.ab-brand__latin { font: 500 12px/1.4 var(--font-sans); letter-spacing: .42em; color: var(--teal-text); }
.ab-services { display: grid; margin-top: 18px; border-top: 1px solid var(--ink); }
.ab-services li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font: 600 17px/1.4 var(--font-serif); letter-spacing: .12em; }
.ab[lang="en"] .ab-services li { font: 500 20px/1.25 var(--font-figure); letter-spacing: 0; }
.ab-services li::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--teal); }
.ab-brand--zhi .ab-services li::before { background: var(--ink); }
.ab-brand--li .ab-services li::before { background: var(--surface); box-shadow: inset 0 0 0 1.2px var(--ink); }
/* services that open to one line each (draft copy: test build and shareable draft only) */
.ab-services--open li { align-items: flex-start; padding: 0; }
.ab-services--open li::before { margin-top: 21px; }
.ab-services details { flex: 1; min-width: 0; }
.ab-services summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; list-style: none; }
.ab-services summary::-webkit-details-marker { display: none; }
.ab-services summary::after { content: "+"; flex: none; font: 400 20px/1 var(--font-sans); color: var(--muted); transition: transform .15s; }
.ab-services details[open] summary::after { content: "−"; }
.ab-services summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ab-services details p { padding: 0 28px 14px 0; font: 500 14px/1.8 var(--font-sans); letter-spacing: .02em; color: var(--muted); }
.ab[lang="en"] .ab-services details p { font-size: 14.5px; line-height: 1.6; }

/* pictures: the hero runs edge to edge; a second one sits over its corner on a paper frame */
.ab-media { position: relative; display: grid; margin-inline: -22px; }
.ab-photo--hero { aspect-ratio: 4 / 3; }
.ab-photo--cameo { justify-self: end; width: 54%; aspect-ratio: 1; margin: -22% 22px 0 0; border: 6px solid var(--paper); }
.ab-photo--cameo figcaption { display: none; }
.ab-media--2 .ab-photo--hero figcaption { top: 10px; bottom: auto; }

/* the three lines: hung vertically in Chinese, set large in English */
.ab-statement { display: flex; justify-content: flex-end; padding: 8px 0 16px; }
.ab-statement p { font: 700 22px/1.75 var(--font-serif); letter-spacing: .06em; }
.ab-statement--vert p { writing-mode: vertical-rl; text-orientation: upright; white-space: nowrap; font-size: 26px; line-height: 1.6; letter-spacing: .14em; }
.ab-statement:not(.ab-statement--vert) { justify-content: flex-start; padding-top: 4px; border-top: 1px solid var(--line); }
.ab[lang="en"] .ab-statement p { padding-top: 18px; font: 600 30px/1.18 var(--font-figure); letter-spacing: 0; text-wrap: balance; }

/* the foot */
.ab-foot { display: flex; align-items: center; gap: 16px; margin: 48px 22px 0; padding: 28px 0 40px; border-top: 2px solid var(--ink); }
.ab-foot__link { display: flex; align-items: center; gap: 16px; }
.ab-foot__mark { height: 44px; width: auto; color: var(--teal); flex: none; }
.ab-foot__wordmark { display: block; width: auto; height: 28px; color: var(--teal); }

/* ---------- wide: the field and the photograph side by side; words, pictures and lines in columns ---------- */
@container (min-width: 760px) {
  .ab-cover { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .ab-field { min-height: 640px; padding: 40px 48px 48px; }
  .ab-field__mark { top: 40px; right: -70px; height: 400px; }
  .ab-eyebrow { top: 44px; left: 48px; }
  .ab-title { font-size: 84px; }
  .ab[lang="en"] .ab-title { font-size: 96px; }
  .ab-cover--text .ab-field { grid-column: 1 / -1; }
  .ab-photo--cover { aspect-ratio: auto; min-height: 100%; }
  .ab-intro { grid-column: 1 / -1; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; padding: 72px 48px 88px; }
  .ab-lede { font-size: 20px; }
  .ab-intro { row-gap: 32px; }
  .ab-download { grid-column: 1; align-self: start; }
  .ab-index { grid-column: 2; grid-row: 1 / span 2; }
  .ab-brand { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; row-gap: 32px; padding: 96px 48px 16px; }
  .ab-brand__head { grid-column: 1 / -1; }
  .ab-brand__words { grid-column: 1; grid-row: 2; align-self: start; }
  .ab-brand__name { font-size: 72px; }
  .ab[lang="en"] .ab-brand__name { font-size: 80px; }
  .ab-media { grid-column: 2; grid-row: 2 / span 2; margin-inline: 0; align-self: start; }
  .ab-photo--cameo { justify-self: start; width: 46%; margin: -18% 0 0 -12%; border-width: 8px; }
  .ab-statement { grid-column: 1; grid-row: 3; justify-content: flex-start; align-self: end; }
  .ab-statement--vert p { font-size: 32px; }
    .ab-foot { margin-inline: 48px; }
  /* alternate sides, so the three brands read as a sequence rather than a template */
  .ab-brand--zhi { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .ab-brand--zhi .ab-brand__words, .ab-brand--zhi .ab-statement { grid-column: 2; }
  .ab-brand--text .ab-brand__words { grid-column: 1; }
  .ab-brand--text .ab-statement { grid-column: 2; grid-row: 2; align-self: start; }
  .ab-brand--zhi .ab-media { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) { .ab-row, .ab-row .ab-dot { transition: none; } }
/* Appended to every stylesheet by a `test-environment` build of xd-api only (docs/test-environment.md). */
body::before {
  content: "测试环境 · 數據會被清除 · Test environment: data is reset";
  display: block;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 6px 12px;
  background: #8c1d18;
  color: #fff;
  font: 600 12px/1.4 system-ui, sans-serif;
  letter-spacing: .04em;
  text-align: center;
}
