/* Panridian Group website: design tokens.
   Source of truth for color, type and spacing. Approved to start on 2026-11-12 (palette: spruce).
   The rendered reference is website/plan/design-plan.html. */

:root {
  /* Color: spruce palette */
  --color-paper: #F4F6F3;        /* page background, a ledger-paper tint */
  --color-surface: #FFFFFF;      /* cards, form fields, the client-type section */
  --color-panel: #E8EEE9;        /* quiet fills, table headers */
  --color-ink: #12211C;          /* text */
  --color-muted: #4B5C55;        /* secondary text */
  --color-rule: #CBD5CD;         /* hairlines and borders */
  --color-brand: #14483B;        /* buttons, links, selected states */
  --color-brand-deep: #0B2A22;   /* closing band and footer */
  --color-on-brand: #F4F6F3;     /* text on brand and brand-deep */
  --color-line-accent: #A8873F;  /* brass: the marked meridians and small rules only, never text */
  --color-accent-text: #7F6220;  /* brass dark enough for small labels on paper */
  --color-error: #9B2C1F;
  --color-focus: #7F6220;

  /* Type families. Fonts are bundled with the site; nothing loads from another server. */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-display-zh: "Noto Serif SC", "Songti SC", "STSong", serif;   /* subset to headline characters */
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body-zh: "Instrument Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  /* Type scale (desktop / phone via clamp) */
  --text-hero: clamp(2.125rem, 5.2vw, 3.875rem);   /* 34 to 62px, weight 300, line 1.04 */
  --text-h2: clamp(1.625rem, 3.2vw, 2.25rem);      /* 26 to 36px, weight 400 */
  --text-h3: 1.3125rem;                            /* 21px */
  --text-body: 1.0625rem;                          /* 17px */
  --text-small: 0.875rem;                          /* 14px */
  --text-label: 0.75rem;                           /* 12px mono, uppercase, tracked: English only */
  --leading-body: 1.6;
  --leading-body-zh: 1.8;
  --measure: 66ch;                                 /* English text column */
  --measure-zh: 38em;                              /* Chinese text column, about 38 characters */

  /* Space */
  --space-1: 4px;  --space-2: 8px;  --space-3: 16px; --space-4: 24px;
  --space-5: 40px; --space-6: 64px; --space-7: 104px;
  --page-max: 1200px;
  --gutter: 24px;
  --page-pad: clamp(16px, 4vw, 40px);

  /* Shape and motion */
  --radius-control: 6px;
  --radius-card: 8px;
  --border: 1px solid var(--color-rule);
  --control-height: 48px;
  --tap-min: 44px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --duration: 150ms;
  --meridian-turn: 120s;                           /* one full turn of the hero drawing */
}

/* Alternative palette kept for reference: ink blue. Not in use. */
:root[data-palette="ink"] {
  --color-paper: #F4F5F8; --color-surface: #FFFFFF; --color-panel: #E7EAF0;
  --color-ink: #101826; --color-muted: #4A5568; --color-rule: #CCD2DC;
  --color-brand: #15305C; --color-brand-deep: #0B1B36; --color-on-brand: #F4F5F8;
  --color-line-accent: #B0803A; --color-accent-text: #84601F; --color-focus: #84601F;
}

/* Chinese pages */
:lang(zh-Hans) {
  --font-display: var(--font-display-zh);
  --font-body: var(--font-body-zh);
  --leading-body: var(--leading-body-zh);
  --measure: var(--measure-zh);
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration: 0ms; }
}

/* Latin fonts, bundled from Fontsource (SIL Open Font License). The build copies each file named
   here from node_modules into dist/fonts/latin/. Nothing loads from another server. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/latin/newsreader-latin-300-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/latin/newsreader-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/latin/instrument-sans-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/latin/instrument-sans-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/latin/instrument-sans-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/latin/ibm-plex-mono-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Generated by scripts/subset-zh-font.ts from Noto Serif SC (SIL Open Font License). Do not edit. */
