/* ============================================
   R.C. JAMESON — Author Website
   Design system: navy + gold + parchment cream
   Inspired by classic illustrated children's
   storybooks and gilded fantasy hardcovers.
   ============================================ */

:root, [data-theme="light"] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6vw, 6.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ===== KHP / Jameson palette ===== */
  /* Surfaces — warm parchment / cream */
  --color-bg: #f6efde;            /* parchment */
  --color-surface: #fbf5e6;       /* lighter cream */
  --color-surface-2: #fffaee;     /* nearly white cream */
  --color-surface-offset: #ece2c5; /* aged parchment */
  --color-surface-offset-2: #ddd1ad;
  --color-surface-dynamic: #e8dcb8;
  --color-divider: #d8caa3;
  --color-border: #c8b888;

  /* Text — deep ink (warm near-black) */
  --color-text: #1a1a2b;
  --color-text-muted: #4f4a3e;
  --color-text-faint: #8c8470;
  --color-text-inverse: #fbf5e6;

  /* Primary — royal navy (from Vol 1 hardcover & Lion Heir backdrop) */
  --color-primary: #14213d;
  --color-primary-hover: #0e1830;
  --color-primary-active: #080e1f;
  --color-primary-highlight: #cfd5e0;

  /* Accent — antique gold (from gold filigree & Lion Heir emblem) */
  --color-gold: #b48316;
  --color-gold-hover: #946b10;
  --color-gold-active: #71520b;
  --color-gold-highlight: #ecdfae;

  /* Warm secondary — cape red (from Prince Lawrence cape) */
  --color-warm: #8e2a1f;
  --color-warm-hover: #6e1f17;
  --color-warm-active: #50160f;

  /* Forest — for Lion Heir series accents */
  --color-deep: #0c1530;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — warm-toned to match parchment */
  --shadow-sm: 0 1px 2px oklch(0.25 0.04 60 / 0.10);
  --shadow-md: 0 6px 18px oklch(0.20 0.05 60 / 0.16);
  --shadow-lg: 0 18px 48px oklch(0.18 0.05 60 / 0.22);
  --shadow-cover: 0 30px 60px -15px oklch(0.15 0.06 60 / 0.45),
                  0 12px 25px -8px oklch(0.18 0.06 60 / 0.30);

  /* Layout widths */
  --content-narrow: 640px;
  --content-default: 1040px;
  --content-wide: 1280px;
  --content-full: 100%;

  /* Fonts — see <link> in HTML head */
  --font-display: 'Cormorant Garamond', 'Boska', Georgia, serif;
  --font-display-alt: 'Cinzel', 'Trajan Pro', serif;
  --font-body: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --font-sans: 'Work Sans', 'Helvetica Neue', sans-serif;
}

/* DARK MODE — deep navy night with parchment text */
[data-theme="dark"] {
  --color-bg: #0c1024;
  --color-surface: #131831;
  --color-surface-2: #1a2040;
  --color-surface-offset: #1c233f;
  --color-surface-offset-2: #232b4d;
  --color-surface-dynamic: #2a3358;
  --color-divider: #1f2745;
  --color-border: #324068;

  --color-text: #f0e6c8;
  --color-text-muted: #b8b09a;
  --color-text-faint: #7e7765;
  --color-text-inverse: #14213d;

  --color-primary: #d8b75c;     /* gold becomes primary in dark mode */
  --color-primary-hover: #e8c97a;
  --color-primary-active: #f3d68a;
  --color-primary-highlight: #3a3322;

  --color-gold: #e8c970;
  --color-gold-hover: #f3d68a;
  --color-gold-active: #f7df9c;
  --color-gold-highlight: #423a26;

  --color-warm: #c75847;
  --color-warm-hover: #d96e5d;
  --color-warm-active: #e88572;

  --color-deep: #050818;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 6px 18px oklch(0 0 0 / 0.5);
  --shadow-lg: 0 18px 48px oklch(0 0 0 / 0.6);
  --shadow-cover: 0 30px 60px -15px oklch(0 0 0 / 0.7),
                  0 12px 25px -8px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0c1024;
    --color-surface: #131831;
    --color-surface-2: #1a2040;
    --color-surface-offset: #1c233f;
    --color-surface-offset-2: #232b4d;
    --color-surface-dynamic: #2a3358;
    --color-divider: #1f2745;
    --color-border: #324068;
    --color-text: #f0e6c8;
    --color-text-muted: #b8b09a;
    --color-text-faint: #7e7765;
    --color-text-inverse: #14213d;
    --color-primary: #d8b75c;
    --color-primary-hover: #e8c97a;
    --color-gold: #e8c970;
    --color-warm: #c75847;
    --color-deep: #050818;
    --shadow-cover: 0 30px 60px -15px oklch(0 0 0 / 0.7), 0 12px 25px -8px oklch(0 0 0 / 0.5);
  }
}

