/* Culture Knights — hand-written, no framework. Light by default, dark via prefers-color-scheme
   unless the visitor picks a theme (html[data-theme], set by the header toggle). */

:root {
  color-scheme: light dark;

  --bg: #f6efe2;
  --bg-soft: #efe5d0;
  --surface: #fffaf0;
  --ink: #1d1a16;
  --muted: #5d544a;
  --rule: #d9cbb0;

  --red: #d30d26;
  --red-ink: #a80a1f;
  --oxblood: #5c0a14;
  --oxblood-deep: #3a060d;
  --gold: #b8921f;
  --gold-bright: #e6c76a;
  --gold-ink: #7a5c0a;
  --on-dark: #f6efe2;
  --focus: #0b57d0;

  --chip-on-bg: var(--oxblood);
  --chip-on-fg: #f6efe2;
  --shadow: 0 1px 2px rgb(40 20 10 / 0.12), 0 6px 16px rgb(40 20 10 / 0.12);
  --shadow-lift: 0 2px 4px rgb(40 20 10 / 0.16), 0 14px 28px rgb(40 20 10 / 0.2);

  --display: 'Cinzel', 'Trajan Pro', 'Palatino Linotype', Palatino, Georgia, serif;
  --text: 'EB Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;

  --max: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4.25rem;
}

:root[data-theme='light'] { color-scheme: light; }

/* The dark palette appears twice: once for the system preference (unless the visitor forced
   light) and once for a forced dark. Keep the two blocks identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #14090b;
    --bg-soft: #1c0e11;
    --surface: #241217;
    --ink: #f1e8d6;
    --muted: #b9ab95;
    --rule: #3d2a2e;

    --red: #ff4d5e;
    --red-ink: #ff7a88;
    --gold: #d9b44a;
    --gold-ink: #e6c76a;
    --focus: #8ab4ff;

    --chip-on-bg: var(--gold-bright);
    --chip-on-fg: #14090b;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 6px 16px rgb(0 0 0 / 0.45);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.55), 0 14px 28px rgb(0 0 0 / 0.6);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;

  --bg: #14090b;
  --bg-soft: #1c0e11;
  --surface: #241217;
  --ink: #f1e8d6;
  --muted: #b9ab95;
  --rule: #3d2a2e;

  --red: #ff4d5e;
  --red-ink: #ff7a88;
  --gold: #d9b44a;
  --gold-ink: #e6c76a;
  --focus: #8ab4ff;

  --chip-on-bg: var(--gold-bright);
  --chip-on-fg: #14090b;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 6px 16px rgb(0 0 0 / 0.45);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.55), 0 14px 28px rgb(0 0 0 / 0.6);
}

/* --- base ---------------------------------------------------------------- */

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.2rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1em; }

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

a {
  color: var(--red-ink);
  text-underline-offset: 0.2em;
}

a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold-bright); color: #1d1a16; }

.muted { color: var(--muted); }

.container {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.eyebrow {
  display: block;
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--oxblood);
  color: var(--on-dark);
  transition: top 0.15s;
}

.skip-link:focus { top: 0.75rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 4px double var(--gold);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), 100% - 2 * var(--gutter));
  min-height: var(--header-h);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--red-ink);
  text-decoration: none;
}

.brand-crest { display: block; height: 44px; width: auto; }

/* The crest ships as a light and a dark image; show the one matching the active theme. */
.crest-dark { display: none !important; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .crest-light { display: none !important; }
  :root:not([data-theme='light']) .crest-dark { display: block !important; }
}

:root[data-theme='dark'] .crest-light { display: none !important; }
:root[data-theme='dark'] .crest-dark { display: block !important; }

