/* ─────────────────────────────────────────────────────────────────────────
   CARBON CAPTURE SHIELD — Site Stylesheet (v2 — dark-first, photo-cinematic)

   Visual register matched against the live www.carboncaptureshield.com
   via Playwright DOM audit 2026-05-26:

   • Pure black body background, white body text
   • Cinematic photo-backed sections, full-bleed, cover positioning
   • Mint-green #53E697 CTA buttons over black sections
   • Arial 700 headings at ~47px on hero/section anchors; 40px h1
   • Generous vertical rhythm (120-150px section padding)
   • Deep-navy feature band (#0c2884) for the "We've Found The Way" beat
   • Heavy drop-shadow on CTAs: rgb(0,0,0) -6px 9px 27px 3px

   Light/dark theme toggle: data-theme="light" on <html> swaps :root tokens.
   prefers-color-scheme falls back to whichever attribute is set.
   ───────────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────
   TOKENS — dark default (per DJ direction)
   ───────────────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --ccs-mint:        #53E697;
  --ccs-mint-dark:   #2dd17e;
  --ccs-mint-bg:     rgba(83, 230, 151, 0.12);
  --ccs-navy:        #0c2884;
  --ccs-navy-deep:   #07165a;
  --ccs-blue-cool:   #61B3CE;
  --ccs-blue-cool-dim: rgba(97, 179, 206, 0.18);

  /* Dark theme defaults */
  --paper:           #000000;
  --paper-2:         #0a0a0a;
  --paper-3:         #141414;
  --paper-warm:      #1a1a1a;
  --ink:             #ffffff;
  --ink-soft:        #e9e9e9;
  --ink-fade:        rgba(255, 255, 255, 0.60);
  --ink-faint:       rgba(255, 255, 255, 0.35);
  --rule:            rgba(255, 255, 255, 0.10);
  --rule-soft:       rgba(255, 255, 255, 0.18);

  /* Brand-on-surface */
  --accent:          var(--ccs-mint);
  --accent-on-bg:    #000000;
  --link:            var(--ccs-mint);
  --link-hover:      #ffffff;
  --feature-band-bg: var(--ccs-navy);
  --feature-band-ink: #ffffff;

  /* Typography — match live: Arial dominant */
  --font-body:       Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-display:    Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-mono:       ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Scale — matches live computed values */
  --fs-hero:    47px;   /* hero/section headings */
  --fs-h1:      40px;
  --fs-h2:      47px;
  --fs-h3:      32px;
  --fs-h4:      24px;
  --fs-h5:      20px;
  --fs-body:    18px;
  --fs-small:   15px;
  --fs-button:  20px;

  --lh-hero:    1.18;
  --lh-body:    1.85;   /* generous; matches live 30/15 = 2.0 */

  /* Layout */
  --gutter:        clamp(1.25rem, 5vw, 4rem);
  --max-width:    1140px;
  --reading-width: 720px;

  /* Section rhythm */
  --section-pad-y:  clamp(4rem, 8vw, 8rem);
  --section-pad-x:  var(--gutter);
  --hero-pad-y:     clamp(5rem, 10vw, 9.4rem);  /* 150px tall */

  /* Buttons / cards */
  --btn-radius:     6px;
  --btn-shadow:     -6px 9px 27px 3px rgba(0, 0, 0, 0.85);
  --card-shadow:    0 10px 40px rgba(0, 0, 0, 0.45);

  color-scheme: dark;
}

/* Light theme — swap tokens */
:root[data-theme="light"] {
  --paper:           #ffffff;
  --paper-2:         #f7f5e7;    /* warm cream from live mysticky-nav */
  --paper-3:         #F5F5F5;
  --paper-warm:      #F2F5F7;
  --ink:             #1a1a1a;
  --ink-soft:        #3a3a3a;
  --ink-fade:        rgba(0, 0, 0, 0.62);
  --ink-faint:       rgba(0, 0, 0, 0.35);
  --rule:            rgba(0, 0, 0, 0.10);
  --rule-soft:       rgba(0, 0, 0, 0.20);

  --accent:          #0170B9;       /* CCS blue from Astra tokens; works in light */
  --accent-on-bg:    #ffffff;
  --link:            #0170B9;
  --link-hover:      #015a94;
  --feature-band-bg: var(--ccs-navy);
  --feature-band-ink: #ffffff;

  --btn-shadow:     0 6px 24px rgba(12, 40, 132, 0.20);
  --card-shadow:    0 6px 24px rgba(0, 0, 0, 0.08);

  color-scheme: light;
}

