@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/chakra-petch-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/chakra-petch-400-latin.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:'Chakra Petch';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/chakra-petch-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/chakra-petch-500-latin.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:'Chakra Petch';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/chakra-petch-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/chakra-petch-600-latin.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:'Chakra Petch';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/chakra-petch-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/chakra-petch-700-latin.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:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/jetbrains-mono-400-latin.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:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/jetbrains-mono-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/jetbrains-mono-500-latin.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:'JetBrains Mono';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/jetbrains-mono-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/jetbrains-mono-700-latin.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:'MiSans';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/misans-400.woff2') format('woff2');unicode-range:U+00A7, U+00B0, U+00B1, U+00B7, U+00D7, U+00F7, U+2010-2027, U+2030-205E, U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3200-32FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF;}
@font-face{font-family:'MiSans';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/misans-500.woff2') format('woff2');unicode-range:U+00A7, U+00B0, U+00B1, U+00B7, U+00D7, U+00F7, U+2010-2027, U+2030-205E, U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3200-32FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF;}
@font-face{font-family:'MiSans';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/misans-600.woff2') format('woff2');unicode-range:U+00A7, U+00B0, U+00B1, U+00B7, U+00D7, U+00F7, U+2010-2027, U+2030-205E, U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3200-32FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF;}
@font-face{font-family:'MiSans';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/misans-700.woff2') format('woff2');unicode-range:U+00A7, U+00B0, U+00B1, U+00B7, U+00D7, U+00F7, U+2010-2027, U+2030-205E, U+2E80-2EFF, U+3000-303F, U+31C0-31EF, U+3200-32FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF;}
/* ═══════════════════════════════════════════════════════════════
   Jim's Book — holo.css
   Surface language borrowed from the XIN.XYZ vault: technical grid,
   calm glows, square cards, corner "+" marks, tracked display type.
   Not a copy — the archive keeps its own editorial bones.
   Type system is three self-hosted faces: Chakra Petch (Latin display),
   JetBrains Mono (Latin body), MiSans (CJK, glyph-subset to this site).
   No Google Fonts — the footer's "No trackers" claim is load-bearing.
   ═══════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;

  /* ── palette ─────────────────────────────────────────────── */
  --bg-0: #06080d;
  --bg-1: #0a0d14;
  --bg-2: #0d111a;
  --ink: #f1f5f9;
  --ink-body: #c8e0ff;
  --ink-dim: #8aa3c2;
  --ink-faint: #5a6f8c;

  --cyan: #00f0ff;
  --sky: #38bdf8;
  --violet: #8b5cf6;
  --violet-soft: #c4b5fd;
  --pink: #ff7ad9;
  --amber: #fbbf24;

  --line: rgba(0, 240, 255, 0.18);
  --line-soft: rgba(138, 163, 194, 0.12);
  --glass: rgba(13, 17, 26, 0.72);
  --glass-hi: rgba(18, 24, 38, 0.88);

  /* ── type ────────────────────────────────────────────────── */
  /* Latin carries the vault voice: Chakra Petch (display) + JetBrains Mono
     (body). MiSans is the CJK companion — geometric, upright, engineered —
     so Chinese stops falling off into soft system faces mid-sentence.
     Stacks are ordered per-glyph: Latin never reaches MiSans (it has none),
     CJK never reaches the Latin faces (they have none). */
  --font-display: "Chakra Petch", "MiSans", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "MiSans", ui-monospace, "SF Mono",
    "Cascadia Code", Menlo, Consolas, "PingFang SC", "Noto Sans SC", monospace;

  --shell: 1080px;
}

/* ── reset / base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink-body);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

/* ── background: 32px technical grid + two calm glows ───────── */
.sky {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(ellipse 62% 42% at 18% -4%, rgba(0, 240, 255, 0.11), transparent 58%),
    radial-gradient(ellipse 56% 44% at 88% 6%, rgba(139, 92, 246, 0.13), transparent 58%),
    radial-gradient(ellipse 70% 34% at 50% 112%, rgba(255, 122, 217, 0.055), transparent 62%),
    var(--bg-0);
  background-size: 32px 32px, 32px 32px, auto, auto, auto, auto;
  mask-image: radial-gradient(ellipse 118% 92% at 50% 32%, #000 42%, rgba(0, 0, 0, 0.62) 100%);
  -webkit-mask-image: radial-gradient(ellipse 118% 92% at 50% 32%, #000 42%, rgba(0, 0, 0, 0.62) 100%);
}

/* retired layers — kept as empty hooks so markup stays stable */
.orb, .floor, .veil { display: none; }

/* ── shell ─────────────────────────────────────────────────── */
.shell {
  width: min(var(--shell), 100% - 2.6rem);
  margin: 0 auto;
  padding: 1.5rem 0 5rem;
  position: relative;
  z-index: 1;
}

/* ── HUD / navigation ───────────────────────────────────────── */
.hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.35rem;
  padding: 0.85rem 1.2rem;
  margin-bottom: 2.4rem;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.45));
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.82rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-dim);
  border: 1px solid var(--line-soft);
  background: transparent;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.07);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.18);
  outline: none;
}

