/* ==========================================================================
   David Parmer — davidparmer.ca
   Global design system
   Source of truth: Parmer_Website_Build.md, Section A
   Aesthetic: quiet editorial gravitas — the "educator-citizen"
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Fonts
   Headlines: Source Serif 4 (web) with Georgia fallback per spec A3.
   Body: native system sans stack per spec A3 (no web request, instant).
--------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,600&display=swap');

/* ---------------------------------------------------------------------------
   2. Design tokens
--------------------------------------------------------------------------- */
:root {
  /* Brand palette (Build spec A2) */
  --navy:  #14233C;   /* Civic Navy   */
  --gold:  #B8893D;   /* Stouffville Gold */
  --green: #3F6B51;   /* Library Green */
  --cream: #F7F3EC;   /* Paper Cream  */
  --ink:   #0F1A2E;   /* Reading Ink  */

  /* Supporting neutrals */
  --white:        #FFFFFF;
  --border:       #E5DFD3;   /* card borders */
  --border-navy:  rgba(247, 243, 236, 0.16);
  --muted:        #5A6473;   /* secondary text on light */
  --cream-on-navy:#EDE6D8;
  --gold-soft:    #cda86a;   /* gold on dark, for AA contrast */
  --placeholder:  #D7D0C2;   /* photo placeholder grey */
  --placeholder-ink: #8A8475;

  /* Type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono:  "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, monospace;

  /* Rhythm */
  --maxw:        1140px;
  --textw:       720px;
  --pad-x:       clamp(20px, 5vw, 40px);
  --section-y:   clamp(56px, 9vw, 96px);
  --radius:      12px;
  --radius-sm:   8px;

  --shadow-card: 0 1px 2px rgba(20, 35, 60, 0.04),
                 0 12px 32px -18px rgba(20, 35, 60, 0.22);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------------------------
   3. Reset & base
--------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* sticky nav offset for anchor links */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;          /* 17px base */
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) {
  body { font-size: 1.125rem; }  /* 18px */
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--gold);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.18s var(--ease);
}
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: rgba(184, 137, 61, 0.22); }

/* ---------------------------------------------------------------------------
   4. Typography
--------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 5.4vw, 3.5rem); line-height: 1.15; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem);  line-height: 1.3; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.3; }

/* Italic gold emphasis words inside headlines (spec A3) */
h1 em, h2 em, h3 em, .em-gold {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.18rem, 2vw, 1.375rem);
  line-height: 1.55;
  color: #2A3647;
}

strong { font-weight: 600; color: var(--navy); }

.prose { max-width: var(--textw); }
.prose p { max-width: 68ch; }

/* Eyebrow / label (spec A3) */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
.eyebrow--navy { color: rgba(20, 35, 60, 0.7); }
.on-navy .eyebrow { color: var(--gold-soft); }

/* ---------------------------------------------------------------------------
   5. Layout primitives
--------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }

/* Coloured fields */
.field-navy  { background: var(--navy);  color: var(--cream-on-navy); }
.field-cream { background: var(--cream); color: var(--ink); }
.field-white { background: var(--white); color: var(--ink); }
.field-navy h1, .field-navy h2, .field-navy h3 { color: var(--cream); }
.on-navy, .field-navy { }
.field-navy a:not(.btn) { color: var(--gold-soft); }

.center { text-align: center; }
.measure { max-width: var(--textw); margin-inline: auto; }

/* Section heading helper */
.section-head { max-width: var(--textw); }
.section-head.center { margin-inline: auto; }