/* Auto-detect when no explicit theme set */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    /* User prefers light, but DJ direction says default = dark.
       Comment retained for archeology; uncomment to honor system pref. */
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   RESET + BASE
   ───────────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover, a:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: var(--lh-hero);
  font-weight: 700;
  letter-spacing: -0.005em;
}

h1 { font-size: var(--fs-h1); font-weight: 900; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.12em; }

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

strong, b { font-weight: 700; color: var(--ink); }
em, i { font-style: italic; }

ul, ol { margin: 0 0 1.25em 1.5em; }
li { margin-bottom: 0.5em; }

blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  color: var(--ink-soft);
  font-style: italic;
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

code {
  padding: 0.15em 0.45em;
  background: var(--paper-3);
  color: var(--accent);
  border-radius: 3px;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

::selection {
  background: var(--accent);
  color: var(--accent-on-bg);
}

/* ─────────────────────────────────────────────────────────────────────────
   LAYOUT — site shell
   ───────────────────────────────────────────────────────────────────── */

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.reading {
  max-width: var(--reading-width);
  margin: 0 auto;
}

main { display: block; }

/* ─────────────────────────────────────────────────────────────────────────
   SITE HEADER + NAV  (transparent over hero; sticky)
   ───────────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  padding: 1rem var(--gutter);
}

:root[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.85);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.site-brand:hover,
.site-brand:focus-visible {
  color: var(--ink);
  text-decoration: none;
}

.site-brand-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.site-brand-logo img,
.site-brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.site-brand-tagline {
  font-size: 12px;
  color: var(--ink-fade);
  font-weight: 400;
  margin-top: 0.1rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Theme toggle button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--rule-soft);
  color: var(--ink-soft);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(20deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Toggle reveals correct icon depending on theme */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 900px) {
  .site-brand-tagline { display: none; }
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: 14px; }
}
@media (max-width: 640px) {
  .site-header { padding: 0.85rem var(--gutter); }
  .site-header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }
  .site-brand-name { font-size: 16px; }
  .site-brand-logo { width: 40px; height: 40px; }
  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 0.85rem 1.25rem;
    flex-wrap: wrap;
  }
  .site-nav a { font-size: 13px; padding-bottom: 4px; }
  .theme-toggle {
    position: relative;
    margin-left: 0;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   HERO SECTION — 2-column (video left, text right), photo-backed
   Matches live: full Dustbowl photo VISIBLE behind content, no heavy overlay
   ───────────────────────────────────────────────────────────────────── */

.hero-section {
  position: relative;
  /* Fill the viewport so the navy section beneath stays hidden until the
     user scrolls. Account for the sticky header (≈80px). */
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 9.4rem) var(--gutter);
  background-color: #000;
  background-image: var(--section-bg, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

/* Black overlay at 0.81 opacity — matches the live
   elementor-background-overlay treatment on this exact section
   (#1fa1c89 in the live Elementor markup). */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #000000;
  opacity: 0.81;
  z-index: 0;
  pointer-events: none;
}

.hero-section-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-section-inner { grid-template-columns: 1fr; }
}

.hero-col {
  min-width: 0;
}

.hero-col-video .embed-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 50px rgba(0,0,0,0.55);
}

.hero-col-video .embed-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-col-text {
  color: #ffffff;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, var(--fs-hero));
  font-weight: 700;
  line-height: 1.18;
  color: #ffffff;
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}

.hero-col-text p {
  font-size: clamp(1rem, 1.4vw, 1.05rem);
  line-height: 1.7;
  color: #ffffff;
  margin-bottom: 1.1em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}

.hero-col-text p:last-child { margin-bottom: 0; }