.nav a[aria-current="page"] {
  color: var(--bg-0);
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
  font-weight: 600;
}

/* language switch — quiet sky accent, never louder than the page CTA */
.nav a.lang {
  color: var(--sky);
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(56, 189, 248, 0.07);
}
.nav a.lang:hover,
.nav a.lang:focus-visible {
  color: var(--bg-0);
  background: var(--sky);
  border-color: var(--sky);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.38);
}
.nav a.lang[aria-current="page"] {
  color: var(--sky);
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: none;
}

/* play / outbound — gold outline, the one warm note in a cool field */
.nav a.play {
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.55);
  font-weight: 600;
}
.nav a.play:hover,
.nav a.play:focus-visible {
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.85);
  background: rgba(251, 191, 36, 0.1);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.28);
}

.sys {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.led {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: led-pulse 2.4s ease-in-out infinite;
}
.led.amber  { background: var(--amber);  box-shadow: 0 0 8px var(--amber);  animation-delay: 0.5s; }
.led.pink   { background: var(--pink);   box-shadow: 0 0 8px var(--pink);   animation-delay: 1s; }
.led.sky    { background: var(--sky);    box-shadow: 0 0 8px var(--sky);    animation-delay: 1.4s; }
.led.violet { background: var(--violet); box-shadow: 0 0 8px var(--violet); animation-delay: 1.8s; }

@keyframes led-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

/* ── hero ───────────────────────────────────────────────────── */
.hero { padding: 2.4rem 0 1.4rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1.15rem;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.kicker .zh {
  color: var(--ink-faint);
  letter-spacing: 0.18em;
  text-transform: none;
}

.hero h1 {
  margin: 0 0 0.95rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.1rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-shadow: 0 0 32px rgba(0, 240, 255, 0.18);
}

/* one accent word — the highlight, not a rainbow */
.hero h1 .hl,
.art-head h1 .hl {
  color: var(--cyan);
  text-shadow: 0 0 26px rgba(0, 240, 255, 0.55);
}

.hero .lede {
  margin: 0 0 1.55rem;
  max-width: 47rem;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  line-height: 1.88;
  color: var(--ink-dim);
}
.hero .lede strong { color: var(--ink); font-weight: 500; }

.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.65rem;
  padding: 0;
  list-style: none;
}

/* tags — violet outline pills, tracked, quiet */
.chip, .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-soft);
  padding: 0.32rem 0.72rem;
  border: 1px solid rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.08);
}

.chip .dot {
  width: 5px;
  height: 5px;
  background: var(--violet);
  opacity: 0.85;
}
.chip:nth-child(2) .dot { background: var(--cyan); }
.chip:nth-child(3) .dot { background: var(--pink); }
.chip:nth-child(4) .dot { background: var(--amber); }

/* ── section headers ────────────────────────────────────────── */
.sec { margin: 3.35rem 0 0; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 0.95rem;
  margin: 0 0 1.5rem;
  flex-wrap: wrap;
}

.sec-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* section index number — violet, the vault's numbering */
.sec-head .no,
.prose h2 .no {
  color: var(--violet);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-right: 0.55rem;
  font-size: 0.86em;
}

.sec-head .rule {
  flex: 1 1 60px;
  height: 1px;
  min-width: 40px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.45), transparent);
}