/* ============================================
   PAGE LAYOUT
   ============================================ */
.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

main { flex: 1; }

.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-10));
}
.container--wide { max-width: var(--content-wide); }
.container--narrow { max-width: var(--content-narrow); }

section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.4);
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1),
    background 220ms;
}
.site-header--hidden { transform: translateY(-100%); }
.site-header--scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--color-primary);
  object-fit: contain;
}
[data-theme="dark"] .brand__mark { color: var(--color-gold); }
img.brand__mark { height: 44px; width: auto; }

.brand__words {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-display-alt);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand__tag {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 4px;
}

.nav__links {
  display: none;
  gap: var(--space-6);
  list-style: none;
}
@media (min-width: 880px) {
  .nav__links { display: flex; align-items: center; }
}
.nav__links a {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: 0.02em;
}
.nav__links a:hover { color: var(--color-warm); }
.nav__links a[aria-current="page"] {
  color: var(--color-warm);
  font-weight: 600;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text);
}
.icon-btn:hover {
  background: var(--color-surface-offset);
  color: var(--color-warm);
}

/* Mobile menu */
.mobile-menu {
  display: none;
}
@media (max-width: 879px) {
  .mobile-menu {
    display: block;
    border-top: 1px solid var(--color-divider);
    padding-block: var(--space-4);
    background: var(--color-surface);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu ul { list-style: none; display: flex; flex-direction: column; }
  .mobile-menu a {
    display: block;
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    text-decoration: none;
    color: var(--color-text);
  }
  .mobile-menu a:hover { background: var(--color-surface-offset); color: var(--color-warm); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .btn--primary {
  background: var(--color-gold);
  color: var(--color-deep);
}
[data-theme="dark"] .btn--primary:hover {
  background: var(--color-gold-hover);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-deep);
}
.btn--gold:hover {
  background: var(--color-gold-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-text);
}

.btn--small { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%,
      oklch(from var(--color-surface) l c h / 0.6) 0%,
      transparent 60%),
    var(--color-bg);
}

.hero__grid {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .hero__grid { grid-template-columns: 1.1fr 1fr; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-warm);
  font-weight: 600;
}
.hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-hero);
  line-height: 1;
  margin: var(--space-5) 0 var(--space-5);
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.hero__title em {
  font-style: italic;
  color: var(--color-warm);
}

.hero__lead {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 50ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero__cover {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero__cover img {
  max-width: min(420px, 100%);
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-cover);
  transform: rotate(-2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero__cover img:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero__badge {
  position: absolute;
  top: -18px;
  right: -18px;
  background: var(--color-warm);
  color: #fbf5e6;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transform: rotate(8deg);
  z-index: 2;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-head {
  text-align: center;
  margin-bottom: clamp(var(--space-10), 6vw, var(--space-16));
}
.section-head__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-warm);
  font-weight: 600;
  display: inline-block;
}
.section-head__eyebrow::before,
.section-head__eyebrow::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin: 0 var(--space-3);
}
.section-head__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  margin-top: var(--space-4);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.section-head__lead {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin: var(--space-5) auto 0;
  max-width: 60ch;
}

/* ============================================
   BOOK GRID & CARDS
   ============================================ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(var(--space-6), 3vw, var(--space-10));
}

.book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  transition: transform var(--transition-interactive);
}
.book-card:hover {
  transform: translateY(-6px);
}
.book-card:hover .book-card__cover {
  box-shadow: var(--shadow-cover);
}
.book-card__cover-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-5);
}
.book-card__cover {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.book-card__cover--portrait {
  aspect-ratio: 2 / 3;
}
.book-card__series {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-warm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.book-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.book-card__age {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================
   FEATURE BOOK (Big detail block)
   ============================================ */
.featured-book {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
  padding: clamp(var(--space-8), 6vw, var(--space-16));
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}
@media (min-width: 800px) {
  .featured-book { grid-template-columns: 1fr 1.2fr; }
  .featured-book--reverse { grid-template-columns: 1.2fr 1fr; }
  .featured-book--reverse .featured-book__cover { order: 2; }
}
.featured-book__cover {
  display: flex;
  justify-content: center;
}
.featured-book__cover img {
  max-width: 360px;
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-cover);
}
.featured-book__series {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-warm);
  font-weight: 600;
}
.featured-book__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  line-height: 1.05;
  margin: var(--space-4) 0 var(--space-3);
}
.featured-book__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 58ch;
  text-wrap: balance;
}
[style*="text-align: center"] > .featured-book__subtitle,
[style*="text-align:center"] > .featured-book__subtitle {
  margin-left: auto;
  margin-right: auto;
}
.featured-book__desc {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
}
.featured-book__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.featured-book__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