/* Per-page hero background tokens — sets --section-bg */
.hero-section[data-bg="dustbowl"]   { --section-bg: url('/assets/img/2021-06/dustbowl-001.jpeg'); }
.hero-section[data-bg="rainforest"] { --section-bg: url('/assets/img/2021-06/rainforest-gofundme.jpg'); }
.hero-section[data-bg="soil"]       { --section-bg: url('/assets/img/2021-07/soil-hands-001.jpg'); }
.hero-section[data-bg="paradise"]   { --section-bg: url('/assets/img/2021-06/paradise-park-001.jpg'); }
.hero-section[data-bg="kenya"]      { --section-bg: url('/assets/img/2022-03/kenya-desert-agri-solar.jpg'); }
.hero-section[data-bg="declaration"]{ --section-bg: url('/assets/img/2021-07/ccs-declaration-of-interdependence.jpg'); }
.hero-section[data-bg="chihuahua"]  { --section-bg: url('/assets/img/2021-06/chihuahua-desert.jpg'); }
.hero-section[data-bg="farmers"]    { --section-bg: url('/assets/img/2021-06/farmers-protests.jpg'); }

/* ─────────────────────────────────────────────────────────────────────────
   ACCENT DIVIDER — short coloured hr line between headline + body
   Matches the live Elementor divider widget under hero/feature headings
   ───────────────────────────────────────────────────────────────────── */

hr.accent-divider {
  display: block;
  width: 70px;
  height: 3px;
  background: var(--ccs-mint);
  border: 0;
  margin: 0 0 1.5rem;
}

.feature-band hr.accent-divider,
.contact-band hr.accent-divider {
  background: var(--ccs-mint);
}

/* ─────────────────────────────────────────────────────────────────────────
   FEATURE BAND — navy section with optional photo background
   Hosts "We've Found The Way" + the Choices Matter / Regenerative? pairs
   ───────────────────────────────────────────────────────────────────── */

.feature-band {
  position: relative;
  padding: clamp(4rem, 7vw, 7.5rem) var(--gutter);
  background-color: #000;
  background-image: var(--section-bg, none);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;  /* parallax: photo doesn't scroll with content */
  background-repeat: no-repeat;
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

/* Black overlay at 0.81 opacity — matches the live
   elementor-background-overlay treatment on this exact section
   (#5a9feef3 in the live Elementor markup). Same class as hero. */
.feature-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #000000;
  opacity: 0.81;
  z-index: 0;
  pointer-events: none;
}

/* iOS Safari + most touch devices don't support background-attachment: fixed
   well — it causes janky scroll. Fall back to scroll on touch + reduced-motion. */
@media (max-width: 900px),
       (hover: none) and (pointer: coarse),
       (prefers-reduced-motion: reduce) {
  .feature-band { background-attachment: scroll; }
}

.feature-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.feature-band[data-bg="adobe-201467659"] { --section-bg: url('/assets/img/2021-06/adobestock-201467659.jpeg'); }
.feature-band[data-bg="adobe-274777402"] { --section-bg: url('/assets/img/2021-06/adobestock-274777402.jpeg'); }

.feature-headline {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}
.feature-headline hr.accent-divider {
  margin-left: auto;
  margin-right: auto;
}

.feature-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 47px);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}

.feature-lede {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
}

.feature-cta { margin: 2rem 0 0; }

.feature-pair {
  display: grid;
  grid-template-columns: 1fr minmax(0, 480px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin: 4rem 0 0;
}

.feature-pair-reverse {
  grid-template-columns: minmax(0, 480px) 1fr;
}

@media (max-width: 800px) {
  .feature-pair,
  .feature-pair-reverse {
    grid-template-columns: 1fr;
  }
  .feature-pair-reverse .feature-pair-image { order: -1; }
}

.feature-pair-text { color: #ffffff; }

.feature-pair-text p {
  color: rgba(255,255,255,0.92);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.75;
  margin-bottom: 1em;
}

.feature-subheading {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--ccs-mint);
  margin: 0 0 1rem;
}

.feature-pair-image picture,
.feature-pair-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

/* ─────────────────────────────────────────────────────────────────────────
   BADGE BAND — CCS brand mark over photo backdrop
   ───────────────────────────────────────────────────────────────────── */

.badge-band {
  position: relative;
  padding: clamp(4rem, 7vw, 7.5rem) var(--gutter);
  background-color: #000;
  background-image: var(--section-bg, none);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.badge-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.85));
  z-index: 0;
  pointer-events: none;
}

.badge-band[data-bg="adobe-274777402"] { --section-bg: url('/assets/img/2021-06/adobestock-274777402.jpeg'); }

.badge-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.badge-logo {
  display: block;
  margin: 0 auto 1.5rem;
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5));
}

.badge-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}

.badge-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────────────────────────
   CONTACT BAND — black, centred CTA call-to-action
   ───────────────────────────────────────────────────────────────────── */

