/* The Coronation Boy: site styles. "Style A": dark, cinematic.
   Mobile-first. Breakpoints: 760px (inline nav, 2-column layouts), 900px (home hero splits), 1200px (wide).
   System fonts only (no third-party requests; the CSP forbids inline styles, so every style lives here).
   Colours (all text pairs are WCAG AA or better on the surface they sit on):
     --bg #0f0f10  --surface #18181a  --raised #202024  --text #efefef  --muted #b4b4b9  --rule #38383d
     --red #e0544a (red text on dark)  --red-fill #a8231b (button fill, white text)
   Motion (fade-in, drift, parallax) only runs inside prefers-reduced-motion: no-preference. */

:root {
  --bg: #0f0f10;
  --surface: #18181a;
  --raised: #202024;
  --text: #efefef;
  --muted: #b4b4b9;
  --rule: #38383d;
  --red: #e0544a;
  --red-fill: #a8231b;
  --red-hover: #c02b22;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, "Segoe UI", system-ui, sans-serif;
  --measure: 38rem;      /* ~65 characters at the chapter text size */
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;       /* 18px */
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
main { flex: 1 0 auto; display: block; padding-block: 2rem 4rem; }
body.home main { padding-block: 0; }

img, svg { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3 { font-weight: 400; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin-top: 2.4rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.15em; }

a { color: var(--text); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--red); }
a:hover { color: #fff; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 2px; }

.skip-link { position: absolute; left: .5rem; top: -4rem; z-index: 100; background: #fff; color: #000; padding: .75rem 1rem; min-height: 44px; }
.skip-link:focus { top: .5rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }

/* ---------- Header & navigation ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .1rem 1rem; padding-block: .4rem; max-width: none; }

.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 48px; font-size: 1.15rem; letter-spacing: .01em; text-decoration: none; color: var(--text); }
.brand:hover { color: #fff; text-decoration: none; }
.brand img { width: 28px; height: 28px; }

.nav-toggle {
  display: none;               /* shown only when JS is running (html.js) */
  min-width: 44px; min-height: 44px; padding: .4rem .9rem;
  font-family: var(--sans); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text); background: transparent;
  border: 1px solid #8a8a90; border-radius: 0; cursor: pointer; align-items: center; gap: .65rem;
}
.nav-toggle:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: var(--text); content: ""; position: relative; }
.nav-toggle .bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle .bars::after  { position: absolute; top: 6px; left: 0; }
html.js .nav-toggle { display: inline-flex; }