/* ---------------------------------------------------------------------------
   6. Buttons (spec A2)
--------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.5em;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bg);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(20, 35, 60, 0.5);
}
.btn:active { transform: translateY(0); }

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--navy);
}
.btn--secondary:hover { background: rgba(20, 35, 60, 0.06); }

.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: #fff;
}
.btn--gold:hover { box-shadow: 0 10px 22px -10px rgba(184, 137, 61, 0.65); }

/* On a navy field */
.field-navy .btn--secondary,
.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border-color: rgba(247, 243, 236, 0.55);
}
.field-navy .btn--secondary:hover,
.btn--ghost-light:hover { background: rgba(247, 243, 236, 0.1); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.btn-row.center { justify-content: center; }

/* ---------------------------------------------------------------------------
   7. Header / navigation (spec A4)
--------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-campaign {
  background: rgba(20, 35, 60, 0.94);
  border-bottom-color: var(--border-navy);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.wordmark .dot { color: var(--gold); }
.is-campaign .wordmark { color: var(--cream); }

.wordmark-tag {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-links a:hover { color: var(--gold); border-bottom-color: var(--gold); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.is-campaign .nav-links a { color: var(--cream-on-navy); }
.is-campaign .nav-links a:hover,
.is-campaign .nav-links a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold-soft); }

/* Pill button inside nav */
.nav-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45em 1.15em !important;
  border-radius: 999px;
  font-weight: 600 !important;
  border-bottom: none !important;
  white-space: nowrap;
}
.nav-pill--navy { background: var(--navy); color: var(--cream) !important; }
.nav-pill--navy:hover { background: #1d3151; color: #fff !important; border-bottom: none !important; }
.nav-pill--gold { background: var(--gold); color: #fff !important; }
.nav-pill--gold:hover { background: #c79849; color: #fff !important; border-bottom: none !important; }

.back-link {
  font-size: 0.8rem !important;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.is-campaign .nav-toggle span { background: var(--cream); }
.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: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--pad-x) 1.25rem;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px -20px rgba(20,35,60,0.4);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s var(--ease), visibility 0.3s;
  }
  .is-campaign .nav-links { background: var(--navy); border-bottom-color: var(--border-navy); }
  .nav-links.is-open { max-height: 80vh; visibility: visible; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border) !important;
  }
  .is-campaign .nav-links a { border-bottom-color: var(--border-navy) !important; }
  .nav-pill { margin-top: 0.85rem; }
}

/* ---------------------------------------------------------------------------
   8. Hero
--------------------------------------------------------------------------- */
.hero { padding-block: clamp(48px, 8vw, 88px); }
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 880px) {
  .hero-split { grid-template-columns: 1.18fr 1fr; }
}
.hero h1 { margin-bottom: 0.6rem; }
.hero .lead { margin-top: 1.1rem; }

/* Centered hero (campaign banner, simple page heroes) */
.hero-centered { max-width: 760px; margin-inline: auto; text-align: center; }
.hero-centered .btn-row { justify-content: center; }

/* Page hero (interior, calmer) */
.page-hero { padding-block: clamp(48px, 7vw, 80px); }
.page-hero .prose { max-width: 760px; }

/* ---------------------------------------------------------------------------
   9. Stat blocks (spec A4)
--------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 56px);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { }
.stat .num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.field-navy .stat .num { color: var(--cream); }
.stat .label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
}
.field-navy .stat .label { color: rgba(237, 230, 216, 0.75); }
.stat--divided { border-top: 2px solid var(--gold); padding-top: 1rem; }

/* ---------------------------------------------------------------------------
   10. Cards (spec A4)
--------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.field-cream .card { background: var(--white); }
.field-white .card { background: var(--cream); }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card--link:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -20px rgba(20,35,60,0.34); }

.card-icon {
  width: 40px; height: 40px;
  margin-bottom: 1rem;
  color: var(--gold);
}
.card-icon svg { width: 100%; height: 100%; }

/* ---------------------------------------------------------------------------
   11. Pills / badges (spec A4)
--------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
}
.pill--on-navy { background: var(--gold); color: var(--navy); }
.pill--outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

/* ---------------------------------------------------------------------------
   12. Endorsement blocks (spec A4)
--------------------------------------------------------------------------- */
.endorsement {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  padding-top: 2.5rem;
}
.endorsement::before {
  content: "\201C";
  position: absolute;
  top: -0.35em;
  left: -0.04em;
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 8rem);
  line-height: 1;
  color: var(--gold);
  opacity: 0.55;
  pointer-events: none;
}
.endorsement blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--navy);
}
.field-navy .endorsement blockquote { color: var(--cream); }
.endorsement cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.field-navy .endorsement cite { color: var(--gold-soft); }
.endorsement cite strong { color: inherit; }

