/* Site typeface, system fonts only (user decision 2026-10-24). Latin letters come from the
   serif faces listed first (Times New Roman: Windows; Times: Apple; DejaVu Serif: Linux; Georgia as a last resort; generic serif at the very end); they have no
   Chinese, so Chinese falls through to the sans faces (Noto Sans CJK, PingFang, YaHei). */
/* Home menu words use weight 300 (trial, user 2026-10-27): regular YaHei looks heavy at 72px;
   300 picks YaHei Light / PingFang Light where installed. */
:root { color-scheme: light; --font-cjk-sans:"Noto Sans CJK SC","PingFang SC","Microsoft YaHei"; --font-system-sans:"Times New Roman",Times,"DejaVu Serif",Georgia,var(--font-cjk-sans),serif; }
/* Every color of the site, the only place they are written (user decision 2026-10-27). site.css is
   loaded by every page (home, 404 and inner pages), so inner-page CSS uses these too.
   Ten grays: text is gray, never black (2026-10-24) - strong for hover and emphasis, ink for body
   text, titles and icons, then secondary, label and disabled; two lines; three grounds. The page is
   a faintly warm paper; lines and tints keep the contrast against it they had against white.
   Every other color variable points at one of the ten. Not here: the gold and gray inside the logo
   and the top-bar icons (SVG files), and the browser bar color (theme-color in the three page
   templates). The particles read --color-ink. */
:root {
  --color-ink-strong: #2f312e;
  --color-ink: #41443f;
  --color-secondary: #5a5e57;
  --color-label: #777c73;
  --color-disabled: #aab0a6;
  --color-line: #e3e2de;
  --color-line-soft: #edece6;
  --color-paper: #fbfaf6;
  --color-tint: #f3f2ec;
  --color-current: #eae9e2;

  /* Parts that use one of the ten. */
  --color-pressed: var(--color-line-soft);
  --color-drawer: var(--color-paper);
  --color-bar: var(--color-secondary);
  --color-cell-current: var(--color-tint);
  --color-cell-line: var(--color-line);
  --color-cell-gap: var(--color-line-soft);
  --color-note: var(--color-tint);
  --color-handle: var(--color-line);

  /* The one hue: six-yao moving lines ○ / × (2026-10-24). */
  --color-moving: #8a6a1f;

  /* Translucent, laid over the page: astrology dice body, facet and edges; overlays and shadows
     (phones get their own values below, at the inner-page breakpoints). */
  --color-die-shell: rgb(85 85 85 / 13%);
  --color-die-facet: rgb(90 90 90 / 5.5%);
  --color-die-edge: rgb(65 65 65 / 28%);
  --color-overlay: rgb(34 34 34 / 10%);
  --color-sheet-overlay: rgb(34 34 34 / 12%);
  --shadow-menu: 0 6px 24px rgb(0 0 0 / 6%);
  --shadow-drawer: none;
  --shadow-sheet: -8px 0 32px rgb(0 0 0 / 6%);

  /* Home and 404 type sizes (they do not load ui-tokens.css, so px and vw). Home words: phones
     39.5px (37 + 10%, then 3% smaller); above phone width they grow 10% faster than 6.2vw, so pads
     keep their size, start just above phones at 601 and meet desktops at 1024/1025 without a jump;
     desktops are capped at 77.4px (86 - 10%), reached at about 1135px wide (user 2026-10-27). */
  --home-word-size: clamp(39.5px, 6.2vw, 77.4px);
  --home-fallback-size: clamp(22px, 3vw, 34px);
  --home-signature-size: 14px;
  --home-credit-size: 10px;
  --not-found-link-size: 14px;
}
@media (width <= 64em) {
  :root {
    --color-sheet-overlay: rgb(34 34 34 / 18%);
    --shadow-sheet: 0 -8px 32px rgb(0 0 0 / 8%);
  }
}
@media (width <= 37.5em) {
  :root {
    --color-overlay: rgb(34 34 34 / 14%);
    --shadow-drawer: 4px 0 24px rgb(0 0 0 / 6%);
  }
}
@media (width > 37.5em) {
  :root { --home-word-size: min(calc(6.2vw * 1.1), 77.4px); }
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; min-height:100vh; background:var(--color-paper); color:var(--color-ink); font-family:var(--font-system-sans); -webkit-font-smoothing:antialiased; }
a { color:inherit; }
a:focus-visible { outline:1px solid var(--color-ink); outline-offset:8px; }
.home { overflow:hidden; background:var(--color-paper); }
.home-footer { position:absolute; bottom:calc(clamp(32px,6vh,62px) - 8px); left:0; width:100%; text-align:center; }
.home-signature { margin:0; font-size:var(--home-signature-size); font-weight:400; letter-spacing:.02em; }
.home-credit { margin:12px 0 0; font-size:var(--home-credit-size); font-weight:400; letter-spacing:.13em; opacity:.7; }
.home-stage { min-height:100svh; display:grid; place-items:center; isolation:isolate; }
.breath-nav { position:relative; display:grid; place-items:center; min-width:min(90vw,650px); min-height:200px; overflow:hidden; }
.breath-link { grid-area:1/1; display:block; padding:35px 42px; white-space:nowrap; text-decoration:none; font-size:var(--home-word-size); font-weight:300; letter-spacing:.08em; pointer-events:none; }
.breath-word { display:block; opacity:0; transform:translateY(12px); }
.breath-link.is-active .breath-word { animation:word-breath 8s both; }
.breath-link:hover { color:var(--color-ink-strong); }
.home-fallback { position:absolute; inset:0; z-index:1; display:flex; visibility:hidden; opacity:0; pointer-events:none; flex-direction:column; align-items:center; justify-content:center; gap:15px; animation:fallback-show .01s 2s steps(1,end) forwards; }
.home-fallback a { color:var(--color-ink); font-size:var(--home-fallback-size); letter-spacing:.06em; text-decoration:none; }
.home-ready .home-fallback { display:none; animation:none; }
@keyframes fallback-show { to { visibility:visible; opacity:1; pointer-events:auto; } }
@keyframes word-breath {
  0% { opacity:0; transform:translateY(12px); animation-timing-function:ease-out; }
  25% { opacity:1; transform:translateY(0); }
  50% { opacity:1; transform:translateY(0); animation-timing-function:ease-in-out; }
  100% { opacity:0; transform:translateY(12px); }
}
/* Work typography; shared layout and scrolling live in inner-page.css. */
.work-content { text-align:justify; text-justify:inter-ideograph; }
.work-module > :last-child { margin-bottom:0; }
.work-kicker { display:block; margin-bottom:12px; color:var(--color-label); font-size:11px; letter-spacing:.23em; text-transform:uppercase; }
.work-content h1,.work-content h2,.work-content h3 { font-family:inherit; font-weight:400; }
.work-content h1,.work-content h2,.work-content h3,.work-kicker,.case-number { text-align:left; }
.work-content h1 { margin:0 0 38px; font-size:clamp(38px,4vw,60px); letter-spacing:.035em; line-height:1.32; }
.work-content .lead { margin:0; font-size:clamp(17px,1.55vw,21px); line-height:1.9; letter-spacing:.015em; }
.work-content .intro-note { margin-top:32px; color:var(--color-label); font-size:14px; line-height:1.9; }
.work-overview,.closing { scroll-margin-top:0; }
.case { padding-top:0; margin-top:110px; border-top:0; scroll-margin-top:0; }
.case-number { display:block; margin-bottom:12px; color:var(--color-label); font-size:12px; letter-spacing:.15em; }
.case h2 { margin:0 0 20px; font-size:clamp(29px,3vw,43px); line-height:1.45; }
.case h3,.closing h3 { margin:58px 0 18px; font-size:21px; line-height:1.5; }
.case p,.case li,.closing p,.closing li { font-size:15.5px; line-height:1.95; letter-spacing:.012em; }
.case p,.closing p { margin:0 0 20px; }
.case ul,.case ol,.closing ul { padding-left:1.35em; margin:15px 0 30px; }
.case li,.closing li { padding-left:.28em; margin-bottom:8px; }
.case strong,.closing strong { font-weight:600; }
.case a,.closing a { text-underline-offset:4px; text-decoration-color:var(--color-disabled); }
.closing { padding-top:0; margin-top:115px; border-top:0; }
.closing h2 { margin-top:0; font-size:clamp(27px,2.6vw,38px); line-height:1.45; }
.closing blockquote { margin:64px 0 0; padding:20px 0 0; border-top:0; color:var(--color-label); }
.closing blockquote p { font-size:12px; }
.closing > :last-child,.closing li:last-child { margin-bottom:0; }
.transition-particles { position:fixed; inset:0; width:100vw; height:100vh; z-index:12; pointer-events:none; }
@media (max-width:960px) { .work-content h1 { margin-bottom:28px; } .case { padding-top:0; margin-top:95px; } .breath-nav { min-width:100%; } .breath-link { letter-spacing:.03em; padding:36px 20px; } }
@media (max-width:560px) { .work-content h1 { font-size:clamp(32px,9vw,36px); letter-spacing:.025em; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } .breath-link.is-active .breath-word { animation:none; opacity:1; transform:none; } .home-fallback { animation-delay:0s; } }

