/* ==========================================================================
   光轴脚本 LCT · lct.lenscript.cn
   2026-10-06 重写。母题：地图、地形、时间与光线。
   - 浅色是「相纸」，深色是「暗房」（近黑、暖）。
   - 全站唯一的一条色带是首页的「日照条」：它画的是所选地点当天的夜 / 蓝调 /
     黄金 / 白天，颜色有信息含义，不是装饰渐变。
   - 动效只动 transform / opacity / clip-path / filter；初态只在 html.js 下隐藏，
     reduced-motion 下一律直接给终态。
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg: #f3f1ec;
  --bg-2: #e9e6df;
  --ink: #17171a;
  --ink-2: #3d3d43;
  --ink-3: #636269;
  --rule: rgba(23, 23, 26, .14);
  --rule-2: rgba(23, 23, 26, .26);
  --accent: #0f7360;
  --accent-ink: #f3f1ec;
  --sel: rgba(15, 115, 96, .18);

  /* 日照条的四种光，按时段含义取色 */
  --c-night: #1f2438;
  --c-blue: #3e5c9e;
  --c-gold: #e09a46;
  --c-day: #efe2bf;

  --sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --serif: "New York", "Iowan Old Style", Charter, "Charis SIL", Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --pad: clamp(20px, 4vw, 48px);
  --max: 1200px;
  --nav-h: 64px;
  --radius: 3px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 160ms;
  --t-mid: 240ms;
  --t-slow: 600ms;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121211;
    --bg-2: #1b1a18;
    --ink: #ecebe6;
    --ink-2: #c4c2ba;
    --ink-3: #95938b;
    --rule: rgba(236, 235, 230, .13);
    --rule-2: rgba(236, 235, 230, .26);
    --accent: #52c7a8;
    --accent-ink: #0e1512;
    --sel: rgba(82, 199, 168, .28);
    --c-night: #1a1e30;
    --c-blue: #3a5797;
    --c-gold: #d7913f;
    --c-day: #d9cba6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121211;
  --bg-2: #1b1a18;
  --ink: #ecebe6;
  --ink-2: #c4c2ba;
  --ink-3: #95938b;
  --rule: rgba(236, 235, 230, .13);
  --rule-2: rgba(236, 235, 230, .26);
  --accent: #52c7a8;
  --accent-ink: #0e1512;
  --sel: rgba(82, 199, 168, .28);
  --c-night: #1a1e30;
  --c-blue: #3a5797;
  --c-gold: #d7913f;
  --c-day: #d9cba6;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.8 var(--sans);
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
html[lang="en"] body { line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--sel); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
time { font-variant-numeric: tabular-nums; }
code { font-family: var(--mono); font-size: .9em; }
html { scrollbar-color: var(--rule-2) transparent; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); font-variant-numeric: tabular-nums;
}
html[lang="en"] h1, html[lang="en"] h2 { font-family: var(--serif); font-weight: 500; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; transition: top var(--t-fast) var(--ease);
}
.skip:focus { top: 12px; }