/* Stacked endorsement list (full text, alternating fields) */
.endorse-list { display: grid; gap: 0; }
.endorse-item { padding-block: clamp(40px, 6vw, 64px); }
.endorse-item:nth-child(odd)  { background: var(--cream); }
.endorse-item:nth-child(even) { background: var(--white); }
.endorse-item blockquote {
  margin: 0;
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: var(--navy);
}
.endorse-item blockquote p { margin-bottom: 0.8em; }
.endorse-item .attrib {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Two-up preview quotes */
.quote-duo { display: grid; gap: clamp(24px, 4vw, 40px); }
@media (min-width: 800px) { .quote-duo { grid-template-columns: 1fr 1fr; } }
.quote-card {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--navy);
}
.quote-card .attrib {
  display: block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
   13. CTA band (spec A4)
--------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--cream); max-width: 18ch; margin-inline: auto; }
.cta-band p { color: rgba(237, 230, 216, 0.85); max-width: 56ch; margin-inline: auto; }

/* ---------------------------------------------------------------------------
   14. Service / alternating rows
--------------------------------------------------------------------------- */
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-block: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--border);
}
.row:first-of-type { border-top: 0; }
@media (min-width: 820px) {
  .row { grid-template-columns: 1fr 1fr; }
  .row--flip .row-media { order: 2; }
}
.row-body .eyebrow { margin-bottom: 0.6rem; }
.row-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.role-line {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
  margin-bottom: 0.9rem;
}

/* ---------------------------------------------------------------------------
   15. Pillars
--------------------------------------------------------------------------- */
.pillars { display: grid; gap: clamp(18px, 2.5vw, 26px); grid-template-columns: 1fr; }
@media (min-width: 620px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  text-decoration: none;
  color: inherit;
}
a.pillar-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -20px rgba(20,35,60,0.34);
}
.pillar-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.pillar-icon { width: 34px; height: 34px; color: var(--navy); margin-bottom: 0.25rem; }
.pillar-icon svg { width: 100%; height: 100%; }
.pillar-card h3 { margin: 0; font-size: 1.25rem; }
.pillar-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Deep-dive entries */
.pillar-deep {
  scroll-margin-top: 100px;
  padding-block: clamp(32px, 5vw, 52px);
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .pillar-deep { grid-template-columns: 64px 1fr; gap: 2rem; }
}
.pillar-deep:first-of-type { border-top: 0; }
.pillar-deep .pillar-num { font-size: 2rem; }
.pillar-deep h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 0.3rem; }
.pillar-deep .one-liner { font-style: italic; color: var(--gold); font-family: var(--serif); font-size: 1.15rem; margin-bottom: 0.8rem; }

/* ---------------------------------------------------------------------------
   16. Record strip (campaign "Why David")
--------------------------------------------------------------------------- */
.record { display: grid; gap: clamp(24px, 4vw, 40px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .record { grid-template-columns: repeat(3, 1fr); } }
.record-col { border-top: 3px solid var(--gold); padding-top: 1.1rem; }
.record-col h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.record-col p { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------------------
   17. Events
--------------------------------------------------------------------------- */
.event-list { display: grid; gap: clamp(16px, 2.5vw, 22px); }
.event-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-card);
}
@media (min-width: 620px) { .event-card { grid-template-columns: 96px 1fr; gap: 1.5rem; align-items: start; } }
.event-date {
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 1rem;
}
@media (max-width: 619px) { .event-date { border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 0.75rem; text-align: left; } }
.event-date .day { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--navy); line-height: 1; }
.event-date .mon { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.event-body h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.event-meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; }
.event-meta strong { color: var(--navy); }

/* Highlighted info card (voting info, donate) */
.info-card {
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(24px, 3.5vw, 36px);
}
.info-card h3 { margin-bottom: 0.75rem; }
.info-card dl { margin: 0; }
.info-card dt { font-weight: 600; color: var(--navy); margin-top: 0.9rem; }
.info-card dd { margin: 0.15rem 0 0; color: var(--ink); }

