/* AlexMercier.us
   Layout concept: a field manual set on the bishop's diagonal. Deep-teal bands
   (the book's night sky) carry the thesis; cool paper carries the reading.
   One ember accent, used for actions and the diagonal only. */

:root {
  --paper: #f2f6f6;
  --paper-2: #e4ecec;
  --ink: #0f2a30;
  --ink-soft: #46626a;
  --rule: #c5d3d5;
  --night: #0a2127;
  --night-2: #123640;
  --ice: #c9f4f8;
  --ice-soft: #8fb9c0;
  --ember: #c4511a;
  --ember-on-night: #f08a4b;

  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --label: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --measure: 34rem;
  --wrap: 68rem;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d262c;
    --paper-2: #123038;
    --ink: #e3eff0;
    --ink-soft: #9db8bd;
    --rule: #25474f;
    --night: #071a1f;
    --night-2: #0f2e36;
    --ember: #f08a4b;
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration-color: var(--ember); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { color: var(--ember); }
.band a:hover { color: var(--ember-on-night); }

:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }

.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--paper); color: var(--ink); padding: 0.5rem 0.75rem; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.5rem; line-height: 1.1; }

p { margin: 0; max-width: var(--measure); }
.prose { display: grid; gap: 1.1rem; }
.prose h2 { margin-top: 1.5rem; }
.prose ul { margin: 0; padding-left: 1.2rem; max-width: var(--measure); display: grid; gap: 0.5rem; }

.label {
  font-family: var(--label);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.band .label { color: var(--ice-soft); }

.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; }

/* ---------- header ---------- */

.site-head { background: var(--night); color: var(--ice); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 2rem; padding-block: 1.1rem;
}
.wordmark {
  font-family: var(--display); font-weight: 600; font-size: 1.45rem;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; color: #fff;
}
.wordmark span { color: var(--ember-on-night); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; }
.site-nav a {
  font-family: var(--label); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--ice-soft); padding-block: 0.3rem; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--ember-on-night); }

/* ---------- bands ---------- */

.band { background: var(--night); color: var(--ice); }
.band h1, .band h2, .band h3 { color: #fff; }
.band .lede { color: var(--ice); }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section.tint { background: var(--paper-2); }
.stack { display: grid; gap: var(--gap); }
.stack-s { display: grid; gap: 0.9rem; }

/* diagonal cut under dark bands */
.cut { position: relative; padding-bottom: clamp(4rem, 9vw, 7rem); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.2vw), 0 100%); }

/* ---------- hero ---------- */

.hero .wrap {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem) var(--gap); align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
.hero h1 em { font-style: normal; color: var(--ember-on-night); }
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; }

/* photo with the book leaning on its lower-left corner */
.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 19rem; margin-bottom: 1.5rem; }
.hero-photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%;
  box-shadow: 14px 14px 0 var(--night-2), 14px 14px 0 1px rgba(143, 185, 192, 0.35);
}
.hero-book { position: absolute; left: -24%; bottom: -1.5rem; width: 46%; display: block; transition: transform 0.2s ease; }
.hero-book img { width: 100%; border: 1px solid rgba(201, 244, 248, 0.2); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55); }
.hero-book:hover { transform: translateY(-4px); }

/* proof strip along the bottom of the hero */
.proof {
  grid-column: 1 / -1; list-style: none; margin: 0; padding: 1.25rem 0 0;
  display: grid; gap: 1rem var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(143, 185, 192, 0.3);
}
.proof li { display: grid; gap: 0.2rem; align-content: start; min-width: 0; }
.proof strong {
  font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.1;
  letter-spacing: 0.02em; text-transform: uppercase; color: #fff;
}
.proof span { font-size: 0.92rem; line-height: 1.4; color: var(--ice-soft); }
.proof a { color: var(--ice); }

