/* Page Lemon template: Taper. Colour and type live in :root; everything else reads from these tokens. */
:root {
  --night: #1D0E1E; /* Page background, midnight plum */
  --plum: #2E1430; /* Alternate bands and footer */
  --plum-lift: #43203F; /* Hairlines and borders on plum */
  --wine: #6B2D55; /* Links and focus on the light band */
  --gold: #C9A455; /* Burnished gold: rules, buttons, focus on plum (decorative and UI) */
  --gold-text: #E2C077; /* Gold for small text on plum (AA) */
  --ivory: #F7EEDC; /* Main text on plum */
  --mist: #CDBBC7; /* Secondary text on plum (AA) */
  --lilac-paper: #F4EEF3; /* Light band and form cards */
  --ink: #2A1229; /* Main text on the light band */
  --flame: #FFB35C; /* Candle glow, decorative */
  --font-display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif; /* Headlines, times, numerals */
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; /* Body and UI */
  --gutter: 16px; /* Side gutter at every width */
  --max: 1160px; /* Content width */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-text); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.6rem, 9vw, 6rem); }
h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.band { background: var(--plum); }
.band-light { background: var(--lilac-paper); color: var(--ink); }
.band-light h2, .band-light h3 { color: var(--ink); }
.band-light a { color: var(--wine); }
.band-light a.btn { color: var(--night); }
.band-light a.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--wine); }
.band-light .plain-list li::marker { color: var(--wine); }
.closing { text-align: center; }
.closing p { margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 10;
  background: var(--gold); color: var(--night);
  padding: 10px 14px; border-radius: 2px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.band-light :focus-visible { outline-color: var(--wine); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(29, 14, 30, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 164, 85, 0.35);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark {
  font-family: var(--font-display); font-style: italic; font-size: 1.35rem;
  color: var(--ivory); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.nav-inline { display: none; }
.nav-disclosure { position: relative; }
.nav-disclosure summary {
  list-style: none; cursor: pointer; min-height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: center; padding: 0 12px;
  color: var(--ivory); border: 1px solid var(--gold); border-radius: 2px;
}
.nav-disclosure summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: min(300px, calc(100vw - 32px));
  display: grid; gap: 4px; padding: 12px;
  background: var(--plum); border: 1px solid rgba(201, 164, 85, 0.45); border-radius: 2px;
}
.menu-panel a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ivory); text-decoration: none; border-radius: 2px;
}
.menu-panel a:hover { background: var(--plum-lift); }
.menu-panel a.btn { margin-top: 8px; justify-content: center; color: var(--night); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border: 0; border-radius: 2px;
  background: var(--gold); color: var(--night);
  font: 500 1rem/1.2 var(--font-body); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: #D9B86C; }
.btn-ghost { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 1px var(--gold); }
.btn-ghost:hover { background: rgba(201, 164, 85, 0.12); }
.btn-small { min-height: 44px; padding: 8px 16px; }
.nav-inline a.btn, .menu-panel a.btn { color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.closing .btn-row { justify-content: center; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  padding: 48px 0 72px;
  background:
    radial-gradient(60% 50% at 78% 96%, rgba(255, 179, 92, 0.28), transparent 70%),
    radial-gradient(55% 60% at 8% 0%, rgba(107, 45, 85, 0.7), transparent 70%),
    var(--night);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-date { color: var(--gold-text); font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px; }
.hero-names {
  font-size: clamp(3.6rem, 15vw, 10.5rem); line-height: 0.92; margin: 0 0 28px;
}
.hero-names span { display: block; }
.hero-names .amp { font-style: italic; color: var(--gold-text); font-size: 0.5em; line-height: 1.4; }
.lede { font-size: 1.15rem; color: var(--mist); max-width: 36ch; }

/* Photo frames */
.frame { margin: 0; }
.frame img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 2px; background: var(--plum);
  outline: 1px solid rgba(201, 164, 85, 0.4); outline-offset: 8px;
}
.frame figcaption { margin-top: 18px; font-size: 0.9rem; color: var(--mist); }
.band-light .frame figcaption { color: #5A3D56; }

/* Story */
.split { display: grid; gap: 40px; align-items: center; }
.beats { list-style: none; margin: 28px 0 0; display: grid; gap: 26px; }
.beats li { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; align-items: baseline; }
.beats .year { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--gold-text); }
.beats p { margin: 0; color: var(--ivory); }

/* Clock list (the evening at a glance) */
.clock-list { list-style: none; margin: 32px 0 0; border-top: 1px solid var(--gold); }
.clock-list li {
  display: grid; grid-template-columns: minmax(max-content, 8.5rem) 1fr; gap: 16px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid rgba(201, 164, 85, 0.3);
}
.clock { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; color: var(--gold-text); margin: 0; max-width: none; }
.clock-list p { margin: 0; }

/* Plain lists */
.plain-list { margin: 0 0 1em; padding-left: 1.2em; }
.plain-list li { margin: 0 0 0.6em; }

/* Order of the evening (timeline) */
.timeline { list-style: none; margin: 40px 0 0; padding: 0 0 0 36px; position: relative; max-width: 720px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(var(--gold), rgba(201, 164, 85, 0.15));
}
.timeline li { position: relative; padding: 0 0 36px; }
.timeline .dot {
  position: absolute; left: -36px; top: 8px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--night); box-shadow: inset 0 0 0 2px var(--gold), 0 0 18px rgba(255, 179, 92, 0.5);
}
.timeline time { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; color: var(--gold-text); }
.timeline h3 { font-size: 1.35rem; margin: 4px 0 6px; }
.timeline p { margin: 0; }
.js-timeline .timeline li:not(.is-lit) .dot { opacity: 0.25; }
.timeline li.is-lit .dot { opacity: 1; transition: opacity 0.9s ease; }

/* Facts (venue) */
.facts { display: grid; gap: 22px; margin: 28px 0 0; }
.facts > div { border-top: 1px solid rgba(201, 164, 85, 0.45); padding-top: 14px; }
.facts dt { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.facts dd { margin: 6px 0 0; max-width: 60ch; }
.facts a { color: var(--gold-text); }

/* Forms (inert demo; the classes are reused by the real plugin markup) */
.form-card {
  background: var(--lilac-paper); color: var(--ink);
  padding: clamp(22px, 4vw, 40px); border-radius: 2px; margin-top: 32px;
}
.form-card h2, .form-card h3 { color: var(--ink); }
.field { margin: 0 0 20px; }
.field label { display: block; font-weight: 500; margin: 0 0 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #8F6A88; border-radius: 2px;
}
.field textarea { min-height: 112px; resize: vertical; }
.hint { font-size: 0.9rem; color: #5A3D56; margin: 6px 0 0; }
.fallback {
  margin-top: 28px; padding: 18px 20px; border-left: 2px solid var(--gold);
  background: rgba(67, 32, 63, 0.5);
}
.fallback p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--plum); border-top: 1px solid rgba(201, 164, 85, 0.35);
  padding: 56px 0 40px; font-size: 0.95rem; color: var(--mist);
}
.footer-grid { display: grid; gap: 28px; }
.footer-grid p { margin: 0 0 8px; max-width: none; }
.footer-grid a { color: var(--ivory); }
.footer-name { font-family: var(--font-display); font-size: 1.6rem; color: var(--ivory) !important; margin-bottom: 8px !important; }
.footer-grid .btn { color: var(--night); }

/* Document pages (404, privacy) */
.doc { padding: 72px 0; }
.doc h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
.doc p { max-width: 64ch; }

@media (min-width: 560px) {
  .beats li { grid-template-columns: auto 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 760px) {
  .nav-disclosure { display: none; }
  .nav-inline { display: flex; align-items: center; gap: 28px; }
  .nav-inline ul { display: flex; gap: 24px; list-style: none; }
  .nav-inline a {
    display: inline-flex; align-items: center; min-height: 44px;
    color: var(--ivory); text-decoration: none;
  }
  .nav-inline a[aria-current="page"] { color: var(--gold-text); box-shadow: inset 0 -2px 0 var(--gold); }
  .nav-inline a.btn[aria-current="page"] { color: var(--night); box-shadow: inset 0 -2px 0 var(--ivory); }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .hero-frame img { aspect-ratio: 4 / 5; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse > :first-child { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-timeline .timeline li:not(.is-lit) .dot { opacity: 1; }
  *, *::before, *::after { transition: none !important; }
}
