/* ============================================================
   AIDC Design Book · Vol.01 · 2049 —— 页面样式（designbook.html）v2
   编辑排版的例外页（docs/site-design.md §7）：图片叙事为主。
   直角、出血大图、黑白默认（看到或鼠标移上去才有颜色）、巨大的压窄数字、等宽小字图注。
   线只用单边细线（索引行、跑马灯），不画四边边框。
   ============================================================ */

/* 压窄数字用的 Archivo 放在本站（Google 字体在部分网络打不开时，版式不散）。OFL 许可见 assets/fonts/OFL-Archivo.txt */
@font-face { font-family: "Archivo BK"; src: url("../fonts/archivo-var-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

.bk {
  --ink: #0b0b0b;
  --paper: #f4f2ee;
  --white: #ffffff;
  --signal: #ff4d00;
  --mute: rgba(244, 242, 238, 0.62);
  --mute-ink: rgba(11, 11, 11, 0.58);
  --hair: rgba(244, 242, 238, 0.16);
  --hair-ink: rgba(11, 11, 11, 0.14);
  --pad: clamp(16px, 3.2vw, 48px);
  --num: "Archivo BK", "Archivo", "PingFang SC", sans-serif;
  --voice: "Instrument Serif", "Songti SC", "STSong", Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--ink);
  color: var(--paper);
}
.bk h1, .bk h2, .bk h3, .bk p, .bk dt, .bk dd, .bk figure { margin: 0; color: inherit; }
.bk main *, .bk main *::before, .bk main *::after { border-radius: 0; }
.bk-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bk-cap { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5; }
.bk-cap b { font-weight: 500; margin-right: 0.9em; }

/* 这一页的导航用黑底白字（只改本页导航的颜色令牌，取值同站点深色主题） */
.bk .nav { --bg: #0b0b0b; --bg-2: #141414; --bg-3: #1e1e1e; --ink: #ededed; --ink-strong: #ffffff; --mut: #a1a1a1; --mut-2: #7d7d7d; --line: rgba(255, 255, 255, 0.10); --line-soft: rgba(255, 255, 255, 0.06); --surface: #141414; --surface-hover: #1a1a1a; --raised: #1e1e1e; --raised-hover: #242424; --fill: #1e1e1e; --fill-hover: #282828; color-scheme: dark; }

/* 中文大字只在标点和 <wbr> 处换行（每一段都不超过手机一行）；日文只在宽屏这样做 */
:lang(zh) .bk-line, :lang(zh) .bk-chapter-h, :lang(zh) .bk-laws-list p, :lang(zh) .bk-coda-h { word-break: keep-all; }
@media (min-width: 901px) {
  :lang(ja) .bk-line, :lang(ja) .bk-chapter-h, :lang(ja) .bk-laws-list p, :lang(ja) .bk-coda-h { word-break: keep-all; }
}

/* ---------- images: grey until you look ---------- */
.bk-shot { position: relative; overflow: hidden; background: #151515; }
.bk-img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(0.9); transform: scale(1.001); transition: filter 1.1s var(--ease), transform 1.6s var(--ease-out); }
@media (hover: hover) { .bk-shot:hover .bk-img { filter: none; transform: scale(1.025); } }
.bk-shot.is-color .bk-img { filter: none; }
@media (prefers-reduced-motion: no-preference) {
  .bk-shot.bk-reveal { clip-path: inset(10% 0 0 0); transition: clip-path 1.3s var(--ease-out); }
  .bk-shot.bk-reveal .bk-img { transform: scale(1.12); }
  .bk-shot.bk-reveal.is-in { clip-path: inset(0 0 0 0); }
  .bk-shot.bk-reveal.is-in .bk-img { transform: scale(1.001); }
  @media (hover: hover) { .bk-shot.bk-reveal.is-in:hover .bk-img { transform: scale(1.025); } }
  .bk-rise { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
  .bk-rise.is-in { opacity: 1; transform: none; }
}

/* ---------- cover ---------- */
.bk-cover { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: #000; color: var(--white); }
.bk-cover-media { position: absolute; inset: 0; }
.bk-cover-media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) brightness(0.86); transform: scale(1.14); transition: filter 2.6s var(--ease), transform 3.2s var(--ease-out); }
.bk-cover.is-ready .bk-cover-media img { filter: none; transform: none; }
.bk-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 46%), linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 24%); pointer-events: none; }
.bk-cover-top { position: absolute; z-index: 2; top: calc(var(--nav-h) + 18px); left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; }
.bk-cover-h { position: absolute; z-index: 2; left: calc(var(--pad) * 0.6); bottom: 0; line-height: 0; }
.bk-mega { display: block; font-family: var(--num); font-weight: 900; font-stretch: 62%; font-size: clamp(180px, 36vw, 640px); line-height: 0.74; letter-spacing: -0.045em; transform: translateY(13%); }
.bk-cover-line { position: absolute; z-index: 2; right: var(--pad); bottom: calc(var(--pad) + 34px); max-width: 15em; font-size: clamp(18px, 1.7vw, 26px); font-weight: 600; line-height: 1.25; text-align: right; letter-spacing: -0.01em; }
.bk-cover-scroll { position: absolute; z-index: 2; right: var(--pad); bottom: var(--pad); color: var(--white); text-decoration: none; opacity: 0.8; }
.bk-cover-scroll:hover { opacity: 1; color: var(--signal); }
@media (prefers-reduced-motion: reduce) { .bk-cover-media img { transform: none; transition: filter 1.2s ease; } }