/* links: underline grows left to right */
.ul {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--t-mid) var(--ease), color var(--t-fast) var(--ease);
  padding-bottom: 2px;
}
.ul:hover, .ul:focus-visible { background-size: 100% 1px; }
.arrow { display: inline-block; transition: transform var(--t-mid) var(--ease); }
a:hover .arrow, a:focus-visible .arrow { transform: translateX(4px); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius);
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:active { transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: transform var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav.is-hidden { transform: translateY(-100%); }
.nav:focus-within { transform: none; }
.nav-in {
  display: flex; align-items: center; gap: 28px;
  height: var(--nav-h);
  max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand svg { width: 24px; height: 24px; border-radius: 6px; flex: none; }
.brand b { font-weight: 600; font-size: .98rem; letter-spacing: .01em; }
.brand small { font-family: var(--mono); font-size: .7rem; color: var(--ink-3); letter-spacing: .06em; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  text-decoration: none; color: var(--ink-2); font-size: .9rem;
  transition: color var(--t-fast) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.nav-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lang { display: flex; align-items: center; font-family: var(--mono); font-size: .78rem; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 44px;
  text-decoration: none; color: var(--ink-3); transition: color var(--t-fast) var(--ease);
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { color: var(--ink); }
.lang span { color: var(--rule-2); }
.theme {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink-2);
  transition: color var(--t-fast) var(--ease);
}
html.js .theme { display: inline-grid; }
.theme:hover { color: var(--ink); }
.theme svg { width: 18px; height: 18px; transition: transform var(--t-slow) var(--ease); }
:root[data-theme="dark"] .theme svg { transform: rotate(180deg); }
.nav-tools > .btn { margin-left: 8px; }

/* mobile menu: <details>, works without JS */
.menu { display: none; }
.menu > summary {
  list-style: none; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; border-radius: 50%;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu .bars { position: relative; width: 20px; height: 10px; }
.menu .bars::before, .menu .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform var(--t-mid) var(--ease), top var(--t-mid) var(--ease);
}
.menu .bars::before { top: 0; }
.menu .bars::after { top: 8.5px; }
.menu[open] .bars::before { top: 4.25px; transform: rotate(45deg); }
.menu[open] .bars::after { top: 4.25px; transform: rotate(-45deg); }
.sheet {
  position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; z-index: 49;
  overflow-y: auto; background: var(--bg); border-top: 1px solid var(--rule);
  padding: 28px var(--pad) calc(40px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 28px;
}
.menu[open] .sheet { animation: sheet-in var(--t-mid) var(--ease) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.sheet-main { display: flex; flex-direction: column; }
.sheet-main a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; text-decoration: none;
}
.sheet-main a span { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); letter-spacing: .04em; }
.sheet-fam { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.sheet-fam a { display: flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.sheet .btn { align-self: flex-start; }
@media (max-width: 880px) { html.menu-open { overflow: hidden; } }

@media (max-width: 880px) {
  .nav-links, .nav-tools > .btn { display: none; }
  .menu { display: block; }
  .nav-in { gap: 12px; }
}

/* ---------- section rhythm ---------- */
.sec { padding-block: clamp(80px, 11vw, 150px); }
.sec-tight { padding-block: clamp(56px, 7vw, 96px); }
.sec-loose { padding-block: clamp(104px, 15vw, 210px); }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec.flush-top { padding-top: 0; border-top: 0; }
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; }
html[lang="en"] .h2 { letter-spacing: -.015em; line-height: 1.1; }
.body-l { font-size: clamp(1.05rem, 1.3vw, 1.18rem); line-height: 1.85; color: var(--ink-2); }
html[lang="en"] .body-l { line-height: 1.6; }
.stack-s > * + * { margin-top: .9em; }
.stack-m > * + * { margin-top: 1.4em; }
.link-row { margin-top: 32px; }
.link-row a { font-weight: 500; }

/* ---------- home: hero ---------- */
.hero { padding-top: clamp(28px, 5vw, 72px); padding-bottom: clamp(24px, 4vw, 56px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
}
.hero-text { padding-top: clamp(8px, 4vw, 64px); }
.hero-text > * { animation: rise var(--t-slow) var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: 70ms; }
.hero-text > :nth-child(3) { animation-delay: 140ms; }
.hero-text > :nth-child(4) { animation-delay: 210ms; }
.hero-text > :nth-child(5) { animation-delay: 280ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 4.7vw, 4.4rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; word-break: keep-all;
}
html[lang="en"] .hero h1 { font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.hero h1 .l2 { display: block; }
.hero-lede { margin-top: 28px; max-width: 26em; font-size: clamp(1.02rem, 1.25vw, 1.14rem); color: var(--ink-2); }
.hero-lede + .hero-lede { margin-top: 12px; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-cta .ul { color: var(--ink-2); font-size: .95rem; }

/* place figure */
.spot { margin: 0; }
.spot-photo {
  position: relative; overflow: hidden; border-radius: var(--radius) 0 0 var(--radius);
  aspect-ratio: 3 / 2; max-height: min(72vh, 620px); width: auto; background: var(--bg-2);
  margin-right: calc(-1 * min(max(var(--pad), (100vw - var(--max)) / 2), 120px));
}
.spot-photo picture, .spot-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.spot-photo img { object-fit: cover; transition: opacity .6s var(--ease); }
.spot-photo picture:first-child img { animation: settle 9s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.spot-pick { display: flex; gap: 2px 18px; flex-wrap: wrap; margin-top: 14px; }
.pick {
  min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  font-size: .9rem; color: var(--ink-3);
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 7px;
  transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease);
}
.pick:hover { color: var(--ink); }
.pick[aria-pressed="true"] { color: var(--ink); text-decoration-color: var(--accent); }
.day { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); }
.day-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; color: var(--ink-3); }
.day-head b { color: var(--ink); font-weight: 500; font-family: var(--sans); font-size: .92rem; letter-spacing: 0; }
.day-track { position: relative; margin-top: 26px; }
.day-band {
  height: 12px; border-radius: 1px;
  box-shadow: inset 0 0 0 1px var(--rule);
  background: linear-gradient(90deg,
    var(--c-night) 0%, var(--c-night) var(--mb2),
    var(--c-blue) calc((var(--mb2) + var(--mb1)) / 2),
    var(--c-gold) var(--rise),
    var(--c-day) calc(var(--mg) + 1.5%),
    var(--c-day) calc(var(--eg) - 1.5%),
    var(--c-gold) var(--set),
    var(--c-blue) calc((var(--eb1) + var(--eb2)) / 2),
    var(--c-night) var(--eb2), var(--c-night) 100%);
}
.tick { position: absolute; bottom: 100%; width: 1px; height: 10px; background: var(--ink-3); transform: translateX(-.5px); }
.tick span {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .68rem; color: var(--ink-3); white-space: nowrap;
}
.tick-now { height: 22px; bottom: -5px; background: var(--ink); width: 2px; }
.tick-now span { color: var(--ink); bottom: 24px; }
.day-axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--ink-3); font-size: .66rem; }
.day-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; }
.day-times div { border-left: 1px solid var(--rule); padding-left: 12px; }
.day-times dt { font-size: .78rem; color: var(--ink-3); }
.day-times dd { margin: 2px 0 0; font-family: var(--mono); font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.spot-cap { margin-top: 16px; font-size: .78rem; line-height: 1.7; color: var(--ink-3); max-width: 44em; }
.spot-cap a { color: var(--ink-2); text-underline-offset: 3px; }
html.js .day-band { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease) .25s; }
html.js .day .tick { opacity: 0; transition: opacity var(--t-slow) var(--ease) 1.2s; }
html.js .day.in .day-band { clip-path: inset(0); }
html.js .day.in .tick { opacity: 1; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { padding-top: 0; }
  .spot-photo { margin-inline: calc(var(--pad) * -1); border-radius: 0; }
  .day-times { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
}

/* ---------- home: value spread ---------- */
.spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: center; }
.spread-fig { grid-column: 1 / span 7; margin: 0; --bleed: min(max(var(--pad), (100vw - var(--max)) / 2), 120px); }
.spread-fig img { margin-left: calc(-1 * var(--bleed)); width: calc(100% + var(--bleed)); max-width: none; }
.spread-fig img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0 var(--radius) var(--radius) 0; }
.spread-text { grid-column: 9 / span 4; }
.spread-text .h2 { margin-bottom: 28px; }
figcaption.cap { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--ink-3); }
figcaption.cap a { color: var(--ink-3); text-underline-offset: 3px; }
@media (max-width: 920px) {
  .spread { grid-template-columns: 1fr; }
  .spread-fig, .spread-text { grid-column: auto; }
  .spread-fig { --bleed: var(--pad); }
  .spread-fig img { width: calc(100% + 2 * var(--pad)); }
  .spread-fig img { border-radius: 0; }

}

