@import "/css/fonts.css";

/* ============================================================================
   SphereCaster Press — design system
   Locked Direction A book palette (CO-001): parchment grounds, warm near-black
   ink, gold for ornament/rules/sigil, and a single disciplined seal-red action.
   Cinzel for the display set, EB Garamond for body, Inter for UI labels.
   Squared corners. No gradients, no shadows (except a 1px hairline under the
   scrolled nav), no border-radius, no animation beyond 200ms hover transitions.
   ========================================================================== */

:root {
  /* Grounds (parchment) — locked Direction A book identity */
  --ground: #e8e2d0;
  --ground-raised: #f2ecdd;
  --ground-sunk: #dcd4c0;

  /* Ink */
  --ink: #0e0b07;
  --ink-soft: #5a5247;

  /* Gold (sacred / brand accent) */
  --gold: #c9a227;
  --gold-deep: #8a6516;

  /* Seal (single disciplined action color — the cast mark / wax) */
  --seal: #8e2b1a;
  --seal-hover: #7a2417;

  /* Dark surfaces (warm — matches the cover field) */
  --panel: #0e0b07;
  --panel-2: #1a1610;
  --on-panel: #e8e2d0;

  /* Lines (gilt-line motif) */
  --rule: #c9a227;

  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --display: "Cinzel", "EB Garamond", Georgia, serif;

  --measure: 36em;
  --measure-narrow: 65ch;
  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
::selection {
  background: var(--seal);
  color: var(--ground);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ground);
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 200;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Visually hidden but available to assistive technology */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Layout shell */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
main {
  flex: 1 0 auto;
  width: 100%;
}
.section {
  padding: clamp(48px, 8vw, 96px) 0;
}
.section--tight {
  padding: clamp(32px, 5vw, 56px) 0;
}
.section--bone {
  background: var(--ground-sunk);
}
.section--slate {
  background: var(--panel);
  color: var(--ground);
}

/* ── Type scale (display set in sans, substituting Neue Haas) ─────────────── */
.display-1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.25em;
}
.display-2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 0.3em;
}
.display-3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.12;
  margin: 0 0 0.4em;
}
.display-4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
.display-5 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

.kicker {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.kicker--accent {
  color: var(--ink);
}

.section-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.section--slate .section-label {
  border-color: var(--gold);
}

/* Editorial prose */
.prose {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  max-width: var(--measure-narrow);
}
.prose p {
  margin: 0 0 1.2em;
}
.prose em,
.ed-italic {
  font-style: italic;
}
.ed-display {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.35;
  max-width: 20em;
}
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  max-width: 30em;
}