.site-nav { flex-basis: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
html.js .site-nav[data-collapsed="true"] { display: none; }
.site-nav a {
  display: flex; align-items: center; min-height: 52px; padding: .4rem .25rem; text-decoration: none;
  border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 3px 0 0 var(--red); padding-left: .85rem; }

@media (min-width: 760px) {
  .site-header .wrap { flex-wrap: nowrap; padding-block: .5rem; padding-inline: var(--gutter); }
  .nav-toggle, html.js .nav-toggle { display: none; }
  .site-nav, html.js .site-nav[data-collapsed="true"] { display: block; flex-basis: auto; }
  .site-nav ul { flex-direction: row; gap: .1rem; }
  .site-nav a { border-top: 0; padding: .4rem .7rem; min-height: 48px; border-bottom: 2px solid transparent; font-size: .92rem; letter-spacing: .1em; box-shadow: none; }
  .site-nav a[aria-current="page"] { box-shadow: none; padding-left: .7rem; border-bottom-color: var(--red); }
}

/* On the home page the header floats over the photograph; the open phone menu gets a solid panel */
body.home .site-header { position: absolute; inset: 0 0 auto 0; background: transparent; border-bottom: 0; }
@media (max-width: 759px) {
  body.home .site-nav { background: rgba(15,15,16,.96); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
}

/* ---------- Page titles ---------- */
.page-title { border-bottom: 1px solid var(--rule); padding-bottom: 1rem; margin-bottom: 2rem; }
.page-title h1 { margin-bottom: .3rem; }
.page-title .lede { margin: 0; color: var(--muted); font-style: italic; font-size: 1.2rem; }
.kicker { margin: 0 0 .5rem; font-family: var(--sans); font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.eyebrow { margin: 0 0 2rem; font-family: var(--sans); font-weight: 400; font-size: .92rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: .9rem; }
.eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--red); }

.crumbs { font-family: var(--sans); font-size: .95rem; margin: 0 0 1rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5rem; }
.crumbs li + li::before { content: "›"; margin-right: .5rem; }
.crumbs a { display: inline-block; padding: .5rem .1rem; min-height: 44px; min-width: 44px; color: var(--muted); }
.crumbs a:hover { color: #fff; }

/* ---------- Buttons ---------- */
.button, button.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .6rem 1.6rem; margin: 0 .5rem .6rem 0;
  font-family: var(--sans); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; text-align: center;
  color: #fff; background: var(--red-fill); border: 1px solid var(--red-fill); border-radius: 0; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; text-decoration: none; }
.button.secondary { background: transparent; color: var(--text); border-color: #8a8a90; }
.button.secondary:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* ---------- Placeholder marking (contact intro): conspicuous so it cannot be mistaken for real copy ---------- */
.ph { background: #3a3000; color: #ffe27a; padding: 0 .25em; border: 1px dashed #b39500; border-radius: 2px; font-style: normal; font-weight: 400; }

figure { margin: 0 0 1.5rem; }
figcaption { font-family: var(--sans); font-size: .95rem; line-height: 1.5; color: var(--muted); padding-top: .5rem; }
.cover-frame { max-width: 18rem; margin: 0 auto 1.5rem; }
.cover-frame img { border: 1px solid var(--rule); filter: grayscale(1); }
.cover-frame.flush { margin: 0; }

blockquote { margin: 1.8rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--red); font-style: italic; }
blockquote footer { font-family: var(--sans); font-style: normal; font-size: .95rem; color: var(--muted); margin-top: .5rem; line-height: 1.5; }
blockquote footer cite { font-style: italic; }

dl.facts { display: grid; grid-template-columns: 1fr; gap: .2rem 1.5rem; margin: 0 0 1.5rem; }
dl.facts dt { font-family: var(--sans); font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .8rem; }
dl.facts dd { margin: 0; }

/* ---------- Layouts ---------- */
.story-layout { display: grid; gap: 1.5rem; }
.toc { background: var(--surface); border: 1px solid var(--rule); padding: 1rem 1.25rem; }
.toc h2 { margin: 0 0 .4rem; font-family: var(--sans); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.toc a, .toc-all a { display: inline-block; padding-block: .6rem; min-height: 44px; }
.toc .button { display: inline-flex; padding-block: .6rem; }
blockquote footer a { display: inline-block; padding-block: .6rem; min-height: 44px; }

@media (min-width: 760px) {
  dl.facts { grid-template-columns: max-content 1fr; }
  dl.facts dt { margin-top: 0; }
  .story-layout { grid-template-columns: 16rem 1fr; gap: 2.5rem; align-items: start; }
  .toc { position: sticky; top: 1rem; }
}
@media (min-width: 1200px) {
  main { padding-block: 3rem 5rem; }
  body.home main { padding-block: 0; }
}

/* ---------- Home ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--bg); }
.hero-photo { position: absolute; inset: 0; margin: 0; z-index: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; max-width: none; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,15,16,.75) 0, rgba(15,15,16,0) 22%),
    linear-gradient(0deg, var(--bg) 0, rgba(15,15,16,.9) 22%, rgba(15,15,16,0) 64%),
    radial-gradient(120% 90% at 55% 30%, rgba(15,15,16,0) 45%, rgba(15,15,16,.65) 100%);
}
.hero-text { position: relative; width: 100%; padding: 7.5rem var(--gutter) clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { margin: 0; font-size: clamp(3.4rem, 18.4vw, 8.4rem); line-height: .9; letter-spacing: -.025em; text-wrap: balance; }
.hero h1 span { display: block; }
.hero h1 .t-the { font-size: .5em; font-style: italic; letter-spacing: 0; color: var(--muted); margin-bottom: .1em; }
.dot { display: inline-block; width: .16em; height: .16em; margin-left: .06em; border-radius: 50%; background: var(--red); vertical-align: baseline; }
.hero-sub { margin: clamp(1.1rem, 2.5vw, 1.8rem) 0 0; max-width: 30ch; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.35; font-style: italic; color: var(--text); }
.hero-cta { margin: 1.7rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-cta .button { margin: 0; }

@media (min-width: 900px) {
  .hero { min-height: max(100svh, 760px); }
  .hero-photo img { position: absolute; right: 0; left: auto; width: 66%; object-position: 50% 8%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
  .hero-photo::after {
    background:
      linear-gradient(0deg, var(--bg) 0, rgba(15,15,16,0) 30%),
      linear-gradient(180deg, rgba(15,15,16,.6) 0, rgba(15,15,16,0) 16%),
      radial-gradient(90% 90% at 75% 35%, rgba(15,15,16,0) 50%, rgba(15,15,16,.6) 100%);
  }
  .hero h1 { font-size: clamp(6rem, 10vw, 9.5rem); }
  .hero-text { padding-bottom: clamp(3rem, 7vw, 6rem); }
}

.pull { padding: clamp(4.5rem, 10vw, 9rem) 0; }
.pull .eyebrow { margin-bottom: clamp(3.5rem, 8vw, 7rem); }
.pull blockquote { margin: 0; padding: 0; border: 0; font-style: normal; position: relative; max-width: 62rem; }
.pull blockquote::before { content: "\201C"; position: absolute; left: -.04em; top: -.5em; font-size: clamp(7rem, 16vw, 15rem); line-height: 1; color: var(--red); pointer-events: none; }
.pull blockquote p { margin: 0; padding-top: .7em; font-size: clamp(1.4rem, 3.1vw, 2.4rem); line-height: 1.38; letter-spacing: -.005em; text-wrap: pretty; }
.pull blockquote em { font-style: italic; color: var(--red); }
.pull blockquote footer { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); max-width: 36rem; }

.index-rows { padding-bottom: clamp(4rem, 9vw, 8rem); }
.entry { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .4rem 1.5rem; align-items: center; padding: clamp(1.6rem, 4vw, 3rem) 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--text); }
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry-t { grid-column: 1; font-size: clamp(2.4rem, 7.5vw, 5.2rem); line-height: 1; letter-spacing: -.02em; }
.entry-d { grid-column: 1; max-width: 44ch; color: var(--muted); font-size: 1.1rem; line-height: 1.5; }
.entry-a { grid-column: 2; grid-row: 1 / span 2; font-family: var(--sans); font-size: clamp(1.8rem, 4vw, 3rem); color: var(--red); }
.entry:hover { color: #fff; }
.entry:hover .entry-t { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: .12em; }
@media (min-width: 900px) {
  .entry { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; }
  .entry-d { grid-column: 2; grid-row: 1; }
  .entry-a { grid-column: 3; grid-row: 1; }
}

.strip-section { background: var(--surface); border-top: 1px solid var(--rule); padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem); }
.strip-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 2.2rem; margin-bottom: clamp(1.6rem, 4vw, 3rem); }
.strip-head h2 { margin: 0; font-size: clamp(2.4rem, 7.5vw, 5.2rem); line-height: 1; letter-spacing: -.02em; border-bottom: 3px solid var(--red); }
.strip-head p { margin: 0; color: var(--muted); }
.strip-head a { display: inline-block; padding-block: .6rem; min-height: 44px; color: var(--text); }
.strip { overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-color: #6a6a70 var(--surface); padding-bottom: 1.6rem; }
.strip-track { display: flex; gap: clamp(.9rem, 2vw, 1.75rem); width: max-content; padding-inline: var(--gutter); }
.strip figure { flex: none; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: .6rem; }
.strip picture { display: block; flex: none; }
.strip img { height: clamp(260px, 56vw, 440px); width: auto; max-width: none; filter: grayscale(1); }
.strip figcaption { width: 0; min-width: 100%; border-top: 2px solid var(--red); padding-top: .6rem; }
.strip:focus-visible { outline-offset: -3px; }

/* ---------- Story page ---------- */
.story-intro h2:first-child, .samples h2:first-child { margin-top: 0; }
.story-intro p { font-size: 1.2rem; line-height: 1.7; }
.src-note { font-family: var(--sans); font-size: .95rem; color: var(--muted); }
.sec-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.sec-list li { padding: .7rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .8rem; }
.sec-n { font-family: var(--sans); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-width: 6.5rem; }
.sec-t { flex: 1 1 14rem; }
.sample-tag { font-family: var(--sans); font-size: .95rem; padding-block: .6rem; }
.story-contents h3 { font-family: var(--sans); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 1.8rem 0 .4rem; }

/* ---------- Buy section ---------- */
.buy { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 2.5rem 0; padding: 0 0 1.6rem; scroll-margin-top: 1rem; }
.buy h2 { margin-top: 1.8rem; }
.buy-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.2rem; }
.buy-card { background: var(--surface); border: 1px solid var(--rule); padding: 1.4rem 1.5rem 1rem; }
.buy-card h3 { margin: 0 0 .1rem; font-size: 1.6rem; }
.buy-what { margin: 0 0 .8rem; color: var(--muted); }
.price { margin: 0 0 1.1rem; }
.price .amt { font-size: 2.6rem; line-height: 1; }
.price .cur { font-family: var(--sans); font-size: .95rem; letter-spacing: .1em; color: var(--muted); }
.buy-card .button { width: 100%; margin: 0 0 .6rem; }
.buy-note { margin: 0 0 .5rem; color: var(--muted); }
.steps { padding-left: 1.2rem; }
.steps li { margin: 0 0 .7rem; }
.buy-note a { color: var(--text); }
@media (min-width: 760px) { .buy-grid { grid-template-columns: 1fr 1fr; max-width: 52rem; } }

.buy-cta { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--red); padding: 1.5rem 1.5rem .9rem; margin: 3rem 0 0; }
.buy-cta h2 { margin-top: 0; }
.sample-note { font-family: var(--sans); font-size: .95rem; color: var(--muted); border-left: 3px solid var(--red); padding: .3rem 0 .3rem .9rem; }
.sample-note a { color: var(--text); }

/* ---------- Book text (sample chapters) ---------- */
.pg { font-family: var(--sans); font-size: .95rem; color: var(--muted); white-space: nowrap; }
.book-text { font-size: 1.1875rem; line-height: 1.72; }
.book-text h2.bk-h { font-size: 1.7rem; margin-top: 2.6rem; }
.book-text h3.bk-h { font-size: 1.3rem; margin-top: 1.9rem; }
.book-text .bk-display { font-size: 1.5rem; text-align: center; margin: 1.2rem 0 .4rem; }
.book-text .bk-note { font-family: var(--sans); font-size: .95rem; color: var(--muted); line-height: 1.55; }
.book-text .bk-it { font-style: italic; }
.book-text strong { font-weight: 700; }
.pgbreak { display: flex; align-items: center; gap: .8rem; margin: 2.2rem 0 1rem; color: var(--muted); font-family: var(--sans); font-size: .95rem; scroll-margin-top: 1rem; }
.pgbreak::before, .pgbreak::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--rule); }
.pgno { letter-spacing: .12em; text-transform: uppercase; }
.pgno-inline { font-family: var(--sans); font-size: .95rem; color: var(--muted); }
[id^="sub-"], [id^="pdf-"] { scroll-margin-top: 1rem; }

