/* Up From Zionism! — the jacket's palette: cream stock, sky-blue and navy panels, black condensed type. */

:root {
  --paper: #f3eee3;
  --paper-hi: #fbf8f1;
  --paper-lo: #e9e1cf;
  --ink: #17181c;
  --ink-2: #45443f;
  --ink-3: #6f6b61;
  --rule: #d8cdb6;
  --sky: #5b9ad5;
  --sky-soft: #a9c9ea;
  --navy: #1d3d8f;
  --navy-deep: #13296a;
  --ok: #2f6b3a;
  --err: #a3261b;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 19px;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */

.display {
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.02;
  font-size: clamp(34px, 5vw, 58px);
  margin: 0 0 24px;
  text-wrap: balance;
}

.eyebrow,
.kicker {
  font-family: var(--display);
  font-stretch: 90%;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 14px;
}
.eyebrow-light { color: var(--sky-soft); }

.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 13px 22px;
  min-height: 48px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--sky-soft); border-color: var(--sky-soft); color: var(--navy-deep); }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.topbar-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.wordmark {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark span:last-child { color: var(--navy); }
.topbar nav { display: flex; gap: 22px; margin-left: auto; }
.topbar nav a {
  font-family: var(--display);
  font-stretch: 90%;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
}
.topbar nav a:hover { color: var(--navy); }
@media (max-width: 760px) {
  .topbar nav { display: none; }
  .topbar .btn { margin-left: auto; }
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.rising { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rising path { fill: none; stroke: var(--sky); stroke-width: 1.2; opacity: 0.32; }
.rising .tip { stroke-width: 1.6; opacity: 0.45; }

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(48px, 8vw, 110px);
}
.hero-author {
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0 0 18px;
  letter-spacing: 0.005em;
}

/* The title, set in panels the way the jacket sets it. */
.blocks { margin: 0 0 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; font-weight: normal; }
.blocks .b {
  display: inline-block;
  font-family: var(--display);
  font-stretch: 72%;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.92;
  font-size: clamp(64px, 10.5vw, 132px);
  padding: 0.08em 0.16em 0.04em;
  letter-spacing: 0.01em;
}
.b-up { background: var(--sky); transform: rotate(-2.2deg); transform-origin: left bottom; margin-left: 0.02em; }
.b-from { background: var(--navy); transform: rotate(1.6deg); margin: -0.04em 0 0 0.62em; position: relative; z-index: 1; }
.b-zion { background: var(--sky); transform: rotate(-0.8deg); margin-top: -0.06em; padding-right: 0.22em; }

.hero-sub { font-size: clamp(19px, 2vw, 23px); line-height: 1.4; margin: 0 0 8px; max-width: 34em; color: var(--ink); }
.hero-foreword { font-family: var(--display); font-stretch: 85%; font-size: 18px; margin: 0 0 30px; color: var(--ink-2); }
.hero-foreword strong { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 15px; color: var(--ink-3); margin: 14px 0 0; }

.hero-cover { margin: 0; justify-self: center; max-width: 420px; width: 100%; }
.hero-cover img {
  width: 100%;
  border-radius: 2px;
  transform: rotate(2deg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08), 0 14px 28px -10px rgba(30, 25, 10, 0.35), 0 40px 70px -30px rgba(30, 25, 10, 0.45);
}

@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-cover { order: -1; max-width: 220px; }
  .hero-cover img { transform: rotate(1.5deg); }
}

/* ---------- The argument ---------- */

.argument { padding: clamp(64px, 9vw, 120px) 0; }
.argument-lead { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px 64px; align-items: start; margin-bottom: 56px; }
.argument-lead .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.argument-lead .display { margin: 0; }
@media (max-width: 860px) { .argument-lead { grid-template-columns: 1fr; } }

.theses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.thesis { padding: 28px 32px 32px 0; border-bottom: 1px solid var(--rule); position: relative; }
.thesis:nth-child(even) { padding: 28px 0 32px 32px; border-left: 1px solid var(--rule); }
.thesis-n { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 15px; color: var(--sky); letter-spacing: 0.05em; }
.thesis h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 26px; line-height: 1.1; margin: 4px 0 14px; }
.thesis blockquote { margin: 0 0 12px; font-size: 20px; line-height: 1.5; font-style: italic; color: var(--ink); }
.thesis blockquote p { margin: 0; }
.thesis blockquote p::before { content: "“"; }
.thesis blockquote p::after { content: "”"; }
.cite { font-family: var(--display); font-stretch: 90%; font-size: 14px; margin: 0; color: var(--ink-2); }
.cite a { font-weight: 600; }
.cite-where { color: var(--ink-3); }
@media (max-width: 760px) {
  .theses { grid-template-columns: 1fr; }
  .thesis, .thesis:nth-child(even) { padding: 24px 0 28px; border-left: 0; }
}