/* 244 characters, 14 files, 57 KB. */
@font-face {
  font-family: "Panridian Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/zh/noto-serif-sc-500-75.woff2) format("woff2");
  unicode-range: U+59a4;
}
@font-face {
  font-family: "Panridian Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/zh/noto-serif-sc-500-101.woff2) format("woff2");
  unicode-range: U+6a0a;
}
@font-face {
  font-family: "Panridian Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/zh/noto-serif-sc-500-107.woff2) format("woff2");
  unicode-range: U+5f17;
}
@font-face {
  font-family: "Panridian Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/zh/noto-serif-sc-500-109.woff2) format("woff2");
  unicode-range: U+8bf8;
}
@font-face {
  font-family: "Panridian Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/zh/noto-serif-sc-500-110.woff2) format("woff2");
  unicode-range: U+8428;
}
@font-face {
  font-family: "Panridian Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/zh/noto-serif-sc-500-111.woff2) format("woff2");
  unicode-range: U+4f30,U+52ff,U+585e,U+586b,U+59d3,U+695a,U+6c9f,U+6d1e,U+8de8,U+9274;
}
@font-face {
  font-family: "Panridian Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/zh/noto-serif-sc-500-112.woff2) format("woff2");
  unicode-range: U+5224,U+62df,U+8bfa;
}
@font-face {
  font-family: "Panridian Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/zh/noto-serif-sc-500-113.woff2) format("woff2");
  unicode-range: U+523b,U+5409,U+5bdf,U+5ead,U+6267;
}
@font-face {
  font-family: "Panridian Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/zh/noto-serif-sc-500-114.woff2) format("woff2");
  unicode-range: U+4e34,U+4e45,U+4ed8,U+57df,U+5ba1,U+5c3c,U+5ff5,U+68c0,U+7ae5,U+7ec7,U+822c,U+8bb2,U+8c01,U+9669,U+987e;
}
@font-face {
  font-family: "Panridian Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/zh/noto-serif-sc-500-115.woff2) format("woff2");
  unicode-range: U+4e9a,U+4ec5,U+4efd,U+5199,U+51b5,U+521d,U+54a8,U+54ea,U+5883,U+5c5e,U+627f,U+63a7,U+65ad,U+6790,U+72b6,U+79c1,U+79fb,U+7b56,U+804c,U+8bbf,U+8bc9,U+8c61,U+8d22,U+9690,U+9884;
}
@font-face {
  font-family: "Panridian Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/zh/noto-serif-sc-500-116.woff2) format("woff2");
  unicode-range: U+4e9b,U+4ec0,U+4f01,U+4f9b,U+513f,U+51c6,U+534f,U+53d7,U+53d8,U+57fa,U+58eb,U+59cb,U+5b58,U+5bc6,U+5dde,U+5e08,U+5e2e,U+627e,U+62e9,U+653f,U+672a,U+6784,U+6b3e,U+6b65,U+6df1,U+7167,U+7559,U+7ea6,U+7ec4,U+8003,U+81f4,U+8425,U+8be2,U+8d23,U+9001,U+975e,U+9886,U+9a6c,U+9a8c;
}
@font-face {
  font-family: "Panridian Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/zh/noto-serif-sc-500-117.woff2) format("woff2");
  unicode-range: U+4e48,U+4ea4,U+4eab,U+4ed6,U+4f55,U+4f7f,U+4fdd,U+505a,U+514d,U+5171,U+5177,U+518c,U+521b,U+5229,U+52a9,U+53ca,U+56db,U+573a,U+58f0,U+5c31,U+5df2,U+5f97,U+6216,U+653e,U+671f,U+6761,U+6848,U+6e05,U+7531,U+7acb,U+7ed3,U+7ed9,U+800c,U+88ab,U+8ba1,U+8bc1,U+8bc4,U+8eab,U+9009,U+91cc,U+91cf,U+96c6,U+98ce,U+ff1f;
}
@font-face {
  font-family: "Panridian Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/zh/noto-serif-sc-500-118.woff2) format("woff2");
  unicode-range: U+4e0a,U+4e0d,U+4e0e,U+4e13,U+4e1a,U+4e2a,U+4e3a,U+4e3b,U+4e4b,U+4e8e,U+4eba,U+4eec,U+4f1a,U+4f5c,U+4fe1,U+5165,U+5168,U+516c,U+5173,U+5176,U+5185,U+51fa,U+5206,U+5230,U+5236,U+524d,U+52a1,U+53d1,U+53f8,U+5408,U+540c,U+540d,U+544a,U+56fd,U+5728,U+5907,U+591a,U+597d,U+5982,U+5b9a,U+5b9e,U+5ba2,U+5bb6,U+5bf9,U+5de5,U+5e02,U+5f0f,U+5fc3,U+6027,U+606f,U+60a8,U+60c5,U+6210,U+6211,U+6237,U+63a5,U+63d0,U+6536,U+65b9,U+65f6,U+660e,U+662f,U+66f4,U+670d,U+672c,U+673a,U+679c,U+6cbb,U+6ce8,U+7279,U+73b0,U+7406,U+7528,U+7c7b,U+7cfb,U+7f8e,U+8005,U+80fd,U+884c,U+8bf7,U+8d44,U+8fdb,U+901a,U+90e8,U+91d1,U+957f,U+95ee,U+9762,U+9875,U+ff08,U+ff09;
}
@font-face {
  font-family: "Panridian Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/zh/noto-serif-sc-500-119.woff2) format("woff2");
  unicode-range: U+3001,U+3002,U+4e00,U+4e2d,U+7684,U+ff0c,U+ff1a;
}

