/* =========================================================================
   The Tomb of Alexander — visual system
   Palette: Macedonian gold vs Egyptian lapis, on tomb-dark.
   ========================================================================= */

:root {
  --ink:        #0a0908;
  --ink-2:      #100e0c;
  --panel:      #171310;
  --panel-2:    #1f1a15;
  --panel-3:    #272019;

  --line:       rgba(212, 175, 90, .14);
  --line-2:     rgba(212, 175, 90, .28);
  --line-3:     rgba(212, 175, 90, .5);

  --gold:       #c9a227;
  --gold-2:     #e8c874;
  --gold-3:     #f4e3b0;
  --gold-dim:   rgba(201, 162, 39, .12);

  --lapis:      #5f93bd;
  --lapis-2:    #9ecbe8;
  --lapis-dim:  rgba(95, 147, 189, .12);

  --carn:       #b04a34;
  --jade:       #4e8d7c;

  --sand:       #ece3d2;
  --sand-2:     #b5ab97;
  --sand-3:     #7b7365;

  --nav-bg:     rgba(10, 9, 8, .82);
  --nav-solid:  rgba(10, 9, 8, .96);
  --overlay:    rgba(6, 5, 5, .8);
  --overlay-strong: rgba(6, 5, 5, .965);
  --shadow:     0 24px 60px rgba(0, 0, 0, .55);
  --gold-ghost: rgba(201, 162, 39, .1);
  --chip-on-fg: #17120a;
  --wash-a:     rgba(201, 162, 39, .45);
  --wash-k:     rgba(95, 147, 189, .45);
  --scrim:      rgba(23, 19, 16, .9);
  --hero-veil-mid: rgba(10, 9, 8, .55);
  --hero-veil-top: rgba(10, 9, 8, .74);
  --hero-veil-clear: rgba(10, 9, 8, .18);
  --hero-veil-bot: rgba(10, 9, 8, .93);
  --gallery-fade: rgba(10, 9, 8, .92);
  --title-shadow: 0 4px 40px rgba(0, 0, 0, .8);

  --serif:      'Spectral', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --display:    'Cinzel', 'Trajan Pro', 'Optima', 'Palatino Linotype', Georgia, serif;
  --ui:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --shell:      1320px;
  --read:       min(70ch, 100%);
  --radius:     3px;

  --ease:       cubic-bezier(.22, .61, .36, 1);
  --nav-h:      62px;
}

html { color-scheme: dark; }

/* Paper — cool off-white, grey-tinted, for long reading */
[data-theme="paper"] {
  color-scheme: light;
  --ink:        #f2f2f0;
  --ink-2:      #e8e8e4;
  --panel:      #ffffff;
  --panel-2:    #f7f7f5;
  --panel-3:    #ecece8;
  --line:       rgba(28, 27, 24, .1);
  --line-2:     rgba(28, 27, 24, .18);
  --line-3:     rgba(28, 27, 24, .32);
  --gold:       #8a6414;
  --gold-2:     #6e4e0e;
  --gold-3:     #4a3408;
  --gold-dim:   rgba(138, 100, 20, .12);
  --lapis:      #2f6490;
  --lapis-2:    #1e4a6e;
  --lapis-dim:  rgba(47, 100, 144, .12);
  --carn:       #a43c2a;
  --jade:       #2f6d5e;
  --sand:       #1c1b19;
  --sand-2:     #4a4843;
  --sand-3:     #7a776f;
  --nav-bg:     rgba(242, 242, 240, .88);
  --nav-solid:  rgba(242, 242, 240, .98);
  --shadow:     0 20px 50px rgba(40, 36, 28, .14);
  --gold-ghost: rgba(138, 100, 20, .1);
  --chip-on-fg: #fffdf6;
  --wash-a:     rgba(138, 100, 20, .55);
  --wash-k:     rgba(47, 100, 144, .5);
  --scrim:      rgba(255, 255, 255, .92);
}

/* Claude — Anthropic cream and terracotta, limestone and desert */
[data-theme="claude"] {
  color-scheme: light;
  --ink:        #f4efe6;
  --ink-2:      #ebe4d6;
  --panel:      #faf6ef;
  --panel-2:    #f7f1e6;
  --panel-3:    #e7dcc8;
  --line:       rgba(60, 42, 28, .12);
  --line-2:     rgba(60, 42, 28, .2);
  --line-3:     rgba(60, 42, 28, .36);
  --gold:       #c45c3e;
  --gold-2:     #a4472e;
  --gold-3:     #7a301e;
  --gold-dim:   rgba(196, 92, 62, .14);
  --lapis:      #3f6b64;
  --lapis-2:    #2c524c;
  --lapis-dim:  rgba(63, 107, 100, .14);
  --carn:       #c45c3e;
  --jade:       #3f6b64;
  --sand:       #2a2118;
  --sand-2:     #5c5044;
  --sand-3:     #8a7d6e;
  --nav-bg:     rgba(244, 239, 230, .9);
  --nav-solid:  rgba(244, 239, 230, .98);
  --shadow:     0 22px 54px rgba(60, 42, 28, .16);
  --gold-ghost: rgba(196, 92, 62, .12);
  --chip-on-fg: #faf6ef;
  --wash-a:     rgba(196, 92, 62, .55);
  --wash-k:     rgba(63, 107, 100, .5);
  --scrim:      rgba(250, 246, 239, .92);
}