/* ---------- Foreword band ---------- */

.foreword-band { background: var(--navy); color: #fff; padding: clamp(64px, 8vw, 104px) 0; position: relative; overflow: hidden; }
.foreword-band::after {
  content: "";
  position: absolute;
  right: -6%;
  top: -20%;
  width: 46%;
  height: 140%;
  background: var(--sky);
  opacity: 0.16;
  transform: rotate(8deg);
}
.foreword-in { position: relative; z-index: 1; }
.big-quote { margin: 0 0 40px; max-width: 30em; }
.big-quote p { margin: 0; font-size: clamp(25px, 3.2vw, 38px); line-height: 1.3; font-weight: 500; text-wrap: pretty; }
.fw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; max-width: 900px; margin-bottom: 40px; }
.fw-pair blockquote { margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.3); padding-top: 16px; }
.fw-pair p { margin: 0; font-size: 21px; line-height: 1.45; font-style: italic; color: #e6ecf8; }
@media (max-width: 680px) { .fw-pair { grid-template-columns: 1fr; } }

/* ---------- Contents & chart ---------- */

.contents { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); }

.trail-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: 36px; }
.trail-stats div { padding: 18px 16px 18px 0; display: flex; flex-direction: column; gap: 2px; }
.trail-stats div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.trail-stats strong { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: clamp(38px, 5vw, 56px); line-height: 1; color: var(--navy); }
.trail-stats span { font-family: var(--display); font-stretch: 90%; font-size: 14px; color: var(--ink-2); line-height: 1.3; }
@media (max-width: 700px) {
  .trail-stats { grid-template-columns: 1fr 1fr; }
  .trail-stats div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .trail-stats div:nth-child(4) { border-top: 1px solid var(--rule); }
}

.chart { margin: 0 0 48px; }
.bars { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(2px, 0.5vw, 6px); height: clamp(170px, 24vw, 254px); padding-top: 24px; align-items: end; border-bottom: 2px solid var(--ink); }
.bar { height: 100%; display: flex; align-items: flex-end; text-decoration: none; position: relative; }
.bar-fill {
  display: block;
  width: 100%;
  background: var(--navy);
  position: relative;
  transition: background 0.15s;
}
a.bar:hover .bar-fill, a.bar:focus-visible .bar-fill, a.bar.on .bar-fill { background: var(--sky); }
.bar-n {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 4px;
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(12px, 1.4vw, 16px);
  color: var(--navy);
}
.bar-empty::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; background: var(--rule); border-radius: 50%; }
.ticks { position: relative; height: 26px; }
.ticks span { position: absolute; top: 6px; transform: translateX(-50%); font-family: var(--display); font-stretch: 85%; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.parts-strip { position: relative; height: 28px; margin-top: 4px; }
.parts-strip a {
  position: absolute;
  top: 0;
  height: 22px;
  min-width: 18px;
  border-top: 2px solid var(--sky);
  font-family: var(--display);
  font-stretch: 80%;
  font-weight: 700;
  font-size: 12px;
  color: var(--navy);
  text-decoration: none;
  text-align: center;
  padding-top: 2px;
}
.parts-strip a:hover { color: var(--sky); }
.chart figcaption { font-size: 15px; color: var(--ink-3); margin-top: 6px; max-width: 46em; }
.chart-tip {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-stretch: 90%;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px));
}

