/* style.css — FEEDAG design tokens + components
   Brand: dark forest green + warm gold/tan, heritage/trust tone.
   Display: Fraunces (Google) — warm slab-serif echoing land-grant/heritage feel.
   Body: Public Sans (Google) — clean humanist sans, built for civic/institutional trust. */

:root,
[data-theme='light'] {
  /* ---- Type scale (fluid clamp) ---- */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 1rem + 6vw, 6.5rem);

  /* ---- Spacing (4px system) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Surfaces (warm cream) ---- */
  --color-bg: #faf7f1;
  --color-surface: #ffffff;
  --color-surface-2: #f6f1e7;
  --color-surface-offset: #efe8d9;
  --color-surface-offset-2: #e7dcc4;
  --color-surface-dynamic: #ddd0af;
  --color-divider: #e2d8c3;
  --color-border: #d8caa8;

  /* ---- Text ---- */
  --color-text: #1a2b23;
  --color-text-muted: #55625a;
  --color-text-faint: #93998f;
  --color-text-inverse: #faf7f1;

  /* ---- Brand forest green: fixed brand color, does NOT flip in dark mode.
     Use for header/footer/hero-overlay/cta-band surfaces and gold-button text. ---- */
  --color-forest: #1a3830;
  --color-forest-2: #14291f;

  /* ---- Primary: semantic text/accent role, flips in dark mode ---- */
  --color-primary: #1a3830;
  --color-primary-hover: #14291f;
  --color-primary-active: #0e1e17;
  --color-primary-highlight: #d9e3dc;

  /* ---- Accent: warm gold/tan ---- */
  --color-gold: #c09a5f;
  --color-gold-hover: #a8824c;
  --color-gold-active: #8f6c3d;
  --color-gold-highlight: #f1e5cd;

  /* ---- Status ---- */
  --color-success: #43683a;
  --color-success-hover: #33502d;
  --color-success-highlight: #dbe6d5;
  --color-warning: #96551f;
  --color-warning-hover: #714016;
  --color-warning-highlight: #ecd9c4;
  --color-error: #8a3324;
  --color-error-hover: #6b271b;
  --color-error-highlight: #ecd4cd;

  /* ---- Radius ---- */
  --radius-sm: 0.25rem;
  --radius-md: 0.4375rem;
  --radius-lg: 0.625rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ---- Transitions ---- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Shadows (warm-toned) ---- */
  --shadow-sm: 0 1px 2px oklch(0.2 0.03 130 / 0.08);
  --shadow-md: 0 6px 20px oklch(0.2 0.03 130 / 0.10);
  --shadow-lg: 0 16px 40px oklch(0.2 0.03 130 / 0.16);

  /* ---- Content widths ---- */
  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1220px;
  --content-full: 100%;

  /* ---- Fonts ---- */
  --font-display: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Public Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Dark mode: deep forest surfaces, cream text, gold accent glows warmer */
[data-theme='dark'] {
  --color-bg: #12211c;
  --color-surface: #16281f;
  --color-surface-2: #1a2f25;
  --color-surface-offset: #1e352a;
  --color-surface-offset-2: #24402f;
  --color-surface-dynamic: #2c4c38;
  --color-divider: #2a4536;
  --color-border: #35543f;
  --color-text: #eae3d2;
  --color-text-muted: #a9b6a9;
  --color-text-faint: #74847a;
  --color-text-inverse: #faf7f1; /* fixed — always for text on dark/image surfaces, does not flip */
  --color-primary: #d9e3dc;
  --color-primary-hover: #c3d1c6;
  --color-primary-active: #aebfb2;
  --color-primary-highlight: #24402f;
  --color-gold: #d9b578;
  --color-gold-hover: #e6c793;
  --color-gold-active: #f0d7ab;
  --color-gold-highlight: #3a3020;
  --color-success: #8fbb7f;
  --color-success-hover: #a3cb95;
  --color-success-highlight: #263a24;
  --color-warning: #d99a5c;
  --color-warning-hover: #e3ac77;
  --color-warning-highlight: #3d2e1c;
  --color-error: #d68873;
  --color-error-hover: #e09e8b;
  --color-error-highlight: #3d2620;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
}

/* ======================================================
   BASE ELEMENT STYLES
   ====================================================== */

