/*
Theme Name: NHRF
Theme URI: https://nashvillehighlandrimforest.org
Author: Nashville's Highland Rim Forest Alliance
Description: Custom homepage theme for Nashville's Highland Rim Forest Alliance. Ported from the verified Vite design prototype (prototype/ in this repo). Homepage-only for this phase; interior pages (issue/event/resource CPTs, events aggregator) are a later phase.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: nhrf
*/

/* ==========================================================================
   NHRF design tokens — ported from prototype/src/styles/tokens.css.
   ========================================================================== */

:root {
  /* ---- Color ---- */
  --canopy: #12281e;            /* deep spruce: hero + statement backgrounds */
  --canopy-deep: #0c1b14;       /* near-black spruce: vignette, footer */
  --living-green: #3e6b4c;      /* primary accent: boundary fill, large graphics */
  --living-green-bright: #7db38d; /* accent readable on dark (AA large on canopy) */
  --living-green-text: #2f5340; /* accent dark enough for text on limestone (AA) */
  --late-light: #c9a24b;        /* understory gold: one emphasis per section, the drawn line */
  --limestone: #f4f1e9;         /* light-section background; body text on dark */
  --limestone-dim: #cfccc2;     /* muted text on dark (AA on canopy) */
  --ridge-blue: #3a5a6b;        /* watershed content, map water */
  --ridge-blue-text: #33505f;   /* ridge blue for text on limestone (AA) */
  --ink: #1b1d18;               /* body on light */
  --ink-soft: #4c4f47;          /* muted text on light (AA) */

  /* ---- Type ---- */
  --font-statement: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* scale, ratio 1.30 on a 19px base */
  --text-body: 1.1875rem;       /* 19px */
  --text-small: 0.9375rem;      /* 15px */
  --text-caption: 0.8125rem;    /* 13px */
  --text-lg: 1.5rem;            /* 24px */
  --text-xl: 2rem;              /* 32px */
  --text-statement-sm: clamp(1.75rem, 1.1rem + 2.6vw, 2.9rem);
  --text-statement: clamp(2.1rem, 1.2rem + 3.6vw, 4.1rem);
  --text-statement-lg: clamp(2.5rem, 1.2rem + 4vw, 4.8rem);
  --text-number-lg: clamp(2.8rem, 1.6rem + 5vw, 6rem);

  --leading-tight: 1.04;
  --leading-snug: 1.15;
  --leading-body: 1.6;
  --tracking-statement: -0.022em;
  --tracking-caps: 0.14em;

  /* ---- Space ---- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-section: clamp(5rem, 9vw, 9.5rem);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 65ch;
  --page-max: 82rem;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-reveal: 260ms;
  --dur-draw: 2400ms;
  --dur-fill: 900ms;

  /* ---- Misc ---- */
  --focus-ring: 3px solid var(--late-light);
}

/* ==========================================================================
   Fonts (self-hosted, variable) — ported from prototype/src/styles/main.css.
   Paths are relative to this stylesheet (theme root), pointing at assets/fonts/.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-italic-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--canopy-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--late-light);
  color: var(--canopy-deep);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  z-index: 100;
  background: var(--late-light);
  color: var(--canopy-deep);
  font-family: var(--font-statement);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  left: 0;
  top: 0;
  padding: 0.75rem 1.25rem;
  margin: 0;
}

/* Shared layout primitives */

.contain {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.kicker {
  font-family: var(--font-statement);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.statement {
  font-family: var(--font-statement);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-statement);
  text-wrap: balance;
}

/* Scroll reveal: headings only, one restrained move */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  color: var(--limestone);
}

.site-header__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-3);
}

.wordmark {
  font-family: var(--font-statement);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  max-width: 16ch;
  margin: 0;
}
.wordmark small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-caption);
  color: var(--limestone-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.site-nav ul {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 2rem);
  list-style: none;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-statement);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--limestone-dim);
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}
.site-nav a:hover {
  color: var(--late-light);
}

/* On phones the nav drops under the wordmark as a compact row — anchor
   navigation stays available, nothing is hidden. */