.contents-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.search { flex: 1 1 320px; }
.search input {
  width: 100%;
  font: inherit;
  font-size: 18px;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-hi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2345443f' stroke-width='2'%3E%3Ccircle cx='8.5' cy='8.5' r='6'/%3E%3Cpath d='m13 13 5 5'/%3E%3C/svg%3E") no-repeat 14px center;
  color: var(--ink);
}
.search-count { margin: 0; font-family: var(--display); font-stretch: 90%; font-size: 15px; color: var(--ink-2); }

.frontmatter { list-style: none; margin: 0 0 8px; padding: 0; border-top: 2px solid var(--ink); }
.frontmatter li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 20px; }
.frontmatter li > span:not(.entry-meta) { color: var(--ink-3); font-style: italic; font-size: 17px; }
.frontmatter .entry-meta { margin-left: auto; }

.part { margin-top: 40px; }
.part-head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.part-n { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 44px; line-height: 0.9; color: #fff; background: var(--sky); padding: 6px 10px 2px; min-width: 52px; text-align: center; }
.part-head h3 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 26px; line-height: 1.1; margin: 0 0 4px; }
.part-head h3 span { color: var(--navy); font-weight: 700; }
.part-head p { margin: 0; font-size: 17px; color: var(--ink-2); line-height: 1.45; }
.part-count { font-family: var(--display); font-stretch: 85%; font-size: 14px; color: var(--ink-3); white-space: nowrap; padding-top: 6px; }
@media (max-width: 600px) {
  .part-head { grid-template-columns: auto 1fr; }
  .part-count { grid-column: 2; padding-top: 0; }
}

.entries { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.entry time { font-family: var(--display); font-stretch: 85%; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.entry-title { font-size: 19px; line-height: 1.3; font-weight: 500; }
.entry-title a { text-decoration: none; }
.entry-title a:hover { text-decoration: underline; }
.entry-dek { font-size: 15.5px; line-height: 1.4; color: var(--ink-3); font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry-meta { font-family: var(--display); font-stretch: 88%; font-size: 13px; color: var(--ink-3); white-space: nowrap; text-align: right; }
.read-tag { font-weight: 700; color: var(--navy); }
.has-sample { background: linear-gradient(90deg, rgba(91, 154, 213, 0.12), transparent 70%); }
.entry.flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: rgba(91, 154, 213, 0.45); } to { background: transparent; } }
@media (max-width: 700px) {
  .entry { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
  .entry-meta { text-align: left; white-space: normal; }
  .entry time { order: -1; }
}

.part.collapsed .entry.extra { display: none; }
.more {
  margin-top: 12px;
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: none;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  padding: 10px 16px;
  min-height: 44px;
  cursor: pointer;
}
.more:hover { background: var(--navy); color: #fff; }
.searching .more { display: none; }
.entry.miss, .part.miss { display: none !important; }
.contents-end { margin: 28px 0 0; color: var(--ink-3); font-style: italic; }

/* ---------- Reading shelf ---------- */

.shelf { padding: clamp(56px, 8vw, 100px) 0; background: var(--paper-lo); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  background: var(--paper-hi);
  border: 1px solid var(--rule);
  border-top: 5px solid var(--sky);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card:nth-child(2n) { border-top-color: var(--navy); }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -14px rgba(30, 25, 10, 0.4); color: var(--ink); text-decoration: none; }
.card-when { font-family: var(--display); font-stretch: 88%; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.card-title { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 25px; line-height: 1.1; }
.card-dek { font-size: 16px; line-height: 1.45; color: var(--ink-2); font-style: italic; }
.card-foot { margin-top: auto; padding-top: 8px; font-family: var(--display); font-stretch: 88%; font-size: 14px; color: var(--ink-3); }

/* ---------- Author ---------- */

.author { padding: clamp(64px, 9vw, 120px) 0; }
.author-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.portrait { margin: 0; position: relative; }
.portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--sky); z-index: -1; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.author-quote { margin: 32px 0 0; padding: 20px 0 0 22px; border-left: 4px solid var(--navy); }
.author-quote p { margin: 0 0 8px; font-size: 24px; line-height: 1.35; font-style: italic; }
.author-quote footer { font-family: var(--display); font-stretch: 90%; font-size: 14px; }
@media (max-width: 820px) {
  .author-in { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; margin-right: 18px; }
}

/* ---------- Reserve ---------- */

.reserve { background: var(--paper-hi); border-top: 2px solid var(--ink); padding: clamp(64px, 9vw, 120px) 0; }
.reserve-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.promises { list-style: none; padding: 0; margin: 24px 0 32px; }
.promises li { padding: 8px 0 8px 32px; position: relative; border-bottom: 1px solid var(--rule); }
.promises li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 14px; height: 8px; border-left: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(-45deg); }
.reserve-cover { margin: 0; max-width: 200px; }
.reserve-cover img { transform: rotate(-2deg); box-shadow: 0 16px 30px -14px rgba(30, 25, 10, 0.45); }
@media (max-width: 860px) {
  .reserve-in { grid-template-columns: 1fr; }
  .reserve-cover { display: none; }
}

.form { background: var(--paper); border: 1px solid var(--rule); border-top: 6px solid var(--navy); padding: clamp(20px, 4vw, 36px); }
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-family: var(--display); font-stretch: 88%; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; margin-bottom: 6px; padding: 0; }
.opt { font-weight: 400; color: var(--ink-3); }
.field input:not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 18px;
  padding: 11px 14px;
  border: 1px solid #b9ad94;
  border-radius: var(--radius);
  background: var(--paper-hi);
  color: var(--ink);
  min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--err); background: #fff6f4; }