.contact-band {
  background: #000;
  color: #ffffff;
  padding: clamp(4rem, 7vw, 7.5rem) var(--gutter);
}

.contact-band-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-band hr.accent-divider {
  margin-left: auto;
  margin-right: auto;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem;
}

.contact-lede {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin: 0 0 2rem;
}

.contact-cta { margin: 0; }

/* Social grid — used inside .contact-band on /join-us/ */
.social-grid {
  list-style: none;
  padding: 0;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  max-width: 920px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.social-grid-3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .social-grid-3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .social-grid-3col { grid-template-columns: 1fr; }
}
.social-grid li {
  background: #000;
  margin: 0;
}
.social-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--ccs-mint);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}
.social-grid a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(83, 230, 151, 0.06) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.social-grid-name {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.social-grid-handle {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.50);
  text-transform: lowercase;
  transition: color 0.25s ease;
}
.social-grid a:hover,
.social-grid a:focus-visible {
  background: var(--ccs-mint);
  color: #000;
  outline: none;
}
.social-grid a:hover .social-grid-handle,
.social-grid a:focus-visible .social-grid-handle {
  color: rgba(0, 0, 0, 0.65);
}
.social-grid a:hover::after,
.social-grid a:focus-visible::after { opacity: 1; }

/* Post-card grid — used on /posts/ archive */
.post-card-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem 2rem;
}
.post-card {
  margin: 0;
}
.post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--paper-2);
  height: 100%;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.post-card-link:hover,
.post-card-link:focus-visible {
  border-color: var(--ccs-mint);
  transform: translateY(-3px);
  outline: none;
}
.post-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-3);
  position: relative;
}
.post-card-media picture,
.post-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card-link:hover .post-card-media img {
  transform: scale(1.04);
}
.post-card-media img {
  transition: transform 0.6s ease;
}
.post-card-body {
  padding: 1.8rem 1.8rem 2rem;
}
.post-card-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ccs-mint);
  margin-bottom: 0.6rem;
}
.post-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.8rem;
}
.post-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-fade);
  margin: 0;
}
:root[data-theme="light"] .post-card-link {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.10);
}
:root[data-theme="light"] .post-card-link:hover {
  border-color: var(--ccs-mint-dark);
}
:root[data-theme="light"] .post-card-title { color: #111; }
:root[data-theme="light"] .post-card-excerpt { color: rgba(0,0,0,0.65); }
:root[data-theme="light"] .post-card-date { color: var(--ccs-mint-dark); }

/* ─────────────────────────────────────────────────────────────────────────
   LEGACY .page-hero / .page-section / .page-eyebrow / .page-title
   Retained for non-homepage pages (FAQ, Brother Nature, Join Us, Posts).
   These still use the soft overlay treatment with eyebrow + page-title.
   ───────────────────────────────────────────────────────────────────── */

.page-hero {
  position: relative;
  padding: var(--hero-pad-y) var(--gutter);
  background-color: #000;
  background-image: var(--hero-bg-image, none);
  background-size: cover;
  background-position: center center;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 0;
  pointer-events: none;
}

:root[data-theme="light"] .page-hero::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.50) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, var(--fs-hero));
  font-weight: 700;
  line-height: var(--lh-hero);
  letter-spacing: -0.01em;
  max-width: 22ch;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.page-lede {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
}

.page-hero[data-bg="dustbowl"]   { --hero-bg-image: url('/assets/img/2021-06/dustbowl-001.jpeg'); }
.page-hero[data-bg="rainforest"] { --hero-bg-image: url('/assets/img/2021-06/rainforest-gofundme.jpg'); }
.page-hero[data-bg="soil"]       { --hero-bg-image: url('/assets/img/2021-07/soil-hands-001.jpg'); }
.page-hero[data-bg="paradise"]   { --hero-bg-image: url('/assets/img/2021-06/paradise-park-001.jpg'); }
.page-hero[data-bg="kenya"]      { --hero-bg-image: url('/assets/img/2022-03/kenya-desert-agri-solar.jpg'); }
.page-hero[data-bg="declaration"]{ --hero-bg-image: url('/assets/img/2021-07/ccs-declaration-of-interdependence.jpg'); }
.page-hero[data-bg="chihuahua"]  { --hero-bg-image: url('/assets/img/2021-06/chihuahua-desert.jpg'); }
.page-hero[data-bg="farmers"]    { --hero-bg-image: url('/assets/img/2021-06/farmers-protests.jpg'); }
.page-hero[data-bg="adobe-274777402"] { --hero-bg-image: url('/assets/img/2021-06/adobestock-274777402.jpeg'); }
.page-hero[data-bg="denys"]      { --hero-bg-image: url('/assets/img/2021-06/denys-nevozhai-001.jpg'); }
.page-hero[data-bg="earth-sunrise"] {
  --hero-bg-image: url('/assets/img/2021-06/adobestock-284362264.jpeg');
  background-position: center top;
  min-height: 70vh;
}
.page-hero[data-bg="adobe-201467659"] { --hero-bg-image: url('/assets/img/2021-06/adobestock-201467659.jpeg'); }