.bf { margin: 1.8rem auto; max-width: 100%; }
.bf img { width: 100%; height: auto; background: var(--surface); border: 1px solid var(--rule); }
.bf figcaption { text-align: center; }
.bf-link { display: block; }
.w20, .w25, .w30, .w35, .w40 { max-width: 70%; }
.figrow { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: flex-start; margin: 1.8rem 0; }
.figrow .bf { flex: 1 1 100%; margin: 0; max-width: 100%; }
@media (min-width: 760px) {
  .w20{max-width:20%}.w25{max-width:25%}.w30{max-width:30%}.w35{max-width:35%}.w40{max-width:40%}.w45{max-width:45%}.w50{max-width:50%}.w55{max-width:55%}.w60{max-width:60%}.w65{max-width:65%}.w70{max-width:70%}.w75{max-width:75%}.w80{max-width:80%}.w85{max-width:85%}.w90{max-width:90%}.w95{max-width:95%}.w100{max-width:100%}
  .figrow { flex-wrap: nowrap; }
  .figrow .bf { flex: 0 1 auto; }
  .fr15{width:15%}.fr20{width:20%}.fr25{width:25%}.fr30{width:30%}.fr35{width:35%}.fr40{width:40%}.fr45{width:45%}.fr50{width:50%}.fr55{width:55%}.fr60{width:60%}.fr65{width:65%}.fr70{width:70%}.fr75{width:75%}.fr80{width:80%}.fr85{width:85%}.fr90{width:90%}.fr95{width:95%}
}
/* the reading column: comfortable line length, figures centred on the wide column */
.measure.book-text { max-width: 100%; }
.book-text > p, .book-text > h2, .book-text > h3, .book-text > .tablewrap, .book-text > ul, .book-text > details, .book-text > .sample-note, .book-text > .buy-cta { max-width: var(--measure); margin-inline: auto; }
.book-text > .buy-cta { margin-top: 3rem; }
.book-text > .bf, .book-text > .figrow, .book-text > .chapter-nav { margin-inline: auto; }
.book-text > h2 { margin-top: 2.4rem; }

