/* ==========================================================================
   Heritage design system — see CLAUDE.md for the component reference.
   Colours, fonts and spacing are all defined as variables below.
   ========================================================================== */

:root {
  --green-950: #142820;
  --green-900: #1f3a2e;
  --green-800: #284a3b;
  --green-700: #35604d;
  --ivory: #fbf8f1;
  --parchment: #f3ecdc;
  --parchment-dark: #e6dabf;
  --gold: #a8843a;
  --gold-light: #c9a95f;
  --gold-pale: #e9d9ae;
  --ink: #2c241d;
  --ink-soft: #4a4037;
  --muted: #6e6357;
  --line: #ddd0b3;
  --white: #fff;

  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(44, 36, 29, .06), 0 2px 6px rgba(44, 36, 29, .05);
  --shadow: 0 2px 4px rgba(44, 36, 29, .05), 0 12px 30px -8px rgba(44, 36, 29, .18);
  --shadow-lg: 0 30px 60px -20px rgba(20, 40, 32, .45);
  --container: 1180px;
  --gap: clamp(1.25rem, 3vw, 2rem);
  --section: clamp(4rem, 9vw, 7rem);

  /* subtle paper grain */
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .22 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, .3vw + 1rem, 1.15rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory) var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 2px; }
p, ul, ol, dl, figure, blockquote { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-900);
  margin: 0 0 .55em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 500; }
h3 { font-size: clamp(1.4rem, 1.8vw, 1.7rem); }
h4 { font-size: 1.25rem; }
h1 em, h2 em { font-style: italic; color: var(--gold); }

