/* ============================================================
   Keep Victoria Park Open — campaign site styles
   Plain CSS (no build step). Utility + component classes.
   Palette: warm paper + park greens + heritage gold.
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --paper:      #f4f2e9;   /* warm off-white */
  --paper-2:    #ece8da;   /* deeper panel */
  --paper-3:    #e3dfcd;   /* card edge / rules on paper */
  --ink:        #23201a;   /* warm near-black body text */
  --ink-soft:   #4c4740;   /* secondary text */
  --green-900:  #16301f;   /* darkest sections */
  --green-800:  #1e3a2c;   /* headings, primary */
  --green-600:  #3f6b4e;   /* mid green */
  --green-400:  #6e9a78;   /* soft green */
  --gold:       #a9711a;   /* heritage ochre accent (urgency, links) */
  --gold-soft:  #e7c98a;
  --shade:      #4f5b3f;   /* "taken" fill on light bg */

  --line:       rgba(30, 58, 44, .16);
  --line-light: rgba(244, 242, 233, .22);

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;        /* wide container */
  --readable: 42rem;    /* prose measure */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(22, 48, 31, .06), 0 12px 28px -12px rgba(22, 48, 31, .22);
}

/* Optional: to use a self-hosted display serif (e.g. Fraunces),
   drop the woff2 into assets/fonts/ and uncomment:
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-VariableFont.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
}
:root { --font-serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif; }
*/

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.16rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-800); }
:target { scroll-margin-top: 5rem; }

/* ---- Accessibility helpers ---- */
.skip-link {
  position: absolute; left: 0.5rem; top: -3.5rem;
  background: var(--green-800); color: var(--paper);
  padding: .6rem 1rem; border-radius: 8px; z-index: 100;
  transition: top .15s ease;
}
.skip-link:focus { top: 0.5rem; color: var(--paper); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 5vw, 2.5rem); }
.section { padding-block: clamp(3.2rem, 8vw, 6rem); }
.prose { max-width: var(--readable); }
.prose p + p { margin-top: 1rem; }
.stack > * + * { margin-top: 1rem; }

/* ---- Typography ---- */
h1, h2, h3, .display { font-family: var(--font-serif); color: var(--green-800); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.2; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: .9rem;
}
.eyebrow--gold { color: var(--gold); }
.lead { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); color: var(--ink); }
.muted { color: var(--ink-soft); }
.section__head { max-width: 52rem; margin-bottom: clamp(2rem, 5vw, 3rem); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  font-family: var(--font-sans); font-weight: 650; font-size: 1.02rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn--primary { background: var(--green-800); color: var(--paper); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--green-900); color: var(--paper); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--green-800); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-2); color: var(--green-800); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #8f5f14; color:#fff; transform: translateY(-1px); }
.btn--sm { padding: .55rem 1rem; font-size: .92rem; }
.btn--block { width: 100%; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 242, 233, .88);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-serif); font-weight: 600; color: var(--green-800); font-size: 1.18rem; text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--green-900); }
.brand svg { flex: none; }
.nav { margin-left: auto; display: none; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem; }
.nav a:hover { color: var(--gold); }
.header-cta { margin-left: auto; }
.nav + .header-cta { margin-left: 1.6rem; }
@media (min-width: 60rem) { .nav { display: flex; } .header-cta { margin-left: 1.6rem; } }
@media (max-width: 30rem) { .brand { font-size: 1.02rem; } .site-header__inner { gap: .6rem; } }