/* Sand — warm papyrus, ochre ink */
[data-theme="sand"] {
  color-scheme: light;
  --ink:        #f3e6c8;
  --ink-2:      #ead7ae;
  --panel:      #f8edd4;
  --panel-2:    #f0e0b8;
  --panel-3:    #e2cd96;
  --line:       rgba(90, 58, 18, .14);
  --line-2:     rgba(90, 58, 18, .24);
  --line-3:     rgba(90, 58, 18, .4);
  --gold:       #a65d1f;
  --gold-2:     #8a4a14;
  --gold-3:     #5c300c;
  --gold-dim:   rgba(166, 93, 31, .14);
  --lapis:      #3d5f72;
  --lapis-2:    #2a4556;
  --lapis-dim:  rgba(61, 95, 114, .14);
  --carn:       #9a3e28;
  --jade:       #4a6e4a;
  --sand:       #3a2a14;
  --sand-2:     #5e4a28;
  --sand-3:     #8a7048;
  --nav-bg:     rgba(243, 230, 200, .9);
  --nav-solid:  rgba(243, 230, 200, .98);
  --shadow:     0 22px 54px rgba(90, 58, 18, .16);
  --gold-ghost: rgba(166, 93, 31, .12);
  --chip-on-fg: #f8edd4;
  --wash-a:     rgba(166, 93, 31, .55);
  --wash-k:     rgba(61, 95, 114, .5);
  --scrim:      rgba(248, 237, 212, .92);
}

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

html {
  overflow-x: hidden;
  scroll-padding-top: calc(var(--nav-h) + 18px);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}
[data-theme="paper"] html,
html[data-theme="paper"],
html[data-theme="claude"],
html[data-theme="sand"] { color-scheme: light; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--serif);
  font-size: clamp(16.5px, 1.02vw + 13px, 19px);
  line-height: 1.72;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint linen tooth over the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  background-image:
    radial-gradient(circle at 18% 12%, var(--gold-dim), transparent 45%),
    radial-gradient(circle at 84% 78%, var(--lapis-dim), transparent 44%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration-color: var(--line-3); text-underline-offset: .22em; }
a:hover { color: var(--gold-3); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--gold-dim); color: var(--gold-3); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.14; margin: 0; letter-spacing: .005em; }

.shell { width: min(100% - 2.6rem, var(--shell)); margin-inline: auto; }
.read  { width: var(--read); margin-inline: auto; }

.eyebrow {
  font-family: var(--ui);
  font-size: .685rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}

.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 22%, var(--line-2) 78%, transparent); border: 0; margin: 0; }

/* Hidden by clipping, not by off-screen offset: a negative `left` would extend
   the scrollable area in RTL and give the whole page a horizontal scrollbar. */
.skip {
  position: absolute; inset-inline-start: 1rem; top: 1rem; z-index: 200;
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  background: var(--gold); color: var(--ink); padding: .7rem 1.2rem;
  font-family: var(--ui); font-weight: 600; text-decoration: none;
}
.skip:focus { width: auto; height: auto; clip-path: none; }

/* ------------------------------------------------------------------ chrome */
.progress {
  position: fixed; inset: 0 auto auto 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-3));
  z-index: 90; transition: width .1s linear;
}

.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 80;
  display: flex; align-items: center; gap: 1.2rem;
  padding-inline: clamp(1rem, 3vw, 2rem);
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.topbar.is-stuck { border-bottom-color: var(--line); }

.brand {
  display: flex; align-items: baseline; gap: .4rem;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(.62rem, 1.7vw, .84rem); letter-spacing: .05em; text-transform: uppercase;
  color: var(--sand); text-decoration: none; white-space: nowrap;
  min-width: 0; flex: 0 1 auto;
}
.brand--tight { gap: .08em; }
.brand b { color: var(--gold); font-weight: 700; }
.brand span { font-family: var(--ui); font-size: .6rem; letter-spacing: .24em; color: var(--sand-3); font-weight: 500; }