body {
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}
[data-theme='dark'] h1,
[data-theme='dark'] h2,
[data-theme='dark'] h3,
[data-theme='dark'] h4 {
  color: var(--color-text);
}

p {
  color: var(--color-text-muted);
  max-width: 68ch;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
[data-theme='dark'] a { color: var(--color-gold); }
[data-theme='dark'] a.btn-primary { color: var(--color-forest); }
[data-theme='dark'] a.btn-outline,
[data-theme='dark'] .mobile-nav a,
[data-theme='dark'] .hero a.btn-outline,
[data-theme='dark'] .page-hero a.btn-outline { color: var(--color-text-inverse); }

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.section--tight {
  padding-block: clamp(var(--space-8), 5vw, var(--space-16));
}
.section--dark {
  background: var(--color-forest);
  color: #faf7f1;
}
.section--dark h1, .section--dark h2, .section--dark h3 {
  color: #fff;
}
.section--dark p { color: oklch(1 0 0 / 0.78); }
.section--offset {
  background: var(--color-surface-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-active);
  margin-bottom: var(--space-4);
}
[data-theme='dark'] .eyebrow,
.section--dark .eyebrow {
  color: var(--color-gold);
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.section-lede {
  font-size: var(--text-lg);
  max-width: 62ch;
}

/* ======================================================
   SKIP LINK
   ====================================================== */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--color-gold);
  color: var(--color-primary);
  padding: var(--space-3) var(--space-5);
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
  left: 0;
}

/* ======================================================
   HEADER
   ====================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.1);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
.header--scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-primary);
}
[data-theme='dark'] .brand { color: var(--color-text); }
.brand-logo { width: auto; height: 34px; flex-shrink: 0; display: block; object-fit: contain; }
.brand-word {
  display: block;
  height: 22px;
  width: auto;
  object-fit: contain;
}
.brand-sub {
  display: block;
  height: 10px;
  width: auto;
  object-fit: contain;
  margin-top: 3px;
}

.nav {
  display: none;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-2) 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-interactive);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-link[aria-current="page"] { color: var(--color-primary); }
[data-theme='dark'] .nav-link[aria-current="page"] { color: var(--color-gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text);
}
.theme-toggle:hover { background: var(--color-surface-offset); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-primary);
}
[data-theme='dark'] .nav-toggle { color: var(--color-text); }
.nav-toggle:hover { background: var(--color-surface-offset); }

@media (min-width: 960px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--color-forest);
  color: #faf7f1;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-6) var(--space-10);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-10);
}
.mobile-nav-close {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
}
.mobile-nav-close:hover { background: oklch(1 0 0 / 0.08); }
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.mobile-nav-link {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-inverse);
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
.mobile-nav-cta {
  margin-top: var(--space-8);
}
@media (min-width: 960px) {
  .mobile-nav { display: none; }
}

/* ======================================================
   BUTTONS
   ====================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  min-height: 44px;
  line-height: 1;
  white-space: nowrap;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive),
    border-color var(--transition-interactive);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-gold);
  color: var(--color-forest);
}
.btn-primary:hover { background: var(--color-gold-hover); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--color-text-inverse);
  border: 1px solid oklch(from var(--color-text-inverse) l c h / 0.5);
}
.btn-outline:hover { background: oklch(from var(--color-text-inverse) l c h / 0.1); }

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.35);
}
[data-theme='dark'] .btn-outline-dark { color: var(--color-text); border-color: oklch(from var(--color-text) l c h / 0.35); }
.btn-outline-dark:hover { background: var(--color-surface-offset); }

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  padding-inline: var(--space-2);
}
[data-theme='dark'] .btn-ghost { color: var(--color-gold); }
.btn-ghost:hover { text-decoration: underline; }

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); min-height: 36px; }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-text-inverse);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Source photo has a small farmhouse near the top edge; anchor the crop
     toward the bottom so it doesn't sit isolated in the headline area. */
  object-position: center 100%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.16 0.03 155 / 0.35) 0%, oklch(0.13 0.03 155 / 0.55) 55%, oklch(0.1 0.03 155 / 0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--space-16) var(--space-20);
}
.hero-eyebrow {
  color: var(--color-gold);
}
.hero h1 {
  font-size: var(--text-hero);
  color: #fff;
  max-width: 18ch;
  margin-bottom: var(--space-6);
}
.hero-sub {
  font-size: var(--text-lg);
  max-width: 46ch;
  color: oklch(1 0 0 / 0.86);
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
.hero-teaser {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.18);
  backdrop-filter: blur(6px);
  font-size: var(--text-sm);
  color: #fff;
  max-width: fit-content;
}
.hero-teaser strong { color: var(--color-gold); font-weight: 700; }

