/* Dake Publishing — production stylesheet (from the approved static rebuild)
   Palette: warm ivory, deep navy, deep green, restrained gold. No external fonts. */

:root {
  --ivory: #f7f2e7;
  --paper: #fffcf5;
  --parchment: #efe7d6;
  --navy: #1b2940;
  --navy-deep: #131e30;
  --green: #22433a;
  --gold: #a07d45;
  --gold-soft: #c9ad7c;
  --ink: #23252a;
  --muted: #5b5850;
  --rule: #e1d8c4;
  --focus: #2f5f9e;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Georgia", serif;
  --display: "Baskerville", "Libre Baskerville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(27, 41, 64, .06), 0 8px 24px rgba(27, 41, 64, .08);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

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

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

a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3, .h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; font-family: var(--sans); font-size: .95rem;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}

.lead { font-size: 1.28rem; color: var(--muted); max-width: 40em; }

.rule-ornament {
  display: flex; align-items: center; gap: .9rem; color: var(--gold); margin: 0 0 1.25rem;
}
.rule-ornament::before, .rule-ornament::after { content: ""; height: 1px; width: 2.5rem; background: var(--gold-soft); }
.rule-ornament--center { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-size: .92rem; font-weight: 600; letter-spacing: .04em;
  padding: .85rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--navy); background: transparent; color: var(--navy);
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn--ghost { border-color: var(--rule); }
.btn--light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--gold:hover { background: #8a6a37; border-color: #8a6a37; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  min-height: 88px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }
.site-header .nav-toggle { color: var(--paper); }
@media (min-width: 961px) {
  .site-nav > ul > li > a,
  .site-nav > ul > li > .subnav-toggle { color: var(--paper); }
  .site-nav > ul > li > a[aria-current="page"] { color: var(--gold-soft); }
  .site-nav > ul > li > a:hover { color: var(--navy); }
}

.nav-toggle {
  display: none;
  font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .05em;
  background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  color: var(--navy); padding: .55rem .9rem; cursor: pointer; align-items: center; gap: .55rem;
}
.nav-toggle__bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .2s, opacity .2s;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: .25rem; }
.site-nav a, .subnav-toggle {
  font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--navy);
  text-decoration: none; padding: .6rem .8rem; display: inline-block; border-radius: var(--radius);
}
.site-nav a:hover { color: var(--green); background: var(--parchment); }
.site-nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

