/* Rory McFarlan author site. Plain CSS, no build step. */

:root {
  /* Palette: a long night giving way to dawn */
  --night: #141826;
  --night-2: #1d2236;
  --dusk: #3a3354;
  --plum: #6b4a63;
  --ember: #c4572f;
  --ember-dark: #a5441f;
  --dawn: #e9a66b;
  --gold: #f0c27b;
  --paper: #faf6ef;
  --paper-2: #f2ebdf;
  --sand: #e7dccb;
  --ink: #1f2330;
  --ink-soft: #4a4f5e;
  --ink-mute: #6c7080;
  --line: rgba(31, 35, 48, 0.12);
  --on-dark: #f6f1e9;
  --on-dark-soft: rgba(246, 241, 233, 0.78);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1160px;
  --radius: 14px;
  --shadow-cover: 0 2px 4px rgba(0, 0, 0, 0.25), 0 24px 48px -12px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 1px 2px rgba(31, 35, 48, 0.06), 0 12px 32px -16px rgba(31, 35, 48, 0.25);
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
em, i { font-style: italic; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

.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;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--on-dark);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.site-header.is-solid {
  background: rgba(250, 246, 239, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.nav {
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 72px;
}
.brand {
  font-family: var(--display); font-size: 1.45rem; font-weight: 600; text-decoration: none;
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand span { font-style: italic; font-weight: 400; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 0.5rem 0.8rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; text-decoration: none; opacity: 0.88;
  transition: opacity 0.2s, background-color 0.2s;
}
.nav-links a:hover { opacity: 1; background: rgba(255, 255, 255, 0.1); }
.site-header.is-solid .nav-links a:hover { background: rgba(31, 35, 48, 0.06); }
.nav-links a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--dawn); border-radius: 0; }
.nav-links .nav-cta {
  margin-left: 0.4rem; background: var(--ember); color: #fff; opacity: 1; padding-inline: 1.1rem;
}
.nav-links .nav-cta:hover { background: var(--ember-dark); }
.site-header.is-solid .nav-links .nav-cta:hover { background: var(--ember-dark); }

.nav-toggle {
  display: none; background: none; border: 0; color: inherit; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin-right: -10px;
}
.nav-toggle-bar { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle-bar + .nav-toggle-bar { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); color: var(--ink);
    padding: 0.5rem 1.25rem 1.25rem;
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.4);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.9rem 0.25rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a:hover { background: none; }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--ember-dark); }
  .nav-links .nav-cta { margin: 1rem 0 0; text-align: center; border-radius: 999px; border: 0; }
  .site-header.menu-open { background: var(--paper); color: var(--ink); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.75rem 1.4rem; border-radius: 999px;
  font-family: var(--body); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-ember { background: var(--ember); color: #fff; box-shadow: 0 8px 20px -10px rgba(196, 87, 47, 0.9); }
.btn-ember:hover { background: var(--ember-dark); }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: rgba(246, 241, 233, 0.55); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, 0.08); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.text-link {
  font-weight: 600; color: var(--ember-dark); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--body); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember-dark); margin-bottom: 0.9rem;
}
.on-dark .eyebrow, .eyebrow-light { color: var(--gold); }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.section-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { text-align: center; }
.section-head.center .section-lede { margin-inline: auto; }

/* Book covers: a hint of a spine and real-world shadow */
.cover {
  position: relative; border-radius: 3px 6px 6px 3px; overflow: hidden;
  box-shadow: var(--shadow-cover); background: var(--night-2);
}
.cover img { width: 100%; height: auto; }
.cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.28) 0, rgba(255,255,255,0.18) 1.2%, rgba(255,255,255,0) 3.5%, rgba(0,0,0,0.08) 5%, rgba(0,0,0,0) 8%);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--on-dark);
  background:
    radial-gradient(120% 70% at 50% 118%, rgba(240, 194, 123, 0.95) 0%, rgba(233, 166, 107, 0.75) 18%, rgba(196, 87, 47, 0.45) 34%, rgba(107, 74, 99, 0) 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 38%, var(--dusk) 70%, var(--plum) 100%);
  padding: calc(72px + clamp(3rem, 8vw, 6rem)) 0 clamp(4rem, 9vw, 7rem);
}
.hero::before {
  /* a scatter of fading stars */
  content: ""; position: absolute; inset: 0 0 35% 0; z-index: -1; opacity: 0.7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 67% 24%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 46%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 15%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 36%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 55%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 41% 58%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 81% 62%, #fff 50%, transparent 51%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero::after {
  /* the horizon */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 230, 190, 0.7), transparent);
}
.hero-inner {
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem);
}
.hero-title {
  font-size: clamp(3.2rem, 9vw, 6.4rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}
.hero-tagline {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.35; color: var(--gold); margin-bottom: 1.2rem; max-width: 30rem;
}
.hero-sub { font-size: 1.12rem; color: var(--on-dark-soft); max-width: 32rem; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-books {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  min-height: clamp(320px, 42vw, 500px);
}
.hero-books .cover { width: clamp(170px, 21vw, 270px); transition: transform 0.4s ease; }
.hero-books .cover:first-child { transform: rotate(-5deg) translate(7%, 3%); z-index: 1; }
.hero-books .cover:last-child { transform: rotate(4deg) translate(-7%, -6%); z-index: 2; }
.hero-books:hover .cover:first-child { transform: rotate(-6deg) translate(4%, 1%); }
.hero-books:hover .cover:last-child { transform: rotate(5deg) translate(-4%, -8%); }
.hero-books a { display: block; text-decoration: none; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-tagline, .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-books { min-height: 0; padding-top: 0.5rem; order: 2; }
  .hero-books .cover { width: min(42vw, 210px); }
}

/* ---------- Awards strip ---------- */
.awards { background: var(--night); color: var(--on-dark); padding: 1.3rem 0; }
.awards ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2.5rem;
}
.awards li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: var(--on-dark-soft); }
.awards li strong { color: var(--on-dark); font-weight: 600; }
.awards svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
@media (max-width: 600px) {
  .awards ul { flex-direction: column; align-items: flex-start; width: fit-content; max-width: calc(100% - 2.5rem); margin-inline: auto; gap: 0.7rem; }
  .awards li { align-items: flex-start; line-height: 1.45; }
}