.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--green-900); color: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--parchment { background: var(--parchment) var(--paper); border-block: 1px solid var(--line); }
.section--green { background: var(--green-900); color: #e8e2d2; position: relative; isolation: isolate; }
.section--green::before { content: ""; position: absolute; inset: 0; background: url("/assets/img/map-lines.svg") center / 900px repeat; opacity: .07; z-index: -1; }
.section--green h2, .section--green h3 { color: var(--ivory); }
.section--green a:not(.btn) { color: var(--gold-pale); }

.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.1em; }
.section--green .section-head p { color: #c9c3b2; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--gap); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } .split--wide-text { grid-template-columns: 1.15fr .85fr; } }

.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9em; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.button-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.center .button-row, .button-row--center { justify-content: center; }

/* ---------- typographic details ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section--green .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-light); }
.lead { font-size: clamp(1.15rem, .6vw + 1rem, 1.3rem); color: var(--ink-soft); line-height: 1.65; }
.ornament { display: flex; align-items: center; justify-content: center; gap: .9rem; color: var(--gold); margin: 0 auto 1.5rem; max-width: 220px; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .55; }
.ornament span { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid currentColor; }
.section-head--left .ornament { margin-left: 0; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--green-900); --btn-fg: var(--ivory); --btn-bd: var(--green-900);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem;
  font: 600 .98rem/1.2 var(--font-body);
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { --btn-bg: var(--green-800); color: var(--btn-fg); box-shadow: var(--shadow-sm); }
.btn--gold { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: #fff; }
.btn--gold:hover { --btn-bg: #95742f; --btn-bd: #95742f; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--green-900); --btn-bd: var(--green-700); }
.btn--outline:hover { --btn-bg: var(--green-900); --btn-fg: var(--ivory); }
.btn--light { --btn-bg: transparent; --btn-fg: var(--ivory); --btn-bd: rgba(251, 248, 241, .5); }
.btn--light:hover { --btn-bg: var(--ivory); --btn-fg: var(--green-900); --btn-bd: var(--ivory); }
.btn--small { padding: .6rem 1.1rem; font-size: .9rem; }
.btn--large { padding: 1.05rem 2rem; font-size: 1.05rem; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold-light); color: var(--green-800); }
.text-link::after { content: " →"; }

/* ---------- header & nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 241, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--green-900); }
.brand:hover { color: var(--green-900); }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: .01em; }
.brand__descriptor { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.brand--light, .brand--light:hover { color: var(--ivory); }
.brand--light .brand__descriptor { color: #b7b09f; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a:not(.btn) { display: block; padding: .5rem .75rem; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem; border-radius: var(--radius); }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { color: var(--green-900); background: var(--parchment); }
.site-nav__cta { margin-left: .5rem; }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .brand__descriptor { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 20px; height: 2px; background: var(--green-900); position: relative; transition: transform .2s; }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -6px; } .nav-toggle__bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 1rem 1.25rem 1.5rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a:not(.btn) { padding: .85rem .75rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav__cta { margin: 1rem 0 0; } .site-nav__cta .btn { width: 100%; padding: .95rem; }
}
@media (max-width: 420px) { .brand__name { font-size: 1.25rem; } .brand__mark { width: 38px; height: 38px; } }

/* ---------- hero (home) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--green-950); color: #ded8c6; padding-block: clamp(4rem, 9vw, 7.5rem) clamp(4.5rem, 10vw, 8rem); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 75% 40%, #2c5242 0%, transparent 60%), radial-gradient(ellipse at 10% 100%, #233f32 0%, transparent 55%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/img/map-lines.svg") center / 1100px repeat; opacity: .09; }
.hero h1 { color: var(--ivory); margin-bottom: .4em; }
.hero h1 em { color: var(--gold-light); }
.hero .lead { color: #d4cdbb; max-width: 36em; }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.1fr .9fr; } }
.hero__trust { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .92rem; color: #bdb6a3; }
.hero__trust li { display: flex; align-items: center; gap: .5rem; }
.hero__trust li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-light); }
.hero__media { position: relative; }
.hero__media img { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; background: var(--green-900); color: #d8d2c0; padding-block: clamp(3.5rem, 7vw, 5.5rem); text-align: center; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/img/map-lines.svg") center / 900px repeat; opacity: .08; }
.page-hero h1 { color: var(--ivory); font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
.page-hero .lead { color: #d0c9b6; max-width: 40em; margin-inline: auto; }
.page-hero .muted, .hero .muted, .section--green .muted { color: #bdb6a3; }
.page-hero .small { max-width: 40em; margin-inline: auto; }

/* ---------- cards ---------- */
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.card__title { margin-bottom: .35em; }
.card__summary { color: var(--muted); }
.card__note { font-size: .92rem; color: var(--ink-soft); background: var(--parchment); border-left: 3px solid var(--gold-light); padding: .75rem 1rem; margin-top: auto; }
.card__cta { margin-top: auto; align-self: stretch; }
.card__note + .card__cta { margin-top: 1.25rem; }
.card-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: stretch; }
.card-grid--two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); max-width: 900px; margin-inline: auto; }
.card--package { border-top: 3px solid var(--green-700); }
.card--featured { border: 1px solid var(--gold-light); border-top: 3px solid var(--gold); box-shadow: var(--shadow); }
.card__ribbon { position: absolute; top: -.8rem; right: 1.5rem; margin: 0; background: var(--gold); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 2px; }
.card--print { border-top: 3px solid var(--gold); background: var(--white) var(--paper); }
.card--plain { box-shadow: none; background: transparent; border: 0; padding: 0; }
.card--link { text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.card--link:hover { color: inherit; box-shadow: var(--shadow); transform: translateY(-2px); }

.price { font-family: var(--font-display); color: var(--green-900); margin-bottom: .5rem; line-height: 1; }
.price__amount { font-size: 2.8rem; font-weight: 600; }
.price__unit, .price__from { font-family: var(--font-body); font-size: .95rem; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: .5rem 0 1.5rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; padding: .35rem 0; line-height: 1.5; font-size: .98rem; }
.checklist .tick { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .22rem; color: var(--gold); }

/* ---------- feature blocks ---------- */
.feature { text-align: left; }
.feature__icon { width: 52px; height: 52px; margin-bottom: 1.1rem; color: var(--gold); }
.feature h3 { font-size: 1.45rem; }
.feature p { color: var(--ink-soft); margin-bottom: 0; }
.section--green .feature p { color: #c9c3b2; }
.section--green .feature__icon { color: var(--gold-light); }

/* ---------- numbered process steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 3.8rem; }
.steps li::before { content: counter(step, upper-roman); position: absolute; top: 0; left: 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--gold); width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid var(--gold-light); border-radius: 50%; }
.steps h3 { font-size: 1.4rem; }
.steps p { margin: 0; color: var(--ink-soft); }
.section--green .steps p { color: #c9c3b2; }

/* ---------- callouts, notices, quotes ---------- */
.callout { background: var(--parchment) var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 1.4rem 1.6rem; border-radius: var(--radius); }
.callout > :last-child { margin-bottom: 0; }
.callout h3, .callout h4 { margin-bottom: .35em; }
.callout--green { background: #edf2ee; border-left-color: var(--green-700); }
.pullquote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.35; color: var(--green-900); border: 0; padding: 0; margin: 0 auto; max-width: 30em; text-align: center; }
.pullquote cite { display: block; margin-top: 1rem; font: normal .85rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* comparison: confirmed vs possible */
.evidence { display: grid; gap: 1rem; }
@media (min-width: 640px) { .evidence { grid-template-columns: 1fr 1fr; } }
.evidence__item { padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.evidence__item h4 { display: flex; align-items: center; gap: .5rem; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; }
.evidence__item--confirmed h4 { color: var(--green-700); }
.evidence__item--possible h4 { color: var(--gold); }
.evidence__item p { margin: 0; font-size: .98rem; }

/* ---------- media frames ---------- */
.framed { background: var(--white); padding: .75rem; border: 1px solid var(--line); box-shadow: var(--shadow); }
.framed--sepia img { filter: sepia(.35) contrast(.95); }
.figure-caption, figcaption { font-size: .88rem; color: var(--muted); margin-top: .75rem; font-style: italic; }
.image-slot { aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 1.5rem; background: var(--parchment-dark) var(--paper); border: 1px dashed var(--gold); color: var(--ink-soft); font-size: .9rem; border-radius: var(--radius); }

/* ---------- tables, faq ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: 1rem; }
.price-table th, .price-table td { padding: .95rem 1.2rem; border-bottom: 1px solid var(--line); text-align: left; }
.price-table thead th { background: var(--green-900); color: var(--ivory); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.price-table td { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--green-900); white-space: nowrap; text-align: right; }
.price-table tbody th { font-weight: 600; }
.price-table tbody th a { text-decoration: none; color: var(--ink); }
.price-table tbody tr:nth-child(even) { background: #fcfaf5; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; position: relative; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--green-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: 1.5rem; font-weight: 400; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 1.2rem; color: var(--ink-soft); }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- prose (legal / long text) ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose li { margin-bottom: .4em; }
.placeholder { background: #fff3c4; padding: 0 .25em; border-radius: 2px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.35rem; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin: 0; background: var(--white); display: grid; gap: 1.2rem; }
.form legend { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--green-900); padding: 0 .5rem; }
.form__row { display: grid; gap: 1.2rem; }
@media (min-width: 680px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field .label { font-weight: 600; font-size: .96rem; color: var(--ink); }
.field .hint { font-size: .86rem; color: var(--muted); margin: 0; }
.field .req { color: #9a3b2a; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; background: var(--ivory); border: 1px solid #cbbd9c; border-radius: var(--radius);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-light); outline-offset: 1px; border-color: var(--gold); background: var(--white); }
.choices { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.choice { display: flex; align-items: flex-start; gap: .55rem; font-weight: 400 !important; cursor: pointer; }
.choice input { width: 1.15rem; height: 1.15rem; margin-top: .3rem; accent-color: var(--green-800); flex: none; }
.form__honeypot { position: absolute; left: -9999px; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius); display: none; }
.form-status.is-visible { display: block; }
.form-status--error { background: #f8e4df; border: 1px solid #d9a89c; color: #6e2617; }
.form-status--info { background: #edf2ee; border: 1px solid #b6cbbd; }

/* ---------- example family history (book) ---------- */
.fictional-banner { background: var(--gold-pale); color: var(--ink); text-align: center; padding: .8rem 1rem; font-size: .95rem; border-bottom: 1px solid var(--gold-light); }
.book-page { background: #fffdf7 var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(1.75rem, 5vw, 3.5rem); position: relative; }
.book-page::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold-pale); pointer-events: none; }
.book-page__folio { position: absolute; bottom: 1.1rem; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-style: italic; color: var(--muted); font-size: .95rem; }
.book-page .drop-cap::first-letter { float: left; font-family: var(--font-display); font-size: 4.2em; line-height: .8; padding: .08em .1em 0 0; color: var(--green-900); }
.book-cover { background: var(--green-900); color: var(--gold-pale); text-align: center; padding: clamp(3rem, 8vw, 5rem) 2rem; border: 1px solid var(--green-950); box-shadow: var(--shadow-lg); position: relative; }
.book-cover::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201, 169, 95, .55); }
.book-cover::after { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(201, 169, 95, .25); }
.book-cover h2, .book-cover h3 { color: var(--gold-light); }

.family-tree { display: grid; gap: 0; justify-items: center; }
.tree-row { display: flex; justify-content: center; gap: clamp(.5rem, 2vw, 1.5rem); flex-wrap: wrap; position: relative; padding-block: 1.25rem; }
.tree-row + .tree-row::before { content: ""; position: absolute; top: 0; left: 50%; height: 1.25rem; border-left: 1px solid var(--gold); }
.person { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--green-700); padding: .7rem 1rem; text-align: center; min-width: 150px; box-shadow: var(--shadow-sm); }
.person--female { border-top-color: var(--gold); }
.person strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--green-900); line-height: 1.2; }
.person span { font-size: .82rem; color: var(--muted); }
.couple { display: flex; align-items: center; gap: .4rem; }
.couple::before { content: none; }
.couple__link { font-family: var(--font-display); color: var(--gold); font-size: 1.2rem; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5.25rem; top: .5rem; bottom: .5rem; border-left: 1px solid var(--gold-light); }
.timeline li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.5rem; padding: .6rem 0; position: relative; }
.timeline li::after { content: ""; position: absolute; left: calc(5.25rem - 5px); top: 1.15rem; width: 9px; height: 9px; background: var(--ivory); border: 2px solid var(--gold); transform: rotate(45deg); }
.timeline__year { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--green-900); text-align: right; }
.timeline__event { padding-left: .5rem; }
.timeline__event--world { color: var(--muted); font-style: italic; }