/* ─────────────────────────────────────────────────────────────────────────
   THE-CCS-STORY page — hero treatment overrides
   "Your Home / Is Under Attack" — large Roboto-style headline + sub
   ───────────────────────────────────────────────────────────────────── */
.story-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.story-hero .page-hero-inner { width: 100%; }
.story-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}
.story-hero-subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.5rem);
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 1.25rem 0 0;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

/* ─────────────────────────────────────────────────────────────────────────
   The-ccs-story: zig-zag image+text pairs
   Reuses .feature-pair shapes from homepage but inside an article context
   ───────────────────────────────────────────────────────────────────── */
.story-section {
  padding: clamp(4rem, 7vw, 7.5rem) var(--gutter);
  background: var(--paper);
  color: var(--ink);
}
.story-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.story-section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.18;
  text-align: center;
  margin: 0 0 3.5rem;
  color: var(--ink);
}
.story-pair {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.story-pair-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
}
.story-pair:last-child { margin-bottom: 0; }
.story-pair-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.story-pair-image picture,
.story-pair-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-pair-reverse .story-pair-image { order: 2; }
.story-pair-reverse .story-pair-text { order: 1; }
.story-pair-text p {
  font-size: clamp(0.98rem, 1.2vw, 1.05rem);
  line-height: 1.75;
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}
.story-pair-text p:first-child { margin-top: 0; }
.story-pair-text p:last-child { margin-bottom: 0; }
.story-pair-text strong { color: var(--ink); }
.story-pair-text a {
  color: var(--ccs-mint);
  text-decoration: none;
  border-bottom: 1px solid rgba(83, 230, 151, 0.40);
}
.story-pair-text a:hover { border-bottom-color: var(--ccs-mint); }