.nav { display: flex; gap: .1rem; margin-inline-start: auto; align-items: center; }
.nav a {
  font-family: var(--ui); font-size: .74rem; font-weight: 500; letter-spacing: .07em;
  color: var(--sand-2); text-decoration: none;
  padding: .45rem .68rem; border-radius: var(--radius);
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav a:hover { color: var(--gold-2); background: var(--gold-ghost); }
.nav a.is-active { color: var(--gold-2); }
.nav a.is-active::after {
  content: ''; display: block; height: 1px; margin-top: .28rem;
  background: var(--gold); opacity: .8;
}

.tools { display: flex; align-items: center; gap: .4rem; margin-inline-start: .5rem; }

.navtoggle {
  display: none;
  width: 42px; height: 42px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  color: var(--sand-2); border-radius: var(--radius); cursor: pointer;
}
.navtoggle:hover { border-color: var(--line-3); color: var(--gold-2); }
.navtoggle__bars {
  display: block; width: 16px; height: 12px;
  position: relative; background: transparent;
}
.navtoggle__bars::before,
.navtoggle__bars::after {
  content: '';
  position: absolute; left: 0; width: 16px; height: 1.5px;
  background: currentColor;
  transform-origin: center;
  transition: transform .25s var(--ease), top .25s var(--ease), box-shadow .2s;
}
.navtoggle__bars::before { top: 1px; box-shadow: 0 5px 0 currentColor; }
.navtoggle__bars::after { top: 11px; }
.navtoggle[aria-expanded='true'] .navtoggle__bars::before {
  top: 5px; box-shadow: none; transform: rotate(45deg);
}
.navtoggle[aria-expanded='true'] .navtoggle__bars::after {
  top: 5px; transform: rotate(-45deg);
}

.iconbtn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; border: 1px solid var(--line);
  color: var(--sand-2); border-radius: var(--radius);
  font-family: var(--ui); font-size: .72rem; font-weight: 500; letter-spacing: .04em;
  padding: .42rem .6rem; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.iconbtn:hover { border-color: var(--line-3); color: var(--gold-2); background: var(--gold-ghost); }
.iconbtn svg { width: 14px; height: 14px; flex: none; }
.iconbtn kbd {
  font-family: var(--ui); font-size: .62rem; color: var(--sand-3);
  border: 1px solid var(--line); border-radius: 2px; padding: .05em .3em;
}

/* language menu */
.lang { position: relative; }
.lang__menu {
  position: absolute; top: calc(100% + .5rem); inset-inline-end: 0;
  background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: .4rem;
  display: grid; grid-template-columns: repeat(2, minmax(146px, 1fr)); gap: .12rem;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 5;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__menu a {
  display: flex; align-items: baseline; gap: .45rem;
  font-family: var(--ui); font-size: .78rem; color: var(--sand-2);
  text-decoration: none; padding: .48rem .6rem; border-radius: 2px;
  transition: background .16s, color .16s;
}
.lang__menu a:hover { background: var(--gold-ghost); color: var(--gold-2); }
.lang__menu a[aria-current='true'] { color: var(--gold-2); background: var(--gold-ghost); }
.lang__menu a em { font-style: normal; font-size: .66rem; color: var(--sand-3); letter-spacing: .1em; text-transform: uppercase; }

/* colour scheme */
.theme { position: relative; }
.theme__menu {
  position: absolute; top: calc(100% + .5rem); inset-inline-end: 0;
  background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: .4rem;
  display: grid; gap: .12rem; min-width: 168px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 5;
}
.theme.is-open .theme__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.theme__opt {
  display: flex; align-items: center; gap: .65rem;
  width: 100%; background: none; border: 0; cursor: pointer; text-align: start;
  font-family: var(--ui); font-size: .78rem; font-weight: 500; color: var(--sand-2);
  padding: .5rem .6rem; border-radius: 2px;
}
.theme__opt:hover { background: var(--gold-ghost); color: var(--gold-2); }
.theme__opt[aria-selected='true'] { color: var(--gold-2); background: var(--gold-ghost); }
.theme__swatch {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.theme__swatch--tomb { background: #0a0908; box-shadow: inset 0 0 0 2px #c9a227; }
.theme__swatch--paper { background: #f2f2f0; box-shadow: inset 0 0 0 2px #8a6414; }
.theme__swatch--claude { background: #f4efe6; box-shadow: inset 0 0 0 2px #c45c3e; }
.theme__swatch--sand { background: #f3e6c8; box-shadow: inset 0 0 0 2px #a65d1f; }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: stretch;
  padding: calc(var(--nav-h) + 3rem) 0 0;
  isolation: isolate; overflow: hidden;
}
.hero__bg { position: absolute; inset: -8% 0 0; z-index: -2; }
.hero__bg img {
  width: 100%; height: 108%; object-fit: cover; object-position: 50% 32%;
  filter: saturate(.72) contrast(1.06) brightness(.62);
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 78% at 50% 8%, transparent 8%, var(--hero-veil-mid) 52%, var(--ink) 88%),
    linear-gradient(180deg, var(--hero-veil-top) 0%, var(--hero-veil-clear) 34%, var(--hero-veil-bot) 84%, var(--ink) 100%);
}
.hero__inner { position: relative; z-index: 2; align-self: end; padding-bottom: .4rem; }

.hero__kicker { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.hero__kicker .eyebrow { color: var(--gold-2); }
.hero__kicker i {
  display: block; width: clamp(28px, 6vw, 72px); height: 1px; background: var(--line-3); flex: none;
}

.hero h1 {
  font-size: clamp(2.35rem, 6.6vw, 5.6rem);
  line-height: 1.03;
  letter-spacing: -.012em;
  max-width: 17ch;
  text-wrap: balance;
  text-shadow: var(--title-shadow);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-2);
  display: block;
}

.hero__sub {
  font-family: var(--serif); font-size: clamp(1.02rem, 1.3vw, 1.28rem);
  color: var(--sand-2); max-width: 56ch; margin: 1.5rem 0 0; line-height: 1.66;
}
.hero__sub b { color: var(--sand); font-weight: 500; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 0 clamp(1.4rem, 3.4vw, 3.4rem);
  margin-top: clamp(2rem, 4.5vh, 3.2rem);
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.hero__meta div { padding: .3rem 0; }
.hero__meta dt {
  font-family: var(--ui); font-size: .625rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--sand-3); margin-bottom: .3rem;
}
.hero__meta dd {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem); color: var(--gold-2);
}
.hero__meta dd small { font-family: var(--ui); font-size: .7rem; font-weight: 500; color: var(--sand-2); letter-spacing: .04em; }

.scrollcue {
  position: relative;
  z-index: 3;
  display: grid; justify-items: center; gap: .45rem;
  justify-self: center;
  margin: 1.15rem 0 1.35rem;
  font-family: var(--ui); font-size: .6rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--sand-3);
  pointer-events: none;
}
.scrollcue i { display: block; width: 1px; height: 34px; background: linear-gradient(180deg, var(--line-3), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .scrollcue i { animation: cue 2.6s var(--ease) infinite; transform-origin: top; }
  @keyframes cue { 0%, 100% { transform: scaleY(.35); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
}

/* keep the whole hero above the fold on short screens */
@media (max-height: 880px) and (min-width: 861px) {
  .hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero h1 { font-size: clamp(2.1rem, 4.6vw, 4rem); }
  .hero__sub { margin-top: 1.05rem; font-size: 1.02rem; }
  .hero__meta { margin-top: 1.35rem; padding-top: 1rem; }
  .hero__kicker { margin-bottom: 1rem; }
  .scrollcue { margin: .85rem 0 1.1rem; }
  .scrollcue i { height: 26px; }
}

/* --------------------------------------------------------------- sections */
.section { padding: clamp(4.5rem, 11vh, 8.5rem) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, var(--ink-2) 12%, var(--ink-2) 88%, transparent); }

.section__head { margin-bottom: clamp(2.4rem, 5vh, 4rem); }
.section__head .eyebrow { display: block; margin-bottom: .95rem; }
.section__head h2 {
  font-size: clamp(1.85rem, 3.9vw, 3.05rem);
  max-width: 20ch; text-wrap: balance; letter-spacing: -.008em;
}
.section__head p {
  margin: 1.15rem 0 0; color: var(--sand-2); max-width: 62ch;
  font-size: 1.02rem; line-height: 1.7;
}
.section__head--center { text-align: center; }
.section__head--center h2, .section__head--center p { margin-inline: auto; }

/* ---------------------------------------------------------- the collision */
.collide {
  display: grid; gap: 0;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  overflow: hidden;
}
.collide__side { padding: clamp(1.7rem, 3.4vw, 3rem); display: grid; align-content: start; gap: .9rem; }
.collide__side--a { border-inline-end: 1px solid var(--line); }
.collide__tag {
  font-family: var(--ui); font-size: .64rem; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
}
.collide__side--a .collide__tag { color: var(--gold); }
.collide__side--k .collide__tag { color: var(--lapis); }
.collide__name { font-family: var(--display); font-size: clamp(1.3rem, 2.5vw, 2rem); line-height: 1.16; }
.collide__side--a .collide__name { color: var(--gold-2); }
.collide__side--k .collide__name { color: var(--lapis-2); }
.collide__title { font-style: italic; color: var(--sand-2); font-size: .98rem; }
.collide__year {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1;
  letter-spacing: -.02em; margin-top: .5rem;
}
.collide__side--a .collide__year { color: var(--sand); }
.collide__side--k .collide__year { color: var(--sand); }
.collide__year sub { font-family: var(--ui); font-size: .26em; font-weight: 600; letter-spacing: .2em; color: var(--sand-3); vertical-align: super; margin-inline-start: .5em; }
.collide__note { color: var(--sand-3); font-size: .88rem; line-height: 1.6; }

.collide__gap {
  display: grid; place-items: center; gap: .6rem; padding: 1.6rem .9rem;
  background: var(--ink); border-inline: 1px solid var(--line);
  min-width: clamp(96px, 13vw, 190px); text-align: center;
}
.collide__gap b {
  font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.3rem);
  color: var(--gold-2); line-height: 1; display: block;
}
.collide__gap span {
  font-family: var(--ui); font-size: .58rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--sand-3); display: block; line-height: 1.6;
}
.collide__gap i { display: block; width: 1px; height: 26px; background: var(--line-2); }

.verdict {
  margin-top: 1.4rem; padding: clamp(1.3rem, 2.6vw, 2.1rem);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background:
    linear-gradient(90deg, var(--gold-dim), transparent 40%, var(--lapis-dim));
  display: flex; gap: 1.2rem; align-items: flex-start;
}
.verdict__mark {
  font-family: var(--display); font-size: 1.6rem; color: var(--gold);
  line-height: 1; flex: none; margin-top: .1rem;
}
.verdict p { margin: 0; font-size: clamp(1.02rem, 1.5vw, 1.25rem); line-height: 1.6; }
.verdict p b { color: var(--gold-2); font-weight: 600; }

/* --------------------------------------------------------------- ledger */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; align-items: center; }
.chip {
  font-family: var(--ui); font-size: .74rem; font-weight: 500; letter-spacing: .05em;
  background: transparent; color: var(--sand-2);
  border: 1px solid var(--line); border-radius: 100px;
  padding: .45rem .95rem; cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--line-3); color: var(--gold-2); }
.chip[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: var(--chip-on-fg); font-weight: 600; }
.chip b { font-weight: 600; opacity: .55; margin-inline-start: .35em; font-variant-numeric: tabular-nums; }

.ledger { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.ev { background: var(--ink-2); transition: background .25s var(--ease); }
.ev[hidden] { display: none; }
.ev__btn {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: start;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 1.15rem clamp(1rem, 2.2vw, 1.8rem); color: inherit; font: inherit;
}
.ev:hover { background: var(--panel); }
.ev__num {
  font-family: var(--ui); font-size: .68rem; font-weight: 600; letter-spacing: .1em;
  color: var(--sand-3); font-variant-numeric: tabular-nums; min-width: 2.2em;
}
.ev__topic { font-family: var(--display); font-size: clamp(.98rem, 1.5vw, 1.16rem); color: var(--sand); line-height: 1.3; }
.ev__meta { display: flex; align-items: center; gap: .8rem; }
.ev__cat {
  font-family: var(--ui); font-size: .6rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sand-3);
  border: 1px solid var(--line); border-radius: 100px; padding: .22rem .6rem; white-space: nowrap;
}
.ev__chev { width: 12px; height: 12px; color: var(--gold); transition: transform .3s var(--ease); flex: none; }
.ev[open] .ev__chev, .ev.is-open .ev__chev { transform: rotate(180deg); }

.ev__body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.ev__body[hidden] { display: none; }
.ev__col { background: var(--ink); padding: clamp(1.1rem, 2.2vw, 1.7rem); }
.ev__col h4 {
  font-family: var(--ui); font-size: .62rem; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; margin-bottom: .85rem;
}
.ev__col--a h4 { color: var(--gold); }
.ev__col--k h4 { color: var(--lapis); }
.ev__col p { margin: 0 0 .8rem; font-size: .93rem; line-height: 1.66; color: var(--sand-2); }
.ev__col p:last-child { margin-bottom: 0; }
.ev__col--a { border-inline-start: 2px solid var(--wash-a); }
.ev__col--k { border-inline-start: 2px solid var(--wash-k); }
.ev__more {
  grid-column: 1 / -1; background: var(--ink-2);
  padding: .85rem clamp(1.1rem, 2.2vw, 1.7rem);
  font-family: var(--ui); font-size: .74rem;
}
.ev__more a { color: var(--sand-2); text-decoration: none; }
.ev__more a:hover { color: var(--gold-2); }

/* ------------------------------------------------------------- body map */
.bodymap { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(1.6rem, 4vw, 3.6rem); align-items: start; }
.bodymap__fig { position: sticky; top: calc(var(--nav-h) + 2rem); }
.bodymap svg { width: 100%; height: auto; overflow: visible; }
.bm-shape { fill: url(#bmGrad); stroke: var(--line-3); stroke-width: 1.2; }
.bm-inner { fill: none; stroke: var(--line-2); stroke-width: 1; }
.bm-hot { cursor: pointer; }
.bm-hot circle.hit { fill: transparent; }
.bm-hot circle.dot {
  fill: var(--carn); stroke: rgba(255, 220, 190, .5); stroke-width: 1;
  transition: r .25s var(--ease), fill .25s var(--ease);
}
.bm-hot:hover circle.dot { fill: var(--gold-2); r: 8; }
.bm-hot.is-active circle.dot { fill: var(--gold-2); r: 9; }
.bm-hot circle.halo {
  fill: none; stroke: var(--gold-2); stroke-width: 1; opacity: 0;
  transition: opacity .3s var(--ease), r .3s var(--ease);
}
.bm-hot.is-active circle.halo { opacity: .55; r: 17; }
@media (prefers-reduced-motion: no-preference) {
  .bm-hot circle.pulse { fill: none; stroke: var(--carn); stroke-width: 1.2; transform-origin: center; animation: pulse 3.4s var(--ease) infinite; }
  @keyframes pulse { 0% { r: 6; opacity: .7; } 70%, 100% { r: 19; opacity: 0; } }
}
.bodymap__caption {
  margin-top: 1.1rem; font-family: var(--ui); font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sand-3); text-align: center;
}

.bodymap__list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bm-item { background: var(--ink-2); }
.bm-item__btn {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center;
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-align: start;
  padding: .95rem clamp(.9rem, 2vw, 1.5rem);
}
.bm-item:hover { background: var(--panel); }
.bm-item.is-active { background: var(--panel-2); }
.bm-item__i { width: 7px; height: 7px; border-radius: 50%; background: var(--carn); flex: none; }
.bm-item.is-active .bm-item__i { background: var(--gold-2); box-shadow: 0 0 0 4px var(--gold-dim); }
.bm-item__t { font-family: var(--display); font-size: 1rem; }
.bm-item__n { font-family: var(--ui); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sand-3); }
.bm-item__panel { display: none; padding: 0 clamp(.9rem, 2vw, 1.5rem) 1.2rem; }
.bm-item.is-active .bm-item__panel { display: block; }
.bm-quote { border-inline-start: 2px solid var(--wash-a); padding-inline-start: 1rem; margin: 0 0 1rem; }
.bm-find  { border-inline-start: 2px solid var(--wash-k); padding-inline-start: 1rem; margin: 0; }
.bm-quote h5, .bm-find h5 {
  font-family: var(--ui); font-size: .6rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; margin: 0 0 .45rem;
}
.bm-quote h5 { color: var(--gold); }
.bm-find h5 { color: var(--lapis); }
.bm-quote p, .bm-find p { margin: 0 0 .6rem; font-size: .9rem; line-height: 1.62; color: var(--sand-2); }
.bm-quote p:last-child, .bm-find p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- timeline */
.tl { position: relative; padding-inline-start: clamp(1.4rem, 4vw, 3rem); }
.tl::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .6rem; bottom: .6rem; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-2) 6%, var(--line-2) 94%, transparent);
}
.tl__era {
  font-family: var(--ui); font-size: .63rem; font-weight: 700; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold);
  margin: 2.6rem 0 1.4rem; position: relative;
}
.tl__era:first-child { margin-top: 0; }
.tl__era::before {
  content: ''; position: absolute; inset-inline-start: calc(-1 * clamp(1.4rem, 4vw, 3rem)); top: 50%;
  width: clamp(.8rem, 2.4vw, 1.8rem); height: 1px; background: var(--gold); opacity: .7;
}
.tl__item {
  position: relative; padding: .85rem 0 .85rem 0; display: grid;
  grid-template-columns: clamp(84px, 11vw, 132px) 1fr; gap: clamp(.8rem, 2.4vw, 2rem);
  align-items: baseline;
}
.tl__item::before {
  content: ''; position: absolute; inset-inline-start: calc(-1 * clamp(1.4rem, 4vw, 3rem) - 3.5px); top: 1.5rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--line-3);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.tl__item:hover::before { background: var(--gold); border-color: var(--gold-2); transform: scale(1.35); }
