/* =========================================================================
   Mzee's Legacy — stylesheet
   A warm, reverent, celebratory theme. Light by default, with dark support.
   No external dependencies (fonts, CDNs) so it hosts anywhere and works offline.
   ========================================================================= */

:root {
  /* Palette — warm ivory, deep evergreen, gold */
  --ink:        #2a241d;   /* body text */
  --ink-soft:   #5b5247;   /* secondary text */
  --paper:      #fbf7ef;   /* page background */
  --paper-2:    #f3ecdf;   /* alt sections */
  --card:       #ffffff;
  --line:       #e6dcc8;   /* hairlines */
  --green:      #2f4a3f;   /* deep evergreen (primary) */
  --green-deep: #24382f;
  --gold:       #b8893b;   /* accent */
  --gold-soft:  #d9b877;
  --burgundy:   #7a2e2e;

  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 10px 30px rgba(42, 36, 29, 0.08);
  --shadow-lg:  0 24px 60px rgba(42, 36, 29, 0.14);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; color: var(--ink); font-weight: 600; }
p { margin: 0 0 1rem; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--paper-2); }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .98rem; line-height: 1;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(47,74,63,.25); }
.btn-primary:hover { background: var(--green-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-small { padding: .55rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Kickers & section heads ---------- */
.section-kicker, .eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; font-weight: 700; color: var(--gold); margin: 0 0 .9rem;
}
.section-head { max-width: 720px; margin: 0 0 3rem; }
.section-head.center { margin-inline: auto; }
.section-title { font-size: clamp(1.8rem, 4.2vw, 2.6rem); margin: 0 0 1rem; }
.section-sub { font-size: 1.08rem; color: var(--ink-soft); }
.section-sub em { color: var(--gold); font-style: italic; }

/* ============================ HEADER / NAV ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: inline-flex; color: var(--gold); }
.brand-mark svg { width: 24px; height: 24px; display: block; }
.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.primary-nav a:hover { color: var(--green); }
.primary-nav .nav-cta {
  color: var(--green); font-weight: 600; border: 1.5px solid var(--green);
  padding: .5rem 1rem; border-radius: 999px;
}
.primary-nav .nav-cta:hover { background: var(--green); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ============================ HERO ============================ */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.hero-glow {
  position: absolute; inset: -30% 20% auto -10%; height: 620px;
  background: radial-gradient(closest-side, rgba(217,184,119,.35), rgba(217,184,119,0));
  filter: blur(10px); pointer-events: none;
}
.hero-inner {
  position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.hero-copy { max-width: 640px; }
.hero-portrait { margin: 0; position: relative; }
.hero-portrait img {
  width: 100%; height: auto; border-radius: 18px; object-fit: cover;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero-portrait::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border-radius: 18px; background: linear-gradient(150deg, var(--gold-soft), var(--green));
  opacity: .28;
}
/* Occasion badge — deliberately distinct */
.hero-occasion { margin: 0 0 1.5rem; }
.hero-occasion span {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  font-size: clamp(.72rem, 1.5vw, .82rem); letter-spacing: .22em; text-transform: uppercase;
  color: var(--green-deep); background: linear-gradient(180deg, rgba(217,184,119,.35), rgba(217,184,119,.18));
  border: 1.5px solid var(--gold); border-radius: 999px; padding: .55rem 1.2rem;
}
/* His name — the hero's focal point */
.hero-name-big {
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: clamp(2.5rem, 6.6vw, 4.4rem); line-height: 1.04; letter-spacing: -0.015em;
  margin: 0 0 1rem;
}
.hero-dates-big {
  font-family: var(--sans); font-weight: 700; font-size: clamp(.8rem, 1.7vw, .95rem);
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.5rem;
}
.hero-tagline {
  font-family: var(--serif); font-style: italic; color: var(--ink-soft);
  font-size: clamp(1.2rem, 2.8vw, 1.6rem); margin: 0 0 1.5rem;
}
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--ink-soft); max-width: 640px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.6rem; }
.hero-note { font-size: .95rem; color: var(--ink-soft); }

/* ============================ INVITATION ============================ */
.invitation { background: var(--green); color: #f3ecdf; padding: clamp(3rem, 7vw, 5rem) 0; }
.invitation .section-kicker { color: var(--gold-soft); }
.invitation .lede { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.5; color: #f6efe2; }
.invitation .lede strong { color: #fff; }

/* ============================ PILLARS ============================ */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar-icon {
  width: 46px; height: 46px; margin-bottom: 1rem; display: inline-flex;
  align-items: center; justify-content: center; color: var(--gold);
  border: 1px solid var(--gold-soft); border-radius: 50%;
}
.pillar-icon svg { width: 24px; height: 24px; }
.footer-brand .brand-mark svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
.pillar p { font-size: .96rem; color: var(--ink-soft); margin: 0; }

/* ---------- Pull quote (His Story) ---------- */
.pullquote { margin: 0 0 3rem; padding: 2rem 0; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pullquote blockquote {
  margin: 0 auto .8rem; max-width: 720px; font-family: var(--serif);
  font-size: clamp(1.3rem, 3.2vw, 1.9rem); line-height: 1.4; color: var(--green); font-style: italic;
}
.pullquote figcaption { font-size: .95rem; color: var(--ink-soft); max-width: 560px; margin-inline: auto; }

/* ---------- Remembered-by line (His Story) ---------- */
.remembered { max-width: 720px; margin: 2.5rem auto 0; font-size: 1.02rem; }
.remembered strong { color: var(--ink); }

/* ---------- Scripture verse (reusable, sprinkled through the site) ---------- */
.verse { max-width: 660px; margin: 2.2rem auto 0; text-align: center; }
.verse::before { content: "\271D"; display: block; color: var(--gold); font-size: 1rem; margin-bottom: .8rem; opacity: .8; }
.verse blockquote {
  margin: 0 0 .6rem; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem); line-height: 1.5; color: var(--green);
}
.verse cite {
  font-family: var(--sans); font-style: normal; font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 700; color: var(--gold);
}
/* On the deep-green sections, lighten the verse for contrast */
.invitation .verse blockquote, .memory .verse blockquote { color: #f4eddd; }
.invitation .verse cite, .memory .verse cite { color: var(--gold-soft); }
.invitation .verse::before, .memory .verse::before { color: var(--gold-soft); }

/* ---------- Closing verse in the footer ---------- */
.footer-verse { font-family: var(--serif); font-style: italic; color: #e6cd97;
  font-size: 1.05rem; margin: 0 auto .4rem; max-width: 560px; }
.footer-verse cite { display: block; font-family: var(--sans); font-style: normal;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #b8ad97; margin-top: .4rem; }

/* ============================ EVENT ============================ */
.event-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start; }
.facts { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.facts li { display: flex; flex-direction: column; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts li:first-child { padding-top: 0; }
.fact-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); font-weight: 700; margin-bottom: .25rem; }
.fact-value { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }

.program { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 2rem; box-shadow: var(--shadow); }
.program-title { font-size: 1.3rem; margin: 0 0 1.2rem; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1.3rem 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.t-dot { position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--paper-2); }
.timeline h4 { margin: 0 0 .2rem; font-size: 1.05rem; }
.timeline p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

/* ============================ BOOKS ============================ */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.6rem; }
.book-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cover {
  aspect-ratio: 3 / 4; border-radius: var(--radius-sm); margin-bottom: 1rem;
  display: flex; align-items: flex-end; padding: 1rem; color: #fdf6e6;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.2;
  background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 60%, #16241d 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 6px 0 12px rgba(0,0,0,.25);
  position: relative; overflow: hidden;
}
.cover::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 3px; background: var(--gold-soft); opacity: .8; }
.book-card:nth-child(2) .cover { background: linear-gradient(150deg, var(--burgundy), #4a1c1c); }
.book-card:nth-child(3) .cover { background: linear-gradient(150deg, #3a3730, #211f1a); }
.book-card:nth-child(4) .cover { background: linear-gradient(150deg, #2f4a3f, #1a2b23); }
.book-card:nth-child(5) .cover { background: linear-gradient(150deg, #8a6a2f, #4a3818); }
.book-card h3 { font-size: 1.1rem; margin: 0 0 .35rem; }
.book-card p { font-size: .9rem; color: var(--ink-soft); margin: 0 0 1rem; flex: 1; }
.book-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.price { font-family: var(--serif); font-weight: 600; color: var(--gold); font-size: .95rem; }

/* ============================ ART ============================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.art-tile {
  margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  position: relative; display: flex; align-items: flex-end; border: 1px solid var(--line);
}
.art-tile figcaption {
  position: relative; z-index: 2; width: 100%; padding: .8rem 1rem;
  font-size: .85rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.art-a { background: linear-gradient(135deg, #c8a06a, #8a6a3c); }
.art-b { background: linear-gradient(135deg, #6f8a7a, #3d5a4c); }
.art-c { background: linear-gradient(135deg, #b07a6a, #7a3e34); }
.art-d { background: linear-gradient(135deg, #7a8ab0, #3e4d7a); }
.art-e { background: linear-gradient(135deg, #b0a06a, #7a6a3c); }
.art-f { background: linear-gradient(135deg, #8a7aa0, #4d3e6a); }
.art-cta p { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 1rem; }

/* Featured real artworks (already framed in the source images) */
.art-showcase {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 3rem); margin-bottom: 3rem;
}
.art-piece { margin: 0; }
.art-piece img {
  width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: block;
}
.art-piece.art-portrait { flex: 1 1 340px; max-width: 420px; }
.art-piece.art-landscape { flex: 1 1 460px; max-width: 640px; }
.art-piece figcaption {
  margin-top: .9rem; text-align: center; font-family: var(--serif); font-style: italic;
  font-size: .95rem; color: var(--ink-soft);
}
.art-piece figcaption strong { color: var(--ink); font-style: normal; }

/* ============================ MEMORY ============================ */
.memory { background: var(--green-deep); color: #f3ecdf; }
.memory .section-kicker { color: var(--gold-soft); }
.memory .section-title, .memory p { color: #f3ecdf; }
.memory .section-sub { color: #d7cdb9; }
.video-frame {
  margin-top: 2rem; aspect-ratio: 16 / 9; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
}
.video-inner { text-align: center; color: #d7cdb9; }
.video-inner .play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 66px; height: 66px; border-radius: 50%; background: var(--gold);
  color: #24382f; font-size: 1.4rem; margin-bottom: 1rem;
}
.video-inner p { margin: 0; }

/* ---------- Life-in-pictures gallery (Memory section) ---------- */
.life-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem;
}
.life-gallery figure {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .2);
}
.life-gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.life-gallery figure:hover img { transform: scale(1.04); }
.life-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.4rem .9rem .7rem; font-size: .82rem; color: #f4eddd;
  font-family: var(--serif); font-style: italic;
  background: linear-gradient(transparent, rgba(15, 25, 20, .8));
}
@media (max-width: 760px) { .life-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .life-gallery { grid-template-columns: 1fr; } }

/* ============================ FOUNDATION ============================ */
.foundation-lead { max-width: 760px; margin: 0 auto 2.6rem; }
.foundation-lead p { color: var(--ink-soft); font-size: 1.06rem; margin: 0 0 1.1rem; }
.foundation-lead p:first-child { color: var(--ink); font-size: 1.14rem; }
.foundation-lead p:last-child { margin-bottom: 0; }

.focus-cards {
  list-style: none; margin: 0 0 2.6rem; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.focus-cards li {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 1.3rem 1.3rem; box-shadow: var(--shadow);
}
.focus-cards h4 { margin: 0 0 .4rem; font-size: 1.08rem; }
.focus-cards p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

.foundation-foot { max-width: 680px; margin: 0 auto; }
.foundation-foot .muted { margin-bottom: 1.4rem; }

/* ============================ SUPPORT / FORM ============================ */
.support { background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.support-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-lg); margin-top: 2.5rem;
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field .optional { color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,74,63,.12);
}
.field textarea { resize: vertical; }
.form-status { margin: 1rem 0 0; font-size: .95rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--burgundy); }
.form-fineprint { margin: 1rem 0 0; font-size: .82rem; color: var(--ink-soft); text-align: center; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--green-deep); color: #d7cdb9; padding: 3rem 0 2rem; }
.footer-inner { display: grid; gap: 1.6rem; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.footer-brand .brand-text { font-family: var(--serif); font-size: 1.3rem; color: #f3ecdf; }
.footer-tag { margin: .3rem 0 0; font-size: .9rem; color: #b8ad97; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.footer-nav a { color: #d7cdb9; font-size: .92rem; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-legal { margin: 0; font-size: .82rem; color: #9c9179; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 340px; margin: 0 auto; order: -1; }
  .hero-copy { max-width: none; }
}
@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .event-grid { grid-template-columns: 1fr; }
  .focus-cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 1.2rem 1.2rem; box-shadow: var(--shadow);
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
  .primary-nav .nav-cta { text-align: center; margin-top: .8rem; border-radius: 999px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .focus-cards { grid-template-columns: 1fr; }
}

/* ============================ DARK MODE ============================ */
@media (prefers-color-scheme: dark) {
  :root {
    --ink:#ece3d3; --ink-soft:#b7ac97; --paper:#181510; --paper-2:#201b14;
    --card:#221d16; --line:#3a3227; --green:#5c8a76; --green-deep:#3d5a4c;
    --gold:#d9b877; --gold-soft:#e6cd97;
  }
  body { color: var(--ink); }
  h1,h2,h3,h4 { color: var(--ink); }
  .site-header { background: rgba(24,21,16,.85); }
  .btn-primary { background: var(--green-deep); }
  .btn-primary:hover { background: var(--green); }
  .invitation { background: #16241d; }
  .cover { color: #fdf6e6; }
}
:root[data-theme="light"] {
  --ink:#2a241d; --ink-soft:#5b5247; --paper:#fbf7ef; --paper-2:#f3ecdf;
  --card:#fff; --line:#e6dcc8; --green:#2f4a3f; --green-deep:#24382f; --gold:#b8893b; --gold-soft:#d9b877;
}
:root[data-theme="dark"] {
  --ink:#ece3d3; --ink-soft:#b7ac97; --paper:#181510; --paper-2:#201b14;
  --card:#221d16; --line:#3a3227; --green:#5c8a76; --green-deep:#3d5a4c; --gold:#d9b877; --gold-soft:#e6cd97;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* =========================================================================
   SAVE-THE-DATE REWORK (2026-09) — new components
   ========================================================================= */

/* Hero facts line */
.hero-facts { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: .95rem; margin: 0 0 1.6rem; }

/* His Story: bio + portrait */
.story-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; margin-bottom: 3rem; }
.story-copy p { font-size: 1.06rem; color: var(--ink-soft); margin: 0 0 1.1rem; }
.story-copy .pullquote { text-align: left; border-top: 1px solid var(--line); border-bottom: none; margin: 1.6rem 0 0; padding: 1.4rem 0 0; }
.story-copy .pullquote blockquote { margin-inline: 0; font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.story-copy .pullquote figcaption { margin-inline: 0; }
.story-portrait { margin: 0; position: relative; }
.story-portrait img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.story-portrait::after { content: ""; position: absolute; inset: 12px -12px -12px 12px; z-index: -1; border-radius: var(--radius); background: linear-gradient(150deg, var(--gold-soft), var(--green)); opacity: .25; }

/* Support / fundraising */
.support-fund { background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.fund-progress { max-width: 720px; margin: 0 auto 2.6rem; }
.fund-bar { height: 14px; background: var(--line); border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.12); }
.fund-bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--green)); transition: width 1s ease; }
.fund-figures { text-align: center; margin: .8rem 0 0; font-size: 1rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.fund-figures strong { font-family: var(--serif); font-size: 1.25rem; color: var(--green); }

.budget-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.budget-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.budget-card > header { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.budget-card h3 { font-size: 1.12rem; margin: 0; }
.budget-subtotal { font-family: var(--sans); font-weight: 700; color: var(--gold); font-size: .82rem; letter-spacing: .06em; }
.budget-card ul { list-style: none; margin: 0; padding: 0; }
.budget-card li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: .93rem; color: var(--ink-soft); border-bottom: 1px dashed var(--line); }
.budget-card li:last-child { border-bottom: none; }
.budget-card li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.budget-total { max-width: 1120px; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.6rem; padding: 1.2rem 1.6rem; background: var(--green); color: #f3ecdf; border-radius: var(--radius); }
.budget-total > span:first-child { font-family: var(--serif); font-size: 1.15rem; }
.budget-total-amount { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Books, matched pair, presented as standing volumes */
.books-two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.book2 {
  position: relative; display: flex; flex-direction: column; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2.6rem 1.8rem 2rem;
}
.book2-badge {
  position: absolute; top: 1.1rem; right: 1.1rem; font-family: var(--sans); font-size: .66rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .35rem .75rem; border-radius: 999px;
}
.badge-available { background: var(--green); color: #fff; }
.badge-preorder { background: var(--gold); color: #3a2a10; }
.book2-cover { display: flex; justify-content: center; margin-bottom: 1.8rem; }
.book2-cover img {
  height: clamp(260px, 34vw, 340px); width: auto; display: block;
  border-radius: 2px 5px 5px 2px;
  box-shadow:
    0 20px 34px -14px rgba(42, 36, 29, .5),        /* grounded drop shadow */
    -12px 6px 22px -14px rgba(42, 36, 29, .35),    /* soft cast to the side */
    inset 5px 0 7px -3px rgba(255, 255, 255, .28), /* spine highlight */
    inset -2px 0 4px -1px rgba(0, 0, 0, .18);      /* fore-edge shade */
}
.book2-body { display: flex; flex-direction: column; align-items: center; gap: .45rem; flex: 1; }
.book2-body h3 { font-size: 1.22rem; margin: 0; text-wrap: balance; }
.book2-sub { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin: 0; font-size: .95rem; }
.book2-price { font-family: var(--sans); font-weight: 700; letter-spacing: .04em; color: var(--gold); margin: .2rem 0 0; font-size: 1.02rem; }
.book2-body p:not(.book2-price):not(.book2-sub) { font-size: .94rem; color: var(--ink-soft); margin: .3rem 0 0; }
.book2-body .btn { margin-top: 1.2rem; }
.books-note { margin-top: 1.8rem; font-size: .9rem; }

/* Art gallery, framed pieces (masonry) */
.art-grid { columns: 2; column-gap: 1.4rem; }
.art-frame { margin: 0 0 1.4rem; break-inside: avoid; }
.art-frame img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }

/* Form: two-up rows */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Payment panel */
.pay-panel { margin-top: 2rem; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow-lg); }
.pay-title { font-size: clamp(1.2rem, 3vw, 1.5rem); margin: 0 0 1.4rem; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.pay-method { }
.pay-method-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.pay-method-head h4 { margin: 0; font-size: 1.05rem; }
.pay-badge { font-family: var(--sans); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .3rem .55rem; border-radius: 6px; color: #fff; }
.pay-badge.momo { background: #f5a623; color: #3a2a10; }
.pay-badge.bank { background: var(--green); }
.pay-steps { margin: 0; padding-left: 1.2rem; }
.pay-steps li { font-size: .94rem; color: var(--ink-soft); margin-bottom: .4rem; }
.pay-code { font-family: var(--sans); font-size: 1.15rem; letter-spacing: .12em; color: var(--green); background: var(--paper-2); padding: .1rem .45rem; border-radius: 6px; }
.pay-soon { font-style: italic; }
.pay-confirm { margin: 1.6rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-portrait { max-width: 360px; margin: 0 auto; order: -1; }
  .budget-grid { grid-template-columns: 1fr; }
  .pay-methods { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .books-two { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .art-grid { columns: 1; }
}

/* Bank transfer details (payment panel) */
.pay-bank { margin: 0 0 .8rem; display: grid; gap: .45rem; }
.pay-bank > div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-bottom: .45rem; border-bottom: 1px dashed var(--line); }
.pay-bank dt { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 700; }
.pay-bank dd { margin: 0; font-size: .95rem; color: var(--ink); text-align: right; }

/* Memory form: file input + hints; pay note */
.field-hint { margin: .5rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.field input[type="file"] { width: 100%; font-family: var(--sans); font-size: .92rem; color: var(--ink-soft);
  padding: .7rem .8rem; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); background: var(--paper); cursor: pointer; }
.field input[type="file"]::file-selector-button { font-family: var(--sans); font-weight: 600; font-size: .85rem;
  margin-right: .8rem; padding: .45rem .9rem; border: 0; border-radius: 999px; background: var(--green); color: #fff; cursor: pointer; }
.pay-note { margin: .8rem 0 0; font-size: .88rem; font-style: italic; }

/* Closing section — the beloved portrait and a benediction */
.closing { background: var(--green-deep); color: #f3ecdf; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.closing-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
.closing-portrait { margin: 0; }
.closing-portrait img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.closing-copy .verse { margin: 0; max-width: none; text-align: left; }
.closing-copy .verse::before { display: none; }
.closing-copy .verse blockquote { color: #f6efe2; font-size: clamp(1.4rem, 3.4vw, 2.1rem); }
.closing-copy .verse cite { color: var(--gold-soft); }
.closing-name { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.7rem); color: #fff; margin: 1.8rem 0 .2rem; }
.closing-dates { font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; margin: 0; }
@media (max-width: 760px) {
  .closing-inner { grid-template-columns: 1fr; text-align: center; }
  .closing-portrait { max-width: 300px; margin: 0 auto; }
  .closing-copy .verse { text-align: center; }
}

/* Floating RSVP capture */
.rsvp-fab { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 200; }
.rsvp-fab-btn {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-weight: 700;
  font-size: .95rem; letter-spacing: .02em; color: #fff; background: var(--green);
  border: 0; border-radius: 999px; padding: .85rem 1.4rem; cursor: pointer;
  box-shadow: 0 10px 26px rgba(47,74,63,.4); transition: transform .15s ease, background .2s ease;
}
.rsvp-fab-btn:hover { transform: translateY(-2px); background: var(--green-deep); }
.rsvp-fab-btn svg { width: 20px; height: 20px; }
.rsvp-fab.rsvp-hidden { display: none; }
.rsvp-fab.rsvp-open .rsvp-fab-btn { display: none; }
.rsvp-card {
  position: absolute; right: 0; bottom: 0; width: min(92vw, 360px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.6rem 1.5rem 1.5rem;
}
.rsvp-close { position: absolute; top: .6rem; right: .8rem; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.rsvp-close:hover { color: var(--ink); }
.rsvp-kicker { font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; font-weight: 700; color: var(--gold); margin: 0 0 .3rem; }
.rsvp-card h3 { font-size: 1.35rem; margin: 0 0 .35rem; }
.rsvp-lead { font-size: .92rem; color: var(--ink-soft); margin: 0 0 1rem; }
.rsvp-card .field { margin-bottom: .8rem; }
.rsvp-card .field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .3rem; }
.rsvp-card .field input {
  width: 100%; font-family: var(--sans); font-size: .95rem; padding: .6rem .75rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
}
.rsvp-card .field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,74,63,.12); }
@media (max-width: 480px) {
  .rsvp-fab { right: .8rem; left: .8rem; bottom: .8rem; }
  .rsvp-card { width: auto; }
  .rsvp-fab-btn { width: 100%; justify-content: center; }
}