.field-row { display: grid; grid-template-columns: 0.6fr 1fr; gap: 16px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px 10px 40px;
  border: 1px solid #b9ad94;
  border-radius: var(--radius);
  background: var(--paper-hi);
  font-family: var(--display);
  font-stretch: 88%;
  font-weight: 600;
  font-size: 16px;
  position: relative;
}
.choice span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2px solid var(--ink-3); border-radius: 50%; background: #fff; }
.choice input:checked + span { border-color: var(--navy); background: #e8eef9; box-shadow: inset 0 0 0 1px var(--navy); }
.choice input:checked + span::before { border-color: var(--navy); background: radial-gradient(var(--navy) 0 4px, #fff 5px); }
.choice input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.hint { font-size: 15px; color: var(--ink-3); margin: 8px 0 0; line-height: 1.4; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 20px; cursor: pointer; font-size: 17px; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px 0 0; font-size: 16px; min-height: 1.4em; }
.form-status.err { color: var(--err); }
.field-err { display: block; color: var(--err); font-size: 15px; margin-top: 6px; }
@media (max-width: 480px) {
  .choices { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

.done { background: var(--paper); border: 1px solid var(--rule); border-top: 6px solid var(--sky); padding: clamp(24px, 4vw, 40px); }
.done:focus { outline: none; }
.share-lead { font-family: var(--display); font-stretch: 88%; font-weight: 700; margin: 24px 0 10px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { font-family: var(--display); font-stretch: 88%; font-weight: 600; font-size: 15px; padding: 9px 14px; min-height: 42px; border: 1px solid var(--navy); color: var(--navy); background: transparent; border-radius: var(--radius); text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; }
.share a:hover, .share button:hover { background: var(--navy); color: #fff; }

/* ---------- FAQ & footer ---------- */

.faq { padding: clamp(48px, 6vw, 80px) 0; }
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; border-top: 2px solid var(--ink); }
.qa div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.qa dt { font-family: var(--display); font-stretch: 82%; font-weight: 800; font-size: 21px; margin-bottom: 6px; }
.qa dd { margin: 0; color: var(--ink-2); font-size: 18px; }
@media (max-width: 700px) { .qa { grid-template-columns: 1fr; } }

.foot { background: var(--ink); color: #cfcabe; padding: 44px 0 52px; font-size: 16px; }
.foot a { color: #fff; }
.foot p { margin: 0 0 10px; max-width: 52em; }
.foot-title { color: #fff; }
.wordmark-inline { font-family: var(--display); font-stretch: 75%; font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; margin-right: 6px; color: var(--sky-soft); }
.fine { font-size: 14px; color: #8f8a7e; }

/* ---------- Reading pages ---------- */

.piece { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) 24px; }
.piece-head { border-bottom: 2px solid var(--ink); padding-bottom: 24px; margin-bottom: 36px; }
.piece-head h1 { font-family: var(--display); font-stretch: 78%; font-weight: 800; font-size: clamp(36px, 6vw, 60px); line-height: 1.02; margin: 0 0 16px; text-wrap: balance; }
.piece-dek { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.4; font-style: italic; color: var(--ink-2); margin: 0 0 18px; }
.piece-by { font-family: var(--display); font-stretch: 88%; font-size: 15px; color: var(--ink-3); margin: 0; }
.piece-body { font-size: 20px; line-height: 1.7; }
.piece-body p { margin: 0 0 1.05em; }
.piece-body > p:first-child::first-letter {
  float: left;
  font-family: var(--display);
  font-stretch: 72%;
  font-weight: 800;
  font-size: 4.4em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  color: var(--navy);
}
.piece-body h2 { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 27px; line-height: 1.15; margin: 1.8em 0 0.6em; }
.piece-body h3 { font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 20px; margin: 1.5em 0 0.5em; }
.piece-body a { word-break: break-word; }
.piece-body .credit { font-family: var(--display); font-stretch: 88%; font-size: 15px; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 2em; }
.piece-body .signoff { font-style: italic; margin-top: 1.6em; }
.piece-from { font-family: var(--display); font-stretch: 88%; font-size: 15px; color: var(--ink-3); margin: 28px 0 0; }

.after { max-width: 720px; margin: 0 auto; padding: 24px var(--gutter) 80px; }
.after-box { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; background: var(--paper-hi); border: 1px solid var(--rule); border-top: 6px solid var(--navy); padding: 24px; margin-bottom: 44px; }
.after-box img { transform: rotate(-2deg); box-shadow: 0 10px 20px -10px rgba(30, 25, 10, 0.5); }
.after-box p { margin: 0 0 10px; font-size: 17px; }
.after-box .eyebrow { margin-bottom: 4px; }
.after-title { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 26px !important; line-height: 1.1; }
@media (max-width: 520px) { .after-box { grid-template-columns: 1fr; } .after-box img { max-width: 120px; } }
.next { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.next li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 19px; }
.next span { font-family: var(--display); font-stretch: 88%; font-size: 14px; color: var(--ink-3); white-space: nowrap; }

/* ---------- Simple & admin pages ---------- */

.simple-in { padding-top: clamp(48px, 8vw, 100px); padding-bottom: 100px; min-height: 60vh; }
.simple-in > p { max-width: 40em; }
.simple-in form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.admin-sum { font-family: var(--display); font-stretch: 90%; font-size: 17px; margin: 0 0 8px; }
.warn { color: var(--err); font-family: var(--display); font-size: 15px; margin-left: 12px; }
.admin-table { overflow-x: auto; margin-top: 24px; border-top: 2px solid var(--ink); }
.admin-table table { border-collapse: collapse; width: 100%; font-size: 15px; font-family: var(--display); font-stretch: 92%; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.admin-table th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.admin-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table tr.x td { color: var(--ink-3); text-decoration: line-through; }
.admin-table tr.x td:last-child { text-decoration: none; }