.tl__item--key::before { background: var(--gold); border-color: var(--gold-2); }
.tl__year {
  font-family: var(--display); font-weight: 700; color: var(--gold-2);
  font-size: clamp(.95rem, 1.5vw, 1.18rem); letter-spacing: .01em; white-space: nowrap;
}
.tl__item--key .tl__year { color: var(--gold-3); }
.tl__text { color: var(--sand-2); font-size: .96rem; line-height: 1.62; }
.tl__text b { color: var(--sand); font-weight: 500; }
.tl__text cite { display: block; font-style: normal; font-family: var(--ui); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sand-3); margin-top: .35rem; }

/* ---------------------------------------------------------------- article */
.chapters { position: relative; }

.chapter { padding-top: clamp(3rem, 8vh, 6rem); scroll-margin-top: calc(var(--nav-h) + 10px); }
.chapter + .chapter { border-top: 1px solid var(--line); margin-top: clamp(3rem, 8vh, 6rem); }

.chapter__head { text-align: center; margin-bottom: clamp(2.4rem, 5vh, 3.6rem); }
.chapter__no {
  font-family: var(--ui); font-size: .66rem; font-weight: 600; letter-spacing: .34em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 1rem;
}
.chapter__head h3 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.chapter__date {
  font-family: var(--ui); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sand-3); margin-top: 1rem; display: flex; gap: .8rem; justify-content: center; align-items: center; flex-wrap: wrap;
}
.chapter__date a { color: var(--sand-3); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.chapter__date a:hover { color: var(--gold-2); }

.prose { width: var(--read); margin-inline: auto; overflow-wrap: anywhere; }
.prose > * { margin-block: 0 1.3em; }
.prose > *:last-child { margin-bottom: 0; }

.prose h4 {
  font-size: clamp(1.16rem, 2vw, 1.5rem);
  margin-block: 2.6em .85em; color: var(--gold-2);
  scroll-margin-top: calc(var(--nav-h) + 14px);
  position: relative; text-wrap: balance;
}
.prose h4::before {
  content: ''; position: absolute; inset-inline-start: -1.5rem; top: .62em;
  width: .7rem; height: 1px; background: var(--gold); opacity: .55;
}
.prose h4.is-major {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem); color: var(--sand);
  padding-top: 1.5em; border-top: 1px solid var(--line); margin-top: 2.4em;
}
.prose h4.is-major::before { display: none; }