/* photo develop (only a few hero-ish images) */
html.js [data-develop] img { clip-path: inset(0 0 100% 0); filter: brightness(1.35) blur(6px); transition: clip-path 1.2s var(--ease), filter 1.8s var(--ease) .1s; }
html.js [data-develop].in img { clip-path: inset(0); filter: none; }

/* reveal */
html.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- home: products (rows, not cards) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); }
.split-head .body-l { margin-top: 20px; }
.prods { list-style: none; border-top: 1px solid var(--rule); }
.prod {
  display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.prod h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
html[lang="en"] .prod h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
.prod .label { display: block; margin-top: 6px; }
.prod p { color: var(--ink-2); }
.prod > a { font-size: .9rem; font-weight: 500; white-space: nowrap; }
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .prod { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- layers (strata) ---------- */
.layers { list-style: none; counter-reset: layer; }
.layer {
  display: grid; grid-template-columns: 3.2rem minmax(0, 12rem) minmax(0, 1fr) auto; gap: 8px 28px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--rule);
}
.layer:last-child { border-bottom: 1px solid var(--rule); }
.layer .label { color: var(--ink-3); }
.layer h3 { font-size: 1.08rem; font-weight: 600; }
html[lang="en"] .layer h3 { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.layer p { color: var(--ink-2); }
.layer .state { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); white-space: nowrap; }
.layer .state.off { color: var(--ink); }
.layer .state.off::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; margin-right: 6px; vertical-align: 1px; }
.layer .state.on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
.layer ul { grid-column: 3 / -1; list-style: none; margin-top: 6px; color: var(--ink-2); font-size: .94rem; }
.layer li { position: relative; padding-left: 1.1em; }
.layer li + li { margin-top: 4px; }
.layer li::before { content: ""; position: absolute; left: 0; top: .9em; width: .55em; height: 1px; background: var(--ink-3); }
@media (max-width: 760px) {
  .layer { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .layer p, .layer .state, .layer ul { grid-column: 2; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-grid > :first-child { position: sticky; top: calc(var(--nav-h) + 24px); }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 64px; padding: 16px 0; font-size: 1.06rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform var(--t-mid) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 24px; max-width: 38em; color: var(--ink-2); }
.faq details[open] .a { animation: rise var(--t-mid) var(--ease) both; }
.faq a { text-underline-offset: 3px; }
@media (max-width: 920px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid > :first-child { position: static; }
}

/* ---------- status band ---------- */
.status { background: var(--bg-2); }
.sec + .status, .status + .sec { border-top: 0; }
.status-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.status .body-l { margin-top: 20px; }
.status-items { display: grid; gap: 0; border-top: 1px solid var(--rule-2); }
.status-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule-2); align-items: start; }
.status-item img { width: 112px; height: 112px; border-radius: var(--radius); background: #fff; }
.status-item img.icon { width: 64px; height: 64px; border-radius: 14px; background: none; }
.status-item h3 { font-size: 1.05rem; font-weight: 600; }
.status-item .num { font-family: var(--mono); font-size: 1.35rem; letter-spacing: .02em; margin-top: 2px; }
.status-item p { margin-top: 8px; color: var(--ink-2); font-size: .94rem; }
.fine { margin-top: 28px; font-size: .8rem; line-height: 1.7; color: var(--ink-3); max-width: 46em; }
.fine a { color: var(--ink-2); text-underline-offset: 3px; }
@media (max-width: 920px) { .status-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .status-item { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .status-item img { width: 88px; height: 88px; }
}
.status-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.status-mini img { width: 96px; height: 96px; border-radius: var(--radius); background: #fff; }
.status-mini p { max-width: 34em; color: var(--ink-2); }
.status-mini strong { color: var(--ink); font-weight: 600; }

/* ---------- inner pages: header ---------- */
.gtop { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(32px, 4vw, 48px); }
.gtop .wrap > * { max-width: 46rem; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-family: var(--mono); font-size: .74rem; color: var(--ink-3); }
.crumb a { color: var(--ink-3); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.crumb a:hover { color: var(--ink); }
.crumb i { font-style: normal; color: var(--rule-2); }
.gtop h1 { margin-top: 24px; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.1; letter-spacing: -.03em; }
html[lang="en"] .gtop h1 { letter-spacing: -.02em; line-height: 1.05; }
.gmeta { display: flex; flex-wrap: wrap; gap: 2px 0; margin-top: 20px; font-family: var(--mono); font-size: .74rem; color: var(--ink-3); }
.gmeta .chip + .chip::before { content: "·"; margin: 0 .7em; color: var(--rule-2); }
.glede { margin-top: 24px; font-size: clamp(1.06rem, 1.4vw, 1.22rem); line-height: 1.8; color: var(--ink-2); }
html[lang="en"] .glede { line-height: 1.55; }

@media (min-width: 1000px) {
  .indent { padding-left: clamp(0px, 13vw, 200px); }
}

/* ---------- prose ---------- */
.prose { max-width: 40rem; font-size: 1.04rem; }
html[lang="en"] .prose { max-width: 38rem; font-size: 1.06rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.6em; font-size: 1.45rem; line-height: 1.3; letter-spacing: -.01em; }
html[lang="en"] .prose h2 { font-size: 1.6rem; }
.prose h3 { margin-top: 2em; font-size: 1.08rem; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: normal; color: var(--ink); background: linear-gradient(transparent 62%, var(--sel) 0); }
.prose a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--rule-2); transition: text-decoration-color var(--t-fast) var(--ease); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose ol li::marker { font-family: var(--mono); font-size: .85em; color: var(--ink-3); }
.prose ul { list-style: none; padding-left: 1.2em; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1.2em; top: .95em; width: .6em; height: 1px; background: var(--ink-3); }
.tblwrap { overflow-x: auto; border-top: 1px solid var(--rule-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: .06em; color: var(--ink-3); padding: 12px 16px 10px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.prose td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.prose td:first-child { color: var(--ink); white-space: nowrap; }
.tblcap { font-size: .82rem; color: var(--ink-3); margin-top: .7em !important; }
.note-box { margin-top: 2.4em !important; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); }
.note-box .nt { margin-top: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.note-box p { margin-top: .6em; font-size: .97rem; }
.after { margin-top: clamp(56px, 7vw, 88px); max-width: 40rem; }
.after .label { display: block; margin-bottom: 8px; }
.rel { list-style: none; border-top: 1px solid var(--rule); }
.rel a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.rel b { font-weight: 500; }
.rel span { grid-column: 1; color: var(--ink-3); font-size: .9rem; }
.rel .arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ink-3); }
.disclaim { margin-top: 32px; font-size: .8rem; color: var(--ink-3); max-width: 40rem; }

/* ---------- guide index ---------- */
.glist { list-style: none; border-top: 1px solid var(--rule); }
.glist a {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.glist .n { font-family: var(--mono); font-size: .8rem; color: var(--ink-3); }
.glist h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
html[lang="en"] .glist h2 { font-weight: 500; }
.glist p { grid-column: 2; color: var(--ink-2); max-width: 36em; }
.glist .arrow { grid-column: 3; grid-row: 1; color: var(--ink-3); }
.glist a:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (max-width: 640px) {
  .glist a { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .glist .arrow { display: none; }
}

/* ---------- engineering ---------- */
.rules { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.rules li { padding: 28px 32px 32px 0; border-bottom: 1px solid var(--rule); }
.rules li:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--rule); }
.rules h3 { margin-top: 10px; font-size: 1.2rem; }
html[lang="en"] .rules h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
.rules p { margin-top: 10px; color: var(--ink-2); }
@media (max-width: 760px) {
  .rules { grid-template-columns: 1fr; }
  .rules li, .rules li:nth-child(even) { padding: 24px 0; border-left: 0; }
}
.arch { margin: 40px 0 0; overflow-x: auto; }
.arch svg { min-width: 680px; max-width: 960px; width: 100%; height: auto; font-family: var(--sans); }
.arch .bx { fill: none; stroke: var(--rule-2); stroke-width: 1; }
.arch .bx.api { stroke: var(--ink); }
.arch .bx.up { stroke-dasharray: 4 4; }
.arch .ln path { stroke: var(--rule-2); stroke-width: 1; fill: none; }
.arch text { fill: var(--ink); font-size: 15px; }
.arch text.sm { fill: var(--ink-3); font-size: 12px; font-family: var(--mono); }
.arch .dot { fill: var(--accent); }
.arch-cap { margin-top: 16px; font-size: .86rem; color: var(--ink-3); max-width: 44em; }
.closing { margin-top: 48px; max-width: 40rem; font-size: 1.04rem; color: var(--ink-2); }

/* ---------- legal pages (body generated by tools/legal/build.py) ---------- */
.legal-toc { margin-bottom: clamp(40px, 5vw, 64px); max-width: 46rem; }
.legal-toc ol { list-style: none; counter-reset: toc; columns: 2; column-gap: 40px; border-top: 1px solid var(--rule); padding-top: 14px; }
.legal-toc li { counter-increment: toc; break-inside: avoid; display: flex; gap: 10px; padding: 3px 0; font-size: .9rem; }
.legal-toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: .72rem; color: var(--ink-3); padding-top: .3em; }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-body { max-width: 46rem; }
.legal-body h2 { font-size: 1.2rem; padding-top: 1.6em; border-top: 1px solid var(--rule); }
html[lang="en"] .legal-body h2 { font-size: 1.35rem; }
.legal-body h2:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

/* ---------- 404 ---------- */
.lost { position: relative; }
.lost-map { position: absolute; right: calc(var(--pad) * -1); top: -20px; width: min(560px, 60vw); color: var(--rule-2); pointer-events: none; z-index: -1; }
.lost-map path { fill: none; stroke: currentColor; stroke-width: 1; }
.lost-map circle { fill: var(--accent); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding-top: clamp(56px, 7vw, 88px); padding-bottom: calc(32px + env(safe-area-inset-bottom)); font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); gap: 40px 32px; }
.foot-brand p { margin-top: 14px; color: var(--ink-2); max-width: 18em; }
.foot .label { display: block; margin-bottom: 12px; }
.foot ul { list-style: none; }
.foot li a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-2); text-decoration: none; transition: color var(--t-fast) var(--ease); }
.foot li a:hover { color: var(--ink); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(48px, 6vw, 72px); padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: .8rem; }
.foot-base a { color: var(--ink-2); text-underline-offset: 3px; }
@media (max-width: 920px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- page transitions & motion preferences ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--t-mid); animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js [data-develop] img { clip-path: none; filter: none; }
  html.js .day-band { clip-path: none; }
  html.js .day .tick { opacity: 1; }
  .nav.is-hidden { transform: none; }
  @view-transition { navigation: none; }
}

@media print {
  .nav, .foot, .status, .skip { display: none; }
  html.js [data-reveal], html.js [data-develop] img { opacity: 1; transform: none; clip-path: none; filter: none; }
}