/* ---- Hero ---- */
.hero {
  position: relative; color: var(--paper);
  background:
    linear-gradient(180deg, rgba(22,48,31,.35) 0%, rgba(22,48,31,.55) 55%, rgba(22,48,31,.82) 100%),
    /* hero.jpg with gradient fallback beneath */
    url("hero.jpg"),
    radial-gradient(120% 90% at 70% 0%, #35543d 0%, #1e3a2c 45%, #16301f 100%);
  background-size: cover, cover, cover;
  background-position: center, center 30%, center;
}
.hero__inner { padding-block: clamp(3.5rem, 12vw, 8rem); max-width: 46rem; }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color: var(--paper); font-size: clamp(2.4rem, 1.6rem + 5vw, 4.4rem); letter-spacing: -0.02em; }
.hero__summary { font-size: clamp(1.15rem, 1.05rem + 0.7vw, 1.5rem); margin-top: 1.1rem; color: #f4f2e9; max-width: 36rem; }
.hero__actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero__note { margin-top: 1.1rem; font-size: .92rem; color: rgba(244,242,233,.8); }

/* Deadline / countdown */
.deadline {
  margin-top: 2rem; display: inline-flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem;
  background: rgba(20, 40, 27, .5); border: 1px solid var(--line-light);
  padding: 1rem 1.25rem; border-radius: var(--radius);
}
.deadline__label { font-weight: 650; color: var(--gold-soft); font-size: .95rem; }
.countdown { display: flex; gap: .7rem; }
.countdown__unit { text-align: center; min-width: 3.1rem; }
.countdown__num { font-family: var(--font-serif); font-size: 1.7rem; line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; }
.countdown__lbl { display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,242,233,.72); margin-top: .3rem; }
.deadline__sub { flex-basis: 100%; font-size: .86rem; color: rgba(244,242,233,.78); }

/* ---- Key numbers ---- */
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 48rem) { .numbers { grid-template-columns: repeat(5, 1fr); } }
.numbers__cell { background: var(--paper); padding: 1.4rem 1.1rem; text-align: center; }
.numbers__fig { font-family: var(--font-serif); color: var(--green-800); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.numbers__lbl { margin-top: .5rem; font-size: .85rem; color: var(--ink-soft); line-height: 1.35; }

/* ---- Summer strip (signature) ---- */
.summer { margin-top: 2.5rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.2rem, 4vw, 2rem); }
.summer figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 1rem; }
.summer__title { font-weight: 650; color: var(--green-800); margin-bottom: 1rem; }
.strip { position: relative; }
.strip__track { position: relative; height: 3.6rem; border-radius: 8px; overflow: hidden; background: repeating-linear-gradient(90deg, #dfe6cf 0 2px, #e7ecdd 2px 4px); border: 1px solid var(--line); }
.strip__band { position: absolute; top: 0; bottom: 0; background: var(--shade); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.18; padding: 0 .3rem; font-size: .78rem; font-weight: 650; letter-spacing: .01em; }
.strip__band small { display: block; margin-top: .14rem; font-weight: 500; opacity: .85; font-size: .68rem; }
@media (max-width: 40rem) { .strip__band { font-size: .68rem; } .strip__band small { display: none; } }
.strip__holidays { position: absolute; top: -.55rem; height: .55rem; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.strip__holidays span { position: absolute; top: -1.35rem; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .72rem; font-weight: 650; color: var(--gold); }
.strip__months { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: .5rem; font-size: .78rem; color: var(--ink-soft); }
.strip__months span { text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: .82rem; color: var(--ink-soft); }
.legend b { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; }
.swatch { width: .95rem; height: .95rem; border-radius: 3px; border: 1px solid var(--line); flex: none; }
.swatch--taken { background: var(--shade); }
.swatch--open { background: #e7ecdd; }

/* ---- Map ---- */
.map-figure { margin: 2.5rem auto 0; max-width: 640px; }
.map-figure svg, .map-figure img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #f4f2e9; }
.map-figure figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: .8rem; }

/* ---- Callout (not against festivals) ---- */
.callout { margin-top: 2.5rem; border-left: 4px solid var(--green-600); background: var(--paper-2); padding: 1.3rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; }
.callout h3 { color: var(--green-800); margin-bottom: .4rem; }

/* ---- Section on dark ---- */
.section--dark { background: var(--green-900); color: var(--paper); }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark .eyebrow { color: var(--gold-soft); }
.section--dark .muted { color: rgba(244,242,233,.75); }
.section--dark a { color: var(--gold-soft); }
.section--dark a:hover { color: #fff; }

/* ---- Steps ---- */
.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; list-style: none; padding: 0; margin-top: 0; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: rgba(244,242,233,.06); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 1.4rem; min-width: 0; }
.step__num { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold-soft); line-height: 1; }
.step h3 { margin: .6rem 0 .4rem; font-size: 1.15rem; }
.step p { color: rgba(244,242,233,.82); font-size: .97rem; overflow-wrap: anywhere; }
.step a { font-weight: 650; }

/* ---- Notice ---- */
.notice { background: var(--gold); color: #241a06; border-radius: var(--radius); padding: 1.1rem 1.35rem; font-weight: 550; margin-bottom: 2rem; }
.notice strong { font-weight: 750; }

/* ---- Objection points ---- */
.points { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .points { grid-template-columns: repeat(2, 1fr); } }
.point {
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--paper-3); border-radius: var(--radius);
  padding: 1.35rem 1.4rem; display: flex; flex-direction: column;
}
.point__tag { font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--green-600); margin-bottom: .55rem; }
.point h3 { font-size: 1.16rem; margin-bottom: .5rem; color: var(--green-800); }
.point p { font-size: .97rem; color: var(--ink-soft); margin-bottom: 1.05rem; }
.point__foot { margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--paper-3); display: flex; align-items: center; gap: .7rem; }
.copy-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-sans); font-weight: 650; font-size: .88rem;
  color: var(--green-800); background: var(--paper-2); border: 1px solid var(--line);
  padding: .5rem .85rem; border-radius: 999px; cursor: pointer;
}
.copy-btn:hover { background: var(--paper-3); }
.copy-btn[data-copied="true"] { background: var(--green-600); color: #fff; border-color: var(--green-600); }

/* ---- Decision routes ---- */
.routes { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 48rem) { .routes { grid-template-columns: repeat(3, 1fr); } }
.route { background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--radius); padding: 1.4rem; }
.route h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.route p { font-size: .96rem; color: var(--ink-soft); }
.route a { font-weight: 650; }

