/* ==========================================================================
   Fable-Five.com — Stylesheet
   Storybook / Illuminated Manuscript aesthetic
   Light theme, responsive, accessible
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  /* Palette */
  --bg: #F6F1E4;
  --surface: #FBF7EC;
  --surface-2: #FFFFFF;
  --ink: #1F1A12;
  --ink-soft: #3A3225;
  --ink-muted: #6E5F4A;
  --moss: #2F5E3E;
  --moss-deep: #1F4329;
  --gold: #B8893B;
  --gold-soft: #D9B774;
  --rust: #8B3A2C;
  --border: #D9CDAE;
  --border-soft: #EBE0C5;

  /* Type */
  --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.75rem;
  --fs-3xl: 3.75rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(31, 26, 18, 0.06);
  --sh-md: 0 6px 24px -8px rgba(31, 26, 18, 0.12), 0 2px 6px rgba(31, 26, 18, 0.04);
  --sh-lg: 0 18px 50px -20px rgba(31, 26, 18, 0.2);

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;
}

/* --- Reset / Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
}
h1 { font-size: clamp(2rem, 5vw, var(--fs-3xl)); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.65rem, 3.5vw, var(--fs-2xl)); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }

p { margin: 0 0 var(--sp-4); }

ul, ol { padding-left: 1.5em; margin: 0 0 var(--sp-4); }
li { margin-bottom: 0.4em; }

hr {
  border: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: var(--sp-7) 0;
}

::selection { background: var(--gold-soft); color: var(--ink); }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--sp-5); }

/* --- Skip Link (a11y) --- */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--moss); color: #fff; padding: 8px 16px;
  z-index: 10000; font-family: var(--font-ui); font-size: var(--fs-sm);
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 236, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) 0;
  gap: var(--sp-5);
}
.brand {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; letter-spacing: 0.08em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--moss); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { line-height: 1; }
.brand-text small {
  display: block; font-family: var(--font-ui);
  font-size: 0.65rem; letter-spacing: 0.25em;
  color: var(--ink-muted); font-weight: 500; margin-top: 3px;
}

.nav-links {
  display: flex; align-items: center; gap: var(--sp-5);
  list-style: none; margin: 0; padding: 0;
  font-family: var(--font-ui); font-size: var(--fs-sm);
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-soft); padding: 6px 2px;
  position: relative;
}
.nav-links a:hover { color: var(--moss); text-decoration: none; }
.nav-links a.active { color: var(--moss); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
}

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  width: 44px; height: 44px; border-radius: var(--r-sm); cursor: pointer;
  padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  position: relative; transition: 0.3s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--ink); transition: 0.3s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-md);
    padding: var(--sp-3) 0;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 600px; }
  .nav-links li { width: 100%; margin: 0; }
  .nav-links a {
    display: block; padding: var(--sp-3) var(--sp-5);
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: rgba(47, 94, 62, 0.08); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: var(--sp-9) 0 var(--sp-8);
  background:
    radial-gradient(ellipse at top, rgba(184, 137, 59, 0.08), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(47, 94, 62, 0.06), transparent 60%),
    var(--bg);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(31, 26, 18, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-ui); font-size: var(--fs-xs);
  font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--moss); background: rgba(47, 94, 62, 0.08);
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid rgba(47, 94, 62, 0.18);
  margin-bottom: var(--sp-5);
}
.hero-eyebrow::before {
  content: '✦'; color: var(--gold); font-size: 0.9rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 6.2vw, 4.25rem);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-4);
}
.hero h1 .glow {
  background: linear-gradient(180deg, var(--gold) 0%, var(--rust) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-lede {
  font-size: clamp(1.05rem, 2.2vw, var(--fs-md));
  color: var(--ink-soft);
  max-width: 640px; margin: 0 auto var(--sp-6);
}

/* --- Countdown --- */
.countdown {
  display: flex; justify-content: center; gap: var(--sp-3);
  flex-wrap: wrap; margin: var(--sp-6) 0;
}
.countdown-cell {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  min-width: 92px;
  box-shadow: var(--sh-sm);
}
.countdown-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  color: var(--moss); line-height: 1; display: block;
}
.countdown-label {
  font-family: var(--font-ui); font-size: var(--fs-xs);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: var(--sp-2); display: block;
}

/* --- Buttons / CTAs --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 14px 28px; font-family: var(--font-ui);
  font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: 0.04em; border-radius: var(--r-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: all 0.2s ease; text-decoration: none;
}
.btn-primary {
  background: var(--moss); color: #FBF7EC; border-color: var(--moss);
  box-shadow: var(--sh-sm);
}
.btn-primary:hover {
  background: var(--moss-deep); border-color: var(--moss-deep);
  color: #FBF7EC; text-decoration: none;
  transform: translateY(-1px); box-shadow: var(--sh-md);
}
.btn-secondary {
  background: transparent; color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink); text-decoration: none;
}
.btn-gold {
  background: var(--gold); color: #FBF7EC; border-color: var(--gold);
}
.btn-gold:hover {
  background: #9D7430; border-color: #9D7430; color: #FBF7EC;
  text-decoration: none; transform: translateY(-1px);
}
.cta-group { display: inline-flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--sp-9) 0; }
.section-tight { padding: var(--sp-8) 0; }
.section-alt { background: var(--surface); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--sp-7); }
.section-head .eyebrow {
  display: inline-block; font-family: var(--font-ui);
  font-size: var(--fs-xs); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: var(--sp-3);
}
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head p { color: var(--ink-muted); font-size: var(--fs-md); margin: 0; }

/* Ornamental divider — fleuron, used between major sections */
.ornament {
  text-align: center; color: var(--gold);
  font-size: 1.5rem; margin: var(--sp-7) 0;
  letter-spacing: 0.5em; opacity: 0.65;
}
.ornament::before { content: '❦'; }

/* ==========================================================================
   Cards / Grids
   ========================================================================== */
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--gold-soft);
}
.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(47, 94, 62, 0.08);
  border-radius: var(--r-sm);
  color: var(--moss); margin-bottom: var(--sp-4);
  font-size: 1.5rem;
}
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.card p { color: var(--ink-soft); margin: 0; font-size: var(--fs-sm); line-height: 1.65; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--sp-4); font-family: var(--font-ui);
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--moss); text-decoration: none;
}
.card-link:hover { gap: 10px; color: var(--gold); text-decoration: none; }
.card-link::after { content: '→'; transition: 0.2s; }