@media (max-width: 720px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .site-nav ul {
    flex-wrap: wrap;
    gap: 0.5rem 1.1rem;
  }
  .site-nav a {
    font-size: var(--text-caption);
    letter-spacing: 0.02em;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: max(100svh, 46rem);
  display: grid;
  align-items: center;
  background: var(--canopy);
  color: var(--limestone);
  overflow: hidden;
}

/* Atmosphere slot: a cleared panorama (HERO-01/HERO-02) drops in here later
   as a background-image on this layer — no redesign required. */
.hero__atmosphere {
  position: absolute;
  /* Extends past the top so the parallax translate never exposes an edge. */
  inset: -22% 0 0 0;
  background:
    radial-gradient(120% 90% at 78% 40%, rgba(62, 107, 76, 0.30) 0%, transparent 62%),
    radial-gradient(140% 110% at 15% 95%, rgba(12, 27, 20, 0.9) 0%, transparent 55%),
    var(--canopy);
}

/* Film grain over the gradient so the dark field reads as texture, not flat
   fill. Static SVG noise tile, blended; disappears into a real photograph
   when HERO-01 lands. */
.hero__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.js-motion .hero__atmosphere,
.js-motion .hero__map {
  will-change: transform;
}

/* Illustrated forest ridge along the hero's base. Three generated treeline
   layers; back and mid carry parallax on their inner <g> so the silhouette
   shifts inside its own clipped svg. Sits behind the content (z-index 1 vs 2)
   so map and copy ride above the canopy. */
.hero__forest {
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(150px, 24vh, 260px);
  z-index: 1;
  pointer-events: none;
}

.forest-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.forest-layer--back path {
  fill: var(--living-green);
  opacity: 0.2;
}

.forest-layer--mid path {
  fill: color-mix(in srgb, var(--living-green) 42%, var(--canopy-deep));
  opacity: 0.6;
}

.forest-layer--front path {
  fill: var(--canopy-deep);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: var(--space-4);
  align-items: center;
  width: 100%;
  padding-block: 7rem 4rem;
}

.hero__kicker {
  color: var(--late-light);
  margin-bottom: var(--space-3);
  max-width: 34ch;
}

.hero__statement {
  font-size: var(--text-statement-lg);
  color: var(--limestone);
  max-width: 15ch;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--space-4);
  font-family: var(--font-statement);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--limestone-dim);
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}
.hero__scroll:hover {
  color: var(--late-light);
}
.hero__scroll svg {
  width: 14px;
  height: 20px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll svg {
    animation: nudge 2.6s var(--ease-out) infinite;
  }
}
@keyframes nudge {
  0%, 78%, 100% { transform: translateY(0); }
  86% { transform: translateY(5px); }
}

/* The boundary drawing */

.hero__map {
  position: relative;
  align-self: start;
  /* Sized so the southern tip of the boundary dips below the fold,
     implying the forest continues past what you can see. */
  margin-top: 1.5rem;
  margin-bottom: -7rem;
  width: 106%;
}

.boundary-figure {
  width: 100%;
}

.boundary-figure svg {
  width: 100%;
  height: auto;
}