.prose p { color: var(--sand); }
.prose p.is-lead { font-size: 1.12em; color: var(--sand); line-height: 1.65; }
.prose p.is-em { color: var(--sand-2); font-style: italic; }
.prose p.is-note {
  border-inline-start: 2px solid var(--line-3);
  padding: .1rem 0 .1rem 1.1rem; color: var(--sand); font-weight: 500;
}

.prose blockquote {
  margin-block: 2em; padding: 0 0 0 1.6rem;
  border-inline-start: 2px solid var(--gold); position: relative;
}
.prose blockquote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.05rem, 1.7vw, 1.24rem); line-height: 1.62; color: var(--gold-3);
}
.prose blockquote cite {
  display: block; font-style: normal; font-family: var(--ui);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sand-3); margin-top: .8rem;
}

.prose ul, .prose ol { padding-inline-start: 1.3rem; color: var(--sand); }
.prose li { margin-bottom: .55em; padding-inline-start: .3rem; }
.prose ul li::marker { color: var(--gold); }
.prose ol li::marker { color: var(--gold); font-family: var(--ui); font-size: .82em; }

.prose hr {
  border: 0; height: 1px; margin-block: 3em;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

.prose a, .prose code { overflow-wrap: anywhere; }

.tablewrap { overflow-x: auto; margin-block: 2em; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-size: .88rem; font-family: var(--ui); }
.prose th, .prose td { padding: .8rem 1rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th {
  font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); background: var(--panel); white-space: nowrap;
}
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td { color: var(--sand-2); }
.prose td:first-child { color: var(--sand); font-weight: 500; }

/* evidence pair inside the article */
.pair {
  margin-block: 1.8em; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  scroll-margin-top: calc(var(--nav-h) + 20px);
  background: var(--ink-2);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.pair.is-flash { border-color: var(--line-3); box-shadow: 0 0 0 1px var(--line-2), 0 12px 44px var(--gold-dim); }
.pair__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.pair__col { background: var(--ink); padding: clamp(1rem, 2vw, 1.4rem); }
.pair__col h5 {
  font-family: var(--ui); font-size: .6rem; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; margin: 0 0 .7rem;
}
.pair__col--a { border-top: 2px solid var(--wash-a); }
.pair__col--k { border-top: 2px solid var(--wash-k); }
.pair__col--a h5 { color: var(--gold); }
.pair__col--k h5 { color: var(--lapis); }
.pair__col p { margin: 0 0 .7em; font-size: .93rem; line-height: 1.64; color: var(--sand-2); }
.pair__col p:last-child { margin-bottom: 0; }

.pair__sub {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: .84rem; letter-spacing: 0; text-transform: none;
  color: var(--sand-3); margin-top: .3rem; font-weight: 400;
}

/* an inline side marker inside the running text */
.side-tag {
  font-family: var(--ui); font-size: .58rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  padding: .18em .55em; border-radius: 2px; margin-inline-end: .55em;
  vertical-align: .12em; white-space: nowrap;
}
.side-tag--alexander { color: var(--gold-2); background: var(--gold-dim); }
.side-tag--kv62 { color: var(--lapis-2); background: var(--lapis-dim); }

.bm-item__link { margin: 1rem 0 0; font-family: var(--ui); font-size: .72rem; }
.bm-item__link a { color: var(--sand-2); text-decoration: none; }
.bm-item__link a:hover { color: var(--gold-2); }

/* figures */
.fig { margin-block: 2.2em; }
.fig--wide { width: min(112%, 100vw - 3rem); margin-inline: calc(50% - min(56%, 50vw - 1.5rem)); }
.fig__btn {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line);
  background: var(--panel); cursor: zoom-in; border-radius: var(--radius);
  overflow: hidden; position: relative; line-height: 0;
  transition: border-color .3s var(--ease), transform .5s var(--ease);
}
.fig__btn:hover { border-color: var(--line-3); }
.fig__btn img { width: 100%; transition: transform .7s var(--ease), filter .5s var(--ease); filter: saturate(.94); }
.fig__btn:hover img { transform: scale(1.014); filter: saturate(1.02); }
.fig figcaption {
  margin-top: .7rem; font-family: var(--ui); font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sand-3);
  display: flex; gap: .6rem; align-items: baseline;
}
.fig figcaption b { color: var(--gold); font-weight: 600; flex: none; }
.fig figcaption span { color: var(--sand-3); font-weight: 400; letter-spacing: .1em; }