.home { touch-action: pan-x pinch-zoom; }
.inner-content:focus-visible { outline: 1px solid var(--color-ink); outline-offset: -1px; }

/* Hide native rails on every device while preserving wheel, keyboard and touch scrolling. */
html, body, body * { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, body *::-webkit-scrollbar { display: none; }
.site-scrollbar {
  --scrollbar-width: clamp(4px, .4vw, 6px);
  position: fixed;
  z-index: 30;
  width: var(--scrollbar-width);
  color: var(--color-line);
  background: transparent;
  touch-action: none;
  cursor: pointer;
}
.site-scrollbar[hidden] { display: none; }
@media (max-width: 960px) { .site-scrollbar { --scrollbar-width: clamp(1px, .4vw, 2px); } }
.site-scrollbar-thumb { position: absolute; width: 100%; background: currentColor; border-radius: 999px; }
.site-scrollbar-arrow { position: absolute; left: 0; width: 100%; height: min(calc(var(--scrollbar-width) + 4px), 33.333%); }
.site-scrollbar-arrow::before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: var(--scrollbar-width); transform: translateY(-50%); background: currentColor; border-radius: 1px; }
.site-scrollbar-arrow-up { top: 0; }
.site-scrollbar-arrow-down { bottom: 0; }
.site-scrollbar-arrow-up::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.site-scrollbar-arrow-down::before { clip-path: polygon(0 0, 100% 0, 50% 100%); }
.site-scrollbar:hover,
.site-scrollbar.is-focused,
.site-scrollbar.is-dragging { color: var(--color-secondary); }
.site-scrollbar:focus { outline: none; }