/* ---------- Book features (home) ---------- */
.book-feature {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center;
}
#books { overflow: hidden; }
.book-feature + .book-feature { margin-top: clamp(4.5rem, 9vw, 7rem); }
.book-feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.book-feature.flip .book-feature-art { order: 2; }
.book-feature-art { position: relative; }
.book-feature-art::before {
  content: ""; position: absolute; inset: 8% -10% -6% -10%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(233, 166, 107, 0.35), rgba(233, 166, 107, 0));
}
.book-feature-art .cover { position: relative; z-index: 1; max-width: 340px; margin-inline: auto; }
.book-feature-art a { display: block; transition: transform 0.3s ease; }
.book-feature-art a:hover { transform: translateY(-4px) rotate(-0.6deg); }
.book-title { font-size: clamp(2.2rem, 4.4vw, 3.1rem); margin-bottom: 0.15em; }
.book-subtitle { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.35rem; color: var(--ink-soft); margin-bottom: 1rem; }
.book-hook {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.4;
  color: var(--plum); margin: 1.1rem 0 1.2rem; padding-left: 1rem; border-left: 3px solid var(--dawn);
}
.book-feature p { color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 1.6rem; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 600; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line);
}
.chip-award { background: #fbeedd; color: #8a4a1c; border-color: rgba(196, 87, 47, 0.25); }
.chip svg { width: 15px; height: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

@media (max-width: 820px) {
  .book-feature, .book-feature.flip { grid-template-columns: 1fr; text-align: left; }
  .book-feature.flip .book-feature-art { order: 0; }
  .book-feature-art .cover { max-width: 250px; }
}

/* ---------- Pull quote ---------- */
.quote-band { background: var(--paper-2); border-block: 1px solid var(--line); }
.pull-quote { margin: 0 auto; text-align: center; }
.pull-quote blockquote { margin: 0; }
.pull-quote p {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.3; color: var(--ink); margin: 0 0 1.3rem;
}
.pull-quote p::before { content: "\201C"; color: var(--ember); }
.pull-quote p::after { content: "\201D"; color: var(--ember); }
.pull-quote figcaption { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-mute); }
.pull-quote figcaption cite { font-style: italic; font-weight: 500; }

/* ---------- Threads (themes) ---------- */
.threads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.thread {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
}
.thread-icon {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: linear-gradient(160deg, var(--dusk), var(--ember)); color: #fff;
}
.thread-icon svg { width: 24px; height: 24px; }
.thread h3 { font-size: 1.55rem; margin-bottom: 0.4rem; }
.thread p { color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) { .threads { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { background: var(--night); color: var(--on-dark); position: relative; overflow: hidden; }
.about::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -320px; bottom: -520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(233, 166, 107, 0.28), rgba(233, 166, 107, 0));
  pointer-events: none;
}
.about-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; position: relative; }
.monogram {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 50% 120%, var(--gold) 0%, var(--dawn) 22%, var(--ember) 42%, var(--plum) 66%, var(--dusk) 100%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-family: var(--display); font-size: clamp(4rem, 9vw, 6.5rem); font-weight: 500; font-style: italic; color: var(--on-dark);
  letter-spacing: -0.04em; max-width: 300px;
}
.monogram::after {
  content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22);
}
.about .section-title { color: var(--on-dark); }
.about .prose p { color: var(--on-dark-soft); font-size: 1.1rem; }
.about .prose p:first-child { font-family: var(--display); font-size: 1.45rem; line-height: 1.45; color: var(--on-dark); }
.signature { font-family: var(--display); font-style: italic; font-size: 1.6rem; color: var(--gold); margin-top: 1.5rem; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .monogram { width: 180px; font-size: 4rem; }
}

