/* ==========================================================================
   Mark Boyle — markboylewrites.com
   Palette drawn from the smallholding: parchment, door green, ink, rust.
   ========================================================================== */

/* Self-hosted fonts (no third-party requests; the CSP allows only 'self') */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/fraunces-latin.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/fraunces-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/lora-latin.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lora-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }

:root {
  --parchment: #f4eedf;
  --parchment-deep: #e9e0c9;
  --paper: #fbf8f1;
  --ink: #1d1b17;
  --ink-soft: #4a463d;
  --muted: #6f695c;
  --green: #17402c;
  --green-deep: #0f2c1e;
  --green-bright: #1f6b43;
  --sage: #a8bf8a;
  --rust: #9c3d24;
  --rust-deep: #7e2f1a;
  --gold: #c9a45c;
  --line: rgba(29, 27, 23, 0.14);
  --line-light: rgba(244, 238, 223, 0.18);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, serif;
  --font-ui: "Inter", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --shadow-book: 0 1px 2px rgba(0,0,0,.18), 0 12px 28px -8px rgba(0,0,0,.45), 0 30px 60px -20px rgba(0,0,0,.35);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 50, "opsz" 96;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
p { margin: 0 0 1.15em; }
em { font-style: italic; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--parchment); padding: .75rem 1rem; font-family: var(--font-ui);
}
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ---------- Eyebrows, buttons, small type ---------- */
.eyebrow {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-ui); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: 1rem 1.6rem; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--rust); color: #fff; }
.btn--primary:hover { background: var(--rust-deep); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--parchment); }
.btn--ghost:hover { background: var(--parchment); color: var(--ink); }
.btn--dark { background: var(--green); color: var(--parchment); }
.btn--dark:hover { background: var(--green-deep); color: var(--parchment); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--parchment); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  font-family: var(--font-ui); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: inherit; display: inline-flex; gap: .5rem; align-items: center;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link-arrow:hover { color: var(--rust); }

/* ---------- Announcement bar ---------- */
.topbar {
  background: var(--ink); color: var(--parchment);
  font-family: var(--font-ui); font-size: .78rem; letter-spacing: .04em;
  text-align: center; padding: .6rem var(--gutter);
}
.topbar a { color: var(--gold); text-decoration: none; font-weight: 600; margin-left: .35rem; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 44, 30, .97);
  backdrop-filter: saturate(140%) blur(8px);
  color: var(--parchment);
  border-bottom: 1px solid var(--line-light);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 1.5rem;
}
.brand {
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
  color: var(--parchment); font-size: 1.55rem; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1; display: flex; flex-direction: column; gap: .3rem;
}
.brand small {
  font-family: var(--font-ui); font-size: .6rem; letter-spacing: .32em; font-weight: 500; color: var(--sage);
}
.brand:hover { color: #fff; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.9rem; }
.nav a {
  font-family: var(--font-ui); font-size: .78rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none; color: var(--parchment);
  position: relative; padding: .4rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: .7rem 1.1rem; }
.nav .btn::after { display: none; }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--parchment); cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin-right: -10px;
}
.nav-toggle span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--green-deep);
    flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--gutter) 2rem;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .4s var(--ease), opacity .3s, visibility .3s;
    border-bottom: 1px solid var(--line-light);
  }
  .nav-open .nav { max-height: 90vh; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line-light); font-size: .85rem; }
  .nav li a::after { display: none; }
  .nav .btn { margin-top: 1.25rem; justify-content: center; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: min(88vh, 860px); display: flex; align-items: center;
  color: var(--parchment); overflow: hidden; background: var(--green-deep);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,25,18,.92) 0%, rgba(15,25,18,.72) 32%, rgba(15,25,18,.12) 58%, rgba(15,25,18,0) 75%),
    linear-gradient(0deg, rgba(15,25,18,.45) 0%, rgba(15,25,18,0) 30%);
}
.hero__content { position: relative; z-index: 2; padding: 6rem 0; max-width: 600px; }
.hero h1 { font-size: clamp(3.2rem, 8vw, 6.5rem); font-weight: 400; margin-bottom: .25em; letter-spacing: -.02em; }
.hero__lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; color: rgba(244,238,223,.88); max-width: 32em; margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__credit {
  position: absolute; right: var(--gutter); bottom: 1.25rem; z-index: 2;
  font-family: var(--font-ui); font-size: .68rem; letter-spacing: .08em; color: rgba(244,238,223,.6);
}
@media (max-width: 760px) {
  .hero { min-height: auto; align-items: flex-end; }
  .hero__media img { object-position: 60% 20%; }
  .hero::after { background: linear-gradient(0deg, rgba(15,25,18,.96) 0%, rgba(15,25,18,.8) 45%, rgba(15,25,18,.15) 80%); }
  .hero__content { padding: 22rem 0 3.5rem; }
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position: relative; color: var(--parchment); background: var(--green-deep);
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem); overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,44,30,.35), rgba(15,44,30,.85)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-weight: 400; max-width: 16ch; }
.page-hero p { font-size: 1.2rem; color: rgba(244,238,223,.85); max-width: 40em; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--parchment { background: var(--parchment); }
.section--green { background: var(--green); color: var(--parchment); }
.section--green h2, .section--green h3 { color: var(--parchment); }
.section--ink { background: var(--ink); color: var(--parchment); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3.5rem; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__intro { max-width: 40em; color: var(--ink-soft); font-size: 1.1rem; }
.section--green .section__intro { color: rgba(244,238,223,.8); }

/* ---------- Featured book ("New from") ---------- */
.feature {
  display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: clamp(2.5rem, 7vw, 6.5rem); align-items: center;
}
.feature__cover { position: relative; }
.feature__cover img { border-radius: 2px; box-shadow: var(--shadow-book); }
.feature__cover::before {
  content: ""; position: absolute; inset: 8% -8% -6% 8%; background: var(--parchment-deep); z-index: -1; border-radius: 2px;
}
.section--parchment .feature__cover::before { background: var(--sage); opacity: .35; }
.feature h2 { font-size: clamp(2.4rem, 5vw, 3.75rem); margin-bottom: .2em; }
.feature__subtitle { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--ink-soft); margin-bottom: 1.5rem; }
.feature__meta { font-family: var(--font-ui); font-size: .8rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-bottom: 1.75rem; }
.feature__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature__cover { max-width: 300px; margin: 0 auto; }
}