/* --- Edition cards (pricing) --- */
.edition-card {
  position: relative;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-7) var(--sp-6);
  display: flex; flex-direction: column;
}
.edition-card.featured {
  border-color: var(--gold);
  box-shadow: 0 10px 40px -12px rgba(184, 137, 59, 0.35);
}
.edition-card .ribbon {
  position: absolute; top: -12px; right: 24px;
  background: var(--gold); color: #FBF7EC;
  font-family: var(--font-ui); font-size: var(--fs-xs);
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--r-sm);
}
.edition-name {
  font-family: var(--font-display); font-size: var(--fs-xl);
  margin: 0 0 var(--sp-2);
}
.edition-price {
  font-family: var(--font-display); font-size: 2.5rem;
  color: var(--moss); font-weight: 700; margin: var(--sp-3) 0 var(--sp-2);
  line-height: 1;
}
.edition-price small {
  font-family: var(--font-ui); font-size: 1rem;
  color: var(--ink-muted); font-weight: 400;
}
.edition-features {
  list-style: none; padding: 0; margin: var(--sp-5) 0;
  border-top: 1px dashed var(--border);
  padding-top: var(--sp-5); flex-grow: 1;
}
.edition-features li {
  padding: 8px 0 8px 28px; position: relative;
  font-size: var(--fs-sm); color: var(--ink-soft);
}
.edition-features li::before {
  content: '✦'; position: absolute; left: 0; top: 8px;
  color: var(--gold); font-size: 0.9rem;
}