.record { background: #f4ecd8 var(--paper); border: 1px solid #cdbb94; padding: 1.5rem; font-family: var(--font-display); color: #3d3226; box-shadow: inset 0 0 40px rgba(120, 90, 40, .12); }
.record table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.record th, .record td { border: 1px solid #b9a57c; padding: .45rem .6rem; text-align: left; vertical-align: top; }
.record th { font-size: .82rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: #5f513e; background: rgba(185, 165, 124, .15); }
.record td { font-style: italic; font-size: 1.15rem; }
.record__title { text-align: center; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.photo-frame { background: #efe4cb; padding: 1rem 1rem 1.25rem; border: 1px solid #cbb78f; box-shadow: var(--shadow); text-align: center; }
.photo-frame img { width: 100%; }

/* ---------- CTA band & footer ---------- */
.cta-band { background: var(--parchment) var(--paper); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band__inner > div { max-width: 640px; }
.cta-band__title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .3em; }
.cta-band p { margin: 0; color: var(--ink-soft); }
.page-contact .cta-band, .page-thank-you .cta-band { display: none; }

.site-footer { background: var(--green-950); color: #b9b2a0; font-size: .95rem; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: #ddd6c4; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; } }
.site-footer__tagline { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--gold-light); margin: 1.25rem 0 .75rem; }
.site-footer__heading { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; gap: 1.5rem; }
.site-footer__legal li { margin: 0; }

/* ---------- print ---------- */
@media print { .site-header, .site-footer, .cta-band, .nav-toggle { display: none; } body { background: #fff; } }