.chapter-nav { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; margin: 1.2rem 0 1.6rem; max-width: var(--measure); }
.chapter-nav .button { flex: 1 1 100%; margin: 0; }
@media (min-width: 760px) { .chapter-nav .button { flex: 0 1 auto; } }

.toc-list { margin: 0 0 1rem; padding-left: 0; list-style: none; }
.toc-list li { padding: 0; display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: .8rem; }
.toc a[aria-current="page"] { text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.toc-list a { display: inline-block; padding-block: .55rem; min-height: 44px; }
.toc-all { margin-top: 1rem; border-top: 1px solid var(--rule); padding-top: .4rem; }
@media (min-width: 760px) { .toc { max-height: calc(100vh - 2rem); overflow-y: auto; } }

.chart-text summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-family: var(--sans); font-size: .95rem; }
.chart-text ul { columns: 1; padding-left: 1.2rem; }
@media (min-width: 760px) { .chart-text ul { columns: 2; } }

/* tables (book page "What the book itself says"; also tables inside chapters) */
.tablewrap { overflow-x: auto; margin: 1.2rem 0; }
.bt { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.5; }
.bt td, .bt th { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--rule); }
.bt thead th { font-family: var(--sans); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; color: var(--muted); background: var(--surface); border-bottom: 2px solid var(--rule); }
.bt caption { text-align: left; font-family: var(--sans); font-size: .95rem; color: var(--muted); padding-bottom: .6rem; }
.bt th[scope="row"] { font-weight: 700; }