@media (max-width: 720px) {
  .story-pair, .story-pair-reverse {
    grid-template-columns: 1fr;
  }
  .story-pair-reverse .story-pair-image { order: 1; }
  .story-pair-reverse .story-pair-text { order: 2; }
  .story-pair-image {
    max-width: 380px;
    margin: 0 auto;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Trust The Plan — light cyan/blue section (deliberate register-break per live)
   ───────────────────────────────────────────────────────────────────── */
.trust-band {
  padding: clamp(4rem, 7vw, 7.5rem) var(--gutter);
  background: linear-gradient(180deg, #eaf2fb 0%, #d9e6f5 100%);
  color: #0a1a30;
}
.trust-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.trust-band-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.18;
  text-align: center;
  margin: 0 0 3.5rem;
  color: #0a1a30;
}
.trust-pair {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.trust-pair-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
}
.trust-pair:last-child { margin-bottom: 0; }
.trust-pair-image { aspect-ratio: 1 / 1; overflow: hidden; }
.trust-pair-image picture,
.trust-pair-image img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.trust-pair-reverse .trust-pair-image { order: 2; }
.trust-pair-reverse .trust-pair-text { order: 1; }
.trust-pair-text p {
  font-size: clamp(0.98rem, 1.2vw, 1.05rem);
  line-height: 1.75;
  margin: 0 0 1.1rem;
  color: #1a2a44;
}
.trust-pair-text p:last-child { margin-bottom: 0; }
.trust-pair-text strong { color: #0a1a30; }

@media (max-width: 720px) {
  .trust-pair, .trust-pair-reverse {
    grid-template-columns: 1fr;
  }
  .trust-pair-reverse .trust-pair-image { order: 1; }
  .trust-pair-reverse .trust-pair-text { order: 2; }
  .trust-pair-image { max-width: 380px; margin: 0 auto; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Regenerative Farming Benefits — 2-col checklist on light background
   ───────────────────────────────────────────────────────────────────── */
.benefits-band {
  padding: clamp(4rem, 7vw, 7.5rem) var(--gutter);
  background: linear-gradient(180deg, #d9e6f5 0%, #c8d8eb 100%);
  color: #0a1a30;
}
.benefits-band-inner {
  max-width: 900px;
  margin: 0 auto;
}
.benefits-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  text-align: center;
  margin: 0 0 3rem;
  color: #0a1a30;
}
.benefits-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.15rem 2.5rem;
}
@media (max-width: 600px) {
  .benefits-grid { grid-template-columns: 1fr; }
}
.benefits-grid li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: #0a1a30;
  border-bottom: 1px solid rgba(10, 26, 48, 0.10);
}
.benefits-grid li::before {
  content: '';
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: var(--ccs-mint);
  border-radius: 50%;
  position: relative;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ─────────────────────────────────────────────────────────────────────────
   Get Involved — full-bleed photo + centered card CTA
   ───────────────────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) var(--gutter);
  background-image: var(--cta-bg-image, url('/assets/img/2021-06/paradise-park-001.jpg'));
  background-size: cover;
  background-position: center;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 0;
}
.cta-card {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  background: rgba(255, 251, 235, 0.95);
  color: #1a1a1a;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}
.cta-card-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
  color: #1a1a1a;
}
.cta-card-lede {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.65;
  color: rgba(0,0,0,0.75);
  margin: 0 0 2rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   External-link icon (Wikipedia style) — auto-appended to body-prose
   external links via CSS, NOT to social-icon links in footer/grid.
   Targets target="_blank" links inside reading containers only.
   ───────────────────────────────────────────────────────────────────── */
.story-pair-text a[target="_blank"]::after,
.trust-pair-text a[target="_blank"]::after,
.faq-item-body a[target="_blank"]::after,
.hero-col-text a[target="_blank"]::after,
.feature-pair-text a[target="_blank"]::after,
.page-section-inner.reading a[target="_blank"]::after {
  content: '';
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.25em;
  vertical-align: 0.05em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2353E697' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3h3M3 3v3M3 3l5 5'/><path d='M7 1h4v4'/><path d='M5 7v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.85;
}
:root[data-theme="light"] .story-pair-text a[target="_blank"]::after,
:root[data-theme="light"] .trust-pair-text a[target="_blank"]::after,
:root[data-theme="light"] .faq-item-body a[target="_blank"]::after,
:root[data-theme="light"] .hero-col-text a[target="_blank"]::after,
:root[data-theme="light"] .feature-pair-text a[target="_blank"]::after,
:root[data-theme="light"] .page-section-inner.reading a[target="_blank"]::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%232dd17e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3h3M3 3v3M3 3l5 5'/><path d='M7 1h4v4'/><path d='M5 7v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3'/></svg>");
}

.page-section {
  padding: var(--section-pad-y) var(--section-pad-x);
  background: var(--paper);
  color: var(--ink);
}

.page-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────────────
   PAGE BODY — long-form reading
   ───────────────────────────────────────────────────────────────────── */

.page-body {
  padding: var(--section-pad-y) var(--gutter);
}

.page-body-inner {
  max-width: var(--reading-width);
  margin: 0 auto;
}

.page-body-inner p,
.page-body-inner ul,
.page-body-inner ol {
  font-size: 18px;
  line-height: 1.85;
  margin-bottom: 1.5em;
  color: var(--ink-soft);
}

.page-body-inner h2 {
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--ink);
}

.page-body-inner h3 {
  margin-top: 2em;
  margin-bottom: 0.6em;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  color: var(--ink);
}

.page-body-inner h4 {
  margin-top: 1.75em;
  margin-bottom: 0.5em;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--ink);
}

.page-body-inner img,
.page-body-inner picture,
.page-body-inner iframe {
  margin: 2.5rem 0;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
}

.page-body-inner picture img { margin: 0; box-shadow: none; }

.page-body-inner figure { margin: 2.5rem 0; }