/* Base styles. Tokens come from website/design/tokens.css, which the build puts first. */

:root {
  /* Latin letters inside Chinese headings use the brand serif; Chinese characters use the subset font. */
  --font-display-zh: "Newsreader", "Panridian Serif SC", "Songti SC", "STSong", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg, canvas { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
  color: var(--color-ink);
}
h1 { font-size: var(--text-h2); font-weight: 300; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); line-height: 1.25; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3 {
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  /* Balance splits Chinese words to even out lines; pretty only avoids a lone last character.
     Terms that must stay whole are wrapped in .nw by the build (src/i18n/zh-terms.ts). */
  text-wrap: pretty;
}
.nw { white-space: nowrap; }
/* Avoid a single character alone on the last line of body text. */
li { text-wrap: pretty; }

p, ul, ol { margin: 0; }
p { max-width: var(--measure); text-wrap: pretty; }

a { color: var(--color-brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-left: max(var(--page-pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-pad), env(safe-area-inset-right, 0px));
}

.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.stack-lg { display: flex; flex-direction: column; gap: var(--space-5); }

/* A small label above a heading. English: monospace capitals. Chinese: plain, no tracking. */
.label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}
:lang(zh-Hans) .label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  letter-spacing: 0.04em;
  text-transform: none;
}

.lede { font-size: 1.125rem; color: var(--color-muted); max-width: 58ch; }
:lang(zh-Hans) .lede { max-width: var(--measure-zh); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 10px 20px;
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-control);
  background: var(--color-brand);
  color: var(--color-on-brand);
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.btn:hover { background: var(--color-brand-deep); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--color-brand); }
.btn--ghost:hover { background: var(--color-panel); }
.btn--light { background: var(--color-on-brand); color: var(--color-brand-deep); border-color: var(--color-on-brand); }
.btn--light:hover { background: var(--color-panel); }

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border: var(--border);
  border-radius: var(--radius-control);
}
.skip-link:focus { top: var(--space-3); }

.section { padding-block: var(--space-6); border-top: var(--border); }
.section:first-child { border-top: 0; }
@media (min-width: 900px) { .section { padding-block: var(--space-7); } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.note {
  border-left: 2px solid var(--color-line-accent);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  max-width: 72ch;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Contact page. */

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 860px) { .contact__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); } }
.contact__main { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.contact-form { display: flex; flex-direction: column; gap: var(--space-4); max-width: 640px; }

.field { display: flex; flex-direction: column; gap: var(--space-2); border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; }
.field legend { padding: 0; margin-bottom: var(--space-2); }
.field__flag { font-weight: 400; font-size: var(--text-small); color: var(--color-muted); margin-left: 4px; }
.field input[type="text"], .field input[type="email"], .field textarea {
  font: inherit;
  width: 100%;
  min-height: var(--control-height);
  padding: 10px 12px;
  border: 1px solid #9DAEA4;
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-ink);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-brand); }
.field [aria-invalid="true"] { border-color: var(--color-error); }
.field__error { color: var(--color-error); font-size: var(--text-small); }

.choices { display: flex; flex-direction: column; gap: var(--space-2); }
.field--inline .choices { flex-direction: row; flex-wrap: wrap; gap: var(--space-4); }
.choice { display: flex; align-items: flex-start; gap: 10px; font-weight: 400 !important; cursor: pointer; }
/* Centre the box on the first line of its label, whatever the language's line height. */
.choice input { width: 20px; height: 20px; margin: calc((1lh - 20px) / 2) 0 0; accent-color: var(--color-brand); flex: none; }
.field--consent a { font-size: var(--text-small); margin-left: 30px; }