.boundary-outline {
  fill: none;
  stroke: var(--late-light);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

/* Topographic echo rings around the boundary; per-path stroke-opacity is
   set inline (fades with distance from the rim). */
.boundary-contours path {
  fill: none;
  stroke: var(--late-light);
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.boundary-fill {
  fill: var(--living-green);
  fill-opacity: 0.34;
  fill-rule: evenodd;
  stroke: none;
}

.boundary-marker circle {
  fill: var(--limestone);
}

.boundary-marker text {
  font-family: var(--font-statement);
  font-weight: 500;
  fill: var(--limestone);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.boundary-marker .marker-sub {
  fill: var(--limestone-dim);
  letter-spacing: 0.06em;
  text-transform: none;
}

/* Animated states (motion-safe only). The outline path carries
   pathLength="1" and stroke-dasharray="1", so the dash math is unit-normalized
   with no runtime measuring. JS adds .is-drawn after first paint. */
@media (prefers-reduced-motion: no-preference) {
  .hero--animate .boundary-outline {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset var(--dur-draw) cubic-bezier(0.65, 0, 0.35, 1);
  }
  .hero--animate.is-drawn .boundary-outline {
    stroke-dashoffset: 0;
  }
  .hero--animate .boundary-fill,
  .hero--animate .boundary-marker,
  .hero--animate .boundary-contours {
    opacity: 0;
    transition: opacity var(--dur-fill) var(--ease-out) var(--dur-draw);
  }
  .hero--animate.is-drawn .boundary-fill,
  .hero--animate.is-drawn .boundary-marker,
  .hero--animate.is-drawn .boundary-contours {
    opacity: 1;
  }
}

@media (max-width: 880px) {
  .hero {
    min-height: 100svh;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding-block: 12rem 3rem; /* clears the stacked wordmark + wrapped nav */
    align-content: start;
  }
  .hero__map {
    margin-top: 0;
    max-width: 24rem;
    justify-self: end;
    margin-right: -14vw; /* the shape slips off the edge, implying continuation */
  }
  .hero__scroll {
    margin-top: var(--space-3);
  }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

.band {
  padding-block: var(--space-section);
}

/* Treeline seam between a light band and the dark band below it: the strip
   keeps the light background, the silhouette is the color of what's ahead. */
.tree-divider {
  background: var(--limestone);
  line-height: 0;
}

.tree-divider svg {
  width: 100%;
  height: clamp(64px, 9vw, 120px);
}

.tree-divider path {
  fill: var(--canopy);
}

.band--dark {
  background: var(--canopy);
  color: var(--limestone);
}

.band--deep {
  background: var(--canopy-deep);
  color: var(--limestone);
}

.band--light {
  background: var(--limestone);
  color: var(--ink);
}

.band__kicker {
  margin-bottom: var(--space-3);
}
.band--dark .band__kicker,
.band--deep .band__kicker {
  color: var(--late-light);
}
.band--light .band__kicker {
  color: var(--living-green-text);
}

/* ==========================================================================
   Reframe + scale (dark)
   ========================================================================== */

.reframe__statement {
  font-size: var(--text-statement);
  max-width: 24ch;
  color: var(--limestone);
}

.reframe__statement .num {
  color: var(--late-light);
  font-variant-numeric: tabular-nums;
}

.largest {
  margin-top: calc(var(--space-section) * 0.8);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--space-5) var(--space-4);
  align-items: start;
}

.largest__brand {
  font-size: var(--text-statement-sm);
  font-weight: 600;
  color: var(--living-green-bright);
  max-width: 16ch;
}

.largest__factual {
  margin-top: var(--space-3);
  color: var(--limestone-dim);
  max-width: 38ch;
}

.compare {
  display: grid;
  gap: 1.1rem;
}

.compare__row {
  display: grid;
  gap: 0.35rem;
}

.compare__labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-statement);
  font-size: var(--text-small);
  font-weight: 500;
}

.compare__labels .acres {
  font-variant-numeric: tabular-nums;
  color: var(--limestone-dim);
  white-space: nowrap;
}

.compare__bar {
  height: 0.85rem;
  background: color-mix(in srgb, var(--limestone) 32%, transparent);
  transform-origin: left center;
}

/* Bars grow from zero when the comparison scrolls into view, NHRF first.
   Without js-motion (reduced motion / no JS) they render at full width. */
.js-motion .compare .compare__bar {
  transition: transform 900ms var(--ease-out);
}
.js-motion .compare:not(.is-visible) .compare__bar {
  transform: scaleX(0);
  transition: none;
}
.js-motion .compare.is-visible .compare__row:nth-child(2) .compare__bar { transition-delay: 110ms; }
.js-motion .compare.is-visible .compare__row:nth-child(3) .compare__bar { transition-delay: 220ms; }
.js-motion .compare.is-visible .compare__row:nth-child(4) .compare__bar { transition-delay: 330ms; }
.js-motion .compare.is-visible .compare__row:nth-child(5) .compare__bar { transition-delay: 440ms; }

.compare__row--nhrf .compare__bar {
  background: var(--living-green-bright);
}
.compare__row--nhrf .compare__labels {
  color: var(--limestone);
  font-weight: 700;
}
.compare__row--nhrf .compare__labels .acres {
  color: var(--late-light);
}

.compare__note {
  margin-top: var(--space-2);
  font-size: var(--text-small);
  color: var(--limestone-dim);
  max-width: 48ch;
}

@media (max-width: 880px) {
  .largest {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Why it matters (light)
   ========================================================================== */

.matters__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4) var(--space-3);
}

.matters__heading {
  grid-column: 1 / 8;
  font-size: var(--text-statement);
}

.matters__intro {
  grid-column: 1 / 7;
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-5);
  margin-top: var(--space-3);
}

.fact {
  border-top: 4px solid var(--living-green);
  padding-top: var(--space-2);
}

/* The fact grid rises in as a staggered set (one reveal moment per section;
   the stagger is inside it). Final state needs no JS. */
