:root {
  --forest: #3e5445;
  --forest-deep: #2c3b31;
  --forest-night: #1f2a23;
  --cream: #f2ebb3;
  --paper: #f5f3ea;
  --ink: #1d2620;
  --pad-x: clamp(24px, 5vw, 64px);
  --sans: 'Commissioner', system-ui, sans-serif;
  --serif: 'Noto Serif Display', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--forest-deep); }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

.page { background: var(--forest); color: #fff; font-family: var(--sans); overflow-x: clip; } /* clip (not hidden) so the sticky menu works */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.serif-i { font-family: var(--serif); font-style: italic; }

/* ── Hero ── */
.hero { position: relative; min-height: max(620px, calc(100vh - 98px)); display: flex; flex-direction: column; } /* one screen, minus the menu bar */
.hero-art {
  position: absolute; right: -8%; top: 0; height: 92%; aspect-ratio: 3/2; background: var(--forest);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 18%), linear-gradient(to top, transparent 0%, #000 14%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 18%), linear-gradient(to top, transparent 0%, #000 14%);
  mask-composite: intersect;
}

.hero-title { position: relative; flex: 1; padding: clamp(32px, 6vh, 72px) var(--pad-x) 0; }
.hero-title .eyebrow { color: var(--cream); }
/* Logo lockup (3141×2335): capped by width and by viewport height so the hero still fits one screen */
.hero-logo { margin: 28px 0 0; width: clamp(320px, min(62vw, (100vh - 314px) * 1.345), 880px); }
.hero-logo img { display: block; width: 100%; height: auto; }

.facts {
  position: relative; margin: 48px var(--pad-x) 40px; padding-top: 20px; border-top: 2px solid var(--cream);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; font-size: 15px; line-height: 1.4;
}
.facts .date { font-weight: 700; font-size: 28px; letter-spacing: -.01em; }
.facts div:not(.date) { color: rgba(255,255,255,.85); }
.facts div.venue { font-size: clamp(19px, 1.9vw, 26px); font-weight: 600; line-height: 1.25; letter-spacing: -.005em; color: #fff; }

/* Phones: image becomes its own block under the title so the pulse never crosses the text */
@media (max-width: 760px) {
  .hero-art {
    order: 2; position: relative; right: auto; top: auto; width: 100%; height: auto; margin: 32px 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 78%, transparent 100%);
  }
  .hero-title { order: 1; flex: none; }
  .hero-logo { width: 100%; }
  .facts { order: 3; margin-top: auto; }
}

/* ── Welcome ── */
.welcome { background: var(--paper); color: var(--ink); padding: clamp(72px, 10vw, 120px) var(--pad-x); display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 64px; }
.welcome .eyebrow { border-top: 2px solid var(--ink); padding-top: 14px; align-self: start; }
.welcome-body { min-width: 0; max-width: 880px; }
.welcome h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.2vw, 68px); line-height: 1.05; letter-spacing: -.01em; text-wrap: pretty; }
.welcome h2 em { color: var(--forest); }
.welcome p { margin: 40px 0 0; max-width: 640px; font-size: 18px; line-height: 1.65; color: #39433c; text-wrap: pretty; }
.signoff { margin-top: 36px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.signoff .name { font-size: 26px; }
.signoff .role { font-size: 14px; color: #5b6e5f; }
@media (min-width: 900px) { .welcome { grid-template-columns: minmax(200px, 1fr) 3fr; } }

/* Link to the full welcome address (welcome.html) */
.read-more {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 48px; padding: 20px 0;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: color .2s;
}
.read-more::after { content: '\2192'; flex: none; font-size: 22px; font-weight: 400; line-height: 1; letter-spacing: 0; color: var(--forest); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.read-more:hover { color: var(--forest); opacity: 1; }
.read-more:hover::after { transform: translateX(6px); }
.read-more:focus-visible { outline-color: var(--forest); }

/* ── Countdown ── */
.countdown { background: var(--forest-night); padding: clamp(64px, 8vw, 96px) var(--pad-x); }
.countdown-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-top: 2px solid var(--cream); padding-top: 14px; }
.countdown-head .when { font-size: 22px; color: var(--cream); }
.units {
  display: grid; margin: 32px 0 0; padding: 0; list-style: none; border-left: 2px solid rgba(242,235,179,.2);
  grid-template-columns: repeat(auto-fit, minmax(clamp(calc(25% - 1px), (960px - 100%) * 999, calc(50% - 1px)), 1fr));
}
.unit { min-width: 0; padding: 36px clamp(16px, 2.5vw, 32px) 32px; border-right: 2px solid rgba(242,235,179,.2); border-bottom: 2px solid rgba(242,235,179,.2); }
.unit-label { display: flex; justify-content: space-between; gap: 8px; font-size: clamp(11px, 1.2vw, 13px); font-weight: 600; letter-spacing: .12em; }
.unit-label i { font-style: normal; color: var(--cream); }
.unit-value { margin-top: 20px; font-weight: 800; font-size: clamp(64px, 8vw, 112px); line-height: 1; letter-spacing: -.05em; color: var(--cream); font-variant-numeric: tabular-nums; }
.trace { display: block; width: 100%; height: 40px; margin-top: 16px; overflow: visible; }
.trace path { fill: none; stroke: rgba(242,235,179,.55); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trace.beat path { stroke: var(--cream); stroke-dasharray: 320; animation: ecgBeat .9s ease-out both; filter: drop-shadow(0 0 4px rgba(242,235,179,.7)); }
@keyframes ecgBeat { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }

/* ── Updates / footer ── */
.updates { padding: clamp(72px, 10vw, 120px) var(--pad-x) 40px; }
.updates .eyebrow { border-top: 2px solid var(--cream); padding-top: 14px; }
.site-link { display: block; margin-top: 40px; font-weight: 800; font-size: clamp(56px, 12vw, 168px); line-height: .9; letter-spacing: -.05em; overflow-wrap: anywhere; }
.site-link span { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--cream); }
.signup { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 32px 64px; margin-top: 64px; align-items: end; }
.signup-copy { max-width: 520px; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; text-wrap: pretty; }
.signup-copy em { color: var(--cream); }
.signup-form { display: flex; border-bottom: 2px solid var(--cream); }
.signup-form input[type=email] { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: 400 18px var(--sans); padding: 16px 0; }
.signup-form input[type=email]::placeholder { color: rgba(255,255,255,.5); }
.signup-form button { background: var(--cream); color: var(--ink); border: 0; border-radius: 0; padding: 0 24px; margin-bottom: 8px; font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; text-align: left; }
.signup-form button:hover { background: #fff; }
.signup-form button:disabled { opacity: .6; cursor: wait; }
.signup-done { border-bottom: 2px solid var(--cream); padding: 16px 0; font-size: 17px; color: var(--cream); }
.signup-done[hidden], .signup-form[hidden] { display: none; }
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 96px; padding-top: 20px; border-top: 1px solid rgba(242,235,179,.25); font-size: 13px; color: rgba(255,255,255,.6); }
.footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ══ Content pages (structure in _template.html) ══ */

/* Page header: section label, big title, serif lede, then an ECG line that draws in along the bottom edge */
.page-head { padding: clamp(56px, 9vw, 120px) var(--pad-x) 0; }
.page-head .eyebrow { color: var(--cream); }
.page-title {
  margin: 24px 0 0; max-width: 14ch; font-weight: 800; font-size: clamp(44px, 9vw, 132px); line-height: .92; letter-spacing: -.045em;
  text-wrap: balance; hyphens: auto;
}
.page-lede { margin: 32px 0 0; max-width: 760px; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; color: var(--cream); text-wrap: pretty; }
.page-note { margin: 20px 0 0; font-size: 14px; color: rgba(255,255,255,.7); }
.page-trace {
  display: block; width: calc(100% + 2 * var(--pad-x)); height: 72px; margin: clamp(40px, 6vw, 72px) calc(-1 * var(--pad-x)) 0; overflow: visible;
  clip-path: inset(-20px 100% -20px 0); animation: traceDraw 1.8s cubic-bezier(.65, .05, .25, 1) .25s forwards;
}
.page-trace path { fill: none; stroke: var(--cream); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(242,235,179,.45)); }
@keyframes traceDraw { to { clip-path: inset(-20px 0 -20px 0); } }

/* Page body on paper: sections are an aside (label/byline, sticky on desktop) + prose */
.page-body { background: var(--paper); color: var(--ink); padding: clamp(64px, 9vw, 112px) var(--pad-x); }
.page-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 64px; }
.page-section + .page-section { margin-top: clamp(72px, 9vw, 112px); }
.page-aside .eyebrow { border-top: 2px solid var(--ink); padding-top: 14px; }
.page-aside-body { margin-top: 20px; font-size: 14px; line-height: 1.5; color: #5b6e5f; }
.page-aside-body .name { display: block; margin-bottom: 6px; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.2; color: var(--ink); }
@media (min-width: 900px) {
  .page-section { grid-template-columns: minmax(200px, 1fr) 3fr; }
  .page-aside { position: sticky; top: 128px; align-self: start; }
}

/* Long-form text */
.prose { min-width: 0; max-width: 680px; font-size: 18px; line-height: 1.7; color: #39433c; text-wrap: pretty; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; color: var(--ink); }
.prose h3 { margin-top: 2em; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-top: 1.4em; padding-left: 24px; border-left: 2px solid var(--forest); font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; color: var(--ink); }
.prose blockquote + * { margin-top: 1.4em; }
.prose .salutation { font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.5; color: var(--ink); }
.prose .salutation + * { margin-top: 1.6em; }
.prose .highlight { margin-top: 1.4em; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; color: var(--ink); }
.prose .highlight em { color: var(--forest); }
.prose .closing { margin-top: 2.2em; color: var(--ink); }
.prose .signoff { margin-top: 20px; }
.prose .signoff .role { flex-basis: 100%; }

/* Closing call-to-action band */
.page-cta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 32px 64px; align-items: end;
  padding: clamp(64px, 8vw, 96px) var(--pad-x); background: var(--forest-night);
}
.page-cta-copy { max-width: 560px; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; text-wrap: pretty; }
.page-cta-copy em { color: var(--cream); }
.page-cta-link {
  justify-self: start; display: flex; gap: 28px; padding: 18px 24px; background: var(--cream); color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: background .2s;
}
.page-cta-link:hover { background: #fff; opacity: 1; }
@media (min-width: 900px) { .page-cta-link { justify-self: end; } }

/* Site footer (rendered by footer.js) */
.site-footer { padding: clamp(56px, 7vw, 80px) var(--pad-x) 40px; }
.site-footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 32px; padding-top: 20px; border-top: 2px solid var(--cream); }
.site-footer-brand { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; align-self: start; }
.site-footer-brand b { font-weight: 800; font-size: clamp(28px, 3vw, 36px); letter-spacing: -.02em; }
.site-footer-brand span { font-size: clamp(20px, 2vw, 24px); color: var(--cream); }
.site-footer-date { font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.site-footer-venue { margin-top: 6px; font-size: 15px; line-height: 1.4; color: rgba(255,255,255,.75); }
.site-footer .footer { margin-top: 56px; }

/* ── Reveal on scroll (classes added by main.js) ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .trace.beat path { animation: none; stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .page-trace { animation: none; clip-path: none; }
}