.sec-head .code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── shared card surface + corner "+" marks ─────────────────── */
.panel, .ping, .arcade {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel::before, .panel::after,
.ping::before, .ping::after,
.arcade::before, .arcade::after {
  content: "+";
  position: absolute;
  color: rgba(0, 240, 255, 0.55);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
}
.panel::before, .ping::before, .arcade::before { top: 6px; left: 8px; }
.panel::after,  .ping::after,  .arcade::after  { bottom: 6px; right: 8px; }

.panel { transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.panel:hover {
  border-color: rgba(0, 240, 255, 0.32);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 22px rgba(0, 240, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.panel > .body { padding: 1.65rem 1.75rem; }
@media (min-width: 720px) {
  .panel > .body { padding: 1.95rem 2.15rem; }
}

/* ── book shelf ─────────────────────────────────────────────── */
.books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.05rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.book {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.05rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.book::before, .book::after {
  content: "+";
  position: absolute;
  color: rgba(0, 240, 255, 0.5);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}
.book::before { top: 5px; left: 7px; }
.book::after  { bottom: 5px; right: 7px; }

.book:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.38);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.5), 0 0 26px rgba(0, 240, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.book-b {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.book .status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.28rem 0.62rem;
  border: 1px solid var(--line-soft);
  color: var(--ink-dim);
}

.book h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0.008em;
  color: var(--ink);
}

.book .who {
  margin: -0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.book .take {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.92rem;
  line-height: 1.74;
}
.book .take b { color: var(--ink); font-weight: 500; }

.book[data-s="deep"] .status { color: var(--cyan);    border-color: rgba(0, 240, 255, 0.34);   background: rgba(0, 240, 255, 0.08); }
.book[data-s="done"] .status { color: var(--violet-soft); border-color: rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.1); }
.book[data-s="read"] .status { color: var(--pink);    border-color: rgba(255, 122, 217, 0.36);  background: rgba(255, 122, 217, 0.09); }
.book[data-s="ref"]  .status { color: var(--amber);   border-color: rgba(251, 191, 36, 0.36);   background: rgba(251, 191, 36, 0.09); }

/* ── book covers (pure CSS, zero external assets) ───────────── */
.cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: 0.72rem 0.68rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(135% 105% at 16% 0%, var(--cv, #00f0ff) 0%, transparent 56%),
    linear-gradient(168deg, #182238 0%, #06080d 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -18px 30px rgba(0, 0, 0, 0.35);
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 9px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 74%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 74%);
  pointer-events: none;
}
.cover::after {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cv, #00f0ff), transparent 88%);
  opacity: 0.9;
}
.cover-t {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.38;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
  word-break: break-word;
}
.cover-a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.72);
}
.cover-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 32%, rgba(255, 255, 255, 0.16) 46%, transparent 58%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.book:hover .cover-shine { transform: translateX(120%); }
.book:hover .cover { border-color: rgba(255, 255, 255, 0.22); }

@media (max-width: 420px) {
  .book { grid-template-columns: 72px 1fr; gap: 0.85rem; padding: 1rem; }
  .cover { padding: 0.6rem 0.55rem; }
  .cover-t { font-size: 0.55rem; }
  .cover-a { font-size: 0.48rem; }
}

/* ── notes grid ─────────────────────────────────────────────── */
.notes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.05rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.55rem 1.55rem 1.45rem;
  text-decoration: none;
  color: inherit;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.note-card::before {
  content: "+";
  position: absolute;
  top: 6px; left: 8px;
  color: rgba(0, 240, 255, 0.5);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

/* single-link cards keep a trailing arrow as the affordance */
a.note-card::after {
  content: "→";
  position: absolute;
  right: 1.35rem;
  bottom: 1.25rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
a.note-card:hover::after { transform: translateX(5px); opacity: 1; }

/* split-link cards mark each link instead — give them the bottom-right "+" */
div.note-card::after {
  content: "+";
  position: absolute;
  bottom: 6px; right: 8px;
  color: rgba(0, 240, 255, 0.5);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

.note-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 240, 255, 0.15);
}

.note-card .tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border-color: transparent;
  background: transparent;
  padding: 0;
}
.note-card .tag .zh {
  margin-left: 0.55rem;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  text-transform: none;
  font-size: 0.94em;
}

.note-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.44;
  letter-spacing: 0.006em;
  color: var(--ink);
  padding-right: 1.6rem;
}

.note-card p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.92rem;
  line-height: 1.74;
  padding-right: 1.4rem;
}