/* ---------- Book grid ---------- */
.books { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); }
.books--3 { grid-template-columns: repeat(3, 1fr); }
.book-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.book-card__cover {
  aspect-ratio: 2 / 3; overflow: hidden; border-radius: 2px; box-shadow: var(--shadow-book);
  background: var(--parchment-deep); margin-bottom: 1.25rem;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.book-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card:hover .book-card__cover { transform: translateY(-6px) rotate(-.6deg); }
.book-card__year { font-family: var(--font-ui); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); margin-bottom: .35rem; }
.section--green .book-card__year { color: var(--gold); }
.book-card__title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; margin: 0 0 .3rem; }
.book-card__sub { font-size: .92rem; color: var(--muted); font-style: italic; margin: 0; }
.section--green .book-card__sub { color: rgba(244,238,223,.7); }
@media (max-width: 980px) { .books { grid-template-columns: repeat(2, 1fr); } .books--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .books, .books--3 { gap: 1.25rem; } .book-card__title { font-size: 1.1rem; } }

/* ---------- Quote band ---------- */
.quote-band {
  position: relative; color: var(--parchment); text-align: center;
  padding: clamp(6rem, 14vw, 11rem) 0; overflow: hidden; background: var(--green-deep);
}
.quote-band__media { position: absolute; inset: 0; }
.quote-band__media img { width: 100%; height: 100%; object-fit: cover; }
.quote-band::after { content: ""; position: absolute; inset: 0; background: rgba(12, 22, 16, .62); }
.quote-band blockquote { position: relative; z-index: 2; margin: 0 auto; max-width: 900px; padding: 0 var(--gutter); }
.quote-band blockquote p {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.2; margin-bottom: 1.5rem;
}
.quote-band cite { font-family: var(--font-ui); font-style: normal; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.quote-mark { font-family: var(--font-display); font-size: 5rem; line-height: .5; color: var(--gold); display: block; margin-bottom: 1.5rem; }

/* ---------- Pillars / cards ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.pillar { background: var(--paper); display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0,0,0,.35); color: inherit; }
.pillar__img { aspect-ratio: 4 / 3; overflow: hidden; }
.pillar__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pillar:hover .pillar__img img { transform: scale(1.05); }
.pillar__body { padding: 1.75rem 1.75rem 2rem; display: flex; flex-direction: column; flex: 1; }
.pillar__dates { font-family: var(--font-ui); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); margin-bottom: .6rem; }
.pillar h3 { margin-bottom: .6rem; }
.pillar p { color: var(--ink-soft); font-size: .98rem; flex: 1; }
.pillar .link-arrow { align-self: flex-start; margin-top: .5rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.split__media--wide img { aspect-ratio: 4 / 3; }
.split__media figcaption { font-family: var(--font-ui); font-size: .72rem; color: var(--muted); margin-top: .75rem; letter-spacing: .04em; }
.split__body > *:last-child { margin-bottom: 0; }
.split__body p { color: var(--ink-soft); }
.section--green .split__body p, .section--ink .split__body p { color: rgba(244,238,223,.82); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.stat { padding: 2.25rem 1.5rem; text-align: center; border-right: 1px solid var(--line-light); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.3rem); line-height: 1; color: var(--gold); display: block; margin-bottom: .6rem; }
.stat__label { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(244,238,223,.75); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
}

/* ---------- Letter CTA ---------- */
.letter {
  display: grid; grid-template-columns: 1.1fr 1fr; background: var(--parchment); border: 1px solid var(--line);
}
.letter__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.letter__body { padding: clamp(2.5rem, 6vw, 4.5rem); align-self: center; }
.letter__body p { color: var(--ink-soft); }
@media (max-width: 860px) { .letter { grid-template-columns: 1fr; } .letter__media img { min-height: 240px; max-height: 320px; } }

/* ---------- Prose ---------- */
.prose { font-size: 1.1rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose h2 { margin-top: 2.5em; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.prose h3 { margin-top: 2em; }
.prose > p:first-of-type::first-letter {
  font-family: var(--font-display); float: left; font-size: 4.6em; line-height: .82; padding: .08em .1em 0 0; color: var(--rust);
}
.prose--plain > p:first-of-type::first-letter { all: unset; }
.prose blockquote {
  margin: 2.5rem 0; padding: .25rem 0 .25rem 1.75rem; border-left: 2px solid var(--rust);
  font-family: var(--font-display); font-style: italic; font-size: 1.45rem; line-height: 1.4; color: var(--ink);
}
.prose blockquote cite { display: block; margin-top: .75rem; font-family: var(--font-ui); font-style: normal; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* ---------- Bio layout ---------- */
.bio { display: grid; grid-template-columns: 380px 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.bio__aside { position: sticky; top: 110px; }
.bio__aside img { border-radius: 2px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; }
.bio__aside figcaption { font-family: var(--font-ui); font-size: .72rem; color: var(--muted); margin-top: .75rem; }
.facts { margin-top: 2rem; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts dt { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.facts dd { margin: 0; text-align: right; }
@media (max-width: 900px) { .bio { grid-template-columns: 1fr; } .bio__aside { position: static; max-width: 440px; } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7.5rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--line-light); }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 2.5rem; padding: 1.25rem 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(7.5rem - 5px); top: 1.85rem; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--green); }
.timeline__year { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); line-height: 1.3; }
.timeline h3 { font-size: 1.25rem; margin: .2rem 0 .35rem; }
.timeline p { margin: 0; color: rgba(244,238,223,.78); font-size: .98rem; }
@media (max-width: 640px) {
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; gap: .25rem; padding-left: 2rem; }
  .timeline li::before { left: 0; top: 1.75rem; }
}

/* ---------- Book detail page ---------- */
.book-hero { background: var(--parchment); padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; overflow: hidden; }
.book-hero__grid { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.book-hero__cover img { box-shadow: var(--shadow-book); border-radius: 2px; width: 100%; }
.book-hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); margin-bottom: .15em; }
.breadcrumb { font-family: var(--font-ui); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.75rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--rust); }
.book-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 2rem 0; }
.book-details div { padding: 1rem 1rem 1rem 0; }
.book-details dt { font-family: var(--font-ui); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.book-details dd { margin: 0; font-size: .98rem; }
.retailers { margin-top: 2rem; }
.retailers h2 { font-family: var(--font-ui); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.retailers ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.retailers a {
  display: inline-block; font-family: var(--font-ui); font-size: .8rem; font-weight: 500; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); background: var(--paper); padding: .7rem 1.1rem; border-radius: var(--radius); transition: all .2s var(--ease);
}
.retailers a:hover { border-color: var(--ink); background: var(--ink); color: var(--parchment); }
.retailers__note { font-size: .88rem; color: var(--muted); margin-top: 1rem; font-style: italic; }
@media (max-width: 820px) { .book-hero__grid { grid-template-columns: 1fr; } .book-hero__cover { max-width: 300px; } }

.praise { border-left: 2px solid var(--rust); padding-left: 1.75rem; margin: 0; }
.praise p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.4; color: var(--ink); margin-bottom: .75rem; }
.praise cite { font-family: var(--font-ui); font-style: normal; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.theme { border-top: 2px solid var(--gold); padding-top: 1.25rem; }
.theme h3 { font-size: 1.2rem; }
.theme p { font-size: .96rem; color: rgba(244,238,223,.78); margin: 0; }
@media (max-width: 820px) { .themes { grid-template-columns: 1fr; } }

/* ---------- Books index ---------- */
.book-row { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 4.5rem); padding: clamp(3rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line); align-items: center; }
.book-row:first-child { padding-top: 0; }
.book-row:last-child { border-bottom: 0; padding-bottom: 0; }
.book-row__cover { display: block; }
.book-row__cover img { box-shadow: var(--shadow-book); border-radius: 2px; transition: transform .45s var(--ease); }
.book-row__cover:hover img { transform: translateY(-6px); }
.book-row h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: .15em; }
.book-row h2 a { color: inherit; text-decoration: none; }
.book-row h2 a:hover { color: var(--rust); }
.book-row__sub { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 1rem; }
.book-row p { color: var(--ink-soft); }
.book-row .feature__meta { margin-bottom: 1.1rem; }
@media (max-width: 720px) { .book-row { grid-template-columns: 1fr; } .book-row__cover { max-width: 220px; } }