/* ---------- Contact ---------- */
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 5vw, 3.5rem); box-shadow: var(--shadow-card); text-align: center;
}
.contact-card .section-lede { margin-inline: auto; }
.contact-card .actions { justify-content: center; margin-top: 1.8rem; }
.email-line { font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 1.4rem 0 0; word-break: break-word; }
.email-line a { text-decoration: none; border-bottom: 2px solid var(--dawn); }
.email-line a:hover { color: var(--ember-dark); }
.review-ask {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; text-align: left;
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.review-ask svg { width: 34px; height: 34px; color: var(--ember); }
.review-ask p { margin: 0; color: var(--ink-soft); }
.review-ask strong { color: var(--ink); }

/* ---------- Book page ---------- */
.book-hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--on-dark);
  background:
    radial-gradient(90% 60% at 20% 120%, rgba(233, 166, 107, 0.55) 0%, rgba(196, 87, 47, 0.25) 35%, rgba(107, 74, 99, 0) 65%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 45%, var(--dusk) 100%);
  padding: calc(72px + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.book-hero-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.book-hero .cover { max-width: 360px; }
.book-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 0.15em; }
.book-hero .book-subtitle { color: var(--gold); font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.book-hero .lead { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.4; color: var(--on-dark); max-width: 34rem; }
.book-hero .chip { background: rgba(255, 255, 255, 0.08); color: var(--on-dark); border-color: rgba(255, 255, 255, 0.18); }
.book-hero .chip-award { background: rgba(240, 194, 123, 0.16); color: var(--gold); border-color: rgba(240, 194, 123, 0.4); }
.byline { font-size: 0.95rem; letter-spacing: 0.04em; color: var(--on-dark-soft); margin-bottom: 1.2rem; }
.byline a { color: var(--on-dark); }
.buy-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.buy-note { font-size: 0.9rem; color: var(--on-dark-soft); margin-top: 1rem; }
.buy-note a { color: var(--on-dark); }
@media (max-width: 820px) {
  .book-hero-grid { grid-template-columns: 1fr; }
  .book-hero .cover { max-width: 230px; }
}

.book-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.blurb p { font-size: 1.12rem; color: var(--ink-soft); }
.blurb p:first-of-type { font-family: var(--display); font-size: 1.5rem; line-height: 1.45; color: var(--ink); }
.blurb h2 { font-size: 2rem; }
.side-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-card);
}
.side-card + .side-card { margin-top: 1.25rem; }
.side-card h2 { font-size: 1.35rem; margin-bottom: 0.9rem; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1.1rem; font-size: 0.97rem; }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; color: var(--ink-soft); }
.content-note { background: var(--paper-2); }
.content-note p, .content-note li { font-size: 0.95rem; color: var(--ink-soft); }
.content-note ul { padding-left: 1.1rem; margin: 0.4rem 0 0; }
.content-note li + li { margin-top: 0.35rem; }
.content-note a { color: var(--ink); font-weight: 600; }
details.note summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 0.5rem; }
details.note summary::-webkit-details-marker { display: none; }
details.note summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; line-height: 1; color: var(--ember); }
details.note[open] summary::after { content: "\2212"; }
details.note[open] summary { margin-bottom: 0.7rem; }
@media (max-width: 900px) { .book-body { grid-template-columns: 1fr; } }

.praise { margin-top: 3rem; display: grid; gap: 1.25rem; }
.praise-card blockquote { margin: 0; }
.praise-card {
  margin: 0; padding: 1.7rem 1.8rem; border-radius: var(--radius); background: var(--paper-2); border-left: 4px solid var(--dawn);
}
.praise-card p { font-family: var(--display); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--ink); margin-bottom: 0.7rem; }
.praise-card figcaption { font-size: 0.92rem; font-weight: 600; color: var(--ink-mute); }

.also-by { background: var(--paper-2); border-top: 1px solid var(--line); }
.also-card {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 2.5rem); align-items: center;
  max-width: 820px; margin-inline: auto; text-decoration: none;
}
.also-card h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.also-card p { color: var(--ink-soft); }
.also-card:hover h2 { color: var(--ember-dark); }
@media (max-width: 520px) { .also-card { grid-template-columns: 100px minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark-soft); padding: 3.5rem 0 2.5rem; font-size: 0.95rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; align-items: flex-start; }
.footer-grid .brand { color: var(--on-dark); font-size: 1.6rem; }
.footer-tag { margin: 0.4rem 0 0; font-family: var(--display); font-style: italic; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-links a { text-decoration: none; color: var(--on-dark); opacity: 0.85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.footer-bottom p { margin: 0; }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.lost .hero-sub { margin-inline: auto; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-books .cover, .btn, .book-feature-art a { transition: none; }
}

@media print {
  .site-header, .nav-toggle, .hero::before { display: none; }
  .hero, .book-hero, .about, .site-footer { background: #fff !important; color: #000 !important; }
}