.note-card .meta {
  margin-top: auto;
  padding-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── timeline ───────────────────────────────────────────────── */
.track {
  display: grid;
  gap: 1.05rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.track li {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1.1rem;
  padding: 1.35rem 1.45rem;
}
.track li::before, .track li::after {
  content: "+";
  position: absolute;
  color: rgba(0, 240, 255, 0.5);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}
.track li::before { top: 6px; left: 8px; }
.track li::after  { bottom: 6px; right: 8px; }
@media (max-width: 560px) {
  .track li { grid-template-columns: 1fr; gap: 0.55rem; }
}
.track .yr {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-top: 0.22rem;
}
.track h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.track p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.82;
}

/* ── prose (long-form) ──────────────────────────────────────── */
.prose {
  max-width: 760px;
}

.prose p {
  margin: 0 0 1.25rem;
  color: var(--ink-dim);
  font-size: 1.02rem;
  line-height: 1.95;
}
.prose p strong, .prose li strong { color: var(--ink); font-weight: 500; }
.prose p em { color: var(--sky); font-style: normal; }

.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 240, 255, 0.35);
  transition: border-color 0.16s ease, text-shadow 0.16s ease;
}
.prose a:hover {
  border-color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.55);
}

/* Article h2 carries its own editorial number in the text ("1." / "一、"),
   so it gets no CSS counter — doubling it would print "01 1." on screen.
   The numbering motif lives on .sec-head instead. */
.prose h2 {
  margin: 2.75rem 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.prose h3 {
  margin: 2.1rem 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.prose ul, .prose ol {
  margin: 0 0 1.35rem;
  padding-left: 1.15rem;
  color: var(--ink-dim);
}
.prose li {
  margin: 0 0 0.65rem;
  line-height: 1.88;
}
.prose li::marker { color: var(--cyan); }

.prose code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  padding: 0.12em 0.45em;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--cyan);
  word-break: break-word;
}

/* pull-quote — violet bar, the vault's aside */
.prose blockquote {
  margin: 1.85rem 0;
  padding: 0.95rem 1.15rem;
  border-left: 3px solid var(--violet);
  background: rgba(139, 92, 246, 0.08);
  color: var(--violet-soft);
  font-size: 1.02rem;
  line-height: 1.88;
  font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose hr {
  margin: 2.6rem 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
}

.aside {
  margin: 1.85rem 0;
  padding: 1.05rem 1.25rem;
  border: 1px dashed rgba(138, 163, 194, 0.28);
  background: rgba(18, 24, 38, 0.5);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.78;
  color: var(--ink-dim);
}
.aside .stamp {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.42rem;
}

/* ── ping / contact ─────────────────────────────────────────── */
.ping {
  padding: 2rem 1.85rem;
  border-color: rgba(0, 240, 255, 0.32);
  background:
    radial-gradient(ellipse 90% 130% at 12% 0%, rgba(0, 240, 255, 0.12), transparent 62%),
    radial-gradient(ellipse 80% 120% at 100% 100%, rgba(139, 92, 246, 0.14), transparent 58%),
    var(--glass-hi);
  overflow: hidden;
}

.ping h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.ping p {
  margin: 0 0 1.25rem;
  color: var(--ink-dim);
  max-width: 46rem;
  line-height: 1.82;
}

/* primary contact CTA — gold, the warm close of a cool page */
.ping .mail {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 48px;
  padding: 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 2.4vw, 1.02rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.08);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.18);
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.ping .mail:hover {
  transform: translateY(-2px);
  background: rgba(251, 191, 36, 0.14);
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.32), 0 12px 28px rgba(0, 0, 0, 0.32);
}
.ping .mail .spark {
  width: 7px;
  height: 7px;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: led-pulse 1.8s ease-in-out infinite;
}

/* ── arcade entry ───────────────────────────────────────────── */
.arcade {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
  padding: 1.25rem 1.45rem;
  margin: 2.15rem 0 0;
  border-color: rgba(251, 191, 36, 0.38);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 130% at 8% 0%, rgba(251, 191, 36, 0.12), transparent 58%),
    radial-gradient(ellipse 80% 120% at 100% 100%, rgba(255, 122, 217, 0.1), transparent 55%),
    var(--glass-hi);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.arcade::before, .arcade::after { color: rgba(251, 191, 36, 0.55); }