/* ── Buttons & links (component §4.7) ────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn-primary {
  background: var(--seal);
  color: var(--ground-raised);
  border: 2px solid var(--seal);
}
.btn-primary:hover {
  background: var(--seal-hover);
  border-color: var(--seal-hover);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-secondary:hover {
  background: transparent;
  color: var(--gold-deep);
  border-color: var(--gold-deep);
}
.section--slate .btn-secondary {
  color: var(--ground);
  border-color: var(--ground);
}
.section--slate .btn-secondary:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.cta-link {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  padding-bottom: 2px;
}
.cta-link .arrow {
  margin-left: 2px;
}
.cta-link .label {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 200ms ease;
}
.cta-link:hover .label {
  border-bottom-color: var(--gold-deep);
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Primary nav (component §4.1) ────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ground);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.is-scrolled {
  border-bottom: 1px solid var(--ink);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
}
.lockup__mark {
  width: 44px;
  height: 44px;
  display: block;
}
.lockup__word {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav__primary {
  display: flex;
  gap: 28px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav__link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms ease;
}
.nav__link:hover,
.nav__link.is-active {
  border-bottom-color: var(--gold-deep);
}
.nav__utility {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}
.nav__overlay {
  display: none;
}

@media (max-width: 960px) {
  .nav__primary,
  .nav__utility {
    display: none;
  }
  .nav__toggle {
    display: block;
  }
  .nav__overlay {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: var(--ground);
    z-index: 150;
    flex-direction: column;
    padding: 80px var(--gutter);
    gap: 8px;
    overflow-y: auto;
  }
  .nav__overlay.is-open {
    display: flex;
  }
  .nav__overlay a {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: var(--ground);
    font-size: 22px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(232, 226, 208, 0.15);
  }
  .nav__overlay .nav__overlay-secondary a {
    font-size: 14px;
    color: rgba(232, 226, 208, 0.7);
    border: 0;
    padding: 6px 0;
  }
  .nav__close {
    position: absolute;
    top: 24px;
    right: var(--gutter);
    background: none;
    border: 0;
    color: var(--ground);
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }
}

/* ── Book hero (component §4.2) ──────────────────────────────────────────── */
.book-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.book-hero__cover {
  aspect-ratio: 2 / 3;
  background: var(--ground-sunk);
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.book-hero__meta {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-top: 24px;
  color: var(--ink);
  opacity: 0.7;
}
.book-hero__meta span::after {
  content: " · ";
}
.book-hero__meta span:last-child::after {
  content: "";
}

/* Placeholder cover */
.cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: var(--panel);
  color: var(--ground);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--ink);
}
.cover--bone {
  background: var(--ground-sunk);
  color: var(--ink);
}
.cover__mark {
  width: 40px;
  height: 40px;
  opacity: 0.9;
}
.cover__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.cover__series {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ── Book card (component §4.3) ──────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.book-card {
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.book-card__cover {
  background: var(--ground);
  padding: 0 8px;
  transition: transform 200ms ease;
}
.book-card:hover .book-card__cover {
  transform: translateY(-4px);
}
.book-card__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  margin: 18px 0 4px;
}
.book-card__subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  margin: 0 0 8px;
}
.book-card__author {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.book-card__price {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
}
.book-card__price.is-available {
  color: var(--gold-deep);
}
.book-card__price.is-forthcoming {
  font-style: italic;
  font-family: var(--serif);
  font-size: 16px;
}

/* ── Manifesto pull (component §4.4) ─────────────────────────────────────── */
.pull {
  background: var(--ground-sunk);
  padding: clamp(40px, 7vw, 64px) var(--gutter);
  text-align: center;
}
.pull blockquote {
  max-width: 480px;
  margin: 0 auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.35;
}
.pull cite {
  display: block;
  margin-top: 32px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ink);
  opacity: 0.7;
}

/* ── Journal card (component §4.5) ───────────────────────────────────────── */
.journal-list {
  border-top: 1px solid var(--rule);
}
.journal-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 200ms ease;
}
.journal-card__hed {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.15;
  margin: 0 0 8px;
}
.journal-card:hover .journal-card__hed {
  color: var(--gold-deep);
}
.journal-card__dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  margin: 0 0 12px;
  max-width: 50ch;
}
.journal-card__byline {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ── Author panel (component §4.6) ───────────────────────────────────────── */
.author-panel {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 40px 0;
}
.headshot {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--ground-sunk);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
  border: 1px solid var(--ink);
}
.headshot__mark {
  width: 40%;
  height: 40%;
  opacity: 0.5;
}

/* ── Form field (component §4.8) ─────────────────────────────────────────── */
.form {
  max-width: 540px;
}
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}
.form-field label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.form-field .req {
  color: var(--seal);
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--serif);
  font-size: 17px;
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  outline: none;
  transition: border-color 200ms ease;
  border-radius: 0;
  width: 100%;
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-field select {
  appearance: none;
  cursor: pointer;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 15px;
}
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-bottom: 2px solid var(--seal);
}
.form-field .error {
  font-family: var(--sans);
  font-style: italic;
  font-size: 13px;
  color: var(--seal);
  margin-top: 8px;
}
.form-radio {
  display: flex;
  gap: 24px;
}
.form-radio label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  margin: 0;
  cursor: pointer;
}
.form-radio input {
  width: auto;
  border: 0;
  accent-color: var(--gold-deep);
}
.hp {
  position: absolute;
  left: -9999px;
}
.form-confirm {
  border-left: 4px solid var(--gold);
  padding: 8px 0 8px 20px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 32px;
}