/* ---------- manifesto ---------- */
.bk-manifesto { background: var(--ink); padding-bottom: clamp(48px, 10vh, 120px); }
.bk-marquee { overflow: hidden; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.bk-marquee-track { display: flex; width: max-content; padding-block: 18px; }
.bk-marquee-track span { flex: none; padding-right: 0.9em; font-family: var(--num); font-weight: 900; font-stretch: 62%; font-size: clamp(44px, 6.4vw, 104px); line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; }
.bk-marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px var(--paper); }
@media (prefers-reduced-motion: no-preference) { .bk-marquee-track { animation: bk-marquee 48s linear infinite; } }
@keyframes bk-marquee { to { transform: translateX(-50%); } }
.bk-lines { list-style: none; margin: 0; padding: 0 var(--pad); }
.bk-lines li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.42fr); gap: 24px 48px; align-items: end; padding-block: clamp(36px, 7vh, 88px); border-bottom: 1px solid var(--hair); }
.bk-line { font-family: var(--font-display); font-size: clamp(40px, 6.6vw, 112px); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
:lang(zh) .bk-line { letter-spacing: -0.02em; }
.bk-line-note { color: var(--mute); max-width: 26em; padding-bottom: 0.6em; }

/* ---------- chapters ---------- */
.bk-chapter { padding: clamp(96px, 18vh, 200px) var(--pad) clamp(40px, 8vh, 96px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px 48px; align-items: end; }
.bk-chapter > .bk-cap { grid-column: 1 / -1; color: var(--signal); }
.bk-chapter-h { font-family: var(--font-display); font-size: clamp(34px, 4.8vw, 76px); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
:lang(zh) .bk-chapter-h { letter-spacing: -0.015em; }
.bk-chapter-p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--mute); max-width: 30em; justify-self: end; }

/* ---------- the day ---------- */
.bk-day { background: var(--ink); padding-bottom: 2px; }
.bk-shot--full { height: min(100svh, 68vw); margin-bottom: 2px; }
.bk-capt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 32px; padding: 80px var(--pad) var(--pad); color: var(--white); background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0)); pointer-events: none; }
.bk-note { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; max-width: 34em; }
.bk-note--lg { font-size: clamp(18px, 1.8vw, 26px); line-height: 1.45; letter-spacing: -0.01em; }
.bk-note--xl { font-family: var(--num); font-weight: 900; font-stretch: 62%; font-size: clamp(44px, 7vw, 120px); line-height: 0.9; letter-spacing: -0.01em; }
:lang(zh) .bk-note--xl { font-family: var(--font-display); font-weight: 800; font-stretch: normal; letter-spacing: -0.02em; font-size: clamp(34px, 5vw, 84px); }
.bk-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-bottom: 2px; }
.bk-pair .bk-shot { aspect-ratio: 3 / 2.1; }
.bk-pair .bk-capt { padding-top: 60px; }
.bk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-bottom: 2px; background: var(--ink); }
.bk-split--rev .bk-shot { order: 2; }
.bk-shot--tall { height: min(100svh, 75vw); }
.bk-split-text { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: var(--pad) var(--pad) calc(var(--pad) * 1.4); }
.bk-split-text .bk-cap { color: var(--signal); }
.bk-time { font-family: var(--num); font-weight: 900; font-stretch: 62%; font-size: clamp(110px, 17vw, 300px); line-height: 0.76; letter-spacing: -0.04em; color: var(--paper); }
.bk-quote { font-family: var(--voice); font-style: italic; font-size: clamp(34px, 4.2vw, 68px); line-height: 1.04; letter-spacing: -0.01em; }
:lang(zh) .bk-quote { font-style: normal; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.bk-split--night .bk-time { color: var(--signal); }

/* ---------- index lists (origin, materials, books) ---------- */
.bk-origin, .bk-canon { background: var(--paper); color: var(--ink); }
.bk-index { list-style: none; margin: 0; padding: 0 var(--pad) clamp(80px, 14vh, 160px); }
.bk-index li { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px 32px; align-items: baseline; padding-block: clamp(18px, 2.4vw, 30px); border-top: 1px solid var(--hair-ink); transition: color 0.35s var(--ease); }
.bk-index li:last-child { border-bottom: 1px solid var(--hair-ink); }
.bk-ix-n { color: var(--mute-ink); }
.bk-ix-t { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 52px); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; transition: transform 0.45s var(--ease-out); }
.bk-ix-d { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; color: var(--mute-ink); max-width: 34em; }
.bk-index li:hover .bk-ix-t { transform: translateX(14px); }
.bk-ix-hot .bk-ix-t, .bk-ix-hot .bk-ix-n { color: var(--signal); }