/* --------------------------------------------------------------- gallery */
.gallery {
  columns: 4 220px; column-gap: 14px;
}
.gallery button {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; line-height: 0;
  border: 1px solid var(--line); background: var(--panel); cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; break-inside: avoid;
  position: relative; transition: border-color .3s var(--ease);
}
.gallery button:hover { border-color: var(--line-3); }
.gallery button img { width: 100%; filter: saturate(.82) brightness(.9); transition: filter .4s var(--ease), transform .6s var(--ease); }
.gallery button:hover img { filter: saturate(1) brightness(1); transform: scale(1.03); }
.gallery button::after {
  content: attr(data-label); position: absolute; inset: auto 0 0 0;
  padding: 1.6rem .7rem .55rem; font-family: var(--ui); font-size: .6rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-3);
  background: linear-gradient(180deg, transparent, var(--gallery-fade));
  opacity: 0; transition: opacity .3s var(--ease); text-align: start; line-height: 1.4;
}
.gallery button:hover::after { opacity: 1; }

/* -------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: var(--overlay-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), visibility .28s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__bar {
  display: flex; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.lightbox__label {
  font-family: var(--ui); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sand-2); display: flex; gap: .7rem; align-items: baseline; min-width: 0;
}
.lightbox__label b { color: var(--gold); flex: none; }
.lightbox__label span { color: var(--sand-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__count { margin-inline-start: auto; font-family: var(--ui); font-size: .7rem; color: var(--sand-3); font-variant-numeric: tabular-nums; flex: none; }
.lightbox__stage { display: grid; place-items: center; padding: clamp(.8rem, 2.4vw, 2rem); min-height: 0; position: relative; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: clamp(38px, 5vw, 54px); height: clamp(38px, 5vw, 54px);
  display: grid; place-items: center; cursor: pointer;
  background: var(--scrim); border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--gold-2); transition: background .2s, border-color .2s, transform .2s;
}
.lightbox__nav:hover { background: var(--panel-2); border-color: var(--line-3); }
.lightbox__nav--prev { inset-inline-start: clamp(.5rem, 2vw, 1.6rem); }
.lightbox__nav--next { inset-inline-end: clamp(.5rem, 2vw, 1.6rem); }
.lightbox__nav svg { width: 17px; height: 17px; }
.lightbox__foot {
  padding: .9rem clamp(1rem, 3vw, 2rem); border-top: 1px solid var(--line);
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
  font-family: var(--ui); font-size: .68rem; color: var(--sand-3); letter-spacing: .08em;
}
.lightbox__foot a { color: var(--sand-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.lightbox__foot a:hover { color: var(--gold-2); }
.lightbox__foot kbd {
  border: 1px solid var(--line); border-radius: 2px; padding: .1em .4em;
  font-family: var(--ui); font-size: .92em; color: var(--sand-2);
}

/* ---------------------------------------------------------------- search */
.searchbox {
  position: fixed; inset: 0; z-index: 130; display: grid; align-items: start; justify-items: center;
  padding: clamp(3rem, 12vh, 9rem) 1rem 2rem;
  background: var(--overlay); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), visibility .22s;
}
.searchbox.is-open { opacity: 1; visibility: visible; }
.searchbox__panel {
  width: min(720px, 100%); background: var(--panel);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr;
  max-height: min(70vh, 620px);
}
.searchbox__bar {
  display: flex; align-items: center; gap: .4rem;
  border-bottom: 1px solid var(--line);
}
.searchbox input {
  width: 100%; background: transparent; border: 0;
  color: var(--sand); font-family: var(--serif); font-size: 1.1rem;
  padding: 1.15rem 1.3rem; outline: none;
}
.searchbox__close {
  margin-inline-end: .7rem; flex: none;
}
.searchbox input::placeholder { color: var(--sand-3); }
.searchresults { overflow-y: auto; padding: .5rem; }
.searchresults a {
  display: block; padding: .8rem 1rem; border-radius: 2px; text-decoration: none;
  color: var(--sand-2); transition: background .16s;
}
.searchresults a:hover, .searchresults a.is-sel { background: var(--gold-ghost); }
.searchresults b {
  display: block; font-family: var(--display); color: var(--sand); font-size: .96rem; margin-bottom: .25rem;
}
.searchresults span { font-size: .84rem; line-height: 1.5; display: block; color: var(--sand-3); }
.searchresults mark { background: var(--gold-dim); color: var(--gold-3); border-radius: 2px; padding: 0 .12em; }
.searchresults em {
  font-style: normal; font-family: var(--ui); font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: .3rem;
}
.searchbox__empty { padding: 2.2rem 1.3rem; text-align: center; color: var(--sand-3); font-size: .92rem; }