.arcade:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.62);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.48), 0 0 32px rgba(251, 191, 36, 0.22);
}

.arcade-mark {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.1);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.22);
  animation: led-pulse 2.8s ease-in-out infinite;
}

.arcade-b {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.arcade-kicker {
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
}

.arcade-t {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.arcade-d {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--ink-dim);
}
.arcade-d b { color: var(--ink); font-weight: 500; }

.arcade-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0 1.15rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.1);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.arcade:hover .arcade-cta {
  transform: translateX(4px);
  background: rgba(251, 191, 36, 0.16);
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.32);
}

@media (max-width: 560px) {
  .arcade { padding: 1.1rem 1.15rem; gap: 0.9rem; }
  .arcade-mark { flex-basis: 40px; width: 40px; height: 40px; font-size: 0.72rem; }
  .arcade-cta { width: 100%; justify-content: center; }
}

/* ── article head ───────────────────────────────────────────── */
.art-head { margin: 1.45rem 0 2.25rem; }

.art-head .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 1.05rem;
}

.art-head h1 {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-shadow: 0 0 28px rgba(0, 240, 255, 0.14);
}

.art-head .sub {
  margin: 0 0 1.4rem;
  max-width: 44rem;
  font-size: 1.06rem;
  line-height: 1.86;
  color: var(--ink-dim);
}

.art-head .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.art-head .meta b { color: var(--ink-dim); font-weight: 500; }

/* ── bilingual co-typesetting ─────────────────────────────────
   EN and ZH sit together as peers, never caption + body.       */
.bi {
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
}
.bi > .en, .bi > .zh { margin: 0; }
.bi > .en { color: var(--ink-dim); }
.bi > .zh {
  color: var(--ink-dim);
  font-size: 0.955em;
  letter-spacing: 0.012em;
  line-height: 1.92;
}
.hero .bi {
  margin: 0 0 1.6rem;
  max-width: 47rem;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  line-height: 1.88;
}
.hero .bi strong { color: var(--ink); font-weight: 500; }

.sec-head h2 .zh {
  margin-left: 0.6rem;
  font-size: 0.68em;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}
.sec-head h2 .zh::before { content: "· "; }

.book .take-zh {
  margin: 0.55rem 0 0;
  color: var(--ink-faint);
  font-size: 0.885rem;
  line-height: 1.84;
}
.book .take-zh strong { color: var(--ink-dim); font-weight: 500; }

.note-card h3 .zh {
  display: block;
  margin-top: 0.32rem;
  font-size: 0.78em;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.note-card .zh {
  margin: 0.45rem 0 0;
  color: var(--ink-faint);
  font-size: 0.865rem;
  line-height: 1.8;
  padding-right: 1.4rem;
}
.note-card .zh strong { color: var(--ink-dim); font-weight: 500; }

.arcade-d .zh {
  display: block;
  margin-top: 0.62rem;
  color: var(--ink-faint);
  font-size: 0.92em;
  line-height: 1.82;
}
.arcade-d .zh b { color: var(--ink-dim); }

.panel .prose .zh,
.panel .prose p.zh {
  margin: 0.55rem 0 0;
  color: var(--ink-faint);
  font-size: 0.94rem;
  line-height: 1.9;
}
.panel .prose p.zh strong { color: var(--ink-dim); font-weight: 500; }

.hero .strip .chip { letter-spacing: 0.12em; }

.bilingual {
  margin: 2.45rem 0 0;
  padding: 1.35rem 1.55rem;
  border-left: 3px solid var(--violet);
  background: rgba(139, 92, 246, 0.08);
  color: var(--violet-soft);
}
.bilingual .stamp {
  display: block;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-soft);
  margin-bottom: 0.55rem;
}
.bilingual p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.94rem;
  line-height: 1.82;
}
.bilingual p + p { margin-top: 0.75rem; }
.bilingual em { color: var(--sky); font-style: normal; }
.bilingual a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 240, 255, 0.35);
}
.bilingual a:hover { border-color: var(--cyan); }