/* ============================================
   EMAIL CAPTURE
   ============================================ */
.email-capture {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: clamp(var(--space-12), 7vw, var(--space-20));
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.email-capture::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid oklch(from var(--color-gold) l c h / 0.45);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}
.email-capture__inner {
  position: relative;
  text-align: center;
  max-width: 56ch;
  margin: 0 auto;
}
.email-capture__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  color: var(--color-text-inverse);
  font-weight: 500;
}
.email-capture__lead {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: oklch(from var(--color-text-inverse) l c h / 0.85);
  margin-top: var(--space-4);
}
.email-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
  justify-content: center;
}
.email-form input[type="email"] {
  flex: 1 1 280px;
  padding: var(--space-3) var(--space-5);
  border: 1px solid oklch(from var(--color-gold) l c h / 0.5);
  border-radius: var(--radius-sm);
  background: oklch(from var(--color-text-inverse) l c h / 0.06);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--text-base);
}
.email-form input[type="email"]::placeholder {
  color: oklch(from var(--color-text-inverse) l c h / 0.6);
}
.email-form input[type="email"]:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  background: oklch(from var(--color-text-inverse) l c h / 0.10);
}
.email-capture__note {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: oklch(from var(--color-text-inverse) l c h / 0.65);
  margin-top: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ============================================
   ABOUT TEASER & TESTIMONIAL BLOCK
   ============================================ */
.split {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--narrow-left { grid-template-columns: 0.85fr 1.15fr; }
}

.prose {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
}
.prose p + p { margin-top: var(--space-5); }
.prose h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
}
.prose h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
  font-weight: 600;
}
.prose ul {
  margin: var(--space-5) 0;
  padding-left: var(--space-6);
}
.prose li { margin-bottom: var(--space-2); }
.prose blockquote {
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text);
}

/* Decorative ornament divider */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: clamp(var(--space-10), 5vw, var(--space-16)) auto;
  color: var(--color-gold);
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: linear-gradient(to right, transparent, currentColor, transparent);
}
.ornament svg {
  width: 24px; height: 24px;
}

/* ============================================
   PARENTS / TRUST PAGE
   ============================================ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}
.value-card__icon {
  width: 36px;
  height: 36px;
  color: var(--color-warm);
  margin-bottom: var(--space-4);
}
.value-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.value-card__body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   SERIES BAND
   ============================================ */