/* ── Footer (component §4.9) ─────────────────────────────────────────────── */
.footer {
  background: var(--panel);
  color: var(--ground);
  padding: clamp(48px, 7vw, 72px) 0;
  flex-shrink: 0;
}
.footer__cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}
.footer__brand .lockup__word {
  color: var(--ground);
}
.footer__about {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  max-width: 36ch;
  margin: 20px 0 0;
  opacity: 0.8;
}
.footer__col h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 16px;
  opacity: 0.6;
}
.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__col li {
  margin-bottom: 10px;
}
.footer__col a {
  font-family: var(--sans);
  font-size: 14px;
  text-decoration: none;
  color: var(--ground);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.footer__col a:hover {
  border-bottom-color: var(--ground);
}
.footer__attribution {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-top: 48px;
}
.footer__newsletter {
  margin-top: 24px;
}

/* ── Section divider (component §4.10) ───────────────────────────────────── */
.divider {
  display: flex;
  justify-content: center;
  margin: 64px 0;
}
.divider svg,
.divider img {
  width: 24px;
  height: 24px;
}

/* ── Hero / generic page header ──────────────────────────────────────────── */
.page-head {
  padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px);
}
.breadcrumbs {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 24px;
}
.breadcrumbs a {
  text-decoration: none;
  color: inherit;
}
.breadcrumbs a:hover {
  color: var(--gold-deep);
}
.breadcrumbs .sep {
  margin: 0 8px;
}

/* ── Toolbar (filters/sort) ──────────────────────────────────────────────── */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 16px;
  margin-bottom: 40px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.toolbar a {
  text-decoration: none;
  color: var(--ink);
  opacity: 0.6;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}
.toolbar a:hover,
.toolbar a.is-active {
  opacity: 1;
  border-bottom-color: var(--gold-deep);
}
.toolbar__group {
  display: flex;
  gap: 18px;
  align-items: center;
}
.toolbar__label {
  opacity: 0.4;
}

/* ── Book single ─────────────────────────────────────────────────────────── */
.book-detail {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.spec-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  font-family: var(--sans);
  font-size: 13px;
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.spec-list dt,
.spec-list .k {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}
.format-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.format-chip {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 8px 14px;
}
.sample {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  max-width: var(--measure-narrow);
  white-space: pre-wrap;
}

/* ── Bibliography rows ───────────────────────────────────────────────────── */
.biblio {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.biblio__row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}
.biblio__thumb {
  width: 96px;
}
.biblio__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 4px;
}
.biblio__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
}
.biblio__formats {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.fmt-in {
  color: var(--ink);
}
.fmt-out {
  color: var(--ink);
  opacity: 0.5;
}

/* ── Manifesto page ──────────────────────────────────────────────────────── */
.manifesto {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 120px) 0;
}
.manifesto__stanza {
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.4;
  margin: 0 0 64px;
  position: relative;
  padding-left: 28px;
}
.manifesto__stanza::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--gold);
}