.page-body-inner figcaption {
  font-size: var(--fs-small);
  color: var(--ink-fade);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

.page-body-inner a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.page-body-inner a:hover,
.page-body-inner a:focus-visible {
  text-decoration: none;
  border-bottom-color: transparent;
}

/* Post-figure — inline images at body width, with optional caption */
.page-body-inner .post-figure {
  margin: 2.5rem 0;
}
.page-body-inner .post-figure a { border-bottom: 0; }
.page-body-inner .post-figure img,
.page-body-inner .post-figure picture {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
}
.page-body-inner .post-figure picture img {
  width: 100%;
  height: auto;
}

/* Post-quote — pull-quote / blockquote treatment with mint accent */
.page-body-inner .post-quote {
  margin: 2.5rem 0;
  padding: 1.5rem 0 1.5rem 2rem;
  border-left: 3px solid var(--ccs-mint);
  position: relative;
}
.page-body-inner .post-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.page-body-inner .post-quote p:last-of-type {
  margin-bottom: 0.85rem;
}
.page-body-inner .post-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-fade);
  margin-top: 0.5rem;
}
:root[data-theme="light"] .page-body-inner .post-quote p { color: #1a1a1a; }
:root[data-theme="light"] .page-body-inner .post-quote cite { color: rgba(0,0,0,0.55); }

/* ─────────────────────────────────────────────────────────────────────────
   BUTTONS — mint green CTAs over dark
   ───────────────────────────────────────────────────────────────────── */

.btn,
.btn-primary,
a.btn,
a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 25px 50px;
  font-family: var(--font-display);
  font-size: var(--fs-button);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--accent-on-bg);
  background: var(--accent);
  border: 0;
  border-radius: var(--btn-radius);
  box-shadow: var(--btn-shadow);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.btn:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible,
a.btn:hover,
a.btn-primary:hover {
  background: var(--ccs-mint-dark);
  color: #000;
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-ghost,
a.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule-soft);
  border-radius: var(--btn-radius);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   FAQ — native <details> styled for dark
   ───────────────────────────────────────────────────────────────────── */

.faq-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.faq-item[open] {
  border-color: var(--accent);
  background: var(--paper-3);
}

.faq-item > summary {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 700;
  color: var(--ink);
  padding: 1.25rem 3.5rem 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.18s ease;
}

.faq-item > summary:hover { color: var(--accent); }
.faq-item > summary::-webkit-details-marker { display: none; }

.faq-item > summary::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.22s ease;
}

.faq-item[open] > summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq-item-body {
  padding: 0 1.5rem 1.5rem;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.faq-item-body p { margin-bottom: 1em; }
.faq-item-body p:last-child { margin-bottom: 0; }
.faq-item-body a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.faq-item-body figure {
  margin: 1.5rem 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   POST ARCHIVE
   ───────────────────────────────────────────────────────────────────── */

.post-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1.5rem;
}

.post-list-item {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 2rem 2.25rem;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.post-list-item:hover {
  border-color: var(--accent);
  background: var(--paper-3);
  transform: translateY(-3px);
}

.post-list-date {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.post-list-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.post-list-title a {
  color: var(--ink);
  border: 0;
}

.post-list-title a:hover,
.post-list-title a:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.post-list-excerpt {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ─────────────────────────────────────────────────────────────────────────
   POST META
   ───────────────────────────────────────────────────────────────────── */

.post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1rem;
}

.post-meta a { color: inherit; }

/* ─────────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────── */

.site-footer {
  background: #000;
  color: rgba(255, 255, 255, 0.65);
  padding: 4rem var(--gutter) 2.5rem;
  font-size: var(--fs-small);
  line-height: 1.7;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .site-footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.72);
  border-top: 0;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 3rem;
}

@media (max-width: 720px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.site-footer h3 {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  border: 0;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer-social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
}

.site-footer-social li { margin: 0; }

.site-footer-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────────────────────────────────────
   UTILITIES
   ───────────────────────────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted  { color: var(--ink-fade); }
.text-accent { color: var(--accent); }

.full-bleed {
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
}

/* ─────────────────────────────────────────────────────────────────────────
   PRINT
   ───────────────────────────────────────────────────────────────────── */

@media print {
  :root {
    --paper: #ffffff;
    --ink: #000000;
    --ink-soft: #222;
    --accent: #0c2884;
    color-scheme: light;
  }
  .site-header, .site-footer, .theme-toggle { display: none; }
  body { font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .page-hero::before,
  .page-hero::after,
  .page-section::before,
  .page-section::after { display: none !important; }
}

/* ─────────────────────────────────────────────────────────────────────────
   REDUCED MOTION
   ───────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