/* ==========================================================================
   Feature blocks (alternating)
   ========================================================================== */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-8); align-items: center;
  padding: var(--sp-6) 0;
}
.feature-row.reverse > :first-child { order: 2; }
.feature-row h3 { font-size: clamp(1.5rem, 3vw, var(--fs-xl)); margin-bottom: var(--sp-4); }
.feature-row p { color: var(--ink-soft); }
.feature-tag {
  display: inline-block; font-family: var(--font-ui);
  font-size: var(--fs-xs); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--moss);
  background: rgba(47, 94, 62, 0.08);
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: var(--sp-3);
}
.feature-visual {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  text-align: center;
}
.feature-visual-emoji {
  font-size: 5rem; opacity: 0.55;
}
.feature-visual::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(184, 137, 59, 0.12), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(47, 94, 62, 0.1), transparent 50%);
}
@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; gap: var(--sp-5); }
  .feature-row.reverse > :first-child { order: 0; }
}

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5); text-align: center;
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding: var(--sp-7) var(--sp-5);
}
.stat-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--moss); display: block; line-height: 1;
}
.stat-label {
  font-family: var(--font-ui); font-size: var(--fs-xs);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: var(--sp-2);
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Prose (article body)
   ========================================================================== */
.prose {
  max-width: 760px; margin: 0 auto;
  font-size: var(--fs-base); line-height: 1.85; color: var(--ink-soft);
}
.prose h2 { margin-top: var(--sp-8); margin-bottom: var(--sp-4); color: var(--ink); }
.prose h3 { margin-top: var(--sp-7); margin-bottom: var(--sp-3); color: var(--ink); }
.prose h4 { margin-top: var(--sp-5); color: var(--ink); }
.prose p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 4em; line-height: 0.85;
  float: left; margin: 0.05em 0.12em 0 0;
  color: var(--moss); font-weight: 700;
}
.prose blockquote {
  border-left: 3px solid var(--gold);
  margin: var(--sp-6) 0; padding: var(--sp-3) var(--sp-5);
  font-style: italic; color: var(--ink-soft);
  background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.prose ul li::marker { color: var(--gold); }
.prose ol li::marker { color: var(--moss); font-weight: 600; }
.prose code {
  background: var(--surface);
  padding: 2px 6px; border-radius: 3px;
  font-size: 0.9em; color: var(--rust);
  font-family: 'SF Mono', Monaco, monospace;
}

/* --- Highlight boxes inside prose --- */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-6) 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.callout-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-md); margin-bottom: var(--sp-2);
  color: var(--ink);
}
.callout p:last-child { margin-bottom: 0; }
.callout.callout-moss { border-left-color: var(--moss); }
.callout.callout-rust { border-left-color: var(--rust); }

/* ==========================================================================
   Tables
   ========================================================================== */
.table-wrap { overflow-x: auto; margin: var(--sp-5) 0; }
table.compare {
  width: 100%; border-collapse: collapse;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  font-size: var(--fs-sm);
}
table.compare th, table.compare td {
  padding: var(--sp-4) var(--sp-5);
  text-align: left; border-bottom: 1px solid var(--border-soft);
}
table.compare th {
  background: var(--surface);
  font-family: var(--font-ui); font-weight: 600;
  letter-spacing: 0.04em; color: var(--ink);
}
table.compare tr:last-child td { border-bottom: 0; }
table.compare tr:hover td { background: rgba(184, 137, 59, 0.03); }

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline {
  position: relative; padding-left: 40px;
  margin: var(--sp-6) 0;
}
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item {
  position: relative; padding: var(--sp-4) 0 var(--sp-5);
}
.timeline-item::before {
  content: ''; position: absolute; left: -34px; top: 24px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-year {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-md); color: var(--moss);
  display: block; margin-bottom: var(--sp-1);
}
.timeline-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-md); color: var(--ink);
  margin-bottom: 6px;
}
.timeline-body { color: var(--ink-soft); font-size: var(--fs-sm); margin: 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  margin-bottom: var(--sp-3);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--gold-soft); }
.faq-item summary {
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-md); color: var(--ink);
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--font-display);
  font-size: 1.6rem; color: var(--gold); line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-body {
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--ink-soft);
  border-top: 1px dashed var(--border);
  padding-top: var(--sp-4);
}
.faq-body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */
.page-header {
  background:
    radial-gradient(ellipse at top, rgba(184, 137, 59, 0.07), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-8) 0 var(--sp-7);
  text-align: center;
}
.breadcrumbs {
  font-family: var(--font-ui); font-size: var(--fs-xs);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: var(--sp-4);
}
.breadcrumbs a { color: var(--ink-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--moss); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }
.page-header h1 { margin-bottom: var(--sp-3); }
.page-header .lede {
  max-width: 640px; margin: 0 auto;
  font-size: var(--fs-md); color: var(--ink-soft);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form { max-width: 540px; margin: 0 auto; }
.form-row { margin-bottom: var(--sp-4); }
.form-row label {
  display: block; font-family: var(--font-ui);
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px;
  font-family: var(--font-body); font-size: var(--fs-base);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(47, 94, 62, 0.12);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: var(--fs-xs); color: var(--ink-muted); margin-top: 4px; }

.newsletter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  text-align: center;
}
.newsletter h3 { margin-bottom: var(--sp-2); }
.newsletter p { color: var(--ink-soft); margin-bottom: var(--sp-5); }
.newsletter-form {
  display: flex; gap: var(--sp-2); max-width: 480px; margin: 0 auto;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1 1 220px;
  padding: 12px 16px; font-family: var(--font-body);
  font-size: var(--fs-base);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.newsletter-form input:focus {
  outline: none; border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(47, 94, 62, 0.12);
}
.newsletter-msg {
  margin-top: var(--sp-3); font-family: var(--font-ui);
  font-size: var(--fs-sm); color: var(--moss); min-height: 1.2em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink); color: rgba(251, 247, 236, 0.78);
  padding: var(--sp-8) 0 var(--sp-5);
  margin-top: var(--sp-9);
}
.site-footer a { color: rgba(251, 247, 236, 0.9); }
.site-footer a:hover { color: var(--gold-soft); text-decoration: none; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(251, 247, 236, 0.12);
}
.footer-brand .brand { color: var(--bg); }
.footer-brand .brand small { color: rgba(251, 247, 236, 0.6); }
.footer-brand p {
  font-size: var(--fs-sm);
  color: rgba(251, 247, 236, 0.65);
  margin-top: var(--sp-3); max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-ui); font-size: var(--fs-xs);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 700;
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a {
  font-size: var(--fs-sm); text-decoration: none;
  color: rgba(251, 247, 236, 0.78);
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-3);
  padding-top: var(--sp-5);
  font-family: var(--font-ui); font-size: var(--fs-xs);
  color: rgba(251, 247, 236, 0.55);
}
.footer-bottom-links a {
  color: rgba(251, 247, 236, 0.7); margin-left: var(--sp-4);
  font-size: var(--fs-xs);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .footer-bottom-links a { margin-left: 0; margin-right: var(--sp-4); }
}