/* -------------------------------------------------------------- colophon */
.colophon {
  border-top: 1px solid var(--line);
  padding: clamp(2.6rem, 6vh, 4rem) 0 clamp(2rem, 4vh, 3rem);
  background: var(--ink-2);
}
.colophon__grid {
  width: min(100%, 38rem);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.colophon__posts,
.colophon__author,
.colophon__about,
.colophon__support {
  width: 100%;
}
.colophon__author,
.colophon__about,
.colophon__support {
  margin-top: 1.85rem;
  padding-top: 1.85rem;
  background-image: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: min(11rem, 42%) 1px;
}
.colophon h4 {
  font-family: var(--ui);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .85rem;
}
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { font-size: .88rem; color: var(--sand-2); line-height: 1.5; }
.colophon a { color: var(--sand-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.colophon a:hover { color: var(--gold-2); border-color: var(--line-3); }

.colophon__posts ul,
.colophon__author ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: .35rem 0;
}
.colophon__posts li,
.colophon__author li {
  display: inline-flex;
  align-items: baseline;
}
.colophon__posts li:not(:last-child)::after,
.colophon__author li:not(:last-child)::after {
  content: "·";
  margin: 0 .7rem;
  color: var(--gold);
  opacity: .65;
}

.colophon__about ul {
  display: grid;
  gap: .65rem;
  max-width: 34rem;
  margin-inline: auto;
}
.colophon__about li {
  font-size: .86rem;
  line-height: 1.58;
  color: var(--sand-2);
}

.colophon__support {
  width: min(100%, 26rem);
  text-align: start;
  padding: 1.85rem 0 0;
  background-image: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: min(11rem, 42%) 1px;
}
.colophon__support h4 { text-align: center; }

.wallets {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0;
}
.wallets li {
  display: grid;
  grid-template-columns: 0.95rem 5.4rem minmax(0, 1fr) 22px;
  grid-template-areas: "sym name code copy";
  column-gap: .45rem;
  align-items: center;
  padding: .42rem 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.wallets li:last-child { border-bottom: 0; }
.wallets .wallet__sym {
  grid-area: sym;
  font-family: var(--display);
  font-size: .72rem;
  color: var(--gold);
  line-height: 1;
  text-align: center;
  opacity: .8;
}
.wallets .wallet__name {
  grid-area: name;
  font-family: var(--ui);
  font-size: .5rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sand-3);
  line-height: 1.2;
}
.wallets code {
  grid-area: code;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  font-size: .58rem;
  line-height: 1.35;
  color: var(--sand-3);
  overflow-wrap: anywhere;
  word-break: break-all;
}
.wallets .wallet__copy {
  grid-area: copy;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  margin: 0; padding: 0;
  background: transparent;
  border: 0;
  border-radius: 2px;
  color: var(--sand-3);
  opacity: .55;
  cursor: pointer;
}
.wallets .wallet__copy svg { width: 11px; height: 11px; }
.wallets .wallet__copy:hover { color: var(--gold-2); opacity: 1; }
.wallets .wallet__copy.is-done { color: var(--gold); opacity: 1; }

.disclaimer {
  width: min(100%, 38rem);
  margin: clamp(1.8rem, 4vh, 2.6rem) auto 0;
  padding-top: 1.5rem;
  background-image: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: min(11rem, 42%) 1px;
  border-top: 0;
  font-size: .8rem;
  color: var(--sand-3);
  line-height: 1.62;
  text-align: center;
}
.disclaimer b { color: var(--sand-2); font-weight: 500; }

.tothetop {
  position: fixed; inset-inline-end: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  width: 42px; height: 42px; display: grid; place-items: center; z-index: 70;
  background: var(--scrim); border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--gold-2); cursor: pointer; backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), visibility .3s, transform .3s var(--ease), border-color .2s;
}
.tothetop.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.tothetop:hover { border-color: var(--line-3); }
.tothetop svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------- reveals */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
  .reveal--d1 { transition-delay: .08s; }
  .reveal--d2 { transition-delay: .16s; }
  .reveal--d3 { transition-delay: .24s; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .bodymap { grid-template-columns: 1fr; }
  .bodymap__fig { position: static; max-width: 300px; margin-inline: auto; }
  .navtoggle { display: inline-flex; width: 44px; height: 44px; }
  .tools { margin-inline-start: auto; }
  .nav {
    display: none;
    position: absolute; top: var(--nav-h); inset-inline: 0;
    margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .6rem;
    background: var(--nav-solid);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid var(--line);
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: .85rem .9rem;
    font-size: .86rem;
    letter-spacing: .08em;
  }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: var(--gold-ghost); }
  .topbar { position: fixed; }
}
@media (max-width: 860px) {
  .collide { grid-template-columns: 1fr; }
  .collide__side--a { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .collide__gap { border-inline: 0; border-block: 1px solid var(--line); flex-direction: row; padding: 1.1rem; }
  .ev__body { grid-template-columns: 1fr; }
  .pair__grid { grid-template-columns: 1fr; }
  .pair__col--k { border-top: 0; border-inline-start: 2px solid var(--wash-k); }
  .fig--wide { width: 100%; margin-inline: 0; }
  .gallery { columns: 2 150px; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 1.8rem); }
  .ev__btn { grid-template-columns: auto 1fr; row-gap: .5rem; }
  .ev__meta { grid-column: 2; justify-content: flex-start; }
  .tl__item { grid-template-columns: 1fr; gap: .2rem; }
  .hero__meta { gap: 0 1.4rem; }
  .brand { font-size: .62rem; letter-spacing: .03em; gap: .28rem; }
  .brand span { font-size: .48rem; letter-spacing: .12em; }
  .iconbtn kbd { display: none; }
  .lang .iconbtn span { display: none; }
  .theme__menu, .lang__menu { grid-template-columns: 1fr; position: fixed; inset-inline: .9rem; top: calc(var(--nav-h) + .5rem); }
  .eyebrow { letter-spacing: .18em; }
  .hero__kicker .eyebrow { font-size: .62rem; }
}