.has-sub { position: relative; display: flex; align-items: center; }
.has-sub > a { padding-right: .3rem; }
.subnav-toggle {
  background: none; border: 0; cursor: pointer; padding: .6rem .5rem; line-height: 1;
}
.subnav-toggle svg { width: 10px; height: 10px; transition: transform .2s; }
.subnav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 220px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .4rem; display: none;
}
.subnav a { display: block; padding: .6rem .8rem; }
.subnav-toggle[aria-expanded="true"] + .subnav { display: block; }
@media (hover: hover) and (min-width: 961px) {
  .has-sub:hover .subnav { display: block; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-header__inner { min-height: 72px; gap: .75rem; }
  .brand img { height: auto; width: min(46vw, 240px); }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px rgba(27, 41, 64, .12);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .site-nav > ul > li { border-bottom: 1px solid var(--rule); }
  .site-nav a { display: block; padding: .95rem .25rem; font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: .9rem; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .subnav-toggle { display: none; }
  .subnav, .subnav-toggle[aria-expanded] + .subnav { display: block; }
  .subnav {
    position: static; width: 100%; box-shadow: none; border: 0; border-left: 2px solid var(--gold-soft);
    margin: 0 0 .75rem .25rem; padding: 0 0 0 .5rem; background: transparent;
  }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--paper { background: var(--paper); border-block: 1px solid var(--rule); }
.section--navy { background: var(--navy); color: #e9e4d8; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: var(--gold-soft); }
.section--navy a:not(.btn) { color: #fff; }
.section--green { background: var(--green); color: #e6ece5; }
.section--green h2, .section--green h3 { color: #fff; }
.section--green .eyebrow { color: var(--gold-soft); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.75rem; }
.section-head > div { max-width: 42rem; }
.section-head h2 { margin-bottom: .35rem; }
.section-head p { color: var(--muted); margin: 0; }
.section--navy .section-head p { color: #cfd3db; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(to bottom, rgba(255,252,245,.0), rgba(255,252,245,.0)),
    var(--ivory);
}
.page-hero h1 { max-width: 18em; }
.page-hero .lead { margin-top: 1rem; }

.breadcrumb { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--gold-soft); }
.breadcrumb a { color: var(--muted); }

/* ---------- Home hero ---------- */
.hero {
  background: var(--navy);
  color: #e9e4d8;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  border-top: 1px solid rgba(201, 173, 124, .35);
  pointer-events: none;
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center; padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); }
.hero h1 span { display: block; color: var(--gold-soft); font-style: italic; font-weight: 500; }
.hero .eyebrow { color: var(--gold-soft); }
.hero p.lead { color: #d3d6dc; }
.hero__books {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: end;
  transform: rotate(-1.5deg);
}
.hero__books img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.hero__books a:nth-child(2) { transform: translateY(-1.75rem); }
.hero__books a:focus-visible { outline-color: var(--gold-soft); }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__books { max-width: 420px; transform: none; }
}

/* ---------- Book cards ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.book-grid--featured { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(2rem, 4vw, 3rem); }

.book-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.book-card:hover, .book-card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.book-card__link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.book-card__link:focus-visible { outline-offset: -3px; }
.book-card__cover {
  background: var(--parchment);
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex; justify-content: center;
  border-bottom: 1px solid var(--rule);
}
.book-card__cover img {
  width: 100%; max-width: 200px; aspect-ratio: 2 / 3; object-fit: cover;
  box-shadow: 0 6px 18px rgba(27, 41, 64, .22); border-radius: 1px;
}
.book-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.book-card__title { font-size: 1.25rem; margin: .2rem 0 .25rem; }
.book-card__format { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin: 0 0 .6rem; }
.book-card__desc { font-size: 1rem; color: var(--muted); margin: .35rem 0 1.1rem; }
.book-card__more {
  margin-top: auto; font-family: var(--sans); font-size: .85rem; font-weight: 600;
  color: var(--green); letter-spacing: .03em;
}
.book-grid--featured .book-card__cover { padding: 2.5rem 2.5rem 2rem; }
.book-grid--featured .book-card__body { padding: 1.75rem 2rem 2.1rem; }
.book-grid--featured .book-card__title { font-size: 1.5rem; }

.badge {
  display: inline-block; align-self: flex-start;
  font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 2px; margin: 0;
  background: #e4ece6; color: var(--green);
}
.badge--coming { background: #f2e9d6; color: #7a5b2b; }
.badge--revival { background: #e6e9f0; color: var(--navy); }

/* ---------- Catalog controls ---------- */
.catalog-controls {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 2rem; align-items: end;
  padding: 1.5rem; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  margin-bottom: 3rem;
}
@media (max-width: 760px) { .catalog-controls { grid-template-columns: 1fr; } }
.field label, .filter-label { display: block; font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: .45rem; letter-spacing: .03em; }
.field input[type="search"], .field input[type="text"] {
  width: 100%; font: inherit; font-size: 1.05rem; padding: .75rem 1rem;
  border: 1px solid #cfc5ae; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.field input:focus-visible { outline-offset: 0; border-color: var(--focus); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button {
  font-family: var(--sans); font-size: .88rem; font-weight: 500;
  padding: .6rem 1rem; border-radius: 999px; border: 1px solid #cfc5ae; background: #fff; color: var(--navy); cursor: pointer;
}
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.catalog-count { font-family: var(--sans); font-size: .85rem; color: var(--muted); grid-column: 1 / -1; margin: 0; }

.catalog-group + .catalog-group { margin-top: 4.5rem; }
.catalog-group__head { border-bottom: 1px solid var(--rule); padding-bottom: 1rem; margin-bottom: 2rem; }
.catalog-group__head h2 { font-size: 1.9rem; margin-bottom: .3rem; }
.catalog-group__note { color: var(--muted); margin: 0; max-width: 46rem; font-size: 1rem; }

.empty-state { text-align: center; padding: 3rem 1rem; }

.quick-search { display: flex; gap: .6rem; max-width: 520px; margin-top: 1.5rem; }
.quick-search input {
  flex: 1; font: inherit; font-size: 1rem; padding: .75rem 1rem; border: 1px solid #cfc5ae; border-radius: var(--radius); background: #fff;
}

/* ---------- Book detail ---------- */
.detail { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.detail__cover { background: var(--parchment); padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--rule); border-radius: var(--radius); }
.detail__cover img { width: 100%; box-shadow: 0 14px 34px rgba(27, 41, 64, .25); }
.detail__format { font-family: var(--sans); color: var(--muted); margin-top: -.25rem; }
.detail__author { font-style: italic; color: var(--gold); font-size: 1.15rem; }
.detail__lead { font-size: 1.25rem; }
.detail__group-note { color: var(--muted); font-size: 1rem; border-left: 2px solid var(--gold-soft); padding-left: 1rem; }
.detail__actions { margin-top: 2rem; }
.detail__fine { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-top: .75rem; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } .detail__cover { max-width: 320px; } }

/* ---------- Generic blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--portrait { grid-template-columns: minmax(220px, 380px) 1fr; }
@media (max-width: 820px) { .split, .split--portrait { grid-template-columns: 1fr; } }

.portrait { position: relative; }
.portrait img { width: 100%; border-radius: 2px; filter: grayscale(.15) sepia(.12); box-shadow: var(--shadow); }
.portrait::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--gold-soft); z-index: -1;
}
.portrait figcaption { font-family: var(--sans); font-size: .82rem; color: var(--muted); margin-top: .8rem; letter-spacing: .04em; }
.portrait-wrap { position: relative; z-index: 0; padding: 14px 0 0 14px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.tile {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 2rem 1.9rem; position: relative;
}
.tile::before { content: ""; position: absolute; top: 0; left: 1.9rem; width: 2.5rem; height: 2px; background: var(--gold); }
.tile h3 { margin-top: .4rem; }
.tile p { color: var(--muted); font-size: 1.02rem; margin: 0; }
.tile__status { font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0 0 .25rem !important; }
.section--navy .tile, .section--green .tile { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.section--navy .tile p, .section--green .tile p { color: #cfd3db; }

.prose { font-size: 1.15rem; }
.prose p { margin-bottom: 1.25em; }
.prose h2 { margin-top: 2.25em; }
.prose blockquote {
  margin: 2rem 0; padding: .25rem 0 .25rem 1.5rem; border-left: 2px solid var(--gold);
  font-style: italic; color: var(--navy); font-size: 1.25rem;
}
.prose blockquote cite { display: block; font-style: normal; font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-top: .5rem; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--gold-soft); }
.timeline li { position: relative; padding: 0 0 2rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .45rem; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.timeline__year { font-family: var(--display); font-size: 1.5rem; color: var(--navy); display: block; line-height: 1.2; }
.timeline p { margin: .3rem 0 0; color: var(--muted); }

.works-list { columns: 2 260px; column-gap: 3rem; list-style: none; padding: 0; margin: 0; }
.works-list li { break-inside: avoid; padding: .7rem 0; border-bottom: 1px solid var(--rule); }

.dispensations { counter-reset: d; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.dispensations li {
  counter-increment: d; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.25rem;
  display: flex; gap: .9rem; align-items: baseline;
}
.dispensations li::before { content: counter(d); font-family: var(--display); color: var(--gold); font-size: 1.4rem; min-width: 1.2rem; }
.dispensations span { font-family: var(--sans); font-size: .78rem; color: var(--muted); display: block; }

.chart-figure { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(.75rem, 2vw, 1.5rem); }
.chart-figure__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chart-figure img { min-width: 900px; width: 100%; }
.chart-figure figcaption { font-family: var(--sans); font-size: .85rem; color: var(--muted); padding-top: .9rem; }

.notice {
  background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem; border-radius: var(--radius); font-size: 1rem;
}
.notice strong { color: var(--navy); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: .55rem 0 .55rem 1.75rem; position: relative; border-bottom: 1px solid var(--rule); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 20em; margin-inline: auto; }
.cta-band p { max-width: 36em; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9bfca; font-family: var(--sans); font-size: .92rem; }
.site-footer a { color: #e9e4d8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding: 4rem 0 3rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand p { max-width: 22rem; margin-top: 1rem; }
.footer__wordmark { font-family: var(--display); font-size: 1.5rem; color: #fff; letter-spacing: .02em; }
.footer__grid h2 { font-family: var(--sans); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1rem; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: .55rem; }
.footer__private { font-size: .8rem; color: #8f97a5; display: block; }
.footer__base { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; color: #8f97a5; }
.footer__base p { margin: 0; }

.preview-banner {
  background: #3a3220; color: #f3e7cc; font-family: var(--sans); font-size: .8rem; text-align: center; padding: .45rem 1rem;
}
.preview-banner a { color: #fff; }

noscript .notice { margin: 1rem 0; }

/* ---------- Production additions ---------- */
[hidden] { display: none !important; }
.notice--spaced { margin-top: 3rem; }
.h2--flush { margin-top: 0; }
.flush { margin: 0; }
.chart-teaser { display: block; margin: 1.25rem 0 .5rem; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.chart-teaser img { width: 100%; height: auto; }
.chart-teaser:hover { border-color: var(--gold-soft); }
.book-card[hidden], .catalog-group[hidden] { display: none !important; }

/* Honest text-only cover for titles without a verified matching cover image (no artwork implied). */
.type-cover {
  width: 100%; max-width: 200px; aspect-ratio: 2 / 3; margin-inline: auto;
  display: flex; flex-direction: column; justify-content: space-between; text-align: center;
  padding: 1.1rem .9rem; background: var(--navy); color: #f3ead6;
  border: 1px solid var(--gold-soft); box-shadow: inset 0 0 0 5px var(--navy), inset 0 0 0 6px rgba(201, 173, 124, .55);
  font-family: var(--display); border-radius: 1px;
}
.type-cover__author { font-family: var(--sans); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); }
.type-cover__title { font-size: 1.15rem; line-height: 1.2; color: #fff; overflow-wrap: anywhere; }
.type-cover__format { font-family: var(--sans); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.detail__cover .type-cover { max-width: 100%; font-size: 1.3rem; }
.detail__cover .type-cover__title { font-size: 1.6rem; }

/* ---------- Pages migrated from WordPress (contact, testimony) ---------- */
.page-hero--navy { background: var(--navy); color: #e9e4d8; border-bottom-color: rgba(201,173,124,.35); }
.page-hero--navy h1 { color: #fff; }
.page-hero--navy .eyebrow { color: var(--gold-soft); }
.page-hero--navy .lead { color: #d3d6dc; }
.split--hero { grid-template-columns: minmax(0, 1fr) minmax(160px, 260px); }
@media (max-width: 820px) { .split--hero { grid-template-columns: 1fr; } }
.hero-portrait { margin: 0; max-width: 260px; }
.hero-portrait img { width: 100%; border: 8px solid #f5f0e5; box-shadow: 0 18px 36px rgba(0,0,0,.28); }
.section--parchment { background: var(--parchment); }
.section--gold { background: var(--gold); color: #fff; }
.section--gold h2 { color: #fff; }
.section--gold .eyebrow { color: var(--navy); }
.section--gold .btn--primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.center { text-align: center; }
.testimony p { color: #33404f; line-height: 1.8; }

.video { max-width: 700px; margin: 1.5rem auto 0; background: var(--navy); padding: 18px; border-radius: var(--radius); }
.video__play {
  width: 100%; aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
  background: var(--navy-deep); color: #fff; border: 1px solid rgba(201,173,124,.45); border-radius: 2px; cursor: pointer;
  font-family: var(--sans); font-size: 1.05rem; font-weight: 600;
}
.video__play small { display: block; font-weight: 400; font-size: .8rem; color: #cfd3db; margin-top: .25rem; }
.video__play:hover .video__icon { background: var(--gold); }
.video__icon { width: 68px; height: 68px; border-radius: 50%; background: rgba(201,173,124,.85); position: relative; }
.video__icon::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.video__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video__fallback { margin: .8rem 0 0; font-family: var(--sans); font-size: .9rem; }
.video__fallback a { color: #e9e4d8; }

.signup { margin-top: 2rem; }
.signup__form { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); }
.signup__fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.signup__fields[disabled] { opacity: .6; }
.field-group { border: 0; margin: 0 0 1.4rem; padding: 0; min-width: 0; }
.field-group legend, .signup .field > label { font-family: var(--sans); font-size: .92rem; font-weight: 600; color: var(--navy); margin-bottom: .5rem; padding: 0; }
.signup .field { margin-bottom: 1.4rem; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .name-row { grid-template-columns: 1fr; } }
.name-row .field { margin: 0; }
.name-row label { font-family: var(--sans); font-size: .82rem; color: var(--muted); display: block; margin-bottom: .3rem; }
.signup input[type="text"], .signup input[type="email"] {
  width: 100%; min-height: 48px; font: inherit; font-size: 1.05rem; padding: .6rem .9rem;
  border: 1px solid #cfc5ae; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.signup input[aria-invalid="true"] { border-color: #a3301f; box-shadow: 0 0 0 1px #a3301f; }
.choices { display: grid; gap: .25rem; }
.choice { display: flex; align-items: center; gap: .7rem; min-height: 44px; }
.choice input { width: 22px; height: 22px; flex: none; accent-color: var(--navy); margin: 0; }
.choice label { font-size: 1.02rem; cursor: pointer; padding: .35rem 0; }
.field--consent .choice { align-items: flex-start; }
.field--consent .choice input { margin-top: .45rem; }
.optional, .required { font-weight: 400; color: var(--muted); font-size: .85em; }
.field-error { color: #a3301f; font-family: var(--sans); font-size: .88rem; margin: .4rem 0 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup__actions { margin: .5rem 0 0; }
.signup__actions .btn { min-height: 48px; }
.signup__status { font-family: var(--sans); font-size: .95rem; margin: 1rem 0 0; min-height: 1.2em; }
.signup__status--error { color: #a3301f; font-weight: 600; }
.signup__done { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.signup__done:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.signup__done p { margin: 0; }

/* Static Scripture lists in the chart index share the chip look. */
ul.chart-chips { list-style: none; margin: .4rem 0 .6rem; padding: 0; }