/* ---- Spread the word ---- */
.spread-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .spread-grid { grid-template-columns: 1fr 1fr; } }
.card { background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--radius-lg); padding: clamp(1.3rem, 4vw, 2rem); }
.contact-line { margin-top: 1.6rem; font-size: .9rem; color: var(--ink-soft); }

/* ---- FAQ ---- */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.2rem 1.15rem 0; position: relative;
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--green-800); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--gold); line-height: 1; font-family: var(--font-sans);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.2rem; color: var(--ink-soft); max-width: 46rem; }
.faq details p + p { padding-bottom: 0; margin-bottom: 1.2rem; }

/* ---- Footer ---- */
.site-footer { background: var(--green-900); color: rgba(244,242,233,.82); padding-block: 3rem; }
.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color: #fff; }
.footer-brand { font-family: var(--font-serif); color: var(--paper); font-size: 1.25rem; margin-bottom: .5rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: space-between; }
.footer-meta { font-size: .85rem; line-height: 1.8; }
.footer-disclaimer { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-light); font-size: .82rem; color: rgba(244,242,233,.6); }

/* ---- Reveal on scroll (progressive; only hides when JS is present) ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
/* Failsafe: if app.js never runs, show everything */
.reveal-fallback .reveal { opacity: 1 !important; transform: none !important; }

/* ---- Simple content page (privacy) ---- */
.doc { max-width: 44rem; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-bottom: 1rem; }
.doc h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: .5rem; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { margin: .5rem 0 0 1.2rem; }
.doc li + li { margin-top: .4rem; }
.back-link { display: inline-block; margin-bottom: 2rem; font-weight: 650; }