/* Interior page hero (shorter, for subpages) */
.page-hero {
  position: relative;
  color: var(--color-text-inverse);
  overflow: hidden;
  padding-block: var(--space-24) var(--space-16);
}
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, oklch(0.15 0.03 155 / 0.88) 10%, oklch(0.13 0.03 155 / 0.72) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: var(--text-3xl);
  color: #fff;
  max-width: 22ch;
}
.page-hero p {
  font-size: var(--text-lg);
  max-width: 56ch;
  color: oklch(1 0 0 / 0.85);
  margin-top: var(--space-5);
}
.breadcrumb {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.65);
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.breadcrumb a { color: oklch(1 0 0 / 0.85); }

@media (min-width: 768px) {
  .page-hero { padding-block: var(--space-32) var(--space-20); }
}

/* ======================================================
   PILLAR / FEATURE CARDS
   ====================================================== */
.pillars-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}

.pillar-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.pillar-index {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-gold-active);
  font-weight: 700;
}
[data-theme='dark'] .pillar-index { color: var(--color-gold); }
.pillar-card h3 {
  font-size: var(--text-lg);
}
.pillar-card p { font-size: var(--text-base); }
.pillar-card a {
  font-weight: 700;
  font-size: var(--text-sm);
  margin-top: auto;
}

/* ======================================================
   STATS / PULL QUOTE
   ====================================================== */
.stats-row {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); }
}
.stat {
  border-top: 2px solid var(--color-gold);
  padding-top: var(--space-4);
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1;
}
[data-theme='dark'] .stat-num { color: var(--color-text); }
.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.pull-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  line-height: 1.35;
  max-width: 40ch;
  position: relative;
  padding-left: var(--space-6);
  border-left: 3px solid var(--color-gold);
}
[data-theme='dark'] .pull-quote { color: var(--color-text); }
.section--dark .pull-quote { color: #fff; }
.section--dark .pull-quote cite { color: oklch(1 0 0 / 0.65); }
.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

/* ======================================================
   TWO-COL EDITORIAL LAYOUT
   ====================================================== */
.split {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
  .split--reverse .split-media { order: 2; }
}
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split-body h2 { margin-bottom: var(--space-4); }
.split-body p + p { margin-top: var(--space-4); }

/* Full-bleed image band */
.image-band {
  position: relative;
  aspect-ratio: 16/7;
  overflow: hidden;
}
.image-band img { width: 100%; height: 100%; object-fit: cover; }
.image-band-caption {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  color: #fff;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  background: oklch(0.1 0.02 150 / 0.55);
  backdrop-filter: blur(4px);
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  max-width: fit-content;
}
@media (min-width: 767px) {
  .image-band { aspect-ratio: 16/5; }
}

/* ======================================================
   CARDS (generic)
   ====================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.card-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Board of directors placeholder card */
.board-card {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: left;
}
.board-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.board-card h3 {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-text);
}
.board-card .board-role {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-active);
  margin-bottom: var(--space-2);
  display: block;
}
[data-theme='dark'] .board-role { color: var(--color-gold); }
.board-card p {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-faint);
}

/* Program cards */
.program-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  display: flex;
  flex-direction: column;
}
.program-card-media { aspect-ratio: 16/10; overflow: hidden; }
.program-card-media img { width: 100%; height: 100%; object-fit: cover; }
.program-card-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.program-card-body h3 { font-size: var(--text-lg); }
.program-card-body p { font-size: var(--text-sm); flex: 1; }

/* Sponsorship tier table */
.tier-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .tier-grid { grid-template-columns: repeat(4, 1fr); }
}
.tier-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.tier-card--featured {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  position: relative;
}
.tier-card--featured::before {
  content: 'Presenting';
  position: absolute;
  top: -12px;
  left: var(--space-6);
  background: var(--color-gold);
  color: var(--color-forest);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}