/* ---------------------------------------------------------------------------
   18. Writing entries
--------------------------------------------------------------------------- */
.entry-list { display: grid; gap: clamp(16px, 2.5vw, 22px); max-width: 820px; }
.entry {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-card);
}
.entry .pub {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.entry h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.entry h3 em { font-style: italic; color: var(--navy); }
.entry p { color: var(--muted); margin-bottom: 0.8rem; }
.entry--pending { opacity: 0.85; border-style: dashed; }

/* ---------------------------------------------------------------------------
   19. Forms (spec C)
--------------------------------------------------------------------------- */
.form-wrap { max-width: 560px; }
.form-grid { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.field .req { color: var(--gold); }
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 137, 61, 0.18);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #B23A38; }
.field .error-msg { font-size: 0.82rem; color: #B23A38; min-height: 1em; }

fieldset { border: 0; margin: 0; padding: 0; }
fieldset legend { font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 0.6rem; padding: 0; }
.check-grid { display: grid; gap: 0.55rem; grid-template-columns: 1fr; }
@media (min-width: 540px) { .check-grid { grid-template-columns: 1fr 1fr; } }
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.2rem 0;
}
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex: none; }

/* Honeypot — visually hidden, off-screen, not display:none (so bots fill it) */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.form-success {
  display: none;
  border: 1.5px solid var(--green);
  background: rgba(63, 107, 81, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--navy);
  font-size: 1.05rem;
}
.form-success.is-visible { display: block; }
.form-success::before {
  content: "";
  display: inline-block;
  width: 22px; height: 22px;
  margin-right: 0.6rem;
  vertical-align: -4px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / contain no-repeat;
}

/* Inline email-capture (CTA band) */
.email-capture {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 460px;
  margin-inline: auto;
}
.email-capture input {
  flex: 1 1 220px;
  background: rgba(247,243,236,0.96);
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-size: 1rem;
}
.email-capture input:focus { outline: none; border-color: var(--gold); }

/* ---------------------------------------------------------------------------
   20. Photo placeholders (spec A6)
--------------------------------------------------------------------------- */
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(45deg,
      rgba(20,35,60,0.03) 0 12px,
      rgba(20,35,60,0.06) 12px 24px),
    var(--placeholder);
  color: var(--placeholder-ink);
  border-radius: var(--radius);
  border: 1px dashed #BBB29F;
  padding: 2rem;
  min-height: 280px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}
.photo-placeholder::before {
  content: "▣";
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  opacity: 0.6;
}
.photo-placeholder.is-portrait { aspect-ratio: 4 / 5; min-height: 360px; }
.photo-placeholder.is-wide { aspect-ratio: 16 / 9; min-height: 0; }

/* ---------------------------------------------------------------------------
   21. Editorial placeholders for [CONFIRM] items
   (visible during review so nothing unconfirmed slips to publish)
--------------------------------------------------------------------------- */
.confirm {
  background: rgba(184, 137, 61, 0.1);
  border-bottom: 1px dashed var(--gold);
  padding: 0 0.2em;
  font-style: normal;
}
.editor-block {
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  background: rgba(184, 137, 61, 0.06);
  padding: 1.25rem 1.4rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.editor-block .editor-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------------------
   22. Campaign banner strip (home, removed Nov 1)
--------------------------------------------------------------------------- */
.campaign-strip { }
.campaign-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.campaign-strip .strip-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.campaign-strip p { margin: 0; color: var(--cream); font-size: 1.1rem; font-family: var(--serif); }

/* ---------------------------------------------------------------------------
   23. Footer (spec A4)
--------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--cream-on-navy);
  padding-block: clamp(48px, 6vw, 72px);
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.site-footer .wordmark { color: var(--cream); }
.footer-bio { max-width: 42ch; color: rgba(237,230,216,0.78); margin-top: 0.85rem; font-size: 0.96rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.footer-nav a { color: var(--cream-on-navy); font-size: 0.95rem; }
.footer-nav a:hover { color: #fff; }
.footer-contact a { color: var(--gold-soft); }
.footer-legal { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border-navy); font-size: 0.82rem; color: rgba(237,230,216,0.6); }
.footer-legal p { margin: 0 0 0.35rem; }

/* ---------------------------------------------------------------------------
   24. Utilities & entrance animation
--------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.maxw-prose { max-width: 68ch; }
.text-muted { color: var(--muted); }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* Staggered load reveal (spec: one orchestrated page load) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise 0.7s var(--ease) forwards; }
  .reveal-1 { animation-delay: 0.05s; }
  .reveal-2 { animation-delay: 0.15s; }
  .reveal-3 { animation-delay: 0.25s; }
  .reveal-4 { animation-delay: 0.35s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