/* ── dual-language card links ─────────────────────────────────
   EN text → EN page, ZH text → /zh/ page. Never wrap both in
   one <a> (nested links are invalid and would collapse the pair). */
.note-card a.l-en,
.note-card a.l-zh {
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s ease, text-shadow 0.16s ease;
}
.note-card h3 a.l-en {
  display: block;
  color: inherit;
}
.note-card h3 a.l-zh.zh {
  display: block;
  color: var(--ink-faint);
  margin-top: 0.32rem;
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.note-card p a.l-en { color: inherit; }
.note-card p.zh a.l-zh { color: var(--ink-faint); }

.note-card a.l-en:hover,
.note-card a.l-en:focus-visible {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}
.note-card a.l-zh:hover,
.note-card a.l-zh:focus-visible,
.note-card h3 a.l-zh.zh:hover,
.note-card h3 a.l-zh.zh:focus-visible,
.note-card p.zh a.l-zh:hover,
.note-card p.zh a.l-zh:focus-visible {
  color: var(--sky);
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

/* each split link carries its own arrow */
.note-card h3 a.l-en::after,
.note-card h3 a.l-zh::after {
  content: "→";
  margin-left: 0.42em;
  font-family: var(--font-mono);
  font-size: 0.78em;
  letter-spacing: 0;
  opacity: 0.45;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.note-card h3 a.l-en:hover::after,
.note-card h3 a.l-en:focus-visible::after,
.note-card h3 a.l-zh:hover::after,
.note-card h3 a.l-zh:focus-visible::after {
  opacity: 0.9;
  transform: translateX(3px);
}

/* ── footer ─────────────────────────────────────────────────── */
.foot {
  margin-top: 3.85rem;
  padding-top: 1.65rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.foot a {
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease, text-shadow 0.16s ease;
}
.foot a:hover {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.45);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

/* ── selection / focus ──────────────────────────────────────── */
::selection {
  background: rgba(0, 240, 255, 0.28);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ── mark of self — on-chain seal ─────────────────────────────
   A quiet "that's me" for people who already know the collection.
   Not a profile card, not a gallery shout: a stamp on the document.
   Labelled in the same register as .code inventory marks so it reads
   as instrumentation, not decoration — and so a book-archive visitor
   does not mistake "Nobody / 8121" for a shelf number. */
.sig {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: -0.75rem 0 1.75rem;
  padding: 0.85rem 1.25rem 0.85rem 1.45rem;
  position: relative;
  text-decoration: none;
  background: var(--glass);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sig:hover {
  border-color: rgba(0, 240, 255, 0.32);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.1);
}
.sig::before, .sig::after {
  content: "+";
  position: absolute;
  color: rgba(0, 240, 255, 0.55);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1;
}
.sig::before { top: 6px; left: 8px; }
.sig::after  { bottom: 6px; right: 8px; }

.sig img {
  display: block;
  width: 76px;
  height: 76px;
  flex: none;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.sig-t {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
}
.sig-n {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-right: -0.16em; /* kill trailing letter-spacing gap */
}
.sig-c {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: -0.14em;
}
.sig-go {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--cyan);
  margin-left: 0.95rem;
  transition: transform 0.2s ease;
}
.sig:hover .sig-go { transform: translate(2px, -2px); }

/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 620px) {
  .shell {
    width: min(var(--shell), 100% - 1.55rem);
    padding-top: 1.1rem;
  }
  .hud {
    padding: 0.75rem 0.95rem;
    gap: 0.75rem 1rem;
  }
  .brand-name { letter-spacing: 0.16em; }
  .panel > .body { padding: 1.35rem 1.25rem; }
  .hero { padding: 1.65rem 0 1rem; }
  .nav a {
    padding: 0 0.62rem;
    letter-spacing: 0.12em;
    min-height: 34px;
  }
  .hero .bi { font-size: 1.02rem; }
  .book .take-zh { font-size: 0.86rem; }
  .note-card .zh { font-size: 0.845rem; }
  .sec-head h2 .zh {
    display: block;
    margin: 0.22rem 0 0;
  }
  .sec-head h2 .zh::before { content: ""; }
  .sec-head { gap: 0.55rem 0.85rem; }
  .ping { padding: 1.55rem 1.25rem; }
  .track li { padding: 1.2rem 1.25rem; }
}

/* ── reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