.tier-name { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-primary); }
[data-theme='dark'] .tier-name { color: var(--color-text); }
.tier-price { font-size: var(--text-sm); font-weight: 700; color: var(--color-gold-active); }
[data-theme='dark'] .tier-price { color: var(--color-gold); }
.tier-card ul { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.tier-card li { padding-left: var(--space-5); position: relative; }
.tier-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-gold);
}

/* ======================================================
   BANNERS / CALLOUTS
   ====================================================== */
.banner {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
}
.banner-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-gold-active);
  margin-top: 2px;
}
[data-theme='dark'] .banner-icon { color: var(--color-gold); }
.banner h3 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 700; color: var(--color-text); margin-bottom: var(--space-1); }
.banner p { font-size: var(--text-sm); }
.banner--warning {
  background: var(--color-warning-highlight);
  border-color: color-mix(in oklab, var(--color-warning) 40%, transparent);
}
.banner--warning .banner-icon { color: var(--color-warning); }

/* ======================================================
   CTA BAND (footer callout)
   ====================================================== */
.cta-band {
  background: var(--color-forest);
  color: #faf7f1;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 6vw, var(--space-16));
  text-align: left;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: var(--text-xl); max-width: 26ch; }
.cta-band p { color: oklch(1 0 0 / 0.78); max-width: 52ch; margin-top: var(--space-3); }
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* ======================================================
   FORMS
   ====================================================== */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.form-row {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}
.field .hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.field input,
.field select,
.field textarea {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-base);
  min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-highlight);
}
.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.field-checkbox input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--color-primary); }

.form-success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-10) var(--space-6);
  text-align: left;
  background: var(--color-success-highlight);
  border-radius: var(--radius-lg);
}
.form-success.is-visible { display: flex; }
.form-success-icon {
  width: 44px; height: 44px;
  color: var(--color-success);
}
.form.is-hidden { display: none; }

/* Honeypot spam-trap field: kept in the DOM and tab order excluded,
   but positioned off-screen and hidden from sighted/AT users so only bots
   that blindly fill every field end up completing it. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ======================================================
   NEWS / TIMELINE LIST
   ====================================================== */
.news-list {
  display: flex;
  flex-direction: column;
}
.news-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
@media (min-width: 700px) {
  .news-item { grid-template-columns: 140px 1fr; gap: var(--space-8); align-items: baseline; }
}
.news-date {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-active);
}
[data-theme='dark'] .news-date { color: var(--color-gold); }
.news-item h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.news-item p { font-size: var(--text-sm); }
.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-gold-highlight);
  color: var(--color-gold-active);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-2);
  width: fit-content;
}
[data-theme='dark'] .status-pill { color: var(--color-gold); background: var(--color-gold-highlight); }

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  background: var(--color-forest);
  color: #faf7f1;
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer p { color: oklch(1 0 0 / 0.65); font-size: var(--text-sm); max-width: 40ch; }
.footer p a { color: oklch(1 0 0 / 0.85); text-decoration: underline; text-decoration-color: oklch(1 0 0 / 0.35); }
.footer p a:hover { color: var(--color-gold); }
.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}
.footer-list { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-list a { color: oklch(1 0 0 / 0.78); font-size: var(--text-sm); }
.footer-list a:hover { color: var(--color-gold); }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid oklch(1 0 0 / 0.2);
  border-radius: var(--radius-full);
  color: #fff;
}
.footer-social a:hover { background: oklch(1 0 0 / 0.12); border-color: var(--color-gold); }
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(1 0 0 / 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.55);
}
.footer-bottom a { color: oklch(1 0 0 / 0.55); }
.footer-bottom a:hover { color: var(--color-gold); }

/* ======================================================
   UTILITIES
   ====================================================== */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.icon { width: 1em; height: 1em; }

/* Scroll reveal (opacity-only, no CLS) */
.reveal { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}
@keyframes reveal-fade { to { opacity: 1; } }

/* content-visibility for long pages */
.news-item, .board-card, .program-card {
  content-visibility: auto;
  contain-intrinsic-size: 300px;
}