/* ==========================================================================
   Utility
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.muted { color: var(--ink-muted); }
.small { font-size: var(--fs-sm); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Disclaimer banner */
.disclaimer-banner {
  background: rgba(139, 58, 44, 0.06);
  border-top: 1px solid rgba(139, 58, 44, 0.18);
  border-bottom: 1px solid rgba(139, 58, 44, 0.18);
  padding: var(--sp-3) 0; text-align: center;
  font-family: var(--font-ui); font-size: var(--fs-xs);
  color: var(--ink-muted); letter-spacing: 0.02em;
}
.disclaimer-banner strong { color: var(--rust); font-weight: 600; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .countdown, .newsletter { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================
   Additional component styles
   ============================================================ */

/* Visually hidden (alias for sr-only) */
.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;
}

/* Drop cap — first letter of a prose paragraph styled as illuminated initial */
.prose .drop-cap::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.9;
  float: left;
  margin: 0.05em 0.12em 0 0;
  color: var(--moss);
  padding: 0.05em 0.08em 0 0;
}

/* Fleuron — ornamental section divider */
.fleuron {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: 0.6em;
  padding-left: 0.6em;
  margin: var(--sp-7) auto;
  opacity: 0.85;
  user-select: none;
}

/* FAQ answer container (shown when details is open) */
.faq-answer {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  color: var(--ink-soft);
  border-top: 1px dashed rgba(31,26,18,0.12);
}
.faq-answer p { margin: 0 0 var(--sp-3); }
.faq-answer p:last-child { margin-bottom: 0; }

/* Contact form */
.contact-form {
  background: var(--surface);
  border: 1px solid rgba(31,26,18,0.10);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: 0 1px 3px rgba(31,26,18,0.05);
}
.contact-form .form-row {
  margin-bottom: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.contact-form label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  padding: 0.7em 0.9em;
  border: 1px solid rgba(31,26,18,0.18);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(47,94,62,0.18);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

/* Form helper note */
.form-note {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  margin: var(--sp-3) 0 0;
}

/* Ghost button variant */
.btn-ghost {
  background: transparent;
  color: var(--moss);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  background: rgba(47,94,62,0.08);
  color: var(--moss);
}