.board { width: 100%; display: block; }
.board text { font-family: var(--label); font-size: 11px; letter-spacing: 0.14em; fill: #8fb9c0; }
.board-figure { margin: 0; background: var(--night); padding: 1.1rem 1.1rem 1rem; display: grid; gap: 0.8rem; }
.board-figure figcaption { font-size: 0.9rem; line-height: 1.45; color: #8fb9c0; }

.page-head .wrap { display: grid; gap: 1.1rem; padding-top: clamp(2.5rem, 6vw, 4rem); }

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn {
  display: inline-block; font-family: var(--label); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 0.85rem 1.25rem; border: 2px solid var(--ember); background: var(--ember); color: #fff;
}
.btn:hover { background: transparent; color: var(--ember); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.band .btn { border-color: var(--ember-on-night); background: var(--ember-on-night); color: var(--night); }
.band .btn:hover { background: transparent; color: var(--ember-on-night); }
.band .btn.ghost { background: transparent; color: var(--ice); border-color: var(--ice-soft); }
.band .btn.ghost:hover { background: var(--ice); color: var(--night); border-color: var(--ice); }

/* ---------- book feature ---------- */

.book { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); align-items: start; }
.book-cover { box-shadow: 14px 14px 0 var(--paper-2), 14px 14px 0 1px var(--rule); }
.tint .book-cover { box-shadow: 14px 14px 0 var(--paper), 14px 14px 0 1px var(--rule); }
.book-body { display: grid; gap: 1.1rem; min-width: 0; }
.book-sub { font-style: italic; color: var(--ink-soft); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; max-width: var(--measure); }
.checks li { padding-left: 1.6rem; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 0.9rem; height: 2px;
  background: var(--ember); transform: rotate(-45deg);
}

/* ---------- author photo ---------- */

.portrait {
  width: 100%; max-width: 22rem; aspect-ratio: 1; object-fit: cover; object-position: 50% 15%;
  box-shadow: 14px 14px 0 var(--paper-2), 14px 14px 0 1px var(--rule);
}
.tint .portrait { box-shadow: 14px 14px 0 var(--paper), 14px 14px 0 1px var(--rule); }
.author { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: center; }
.author-body { display: grid; gap: 1rem; min-width: 0; }
.organizer { display: flex; gap: 1rem; align-items: center; }
.organizer img { width: 5.5rem; height: 5.5rem; object-fit: cover; object-position: 50% 15%; flex: none; }
.organizer p { font-size: 1rem; line-height: 1.4; }

/* ---------- notice (name change) ---------- */

.notice { background: var(--paper-2); border-block: 1px solid var(--rule); }
.notice .wrap { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; align-items: baseline; padding-block: 1rem; }
.notice p { max-width: none; font-size: 1rem; }

/* ---------- field card ---------- */

.card {
  border: 2px solid var(--ink); background: var(--paper); max-width: 44rem;
  display: grid;
}
.card-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem;
  padding: 0.7rem 1.1rem; background: var(--ink); color: var(--paper);
  font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.card-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 1.1rem; }
.card-row + .card-row { border-top: 1px solid var(--rule); }
.card-row p { font-size: 1.02rem; line-height: 1.5; }
.card-row .label { padding-top: 0.3rem; color: var(--ember); }

/* ---------- talks ---------- */

.talks { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.talk { display: grid; gap: 0.8rem; align-content: start; padding-top: 1.1rem; border-top: 3px solid var(--ink); min-width: 0; }
.talk p, .talk li { font-size: 1.02rem; line-height: 1.5; }
.talk ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }

.split { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.facts { margin: 0; display: grid; gap: 0; max-width: 34rem; }
.facts div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding-block: 0.75rem; border-top: 1px solid var(--rule); }
.facts dt { font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0.35rem; }
.facts dd { margin: 0; font-size: 1.02rem; }

blockquote { margin: 0; padding-left: 1.2rem; border-left: 3px solid var(--ember); max-width: var(--measure); }
blockquote p { font-size: 1.2rem; line-height: 1.45; }
blockquote footer { margin-top: 0.5rem; font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

.copybox { border: 1px dashed var(--ink-soft); padding: 1.1rem 1.2rem; max-width: 40rem; display: grid; gap: 0.7rem; }
.copybox p { font-size: 1rem; line-height: 1.55; max-width: none; }

.email { font-family: var(--label); font-size: 1.05rem; letter-spacing: 0.02em; overflow-wrap: anywhere; }

/* ---------- writing ---------- */

.posts { list-style: none; margin: 0; padding: 0; display: grid; }
.posts li { display: grid; gap: 0.4rem; padding-block: 1.4rem; border-top: 1px solid var(--rule); }
.posts li:last-child { border-bottom: 1px solid var(--rule); }
.posts a { text-decoration: none; }
.posts h3 { font-size: 1.7rem; }
.posts audio { width: 100%; max-width: 34rem; margin-top: 0.3rem; }
.posts .video { width: 100%; max-width: 40rem; aspect-ratio: 16 / 9; margin-top: 0.3rem; background: var(--night); }
.posts .video iframe, .posts .video video { width: 100%; height: 100%; border: 0; display: block; }
.posts .source { font-family: var(--label); font-size: 0.8rem; letter-spacing: 0.06em; }
.tag {
  display: inline-block; margin-right: 0.6rem; padding: 0.15rem 0.5rem;
  background: var(--ink); color: var(--paper); letter-spacing: 0.12em;
}
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters button {
  font-family: var(--label); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.55rem 0.9rem; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
}
.filters button:hover { border-color: var(--ember); color: var(--ember); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.formats { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.formats div { display: grid; gap: 0.5rem; align-content: start; padding-top: 0.9rem; border-top: 3px solid var(--ink); }
.formats p { font-size: 1rem; line-height: 1.5; }
.article { display: grid; gap: 1.15rem; }
.article h2 { font-size: 1.7rem; margin-top: 1rem; }
.pillars { display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pillars div { display: grid; gap: 0.5rem; align-content: start; padding-top: 0.9rem; border-top: 3px solid var(--ink); }
.pillars p { font-size: 1rem; line-height: 1.5; }

/* ---------- non-fiction page ---------- */

.type-cover {
  width: 100%; aspect-ratio: 2 / 3; display: grid; grid-template-rows: auto 1fr auto auto; gap: 0.9rem;
  padding: 1.6rem 1.4rem; background: linear-gradient(160deg, var(--night-2) 0%, var(--night) 70%); color: var(--ice);
  box-shadow: 14px 14px 0 var(--paper-2), 14px 14px 0 1px var(--rule);
}
.tc-kicker { font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember-on-night); }
.tc-title { align-self: end; font-family: var(--display); font-weight: 600; font-size: clamp(2.3rem, 4vw, 3rem); line-height: 0.92; text-transform: uppercase; color: #fff; }
.tc-sub { font-style: italic; font-size: 0.95rem; line-height: 1.35; color: var(--ice-soft); }
.tc-lights { display: flex; gap: 0.5rem; }
.tc-lights i { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #3fb07a; }
.tc-lights i:nth-child(2) { background: #e8b93a; }
.tc-lights i:nth-child(3) { background: #e0573f; }

.intro { max-width: 40rem; font-size: 1.1rem; }
.lights { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.light { display: grid; gap: 0.5rem; align-content: start; padding-top: 0.9rem; border-top: 5px solid #3fb07a; }
.light.is-yellow { border-top-color: #d9a520; }
.light.is-red { border-top-color: #d24a33; }
.light p { font-size: 1rem; line-height: 1.5; }

.cross { display: flex; flex-wrap: wrap; gap: 1.25rem 3rem; align-items: end; justify-content: space-between; }

/* ---------- fiction page ----------
   Its own world: a night battlefield. Near-black smoke, fire amber, stencil type.
   Deliberately dark in both themes. */

.fx {
  --fx-bg: #080b0d;
  --fx-panel: #10171b;
  --fx-line: #24313a;
  --fx-text: #e8ecee;
  --fx-smoke: #9db0b8;
  --fx-fire: #ff9a3c;
  --fx-bone: #f1ebe0;
  --stencil: "Saira Stencil One", "Barlow Condensed", Impact, sans-serif;
  background: var(--fx-bg); color: var(--fx-text);
}
.fx h1, .fx h2, .fx h3 { font-family: var(--stencil); font-weight: 400; color: var(--fx-bone); letter-spacing: 0.02em; }
.fx h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.fx a { color: var(--fx-fire); }
.fx a:hover { color: var(--fx-bone); }
.fx p { max-width: 36rem; }
.fx-kicker {
  font-family: var(--display); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.38em; text-transform: uppercase; color: var(--fx-smoke);
}
.fx-small { font-family: var(--label); font-size: 0.8rem; letter-spacing: 0.08em; }
.fx .btn { background: var(--fx-fire); border-color: var(--fx-fire); color: #1a0d03; }
.fx .btn:hover { background: transparent; color: var(--fx-fire); }
.fx .btn.ghost { background: rgba(8, 11, 13, 0.45); border-color: rgba(232, 236, 238, 0.65); color: var(--fx-text); }
.fx .btn.ghost:hover { background: var(--fx-text); color: var(--fx-bg); border-color: var(--fx-text); }

.fx-hero { position: relative; isolation: isolate; overflow: hidden; }
.fx-hero picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 8% 35%; z-index: -2;
}
.fx-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 11, 13, 0.94) 0%, rgba(8, 11, 13, 0.72) 34%, rgba(8, 11, 13, 0) 62%),
    linear-gradient(0deg, var(--fx-bg) 0%, rgba(8, 11, 13, 0) 30%);
}
.fx-hero .wrap { min-height: clamp(30rem, 44vw, 40rem); display: grid; align-content: center; padding-block: 3rem 4rem; }
.fx-hero-copy { display: grid; gap: 1.15rem; max-width: 27rem; }
.fx-hero h1 { font-size: clamp(3.6rem, 9vw, 7.2rem); line-height: 0.88; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6); }
.fx-hook { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; color: var(--fx-bone); }

.fx-proof { border-block: 1px solid var(--fx-line); background: var(--fx-panel); }
.fx-proof .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 3rem; align-items: baseline; padding-block: 1.1rem; }
.fx-proof p { max-width: none; font-size: 1rem; }
.fx-proof strong { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fx-bone); }
.fx-proof span { margin-left: 0.6rem; font-family: var(--label); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fx-smoke); }

.fx-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.fx-section + .fx-section { border-top: 1px solid var(--fx-line); }
.fx-stack { display: grid; gap: 1.1rem; align-content: start; min-width: 0; }

.fx-story { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); align-items: start; }
.fx-cover { box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--fx-line); }
.fx-blurb { display: grid; gap: 1.05rem; min-width: 0; }
.fx-lead { font-family: var(--stencil); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; color: var(--fx-fire); }

.fx-video { width: 100%; max-width: 60rem; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 1px var(--fx-line); }
.fx-video iframe { width: 100%; height: 100%; border: 0; display: block; }

.fx-quote { margin: 0 auto; max-width: 48rem; display: grid; gap: 1.2rem; text-align: center; justify-items: center; }
.fx-quote blockquote { margin: 0; padding: 0; border: 0; max-width: none; }
.fx-quote blockquote p { max-width: none; font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.45; font-style: italic; color: var(--fx-bone); }
.fx-quote figcaption { font-family: var(--label); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fx-fire); }

.fx-split { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: center; }
.fx-poster { box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7); }
.fx-intro { font-size: 1.15rem; color: var(--fx-smoke); }

.fx-series { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-book { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.fx-book img, .fx-blank { width: 100%; max-width: 12rem; aspect-ratio: 720 / 1152; object-fit: cover; box-shadow: 0 0 0 1px var(--fx-line); }
.fx-blank {
  display: grid; place-items: center; padding: 1rem; text-align: center;
  background: repeating-linear-gradient(135deg, #0d1317 0 14px, #10181d 14px 28px);
}
.fx-blank span { font-family: var(--stencil); font-size: 1.5rem; line-height: 1.05; color: rgba(241, 235, 224, 0.35); text-transform: uppercase; }
.fx-book h3 { font-size: 1.7rem; }
.fx-book p { font-size: 1rem; line-height: 1.5; }
.fx-num { font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fx-smoke); }
.fx-status { font-family: var(--label); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fx-fire); }

.fx-shelf { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0.5rem; }
.fx-solo { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 1.5rem; align-items: start; padding: 1.5rem; background: var(--fx-panel); box-shadow: 0 0 0 1px var(--fx-line); }
.fx-solo h3 { font-size: 1.9rem; line-height: 1.05; }
.fx-solo p { font-size: 1rem; line-height: 1.55; }
.fx-solo .fx-stack { gap: 0.8rem; }
.fx-line { font-style: italic; color: var(--fx-bone); }
.fx-solo-cover { width: 100%; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--fx-line); }
.fx-type {
  position: relative; overflow: hidden; aspect-ratio: 2 / 3; display: grid; align-items: end; padding: 0.9rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--fx-line);
}
.fx-type span { position: relative; font-family: var(--stencil); font-size: 1.35rem; line-height: 1; text-transform: uppercase; color: var(--fx-bone); }
.fx-type::before { content: ""; position: absolute; }
.fx-type.is-oracle { background: radial-gradient(ellipse at 50% 28%, rgba(201, 244, 248, 0.2), transparent 55%), linear-gradient(180deg, #1c2b33 0%, #0a1014 72%); }
.fx-type.is-oracle::before { left: 24%; right: 24%; top: 14%; height: 30%; background: #020304; box-shadow: 0 0 0 1px rgba(201, 244, 248, 0.3), 0 0 36px rgba(201, 244, 248, 0.18); }
.fx-type.is-zero { background: radial-gradient(ellipse at 50% 40%, rgba(255, 154, 60, 0.16), transparent 50%), linear-gradient(180deg, #0f1c24 0%, #07090b 75%); }
.fx-type.is-zero::before { left: 32%; right: 32%; top: 12%; height: 44%; border: 2px solid var(--fx-fire); border-bottom: 0; opacity: 0.85; box-shadow: inset 6px 0 18px rgba(255, 154, 60, 0.25); }

.fx-gear { background: var(--fx-panel); }
.fx-gear .wrap { display: flex; flex-wrap: wrap; gap: 1.25rem 3rem; align-items: end; justify-content: space-between; }
.fx-gear .wrap > div:first-child { display: grid; gap: 0.6rem; }

.fx-note { border-top: 1px solid var(--fx-line); }
.fx-note .wrap { padding-block: 1.2rem; }
.fx-note p { max-width: none; font-size: 0.95rem; color: var(--fx-smoke); }

@media (max-width: 56rem) {
  .fx-story, .fx-split { grid-template-columns: minmax(0, 1fr); }
  .fx-cover { max-width: 14rem; }
  .fx-poster { max-width: 18rem; }
  .fx-series { grid-template-columns: minmax(0, 1fr); }
  .fx-book { grid-template-columns: 7rem minmax(0, 1fr); align-items: start; }
  .fx-blank { padding: 0.4rem; }
  .fx-blank span { font-size: 0.72rem; }
  .fx-shelf { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 30rem) {
  .fx-solo { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem; }
  .fx-type { padding: 0.5rem; }
  .fx-type span { font-size: 0.8rem; }
}
@media (max-width: 40rem) {
  .fx-hero picture { display: block; position: relative; }
  .fx-hero picture img { position: static; height: auto; aspect-ratio: 1; }
  .fx-hero picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--fx-bg) 0%, rgba(8, 11, 13, 0) 45%); }
  .fx-hero::before { display: none; }
  .fx-hero .wrap { min-height: 0; margin-top: -4.5rem; position: relative; padding-block: 0 2.5rem; }
  .fx-proof span { display: block; margin: 0.2rem 0 0; }
}

/* ---------- footer ---------- */

.site-foot { background: var(--night); color: var(--ice-soft); font-size: 0.95rem; }
.site-foot .wrap { display: grid; gap: 1.5rem; padding-block: 2.5rem; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: baseline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-family: var(--label); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.foot-links a { text-decoration: none; color: var(--ice); }
.foot-links a:hover { color: var(--ember-on-night); }
.site-foot p { max-width: 46rem; font-size: 0.88rem; line-height: 1.55; }
.site-foot a { color: var(--ice); }

/* ---------- small screens ---------- */

@media (max-width: 56rem) {
  .hero .wrap, .book, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 15rem; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-figure { max-width: 22rem; }
  .about-side { display: contents; }
  .about-side .portrait { order: -1; max-width: 16rem; }
  .book-cover, .type-cover { max-width: 14rem; }
  .lights { grid-template-columns: minmax(0, 1fr); }
  .talks { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .author { grid-template-columns: minmax(0, 1fr); }
  .author .portrait { max-width: 14rem; }
}
@media (max-width: 30rem) {
  body { font-size: 1.0625rem; }
  .card-row, .facts div { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- the bishop's diagonal (self-assessment) ---------- */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hero-piece {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 28%;
  box-shadow: 14px 14px 0 var(--night-2), 14px 14px 0 1px rgba(143, 185, 192, 0.35);
}

.corner-head { display: grid; gap: 0.4rem; padding-top: 1.1rem; border-top: 3px solid var(--ink); margin-top: 1rem; }
.terrain { max-width: 52rem; }
.terrain .card-head span:last-child { font-family: var(--display); font-size: 1.1rem; letter-spacing: 0.08em; }

.score-opts { border: 0; margin: 0; padding: 0; display: grid; gap: 0.45rem; min-width: 0; }
.score-opts label {
  display: grid; grid-template-columns: 1.1rem 1.4rem minmax(0, 1fr); gap: 0.6rem; align-items: start;
  padding: 0.55rem 0.75rem; border: 1px solid var(--rule); cursor: pointer; font-size: 1rem; line-height: 1.45;
}
.score-opts label:hover { border-color: var(--ember); }
.score-opts label:has(input:checked) { border-color: var(--ember); background: var(--paper-2); box-shadow: inset 3px 0 0 var(--ember); }
.score-opts input { accent-color: var(--ember); margin: 0.3rem 0 0; }
.score-opts b { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1; color: var(--ember); }

.result { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); align-items: start; }
.result .board-figure { background: var(--night-2); }
.result-body { display: grid; gap: 1.1rem; min-width: 0; }
.result-body p { color: var(--ice); }
.result-body .label { color: var(--ice-soft); }
.result-body ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; max-width: var(--measure); }
.readout { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; max-width: 36rem; }
.readout div { display: grid; gap: 0.15rem; padding-top: 0.5rem; border-top: 1px solid rgba(143, 185, 192, 0.35); }
.readout dt { font-family: var(--label); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice-soft); }
.readout dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1.1; color: #fff; }
.check-alert { border-left: 3px solid var(--ember-on-night); padding-left: 1rem; color: #fff !important; }
.result button.btn { cursor: pointer; }

.diag-promo .wrap { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); align-items: center; }
.diag-promo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 28%; box-shadow: 14px 14px 0 var(--night-2), 14px 14px 0 1px rgba(143, 185, 192, 0.35); }
.diag-promo .stack-s p { color: var(--ice); }

@media (max-width: 56rem) {
  .result, .diag-promo .wrap { grid-template-columns: minmax(0, 1fr); }
  .result .board-figure { max-width: 22rem; }
  .diag-promo img { max-width: 12rem; }
  .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  .site-head, .site-foot, .skip, .actions, .hero-visual, .proof { display: none !important; }
  .cut { clip-path: none; padding-bottom: 1rem; }
  body, .band, .section.tint { background: #fff !important; color: #000 !important; }
  .band h1, .band h2, .band h3, .band .lede, .result-body p, .readout dd, .check-alert { color: #000 !important; }
  .section { padding-block: 1.25rem; }
  .terrain { break-inside: avoid; }
  .score-opts label { border-color: #bbb; }
  .score-opts label:not(:has(input:checked)) { color: #777; }
  .result { break-before: page; }
}

/* Home page overview video */
.overview-video { margin: 0; width: 100%; max-width: 60rem; }
.overview-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 1px var(--rule); }