/* ── Journal single ──────────────────────────────────────────────────────── */
.article {
  max-width: 65ch;
  margin: 0 auto;
}
.article__body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
}
.article__body p {
  margin: 0 0 1.3em;
}
.article__pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.35;
  border-left: 4px solid var(--gold);
  padding-left: 24px;
  margin: 40px 0;
}
.read-next {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.read-next a {
  color: var(--gold-deep);
  text-decoration: none;
}

/* ── Oracle ──────────────────────────────────────────────────────────────── */
.oracle {
  max-width: 760px;
  margin: 0 auto;
}
.oracle__log {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.oracle__turn {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
}
.oracle__turn .who {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  display: block;
  margin-bottom: 8px;
}
.oracle__turn.is-seeker .who {
  color: var(--on-panel);
}
.oracle__turn.is-oracle {
  border-left: 4px solid var(--gold);
  padding-left: 20px;
}
.oracle__turn.is-oracle .who {
  color: var(--gold);
}
.oracle__form {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.oracle__form .form-field {
  flex: 1;
  margin: 0;
}
.oracle__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.oracle__suggestions button {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  background: transparent;
  border: 1px solid var(--on-panel);
  padding: 8px 14px;
  cursor: pointer;
  color: var(--on-panel);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.oracle__suggestions button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--panel);
}
.oracle__status {
  font-family: var(--sans);
  font-size: 13px;
  font-style: italic;
  opacity: 0.6;
  min-height: 1.2em;
}

/* ── Misc utility ────────────────────────────────────────────────────────── */
.center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 24px);
  max-width: 40ch;
  margin: 0 0 8px;
}
.hub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.hub-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  text-decoration: none;
  color: var(--ink);
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}
.hub-list a:hover .display-3 {
  color: var(--gold-deep);
}
.hub-list .hub-dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  max-width: 32ch;
}
.author-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.author-tile {
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.author-tile .headshot {
  width: 320px;
  max-width: 100%;
}
.search-row {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.badge {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
  display: inline-block;
  margin-bottom: 8px;
}
.error-page {
  text-align: center;
  padding: clamp(64px, 12vw, 140px) 0;
}
.error-page__mark {
  width: 320px;
  max-width: 60vw;
  margin: 0 auto 32px;
}
.error-page__mark svg path,
.error-page__mark svg circle {
  fill: var(--gold);
}
.board-member {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
  max-width: 60ch;
}

/* Notify form on book page */
.notify {
  border-top: 1px solid var(--ink);
  margin-top: 24px;
  padding-top: 24px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .book-hero,
  .book-detail {
    grid-template-columns: 1fr;
  }
  .footer__cols {
    grid-template-columns: 1fr 1fr;
  }
  .author-tiles {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 17px;
  }
  .author-panel {
    grid-template-columns: 1fr;
  }
  .headshot {
    max-width: 240px;
  }
  .biblio__row {
    grid-template-columns: 72px 1fr;
  }
  .biblio__formats {
    grid-column: 1 / -1;
  }
  .footer__cols {
    grid-template-columns: 1fr;
  }
}

/* ── Print (manifesto + articles) ────────────────────────────────────────── */
@media print {
  .nav,
  .footer,
  .breadcrumbs,
  .oracle__form,
  .oracle__suggestions {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .manifesto__stanza::before {
    background: #000;
  }
}

/* ── Catalogue sort control (§3.2) ───────────────────────────────────────── */
.toolbar__sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toolbar__sort label {
  opacity: 0.4;
}
.toolbar__sort select {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 4px 18px 4px 2px;
  color: var(--ink);
}
.toolbar__sort-go {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 6px 14px;
  cursor: pointer;
  color: var(--ink);
}

/* ── Quantity field (§3.3) ───────────────────────────────────────────────── */
.qty-field input {
  max-width: 120px;
}

/* ── Bibliographic data panel (§3.3) ─────────────────────────────────────── */
.biblio-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  max-width: 820px;
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
}
.biblio-data > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.4);
}
.biblio-data dt {
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}
.biblio-data dd {
  margin: 0;
  text-align: right;
}
@media (max-width: 640px) {
  .biblio-data {
    grid-template-columns: 1fr;
  }
}

/* ── Empty / lost states ─────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: clamp(40px, 8vw, 96px) 0;
}
.empty-state > img {
  display: block;
  margin: 0 auto 24px;
}
.empty-state .dek {
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}
.empty-state--lost .lost-mark {
  width: clamp(180px, 40vw, 320px);
  height: auto;
  margin-bottom: 32px;
}

/* ── Footer meta row (§2.2) ──────────────────────────────────────────────── */
.footer__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(232, 226, 208, 0.18);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ground);
}
.footer__meta-mark {
  opacity: 0.85;
}
.footer__meta-sep {
  opacity: 0.5;
}

/* ── Modal / dialog — notify on publication (§6.6) ───────────────────────── */
.modal {
  border: 0;
  border-radius: 0;
  padding: 0;
  max-width: 460px;
  width: calc(100% - 40px);
  background: var(--ground);
  color: var(--ink);
}
.modal::backdrop {
  background: rgba(14, 11, 7, 0.86); /* --panel scrim */
}
.modal__panel {
  padding: clamp(24px, 4vw, 40px);
}
.modal__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.modal__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  margin: 0;
}
.modal__close {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  background: transparent;
  color: var(--ink);
  opacity: 0.6;
  cursor: pointer;
  padding: 4px;
}
.modal__close:hover {
  opacity: 1;
  color: var(--gold-deep);
}