/* ---------- Ideas ---------- */
.idea { padding: clamp(4rem, 8vw, 7rem) 0; }
.idea:nth-child(even) { background: var(--parchment); }
.idea__num { font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: var(--rust); opacity: .35; display: block; margin-bottom: .5rem; }
.idea .pullquote { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.45; color: var(--ink); border-left: 2px solid var(--rust); padding-left: 1.25rem; margin: 1.75rem 0; }

/* ---------- Writing list ---------- */
.columns-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.columns-list li { display: grid; grid-template-columns: 9rem 1fr; gap: 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.columns-list__date { font-family: var(--font-ui); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); padding-top: .4rem; }
.columns-list h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.columns-list p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
@media (max-width: 640px) { .columns-list li { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.6rem 3rem 1.6rem 0; position: relative;
  font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.35; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--rust), var(--rust)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--rust), var(--rust)) center / 1.5px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--rust); }
.faq__answer { padding: 0 3rem 1.75rem 0; color: var(--ink-soft); }
.faq__answer p:last-child { margin-bottom: 0; }
.faq-group { margin-bottom: 4rem; }
.faq-group h2 { font-size: 1rem; font-family: var(--font-ui); letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--rust); margin-bottom: 1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.contact-card { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.contact-card h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.contact-card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.form { background: var(--parchment); padding: clamp(2rem, 5vw, 3.25rem); border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { margin-bottom: 1.25rem; display: flex; flex-direction: column; }
.field label { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: .5rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid rgba(29,27,23,.25); border-radius: var(--radius); padding: .85rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-bright); box-shadow: 0 0 0 3px rgba(31,107,67,.15); }
.form__note { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; }
.form__status { margin-top: 1rem; font-family: var(--font-ui); font-size: .9rem; color: var(--green-bright); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Credits ---------- */
.credits { list-style: none; padding: 0; margin: 0; }
.credits li { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.credits strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(244,238,223,.75); padding: clamp(4rem, 8vw, 6rem) 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line-light); }
.site-footer .brand { margin-bottom: 1.25rem; }
.site-footer p { margin: 0 0 1rem; max-width: 30em; }
.site-footer h4 { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1.25rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .65rem; }
.site-footer a { color: rgba(244,238,223,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-note { font-style: italic; font-size: .9rem; color: rgba(244,238,223,.6); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 2rem; font-family: var(--font-ui); font-size: .76rem; letter-spacing: .04em; color: rgba(244,238,223,.55); }
.footer-bottom a { color: rgba(244,238,223,.7); }
.back-to-top { display: inline-flex; gap: .4rem; align-items: center; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; } }

/* ---------- Utilities ---------- */
/* (Inline style="" attributes are blocked by the CSP, so one-off tweaks live here.) */
figure.split__media, figure.bio__figure { margin: 0; }
.section--compact { padding-top: 4rem; padding-bottom: 4rem; }
.section--flush-top { padding-top: 0; }
.section--letter-overlap { padding-top: 0; background: linear-gradient(var(--paper) 50%, var(--parchment) 50%); }
.text-soft { color: var(--ink-soft); }
.text-italic { font-style: italic; }
.text-small { font-size: .95rem; }
.mt-0 { margin-top: 0; }
.form__title { font-size: 1.8rem; }
.intro-centered { margin: 0 auto 2rem; }
.pullquote__source { font-family: var(--font-ui); font-style: normal; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.honeypot { display: none; }
.center { text-align: center; }
.mt-lg { margin-top: 3.5rem; }
.divider-leaf { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--rust); margin: 0 auto 1.5rem; }
.divider-leaf::before, .divider-leaf::after { content: ""; width: 60px; height: 1px; background: currentColor; opacity: .5; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
