/* SIC brand system — values from SIC Brand Guidelines v1.1 (Nov 2026), section 08 tokens.
   Colors are used at full strength only (no tints, no opacity). Text is always Ink, or sits on Ink. */

/* Fonts: EB Garamond 400 + Source Sans 3 400/600, self-hosted in /fonts (Google Fonts is unreachable in
   mainland China and would leak visitor IPs to a third party). Sources + hashes: /fonts/SOURCES.md. */
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: normal; font-display: swap;
  src: local("EB Garamond"), local("EBGaramond-Regular"), url("/fonts/eb-garamond-wght.ttf") format("truetype"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap;
  src: local("Source Sans 3"), local("SourceSans3-Regular"), url("/fonts/source-sans-3-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap;
  src: local("Source Sans 3 Semibold"), local("SourceSans3-Semibold"), url("/fonts/source-sans-3-600.woff2") format("woff2"); }

:root {
  --sic-rose: #D4B9B9; --sic-mist: #A8B6C4; --sic-sage: #B8C4B0; --sic-lilac: #C2B2C2; --sic-cream: #E8D9B9;
  --sic-ink: #231F20; --sic-ink-70: #656263; --sic-ink-15: #DEDDDE; --sic-white: #FFFFFF;
  --sic-hover: #444141;
  --font-heading: "EB Garamond", Garamond, Georgia, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 36px; --space-7: 48px; --space-8: 72px;
  --radius-card: 16px; --radius-large: 24px; --radius-control: 8px;
  --measure: 640px; --control-height: 48px; --control-padding: 24px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sic-white); color: var(--sic-ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55; font-weight: 400;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sic-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sic-hover); }
:focus-visible { outline: 2px solid var(--sic-ink); outline-offset: 2px; }

/* Bilingual: both languages ship in the markup; the inactive one is hidden. */
html[data-lang="zh"] [data-l="en"], html:not([data-lang="zh"]) [data-l="zh"] { display: none !important; }

/* Type scale (desktop) */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; margin: 0; color: var(--sic-ink); }
h1 { font-size: 54px; line-height: 1.08; }
h2 { font-size: 32px; line-height: 1.15; }
h3 { font-size: 24px; line-height: 1.25; }
.intro { font-size: 20px; line-height: 1.5; margin: 0; }
.small { font-size: 14px; line-height: 1.5; }
.label { font-size: 13px; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.muted { color: var(--sic-ink-70); }
p { margin: 0; }
@media (max-width: 767px) { h1 { font-size: 36px; } h2 { font-size: 26px; } h3 { font-size: 22px; } }

/* Page frame and grid: 12 col / 56px margins desktop, 8 col / 40px tablet, 4 col / 24px mobile. */
.frame { max-width: 1312px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 1023px) { .frame { padding: 0 40px; } }
@media (max-width: 767px) { .frame { padding: 0 24px; } }

.site-header { padding: var(--space-5) 0; }
.site-header .frame { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.site-header .logo { width: 180px; height: auto; } /* clear space provided by header padding */
@media (max-width: 767px) { .site-header .logo { width: 150px; } }

.lang-switch { display: inline-flex; gap: var(--space-1); }
.lang-switch button {
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--sic-ink); background: none; border: 0;
  padding: var(--space-2) var(--space-3); min-height: 44px; cursor: pointer; border-radius: var(--radius-control);
}
.lang-switch button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Buttons — 48px tall, 24px side padding, 8px radius, Source Sans 3 Semibold 17px. One primary per screen. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control-height); padding: 0 var(--control-padding); border-radius: var(--radius-control);
  font: 600 17px/1 var(--font-body); cursor: pointer; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--sic-ink); background: var(--sic-white); color: var(--sic-ink);
}
.btn-primary { background: var(--sic-ink); color: var(--sic-white); }
.btn-primary:hover { background: var(--sic-hover); border-color: var(--sic-hover); color: var(--sic-white); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--sic-white); color: var(--sic-ink-70); border-color: var(--sic-ink-15); cursor: not-allowed; }
.btn-soft { background: var(--sic-cream); border-color: var(--sic-cream); }
.link-btn { font: 600 17px/1.4 var(--font-body); background: none; border: 0; padding: 0; color: var(--sic-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Status messages — color never carries meaning alone: icon + words, text in Ink. */
.status { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-5); border-radius: var(--radius-card); }
.status svg { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.status strong { display: block; font-weight: 600; }
.status-success { background: var(--sic-sage); }
.status-info { background: var(--sic-mist); }
.status-notice { background: var(--sic-cream); }
.status-error { background: var(--sic-rose); }

/* Icons: 24px grid, 1.5px stroke, rounded ends, no fill, Ink. */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-footer { padding: var(--space-8) 0 var(--space-7); }
.site-footer .frame { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; border-top: 1px solid var(--sic-ink-15); padding-top: var(--space-5); }