/* ---------- materials ---------- */
.bk-system { background: var(--ink); }
.bk-system .bk-index li { border-color: var(--hair); grid-template-columns: 5rem minmax(0, 1fr) auto; }
.bk-system .bk-index li:last-child { border-bottom-color: var(--hair); }
.bk-system .bk-ix-n { color: var(--mute); }
.bk-system .bk-ix-t { font-family: var(--num); font-weight: 900; font-stretch: 62%; font-size: clamp(40px, 6.4vw, 108px); line-height: 0.92; letter-spacing: -0.01em; text-transform: uppercase; }
:lang(zh) .bk-system .bk-ix-t { font-family: var(--font-display); font-weight: 800; font-stretch: normal; letter-spacing: -0.03em; }
.bk-ix-e { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); text-align: right; }
.bk-index--hover li:hover { color: var(--signal); }
.bk-index--hover li:hover .bk-ix-e, .bk-index--hover li:hover .bk-ix-n { color: var(--signal); }
.bk-sheet { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.bk-sheet .bk-shot { aspect-ratio: 1; }
.bk-colors { list-style: none; margin: 2px 0 0; padding: 0; display: flex; height: clamp(220px, 40vh, 420px); }
.bk-colors li { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px; background: var(--c); color: var(--ink); font-size: 14px; font-weight: 650; transition: flex-grow 0.7s var(--ease-out); min-width: 0; overflow: hidden; }
.bk-colors li:last-child, .bk-colors li:nth-child(3) { color: var(--paper); }
.bk-colors li:last-child { box-shadow: inset 0 0 0 1px var(--hair); }
.bk-colors li:hover { flex-grow: 3.2; }
.bk-colors .bk-cap { font-size: 10.5px; opacity: 0.7; white-space: nowrap; }

/* ---------- adis ---------- */
.bk-adis { background: var(--paper); color: var(--ink); padding-bottom: clamp(80px, 14vh, 160px); }
.bk-adis .bk-chapter-p { color: var(--mute-ink); }
.bk-figs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
.bk-figs .bk-shot { aspect-ratio: 2 / 3; }
.bk-figs .bk-shot > .bk-cap { position: absolute; left: 12px; right: 12px; bottom: 10px; color: var(--white); opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }
.bk-figs .bk-shot:hover > .bk-cap, .bk-figs .bk-shot.is-color > .bk-cap { opacity: 1; transform: none; }
.bk-bible { margin: clamp(48px, 8vh, 96px) var(--pad) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.bk-bible > div { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 14px; align-content: start; }
.bk-bible dt { color: var(--signal); }
.bk-bible dd { font-size: clamp(20px, 1.9vw, 30px); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }

/* ---------- laws ---------- */
.bk-laws { background: var(--signal); color: var(--ink); padding-bottom: clamp(80px, 14vh, 160px); }
.bk-laws .bk-chapter > .bk-cap { color: var(--ink); }
.bk-laws .bk-chapter-h { grid-column: 1 / -1; max-width: 22em; font-size: clamp(26px, 3vw, 46px); }
.bk-laws-list { list-style: none; margin: 0; padding: 0 var(--pad); }
.bk-laws-list li { display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr); gap: 12px 40px; align-items: baseline; padding-block: clamp(26px, 4.4vw, 60px); border-top: 1px solid rgba(11, 11, 11, 0.32); }
.bk-laws-list p { font-family: var(--font-display); font-size: clamp(32px, 5.2vw, 88px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
:lang(zh) .bk-laws-list p { letter-spacing: -0.02em; }
.bk-laws-gap p { color: var(--white); }

/* ---------- books ---------- */
.bk-index--books li { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.bk-index--books .bk-ix-t { font-size: clamp(22px, 2.4vw, 38px); }
.bk-contra { padding: 0 var(--pad) clamp(80px, 14vh, 160px); margin-top: calc(clamp(80px, 14vh, 160px) * -0.6); max-width: 46em; font-size: 16px; line-height: 1.6; color: var(--mute-ink); }

/* ---------- coda ---------- */
.bk-coda { background: var(--ink); }
.bk-coda-media { height: 100svh; min-height: 560px; }
.bk-coda-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 140px var(--pad) calc(var(--pad) * 1.5); color: var(--white); background: linear-gradient(to top, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0)); pointer-events: none; }
.bk-coda-h { font-family: var(--font-display); font-size: clamp(46px, 8vw, 140px); font-weight: 800; line-height: 0.98; letter-spacing: -0.04em; }
:lang(zh) .bk-coda-h { letter-spacing: -0.02em; }
.bk-coda-p { margin-top: 24px; max-width: 34em; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, 0.84); }
.bk-coda-foot { padding: clamp(64px, 12vh, 140px) var(--pad) clamp(48px, 8vh, 96px); }
.bk-believe { list-style: none; counter-reset: bk; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.bk-believe li { counter-increment: bk; display: grid; grid-template-columns: 3.4em minmax(0, 1fr); padding-block: 22px; border-top: 1px solid var(--hair); font-size: clamp(18px, 1.7vw, 26px); font-weight: 650; line-height: 1.35; letter-spacing: -0.015em; }
.bk-believe li::before { content: "0" counter(bk); font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; color: var(--signal); padding-top: 0.5em; }
.bk-cta { display: flex; flex-wrap: wrap; gap: 2px; margin-top: clamp(48px, 8vh, 88px); }
.bk-btn { appearance: none; display: inline-flex; align-items: center; height: 64px; padding: 0 30px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; font-weight: 650; letter-spacing: 0.01em; text-decoration: none; cursor: pointer; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.bk-btn:hover { background: var(--white); color: var(--ink); }
.bk-btn--signal { background: var(--signal); color: var(--ink); }
.bk-btn--signal:hover { background: var(--ink); color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
.bk-btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.bk-colophon { margin-top: clamp(64px, 10vh, 110px); color: var(--mute); display: grid; gap: 4px; }

/* ---------- cursor preview ---------- */
.bk-preview { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(200px, 22vw, 340px); aspect-ratio: 1; pointer-events: none; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.86); transition: opacity 0.25s ease; will-change: transform; }
.bk-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-preview.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .bk-preview { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .bk-chapter { grid-template-columns: 1fr; }
  .bk-chapter-p { justify-self: start; }
  .bk-lines li { grid-template-columns: 1fr; }
  .bk-pair, .bk-split { grid-template-columns: 1fr; }
  .bk-split--rev .bk-shot { order: 0; }
  .bk-shot--tall { height: auto; aspect-ratio: 2 / 3; }
  .bk-shot--full { height: auto; aspect-ratio: 4 / 5; }
  .bk-split-text { padding-block: 28px 44px; }
  .bk-index li, .bk-index--books li { grid-template-columns: 1fr; gap: 6px; }
  .bk-system .bk-index li { grid-template-columns: 3rem minmax(0, 1fr); }
  .bk-system .bk-ix-e { display: none; }
  .bk-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-figs .bk-shot > .bk-cap { opacity: 1; transform: none; }
  .bk-bible { grid-template-columns: 1fr 1fr; }
  .bk-laws-list li { grid-template-columns: 1fr; }
  .bk-believe { grid-template-columns: 1fr; }
  .bk-colors { height: auto; flex-wrap: wrap; }
  .bk-colors li { flex: 1 1 33%; height: 120px; }
  .bk-colors li:hover { flex-grow: 1; }
  .bk-mega { font-size: 52vw; }
  .bk-coda-h { font-size: clamp(34px, 10.2vw, 64px); }
  .bk-line { font-size: clamp(32px, 9.4vw, 56px); }
  .bk-cover-line { left: var(--pad); right: auto; text-align: left; bottom: calc(52vw * 0.62 + var(--pad)); }
  .bk-cover-scroll { display: none; }
}
@media (max-width: 560px) {
  .bk-bible { grid-template-columns: 1fr; }
  .bk-cover-top span:nth-child(2) { display: none; }
}