.js-motion .facts .fact {
  transition:
    opacity 480ms var(--ease-out),
    transform 480ms var(--ease-out);
}
.js-motion .facts:not(.is-visible) .fact {
  opacity: 0;
  transform: translateY(16px);
  transition: none;
}
.js-motion .facts.is-visible .fact:nth-child(2) { transition-delay: 90ms; }
.js-motion .facts.is-visible .fact:nth-child(3) { transition-delay: 180ms; }
.js-motion .facts.is-visible .fact:nth-child(4) { transition-delay: 270ms; }

.fact--water {
  border-top-color: var(--ridge-blue);
}

.fact__number {
  font-family: var(--font-statement);
  font-weight: 700;
  font-size: var(--text-number-lg);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fact__number small {
  display: block;
  font-size: 0.32em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-top: 0.45rem;
}
.fact--water .fact__number {
  color: var(--ridge-blue-text);
}

.fact__body {
  margin-top: var(--space-2);
  font-size: var(--text-body);
  color: var(--ink-soft);
  max-width: 34ch;
}

.fact__qualifier {
  margin-top: 0.6rem;
  font-size: var(--text-caption);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* runoff duo */
.runoff {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
}
.runoff .vs {
  font-family: var(--font-statement);
  font-size: var(--text-small);
  color: var(--ink-soft);
}

/* Whites Creek: argument, visibly tagged */
.argument {
  grid-column: 1 / 9;
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-left: 4px solid var(--ridge-blue);
  background: color-mix(in srgb, var(--ridge-blue) 7%, var(--limestone));
}

.argument__tag {
  color: var(--ridge-blue-text);
  margin-bottom: var(--space-2);
}

.argument__body {
  font-size: var(--text-lg);
  line-height: 1.45;
  max-width: var(--measure);
}

@media (max-width: 880px) {
  .matters__heading,
  .matters__intro,
  .argument {
    grid-column: 1 / -1;
  }
  .facts {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Forest at scale (dark, the map object)
   ========================================================================== */

.scale__layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  gap: var(--space-5) var(--space-5);
  align-items: start;
}

.scale__heading {
  font-size: var(--text-statement);
  color: var(--limestone);
  max-width: 14ch;
}

.scale__intro {
  margin-top: var(--space-3);
  color: var(--limestone-dim);
  max-width: 44ch;
}

.scale__protected {
  margin-top: var(--space-4);
  border-top: 4px solid var(--late-light);
  padding-top: var(--space-2);
  max-width: 20rem;
}
.scale__protected .fact__number {
  color: var(--limestone);
}
.scale__protected .fact__number small {
  color: var(--limestone-dim);
}

.park-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-4);
  display: grid;
  gap: 0;
}

.park {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0 var(--space-2);
  align-items: baseline;
  padding-block: var(--space-2);
  border-top: 1px solid color-mix(in srgb, var(--limestone) 22%, transparent);
}

.park__index {
  font-family: var(--font-statement);
  font-weight: 700;
  color: var(--late-light);
  font-size: var(--text-small);
}

.park__name {
  font-family: var(--font-statement);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--limestone);
}

.park__acres {
  font-family: var(--font-statement);
  font-variant-numeric: tabular-nums;
  color: var(--late-light);
  font-weight: 600;
  white-space: nowrap;
}
.park__acres small {
  color: var(--limestone-dim);
  font-weight: 400;
}

.park__meta {
  grid-column: 2 / -1;
  font-size: var(--text-small);
  color: var(--limestone-dim);
  max-width: 44ch;
  margin-top: 0.25rem;
}

.scale__map {
  position: relative;
}

.scale__map svg {
  width: min(100%, 34rem);
  margin-inline: auto;
}

.scale-fill {
  fill: var(--living-green);
  fill-opacity: 0.3;
  fill-rule: evenodd;
}

.scale-outline {
  fill: none;
  stroke: var(--late-light);
  stroke-width: 2;
  stroke-linejoin: round;
}

.scale-park circle {
  fill: var(--late-light);
}
.scale-park text {
  font-family: var(--font-statement);
  font-weight: 700;
  fill: var(--canopy-deep);
  text-anchor: middle;
}