/* The hidden trap field: invisible to people, filled only by bots. */
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact__under { font-size: var(--text-small); color: var(--color-muted); }
.contact__send { min-width: 180px; }
.contact__send:disabled { opacity: 0.7; cursor: progress; }

.form-message { display: none; padding: var(--space-3) var(--space-4); border-radius: var(--radius-card); border: 1px solid; }
.form-message:target, .form-message.is-visible { display: block; }
.form-message--ok { border-color: var(--color-brand); background: var(--color-panel); }
.form-message--problem { border-color: var(--color-error); background: #FBEFED; }

.contact__side { display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-2); }
.contact__photo { border-radius: var(--radius-card); width: 100%; max-width: 240px; height: auto; }
.contact__facts { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; }
.contact__facts div { display: flex; flex-direction: column; gap: var(--space-1); }
.contact__facts dd { margin: 0; }

/* Email in place of the form, while no intake is set. The address is Latin in both languages, so it
   uses the Latin display face (the Chinese display face is cut down to headline characters). */
.contact-email { display: flex; flex-direction: column; gap: var(--space-2); max-width: 640px; padding: var(--space-4); border: var(--border); border-radius: var(--radius-card); background: var(--color-panel); }
.contact-email p { margin: 0; }
.contact-email__lead { font-size: 1.125rem; }
.contact-email__address { font-family: "Newsreader", Georgia, serif; font-size: var(--text-h2); line-height: 1.2; overflow-wrap: anywhere; }
.contact-email__address a { color: var(--color-brand); }

/* Home page sections. */

.hero { padding-block: clamp(32px, 6vw, 88px) clamp(24px, 4vw, 48px); }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: var(--space-4);
}
.hero__copy { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.hero__headline {
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
:lang(zh-Hans) .hero__headline { font-weight: 500; line-height: 1.25; letter-spacing: 0; max-width: 11em; }
.hero__sub { font-size: 1.125rem; color: var(--color-muted); max-width: 46ch; }
:lang(zh-Hans) .hero__sub { max-width: 30em; }
.hero__credential {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: var(--space-3);
  border-left: 2px solid var(--color-line-accent);
  font-size: 0.97rem;
  max-width: 50ch;
}
.hero__credential-note { font-size: var(--text-small); color: var(--color-muted); }.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.meridian { margin: 0; justify-self: end; width: 100%; max-width: 440px; }
/* The still SVG sits in the flow and sets the square's height; the canvas lies exactly over it. */
.meridian__art { position: relative; width: 100%; aspect-ratio: 1; }
.meridian__still { display: block; width: 100%; height: auto; }
.meridian__canvas { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; }
.meridian__caption {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}
.meridian__coords {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}
.meridian__pause {
  font: inherit;
  font-size: 0.75rem;
  color: var(--color-muted);
  background: transparent;
  border: var(--border);
  border-radius: var(--radius-control);
  padding: 4px 10px;
  min-height: 32px;
  cursor: pointer;
}
.meridian__pause[aria-pressed="true"] { color: var(--color-ink); border-color: var(--color-ink); }
:lang(zh-Hans) .meridian__coords { font-family: var(--font-body); letter-spacing: 0.02em; font-size: 0.78rem; }

@media (max-width: 760px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .meridian { order: -1; justify-self: center; max-width: 240px; }
  .meridian__caption { justify-content: center; }
}

.proof { border-top: var(--border); border-bottom: var(--border); }
/* Five facts: one column on phones; two by two on tablets, the fifth across the last row; one row on desktops. */
.proof__list {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block: 0;
}
.proof__list li { padding: var(--space-3) var(--space-4) var(--space-3) 0; font-size: var(--text-small); color: var(--color-muted); }
.proof__list li + li { border-top: var(--border); }
@media (min-width: 560px) {
  .proof__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof__list li + li { border-top: 0; }
  .proof__list li:nth-child(even) { padding-left: var(--space-4); border-left: var(--border); }
  .proof__list li:nth-child(n + 3) { border-top: var(--border); }
  .proof__list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .proof__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .proof__list li:nth-child(n + 3) { border-top: 0; }
  .proof__list li:last-child:nth-child(odd) { grid-column: auto; }
  .proof__list li + li { padding-left: var(--space-4); border-left: var(--border); }
}

.who { background: var(--color-surface); }
.who__items { display: flex; flex-direction: column; gap: var(--space-5); }
.who__item { display: flex; flex-direction: column; gap: var(--space-3); }
.who__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-3) var(--space-5);
}
.who__part { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.who__part p:not(.label) { font-size: 1.06rem; }
:lang(zh-Hans) .who__part p:not(.label) { line-height: var(--leading-body-zh); }
.who__more { font-weight: 500; }
.who--tabs .who__items { gap: var(--space-4); }
.who__tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
}
@media (min-width: 560px) { .who__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .who__tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Keep the panel's height steady so the page does not jump when another type is chosen. */
.who--tabs .who__item { min-height: 10.5rem; }
.who__tab {
  font: inherit;
  font-weight: 500;
  text-align: left;
  line-height: 1.3;
  min-height: 64px;
  padding: var(--space-3);
  border: var(--border);
  border-radius: var(--radius-card);
  background: var(--color-paper);
  color: var(--color-ink);
  cursor: pointer;
  transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.who__tab:hover { border-color: var(--color-brand); }
.who__tab[aria-selected="true"] { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-on-brand); }
.who--tabs .who__item { padding-top: var(--space-2); }

.practices__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: var(--space-3);
}
.practice-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border: var(--border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: var(--color-ink);
  text-decoration: none;
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.practice-card:hover { border-color: var(--color-brand); text-decoration: none; }
.practice-card h3 { font-size: 1.25rem; }
.practice-card__promise { font-size: 1rem; }
.practice-card__audience { font-size: var(--text-small); color: var(--color-muted); }

.how__steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: var(--space-4);
}
.how__step { counter-increment: step; display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--color-ink); }
.how__step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--color-accent-text);
}
.how__step h3 { font-size: 1.2rem; }
.how__step p { color: var(--color-muted); }