.series-band {
  --series-band-text: #f0e6c8; /* always light parchment regardless of theme */
  background: var(--color-primary);
  color: var(--series-band-text);
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .series-band {
  background: var(--color-surface);
}
.series-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%,
      oklch(from var(--color-gold) l c h / 0.10) 0,
      transparent 50%);
  pointer-events: none;
}
.series-band > * { position: relative; z-index: 1; }
.series-band h1, .series-band h2, .series-band h3, .series-band h4 { color: inherit; }
.series-band p { color: oklch(from var(--series-band-text) l c h / 0.85); }
.series-band .section-head__title { color: var(--series-band-text); }
.series-band .section-head__lead { color: oklch(from var(--series-band-text) l c h / 0.8); }
.series-band .section-head__eyebrow { color: var(--color-gold); }
.series-band h3 { color: var(--color-gold) !important; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  --color-footer-text: #f0e6c8;
  background: var(--color-deep);
  color: var(--color-footer-text);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-20);
}
[data-theme="dark"] .site-footer {
  background: #050818;
}
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5, .site-footer h6 { color: inherit; }
.footer-grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer-brand h3 {
  font-family: var(--font-display-alt);
  font-size: var(--text-lg);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: var(--space-3);
  color: var(--color-gold);
}
.footer-brand p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: oklch(from var(--color-footer-text) l c h / 0.75);
  max-width: 38ch;
}
.footer-imprint {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-4);
  border: 1px solid oklch(from var(--color-gold) l c h / 0.25);
  border-radius: var(--radius-sm);
  max-width: 360px;
}
.footer-imprint svg,
.footer-imprint__mark {
  width: 32px;
  flex: none;
  color: var(--color-gold);
  height: auto;
}
img.footer-imprint__mark { width: 36px; object-fit: contain; }
.footer-imprint__text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: oklch(from var(--color-footer-text) l c h / 0.85);
}
.footer-imprint__text strong {
  display: block;
  font-family: var(--font-display-alt);
  font-size: var(--text-sm);
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 2px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: oklch(from var(--color-footer-text) l c h / 0.85);
  text-decoration: none;
}
.footer-col a:hover { color: var(--color-gold); }

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(from var(--color-footer-text) l c h / 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: oklch(from var(--color-footer-text) l c h / 0.6);
}

/* ============================================
   FORM (CONTACT)
   ============================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-8);
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-color: var(--color-gold);
}
.field textarea { min-height: 160px; resize: vertical; }

/* ============================================
   PAGE HEADER (interior pages)
   ============================================ */
.page-header {
  padding-block: clamp(var(--space-12), 7vw, var(--space-20));
  text-align: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%,
      oklch(from var(--color-surface) l c h / 0.7) 0%,
      transparent 70%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-divider);
}
.page-header__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-warm);
  font-weight: 600;
}
.page-header__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--text-2xl);
  margin-top: var(--space-4);
  letter-spacing: -0.01em;
}
.page-header__lead {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: var(--space-5) auto 0;
  line-height: 1.55;
}

/* ============================================
   UTILS
   ============================================ */
.center { text-align: center; }
.muted { color: var(--color-text-muted); }
.bg-surface { background: var(--color-surface); }
.bg-offset { background: var(--color-surface-offset); }

.text-warm { color: var(--color-warm); }
.text-gold { color: var(--color-gold); }

/* Subtle reveal — content visible by default, gently animates in.
   Uses a starting opacity high enough that even un-triggered elements look fine. */
.js-loaded .fade-in {
  opacity: 0.001;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.js-loaded .fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-loaded .fade-in { opacity: 1 !important; transform: none !important; }
}

/* Light dotted texture under hero/sections to give parchment feel */
.parchment-texture {
  background-image:
    radial-gradient(circle at 1px 1px, oklch(from var(--color-text) l c h / 0.04) 1px, transparent 0);
  background-size: 18px 18px;
}

/* ============================================
   AUTHOR PORTRAIT
   ============================================ */
.author-portrait {
  display: flex;
  justify-content: center;
  margin: 0 auto var(--space-10);
  max-width: 280px;
}
.author-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-gold);
  box-shadow: var(--shadow-md);
  background: var(--color-surface);
}
/* On the home teaser, allow a larger, non-circular framed variant */
.author-portrait--teaser {
  max-width: 320px;
}
.author-portrait--teaser img {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  border: 1px solid oklch(from var(--color-gold) l c h / 0.4);
  box-shadow:
    0 0 0 6px oklch(from var(--color-gold) l c h / 0.08),
    var(--shadow-md);
}

/* ============================================
   PRESS (KHP) MARK
   ============================================ */
.press-mark {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-10);
}
.press-mark img {
  width: 120px;
  height: auto;
  max-width: 100%;
}
.press-mark--full img {
  width: 320px;
  max-width: 80%;
}
@media (max-width: 640px) {
  .press-mark--full img {
    width: 260px;
    max-width: 90%;
  }
}