.brand-name {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Phones: crest only. The name stays in the DOM, visually hidden, so the link keeps its label. */
@media (max-width: 40em) {
  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a,
.menu-panel a {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-block: 0.3rem;
}

.nav-links a:hover,
.menu-panel a:hover { border-bottom-color: var(--gold); color: var(--ink); }

.nav-links a[aria-current],
.menu-panel a[aria-current] { color: var(--red-ink); border-bottom-color: var(--red); }

.menu summary {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  list-style: none;
  cursor: pointer;
  border-radius: 0.4rem;
}

.menu summary::-webkit-details-marker { display: none; }

/* Small: it lives inside both navs (inline on desktop, in the hamburger panel on phones). */
.theme-toggle {
  display: grid;
  place-items: center;
  /* Same box as a nav link (line height + padding + underline) so the underlines line up. */
  min-height: calc(0.85rem * 1.6 + 0.6rem + 2px);
  padding: 0.3rem 0.25rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
}

.theme-toggle:hover { border-bottom-color: var(--gold); }
/* Both icons share one grid cell and crossfade, turning as they go. Caps sit a little above the
   middle of a link's line box, so --lift raises the icons to share their centre line. */
.theme-toggle {
  --lift: -1.7px;
}

.theme-toggle svg {
  grid-area: 1 / 1;
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .icon-moon { opacity: 1; transform: translateY(var(--lift)); }
.theme-toggle .icon-sun { opacity: 0; transform: translateY(var(--lift)) rotate(-90deg) scale(0.4); }

/* Sit closer to the links than their own 2rem gap. */
.nav-links .theme-toggle { margin-left: -1rem; }

/* Moon in light mode (click for dark), sun in dark mode (click for light). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .icon-sun { opacity: 1; transform: translateY(var(--lift)); }
  :root:not([data-theme='light']) .theme-toggle .icon-moon { opacity: 0; transform: translateY(var(--lift)) rotate(90deg) scale(0.4); }
}

:root[data-theme='dark'] .theme-toggle .icon-sun { opacity: 1; transform: translateY(var(--lift)); }
:root[data-theme='dark'] .theme-toggle .icon-moon { opacity: 0; transform: translateY(var(--lift)) rotate(90deg) scale(0.4); }

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-icon { position: relative; }
.menu-icon::before,
.menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }

.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu[open] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem var(--gutter);
  background: var(--bg);
  border-bottom: 4px double var(--gold);
  box-shadow: var(--shadow);
}

@media (min-width: 42em) {
  .nav-links { display: flex; }
  .menu { display: none; }
}

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

.hero {
  position: relative;
  color: var(--on-dark);
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgb(230 199 106 / 0.05) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(-45deg, rgb(230 199 106 / 0.05) 0 1px, transparent 1px 28px),
    radial-gradient(ellipse at 50% 0%, #8a1020 0%, var(--oxblood) 55%, var(--oxblood-deep) 100%);
  border-bottom: 6px double var(--gold-bright);
}

.hero-inner {
  width: min(48rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.seal {
  display: grid;
  place-items: center;
  width: 15rem;
  height: 15rem;
  margin: 0 auto 2rem;
  background: #f6efe2;
  border-radius: 50%;
  border: 4px solid var(--gold-bright);
  box-shadow: 0 0 0 6px var(--oxblood), 0 0 0 7px var(--gold-bright), 0 18px 40px rgb(0 0 0 / 0.45);
}

.seal-crest { display: block; height: 10.5rem; width: auto; }

.hero .eyebrow { color: var(--gold-bright); }

.hero h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 6.4vw, 3.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
}

.motto { margin: 0 auto 2rem; max-width: 34rem; }

.motto p {
  margin-bottom: 0.4rem;
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  font-style: italic;
  line-height: 1.4;
  text-wrap: balance;
}

.motto footer { color: var(--gold-bright); font-size: 1rem; letter-spacing: 0.04em; }
.motto cite { font-style: italic; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--oxblood-deep);
  background: var(--gold-bright);
  border: 1px solid var(--gold-bright);
  border-radius: 0.2rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
  transition: background 0.15s, box-shadow 0.15s;
}

/* Hover must not move the button: a lift would slide it out from under a pointer
   resting on its edge, dropping :hover and making it flicker. */
.btn:hover { background: #f2d985; color: var(--oxblood-deep); box-shadow: 0 6px 16px rgb(0 0 0 / 0.3); }

.btn-ghost { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
.btn-ghost:hover { background: rgb(230 199 106 / 0.14); color: inherit; box-shadow: none; }

/* --- ornaments & section banners ----------------------------------------- */

.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block: 2rem;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament::after { transform: scaleX(-1); }

.ornament span {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 2rem;
  font-size: clamp(1.15rem, 3.2vw, 1.6rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-ink);
}

.banner::before,
.banner::after {
  content: '';
  flex: 1;
  height: 6px;
  border-block: 1px solid var(--gold);
}

.banner span { text-align: center; }

/* --- home sections ------------------------------------------------------- */

.stats {
  display: grid;
  gap: 1.5rem;
  margin-block: 3rem;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  text-align: center;
}

.stat-list > div { display: flex; flex-direction: column-reverse; justify-content: center; }

.stat-list dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--red-ink);
}

.stat-list dt {
  font-size: clamp(0.8rem, 2.4vw, 1rem);
  color: var(--muted);
  font-style: italic;
}

.latest {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  border-radius: 0.3rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

/* Lift the cover, not the card, so the hovered box never moves. */
.latest:hover { color: var(--ink); box-shadow: var(--shadow-lift); }
.latest:hover .cover-frame { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.latest .cover-frame { flex: 0 0 5.5rem; }
.latest-text { display: flex; flex-direction: column; line-height: 1.35; }
.latest-text strong { font-family: var(--display); font-size: 1.05rem; color: var(--red-ink); }

@media (min-width: 52em) {
  .stats { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 3rem; }
}

.history,
.knights { margin-block: 4.5rem; }

.history-grid { display: grid; gap: 2rem; align-items: center; }

@media (min-width: 52em) {
  .history-grid { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
}

.lede { font-size: 1.5rem; line-height: 1.35; color: var(--red-ink); }

.pull {
  margin: 1.5rem 0 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: 6px solid var(--red);
}

.frame {
  margin: 0;
  padding: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}

.frame img { display: block; width: 100%; outline: 1px solid var(--rule); }

.knight-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem clamp(1.5rem, 5vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.knight-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--ink);
  text-decoration: none;
}

.knight-list strong {
  margin-top: 0.75rem;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.knight-list a:hover strong { color: var(--red-ink); }

.portrait-ring {
  display: inline-block;
  padding: 5px;
  line-height: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--gold-bright), var(--gold), #8a6a12, var(--gold), var(--gold-bright));
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.knight-list a:hover > .portrait-ring { transform: scale(1.05); box-shadow: var(--shadow-lift); }

.portrait {
  display: block;
  width: 10rem;
  height: 10rem;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg);
}

.chooser-card .portrait { width: 4.5rem; height: 4.5rem; border-width: 2px; }
.portrait-xl .portrait { width: min(11rem, 44vw); height: min(11rem, 44vw); }

/* --- covers & grids ------------------------------------------------------ */

.cover-frame {
  display: block;
  aspect-ratio: 2 / 3;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cover { display: block; width: 100%; height: 100%; object-fit: cover; }

.cover-missing {
  display: grid;
  place-items: center;
  padding: 0.75rem;
  text-align: center;
  font-family: var(--display);
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--on-dark);
  background: linear-gradient(160deg, #8a1020, var(--oxblood-deep));
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 2rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.book-card a {
  display: block;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
}

.book-card a:hover .cover-frame,
.book-card a:focus-visible .cover-frame { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.book-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
}

.book-card a:hover .book-card-title { color: var(--red-ink); }

.book-card-meta { display: block; margin-top: 0.15rem; font-size: 0.9rem; color: var(--muted); line-height: 1.3; }

/* Phones: three smaller columns, with chooser and date stacked under the title. */
@media (max-width: 40em) {
  .book-grid { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 1.4rem 0.75rem; }
  .cover-frame { padding: 3px; }
  .book-card-title { margin-top: 0.5rem; font-size: 0.95rem; line-height: 1.2; }
  .book-card-meta { font-size: 0.78rem; line-height: 1.25; }
  .book-card-meta span { display: block; }
  .book-card-meta .sep { display: none; }
}

/* --- books index --------------------------------------------------------- */

.page-head,
.member-head,
.not-found { text-align: center; }

.page-head { padding-top: 3rem; }
.page-head h1,
.member-head h1,
.not-found h1 { font-size: clamp(1.9rem, 5vw, 3rem); color: var(--red-ink); text-wrap: balance; }

.member-head { padding-top: 3rem; }
.member-head .portrait-ring { margin-bottom: 1.25rem; }
.member-head h1 { letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.2em; }

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-block: 2rem 0.5rem;
  padding-block: 1rem;
  border-block: 1px solid var(--rule);
}

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

.chip {
  padding: 0.4rem 1.1rem;
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.chip:hover { background: var(--bg-soft); }

.chip[aria-pressed='true'] {
  background: var(--chip-on-bg);
  color: var(--chip-on-fg);
  border-color: var(--chip-on-bg);
}

.sort { display: flex; align-items: center; gap: 0.75rem; }

.sort-label {
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Two chips fused into one pill; the pressed one is filled like the chooser chips. */
.segmented {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 999px;
}

.segmented .chip { border: 0; border-radius: 0; }

.year { margin-block: 2.5rem; }

.year-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--gold-ink);
}

.year-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

.empty { text-align: center; margin-block: 3rem; }

/* --- book page ----------------------------------------------------------- */

.book { padding-block: 1.5rem 3rem; }

.crumbs { margin-bottom: 1.5rem; font-size: 0.95rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red-ink); }

.book-layout { display: grid; gap: 2rem; }

.book-side { justify-self: center; width: min(17rem, 70vw); }
.cover-large { padding: 8px; box-shadow: var(--shadow-lift); }

@media (max-width: 40em) {
  .book-side { width: min(11rem, 46vw); }
  .cover-large { padding: 5px; }
}

@media (min-width: 52em) {
  .book-layout { grid-template-columns: 20rem 1fr; gap: 3.5rem; align-items: start; }
  .book-side { width: 100%; position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.book-main h1 {
  margin-bottom: 0.25em;
  font-size: clamp(1.8rem, 4.4vw, 2.9rem);
  color: var(--red-ink);
  text-wrap: balance;
}

.byline { margin-bottom: 1.25rem; font-size: 1.4rem; font-style: italic; }

.facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin: 0 0 1rem; }
.facts div { display: flex; flex-direction: column; }

.facts dt {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd { margin: 0; font-size: 1.2rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }

.tags li {
  padding: 0.1rem 0.8rem;
  font-size: 0.95rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
}

.chooser-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.75rem 0.6rem 0.6rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.chooser-card:hover { color: var(--ink); box-shadow: var(--shadow-lift); }
.chooser-card .eyebrow { margin: 0; font-size: 0.68rem; }
.chooser-card strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; }

.prose { max-width: 42rem; }

.description h3 {
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.description h3 + p::first-letter {
  float: left;
  margin: 0.05em 0.1em 0 0;
  font-family: var(--display);
  font-size: 3.7em;
  font-weight: 700;
  line-height: 0.82;
  color: var(--red);
}

.pager {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 4px double var(--gold);
}

.pager a {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0.3rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pager a:hover { color: var(--ink); border-color: var(--gold); box-shadow: var(--shadow); }
.pager strong { font-family: var(--display); font-size: 1.05rem; color: var(--red-ink); }
.pager .eyebrow { margin-bottom: 0.2rem; }
.pager-next { text-align: right; }
.pager-spacer { display: none; }

@media (min-width: 42em) {
  .pager { grid-template-columns: 1fr 1fr; }
  .pager-next { grid-column: 2; }
}

/* --- 404 ----------------------------------------------------------------- */

.not-found { padding-block: clamp(3rem, 10vw, 6rem); }
.not-found-crest { display: block; margin: 0 auto 1.5rem; height: 10rem; width: auto; }
.not-found .hero-actions { margin-top: 1.5rem; }

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

.site-footer {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin: 4rem auto 0;
  padding-bottom: 2.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

/* --- motion -------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