.founder__inner { display: grid; gap: var(--space-5); align-items: center; }
.founder__inner--photo { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
.founder__note { font-size: var(--text-small); color: var(--color-muted); }
.founder__photo { border-radius: var(--radius-card); width: 100%; height: auto; }
@media (max-width: 640px) { .founder__inner--photo { grid-template-columns: minmax(0, 1fr); } }

/* Insights list, article page, privacy notice and terms. */

.article-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-3);
}
.article-card a {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-4);
  border: var(--border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: var(--color-ink);
  text-decoration: none;
}
.article-card a:hover { border-color: var(--color-brand); }
.article-card h3 { font-size: 1.25rem; }

.article-meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-size: var(--text-small); color: var(--color-muted); }

.article { padding-block: var(--space-6); }
.article__head h1 { font-size: var(--text-hero); font-weight: 300; max-width: 20ch; }
:lang(zh-Hans) .article__head h1 { font-weight: 500; max-width: 16em; }
.article__author { color: var(--color-muted); }
.article__body { max-width: var(--measure); margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.article__body h2 { font-size: 1.6rem; margin-top: var(--space-4); }
.article__body h3 { margin-top: var(--space-3); }
.article__body ul, .article__body ol { padding-left: 1.25em; display: flex; flex-direction: column; gap: var(--space-2); }
.article__foot { margin-top: var(--space-5); }

.legal .legal-section { display: flex; flex-direction: column; gap: var(--space-2); max-width: var(--measure); }
.legal .legal-section h2 { font-size: 1.35rem; }
.legal-updated { color: var(--color-muted); font-size: var(--text-small); }
.legal-section { scroll-margin-top: 96px; }

/* Services, Who We Serve and About. */

.practice__inner, .who-group__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: var(--space-4) var(--space-6);
  align-items: start;
}
@media (max-width: 860px) {
  .practice__inner, .who-group__inner { grid-template-columns: minmax(0, 1fr); }
}
.practice__head { display: flex; flex-direction: column; gap: var(--space-2); position: sticky; top: 96px; }
@media (max-width: 860px) { .practice__head { position: static; } }
.practice__body { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.practice__facts { display: grid; gap: var(--space-3); margin: 0; }
.practice__facts div { display: flex; flex-direction: column; gap: var(--space-1); }
.practice__facts dd { margin: 0; }
.practice__promise { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; }
:lang(zh-Hans) .practice__promise { font-weight: 500; }
.practice__list, .who-group__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: var(--border);
}
.practice__list li, .who-group__list li { padding-block: var(--space-3); border-bottom: var(--border); max-width: 70ch; }
:lang(zh-Hans) .practice__list li, :lang(zh-Hans) .who-group__list li { max-width: 40em; }
.practice__talk, .who-group__link { font-weight: 500; }