.scale-downtown circle {
  fill: var(--limestone);
}
.scale-downtown text {
  font-family: var(--font-statement);
  font-weight: 500;
  fill: var(--limestone);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scale__note {
  margin-top: var(--space-3);
  font-size: var(--text-caption);
  color: var(--limestone-dim);
  max-width: 48ch;
}

@media (max-width: 880px) {
  .scale__layout {
    grid-template-columns: 1fr;
  }
  .scale__map {
    order: -1;
  }
}

/* ==========================================================================
   Momentum (light)
   ========================================================================== */

.momentum__heading {
  font-size: var(--text-statement);
  max-width: 16ch;
}

.momentum__intro {
  margin-top: var(--space-3);
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.wins {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-5);
}

.win {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: var(--space-4);
  align-items: start;
}

.win__year {
  font-family: var(--font-statement);
  font-weight: 500;
  color: var(--living-green-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: var(--text-small);
}

.win__title {
  font-family: var(--font-statement);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  margin-top: var(--space-1);
}

.win__body {
  margin-top: var(--space-2);
  color: var(--ink-soft);
  max-width: var(--measure);
}

.win__visit {
  margin-top: var(--space-2);
  font-size: var(--text-small);
  font-style: italic;
  color: var(--ink-soft);
}

/* Designed placeholder for permission-pending photography. Swappable: set a
   real <img> inside .win__media and remove the placeholder block. */
.media-pending {
  aspect-ratio: 4 / 3;
  position: relative;
  display: grid;
  place-content: center;
  text-align: center;
  padding: var(--space-3);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--ridge-blue) 26%, var(--canopy)) 0%, var(--canopy) 70%);
}
.media-pending::after {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--limestone) 35%, transparent);
  pointer-events: none;
}

/* A quiet treeline at the placeholder's base so the pending frame still
   carries the subject matter. */
.media-pending__trees {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 28%;
}
.media-pending__trees path {
  fill: var(--canopy-deep);
  opacity: 0.75;
}

.media-pending__tag {
  color: var(--late-light);
  font-family: var(--font-statement);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.media-pending__credit {
  margin-top: var(--space-2);
  color: var(--limestone-dim);
  font-size: var(--text-small);
  max-width: 30ch;
}

@media (max-width: 880px) {
  .win {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Act (dark)
   ========================================================================== */

.act__statement {
  font-size: var(--text-statement);
  max-width: 22ch;
  color: var(--limestone);
}
.act__statement .num {
  color: var(--late-light);
  font-variant-numeric: tabular-nums;
}

.act__columns {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.act__vehicle {
  color: var(--limestone-dim);
  max-width: 46ch;
}

.act__developer {
  font-family: var(--font-statement);
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--living-green-bright);
  max-width: 26ch;
}

.act__cta {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.button {
  display: inline-block;
  font-family: var(--font-statement);
  font-weight: 600;
  font-size: var(--text-body);
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
  cursor: pointer;
}

.button--primary {
  background: var(--late-light);
  color: var(--canopy-deep);
}
.button--primary:hover {
  background: var(--limestone);
}

.button--ghost {
  color: var(--limestone);
  border: 1px solid color-mix(in srgb, var(--limestone) 45%, transparent);
}
.button--ghost:hover {
  border-color: var(--late-light);
  color: var(--late-light);
}

@media (max-width: 880px) {
  .act__columns {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Partner roll + footer (deep)
   ========================================================================== */

.partners {
  padding-block: var(--space-5);
  border-bottom: 1px solid color-mix(in srgb, var(--limestone) 14%, transparent);
}

.partners__heading {
  color: var(--late-light);
  margin-bottom: var(--space-3);
}

.partners__roll {
  font-family: var(--font-statement);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 2.1;
  color: var(--limestone-dim);
  max-width: 90ch;
}

.partners__roll .sep {
  color: var(--living-green-bright);
  padding-inline: 0.55rem;
}

.site-footer {
  padding-block: var(--space-5);
  color: var(--limestone-dim);
  font-size: var(--text-small);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-4);
}

.site-footer p + p {
  margin-top: var(--space-2);
}

.placeholder-note {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 1px dashed color-mix(in srgb, var(--late-light) 60%, transparent);
  color: var(--late-light);
  font-size: var(--text-caption);
}

.site-footer a {
  color: var(--limestone);
  text-underline-offset: 3px;
  transition: color 180ms var(--ease-out);
}
.site-footer a:hover {
  color: var(--late-light);
}

.site-footer__proto {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid color-mix(in srgb, var(--limestone) 14%, transparent);
  font-size: var(--text-caption);
}

@media (max-width: 880px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}