/* ---------- Gallery (curated highlights) ---------- */
.gal-note { font-size: 1.1rem; margin-bottom: 1rem; }
.gal-group h2 { margin: 3rem 0 .4rem; border-bottom: 1px solid var(--rule); padding-bottom: .4rem; scroll-margin-top: 1rem; }
.gal-desc { color: var(--muted); margin: 0 0 1.4rem; }
.gallery-grid { list-style: none; margin: 0; padding: 0; column-count: 1; column-gap: 1rem; }
.gallery-item { break-inside: avoid; margin: 0 0 1rem; }
.gallery-item button {
  display: block; width: 100%; padding: 0; margin: 0; border: 1px solid var(--rule); background: var(--surface);
  cursor: zoom-in; font: inherit; color: inherit; text-align: left; min-height: 44px;
}
.gallery-item button:hover { border-color: #fff; }
.gallery-item img { width: 100%; height: auto; background: var(--surface); }
.gallery-item .cap { display: block; padding: .6rem .8rem .75rem; font-family: var(--sans); font-size: .95rem; line-height: 1.45; color: var(--muted); }
.gallery-item button:hover .cap { color: var(--text); }
@media (min-width: 560px) { .gallery-grid { column-count: 2; } }
@media (min-width: 960px) { .gallery-grid { column-count: 3; column-gap: 1.25rem; } }
@media (min-width: 1360px) { .gallery-grid { column-count: 4; } }

/* Lightbox (<dialog>) */
.lightbox { border: 0; padding: 0; background: #0a0a0b; color: var(--text); width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0; }
.lightbox::backdrop { background: rgba(0,0,0,.96); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 3.5rem .5rem .5rem; }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: var(--surface); }
.lightbox-caption { flex: 0 0 auto; margin: 0 auto; padding: .5rem 1rem 4.5rem; text-align: center; font-family: var(--sans); font-size: .98rem; line-height: 1.5; max-width: 46rem; max-height: 9rem; overflow-y: auto; }
.lb-btn { position: absolute; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 1.6rem; line-height: 1; color: var(--text); background: rgba(24,24,26,.9); border: 1px solid #8a8a90; border-radius: 50%; cursor: pointer; }
.lb-btn:hover { background: var(--red-fill); border-color: #fff; }
.lb-close { top: .6rem; right: .6rem; }
.lb-prev { bottom: .8rem; left: calc(50% - 4.5rem); }
.lb-next { bottom: .8rem; left: calc(50% + 1.5rem); }
@media (min-width: 760px) {
  .lb-prev, .lb-next { bottom: auto; top: calc(50% - 24px); }
  .lb-prev { left: 1rem; } .lb-next { left: auto; right: 1rem; }
  .lightbox-stage { padding: 4rem 5rem 1rem; }
  .lightbox-caption { padding-bottom: 1.5rem; }
}

/* ---------- Contact form ---------- */
.form { max-width: 34rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-family: var(--sans); font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  display: block; width: 100%; min-height: 48px; padding: .65rem .8rem; font-family: var(--serif); font-size: 1.05rem; /* 16px+ avoids iOS zoom */
  color: var(--text); background: var(--surface); border: 1px solid #8a8a90; border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: #fff; outline: 3px solid #fff; outline-offset: 2px; }
.field textarea { min-height: 10rem; resize: vertical; }
.field select { color-scheme: dark; cursor: pointer; }
.contact-layout { display: grid; gap: 2.5rem; max-width: 70rem; }
.quick { align-self: start; padding: 1.3rem 1.4rem; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--red); max-width: 34rem; }
.quick h2 { margin: 0 0 .6rem; font-size: 1.5rem; }
.quick ul { margin: 0; padding-left: 1.2rem; }
.quick li { margin: 0 0 .7rem; }
.quick li:last-child { margin-bottom: 0; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 34rem) minmax(0, 24rem); gap: 4rem; } }
.field .hint { font-family: var(--sans); font-size: .95rem; color: var(--muted); margin: .4rem 0 0; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }  /* honeypot: off-screen, not display:none */
.form-status { margin-top: 1rem; padding: 0; }
.form-status:not(:empty) { padding: 1rem 1.1rem; border: 1px solid var(--rule); background: var(--surface); }
.form-status.error { border-color: var(--red); border-left-width: 5px; }
.form-status.success { border-left: 5px solid #8fd19a; }
.form-status h2 { margin: 0 0 .3rem; font-size: 1.3rem; }
.form-status p { margin: 0; }
.turnstile-box { min-height: 65px; }
noscript .form-status { padding: 1rem 1.1rem; border: 1px solid var(--red); background: var(--surface); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--rule); padding-block: clamp(3rem, 7vw, 5rem) 2.5rem; font-family: var(--sans); font-size: .95rem; color: var(--muted); }
.site-footer .wrap { max-width: var(--wrap); }
.site-footer p { margin: 0 0 .7rem; max-width: 60ch; }
.site-footer a { color: var(--text); }
.site-footer .remember { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.1; color: var(--text); margin-bottom: 1.6rem; }
.site-footer .remember .dot { width: .22em; height: .22em; margin-left: .18em; }
.footer-nav { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.copyright { color: var(--text); }

/* ---------- Motion: only for visitors who have not asked for less ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: fadein .7s ease-out both, drift 20s ease-out both; }
  .hero h1 span, .hero-sub, .hero-cta { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 .t-the { animation-delay: .1s; } .hero h1 .t-main { animation-delay: .2s; } .hero h1 .t-main + .t-main { animation-delay: .3s; }
  .hero-sub { animation-delay: .4s; } .hero-cta { animation-delay: .5s; }
  @supports (animation-timeline: scroll()) {
    .hero-photo { animation: parallax linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
  }
  .entry-a { transition: transform .3s; } .entry:hover .entry-a { transform: translateX(8px); }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
  @keyframes drift { from { scale: 1.06; } to { scale: 1; } }
  @keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
  @keyframes parallax { from { translate: 0 0; } to { translate: 0 18vh; } }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .skip-link, .nav-toggle, .chapter-nav, .toc, .buy-cta { display: none; }
}

/* Small helpers (no inline styles anywhere: CSP forbids them) */
.centered { margin-inline: auto; }