/* A boundary line: what the practice does not do. Shown plainly, never as small print. */
.boundary {
  border: var(--border);
  border-left: 2px solid var(--color-line-accent);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  background: var(--color-surface);
  padding: var(--space-3) var(--space-4);
  max-width: 70ch;
}

.founder-story__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.founder-story__inner--photo { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); align-items: start; }
.founder-story__photo { border-radius: var(--radius-card); width: 100%; height: auto; }
@media (max-width: 760px) { .founder-story__inner--photo { grid-template-columns: minmax(0, 1fr); } }
.founder-story__note { font-size: var(--text-small); color: var(--color-muted); }
.founder-story__steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-4);
}
.founder-story__step { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--color-ink); }
.founder-story__step p { color: var(--color-muted); }

.beliefs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-5);
}
.beliefs__item { display: flex; flex-direction: column; gap: var(--space-2); }
.beliefs__item p { color: var(--color-muted); }

/* Header, footer, closing band and page heads. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--color-paper) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 68px;
}
/* On a narrow screen, or with enlarged text (a phone's or an in-app browser's text-size setting), the
   name wraps onto two lines rather than pushing the menu off the screen; the mark keeps its size. */
.site-header__home { margin-right: auto; min-width: 0; text-decoration: none; color: var(--color-ink); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark .mark { flex: none; }
.wordmark__name { font-family: "Newsreader", Georgia, serif; font-size: 1.3rem; letter-spacing: 0.01em; line-height: 1.15; }

.nav-desktop { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-1) var(--space-4); }
.nav-desktop a { white-space: nowrap; } /* Enlarged text moves a whole link to a second row, never splits it. */
.nav-desktop a, .nav-mobile__panel a:not(.btn) {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.94rem;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"],
.nav-mobile__panel a:not(.btn):hover, .nav-mobile__panel a[aria-current="page"] { color: var(--color-ink); }
.nav-desktop a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.lang-switch {
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--color-ink);
  padding-block: 2px;
  white-space: nowrap;
}
.lang-switch:hover { color: var(--color-brand); border-color: var(--color-brand); }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  padding-inline: var(--space-3);
  border: var(--border);
  border-radius: var(--radius-control);
  font-size: 0.94rem;
  background: var(--color-surface);
  white-space: nowrap;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  background: var(--color-surface);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 32px rgb(18 33 28 / 0.12);
}
.nav-mobile__panel a:not(.btn) { padding-block: 10px; font-size: 1rem; }
.nav-mobile__panel .btn { margin-top: var(--space-2); }

@media (max-width: 899px) {
  .nav-desktop, .header__cta-desktop { display: none; }
  .nav-mobile { display: block; }
  .site-header__inner { gap: var(--space-3); }
}
/* After the rule above, so the tighter gap applies on the smallest phones. */
@media (max-width: 380px) {
  .site-header__inner { gap: var(--space-2); }
  .wordmark__name { font-size: 1.15rem; }
}

.page-head { padding-block: var(--space-6) var(--space-5); }
.page-head h1 { font-size: var(--text-hero); max-width: 18ch; }
:lang(zh-Hans) .page-head h1 { max-width: 14em; }

.closing { background: var(--color-brand-deep); color: var(--color-on-brand); padding-block: var(--space-6); }
.closing h2 { color: var(--color-on-brand); }
.closing p { color: color-mix(in srgb, var(--color-on-brand) 82%, transparent); }
.closing__inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); }
.closing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.closing__email { color: var(--color-on-brand); }

.site-footer { background: var(--color-brand-deep); color: color-mix(in srgb, var(--color-on-brand) 78%, transparent); padding-block: 0 var(--space-5); font-size: var(--text-small); }
.site-footer a { color: var(--color-on-brand); }
.site-footer__inner { display: flex; flex-direction: column; gap: var(--space-4); }
/* The hairline sits on the content, not on the padded edges, so it aligns with the text. */
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); border-top: 1px solid rgb(244 246 243 / 0.18); padding-top: var(--space-5); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.site-footer__nav a { text-decoration: none; }
.site-footer__contact { display: flex; flex-direction: column; gap: var(--space-1); }
.site-footer__legal { max-width: 80ch; line-height: 1.6; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.closing__email-button { overflow-wrap: anywhere; }