/* -------------------------------------------------------------------- RTL */
[dir='rtl'] .prose h4::before { transform: scaleX(-1); }
[dir='rtl'] .lightbox__nav--prev svg,
[dir='rtl'] .lightbox__nav--next svg { transform: scaleX(-1); }
[dir='rtl'] .hero h1,
[dir='rtl'] .section__head h2 { letter-spacing: 0; }
[dir='rtl'] { --display: 'Cinzel', 'Noto Naskh Arabic', 'Geeza Pro', 'Segoe UI', Tahoma, serif; --serif: 'Noto Naskh Arabic', 'Geeza Pro', 'Segoe UI', Tahoma, serif; }

:lang(zh) { --serif: 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', 'Spectral', serif; --display: 'Songti SC', 'Noto Serif SC', 'Cinzel', serif; --ui: 'Inter', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif; }
:lang(ja) { --serif: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', 'Spectral', serif; --display: 'Hiragino Mincho ProN', 'Yu Mincho', 'Cinzel', serif; --ui: 'Inter', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif; }
:lang(ko) { --serif: 'Apple Myungjo', 'Nanum Myeongjo', 'Noto Serif KR', 'Spectral', serif; --display: 'Apple Myungjo', 'Nanum Myeongjo', 'Cinzel', serif; --ui: 'Inter', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; }
:lang(hi) { --serif: 'Noto Serif Devanagari', 'Noto Serif', 'Spectral', serif; --ui: 'Inter', 'Noto Sans Devanagari', sans-serif; }

/* ------------------------------------------------------------------ print */
@media print {
  .topbar, .progress, .tothetop, .lightbox, .searchbox, .scrollcue, .filters, .gallery, .wallet__copy, .theme { display: none !important; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .hero { min-height: auto; }
  .prose { width: 100%; }
}
