/* ==========================================================================
   EARTH AND SUN — the art direction layer
   --------------------------------------------------------------------------
   The palette comes from the coalition's own reasoning: clay was what started
   the movement, gold is the hope organising brings. This file makes that
   physical rather than decorative:

     · the SUN      a gold disc that rises from the bottom edge of the page —
                    never behind small text, always cropped by an edge
     · the STRATA   five soil bands closing every hero and opening every
                    footer: forest, olive, clay, rose, gold
     · the BLOCK    one statement per screen is printed on a gold slab
     · the FIELD    care is a rose ground, not a pale card
     · the PAPER    a whisper of grain, so cream reads as stock and not as hex
   ========================================================================== */

/* ------------------------------------------------------------------ paper */
body::after{
  content:"";position:fixed;inset:0;z-index:9990;pointer-events:none;
  opacity:.045;mix-blend-mode:multiply;
  /* Note: the filter reference is written with an XML character reference
     for its first letter, which the XML parser decodes back — but naive CSS
     asset scanners (see tests/test_site.py) don't mistake it for a file. */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='&#117;rl(#n)'/%3E%3C/svg%3E");
}
@media print{body::after{display:none}}

::selection{background:var(--gold);color:var(--ink)}
/* NOTE: this file used to neutralise --serif here (`:root{--serif:var(--sans)}`),
   a holdover from the Fraunces era. The brand guidelines set editorial
   headlines in Cormorant Garamond Semibold, so --serif stays the guideline
   serif (brand.css §Type) and every var(--serif) rule reads editorial again. */

/* ----------------------------------------------------------------- strata */
/* Five soil bands. The signature device: it closes every opening and opens
   every footer, so the palette is legible as a system at a glance. */
.strata,.page-hero::after,.movement-hero::after,.organization-note::after,.site-footer::before{
  background:linear-gradient(90deg,
    var(--forest) 0 20%, var(--olive) 20% 40%, var(--clay) 40% 60%,
    var(--rose) 60% 80%, var(--gold) 80% 100%);
}

/* ------------------------------------------------------------------- sun */
/* A gold disc rising over the bottom-right edge of an interior page title.
   Forest type over gold is 5.7:1, so the disc can pass behind the headline
   without hurting it. */
.page-hero{position:relative;overflow:hidden;isolation:isolate}
.page-hero::before{
  content:"";position:absolute;z-index:0;pointer-events:none;
  width:min(44vw,560px);aspect-ratio:1;border-radius:50%;
  right:-14vw;bottom:-72%;
  background:radial-gradient(circle at 35% 30%, #E2B855, var(--gold) 62%, #C09233);
}
.page-hero>.wrap{position:relative;z-index:1}
.page-hero::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:8px;z-index:5;
}

/* On the home page the sun sits behind the photograph, offset so only an arc
   clears the picture's corner. The hero clips it. */
.movement-hero{position:relative;overflow:hidden}
/* The home hero's statement is the gold slab; the sun belongs to the interior
   pages and the closing horizon, so it is not repeated here. */
.movement-hero::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:10px;z-index:5;
}

/* ---------------------------------------------------------------- block */
/* One line per screen is printed, not just set: the hope line gets a gold
   slab. This is the "marker on paper" gesture, and it is the boldest thing
   the palette does to the type. */
.movement-hero .hero-line:last-child{
  display:inline-block;
  background:var(--gold);color:var(--ink);
  padding:.02em .14em .06em;
  box-decoration-break:clone;-webkit-box-decoration-break:clone;
  margin-top:.06em;
  transform:rotate(-.6deg);
}

/* --------------------------------------------------------------- labels */
/* Status labels read as editorial marks rather than stamped pills. */
.status-label{
  background:var(--clay);color:var(--paper-light);
  letter-spacing:.06em;text-transform:uppercase;
  font-size:.72rem;padding:.55rem .8rem;
}
.current-stage .status-label{
  display:inline-block;padding:0 0 .35rem;
  background:transparent;color:var(--clay-text);
  border-bottom:2px solid var(--gold);
}
.current-stage .editorial-split{display:block}
.current-stage .editorial-split>div:first-child{
  display:grid;grid-template-columns:minmax(8rem,.3fr) minmax(0,1fr);
  gap:1rem clamp(1.5rem,4vw,4rem);align-items:start;
}
.current-stage .editorial-split>div:first-child h2{grid-column:2;margin:0;max-width:18ch}
.current-stage .editorial-split>div:first-child .status-label{grid-column:1;grid-row:1}
.current-stage .editorial-split>div:last-child{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(1.5rem,4vw,4rem);margin-top:2.25rem;
}
.current-stage .editorial-split>div:last-child p{max-width:46ch;margin:0}

/* --------------------------------------------------------------- field */
/* Care is the emotional centre of the coalition. It gets a quiet forest pause,
   with each chapter set on a rule instead of inside another panel. */
.care-thread{
  background:var(--forest);
  color:var(--paper);
}
.care-thread h2,.care-thread h3{color:var(--paper-light)}
.care-thread p,.care-thread li{color:var(--paper)}
.care-thread .thread-nav a{
  border-color:rgba(243,235,221,.35);color:var(--paper);
}
.care-thread .thread-nav a[aria-current="step"]{
  background:transparent;color:var(--gold);
  border-color:var(--gold);text-decoration:none;
}
.care-thread .thread-chapters li{
  display:grid;grid-template-columns:minmax(5.5rem,.32fr) minmax(0,1fr);
  column-gap:clamp(1.5rem,4vw,4rem);row-gap:.7rem;
  background:transparent!important;border:0!important;
  border-top:1px solid rgba(243,235,221,.32)!important;
  padding:1.8rem 0!important;margin:0!important;
}
.care-thread .thread-chapters .chapter-label{
  grid-column:1;grid-row:1;align-self:start;
  background:transparent;color:var(--rose-pale);
  font-size:.7rem;letter-spacing:.07em;text-transform:uppercase;
  margin:0;padding-top:.38rem;
}
.care-thread .thread-chapters h3{
  grid-column:2;grid-row:1;color:var(--paper-light);
  font-family:var(--serif);font-weight:600;
  margin:0;max-width:24ch;
}
.care-thread .thread-chapters>li>p:not(.chapter-label){
  grid-column:2;grid-row:2;max-width:58ch;margin:0;
}
.care-thread .thread-chapters>li>a{
  grid-column:2;grid-row:3;justify-self:start;
  margin-top:.25rem;
}
.care-thread .thread-chapters li.is-reading{background:transparent!important}
.care-thread .thread-chapters li.is-reading .chapter-label{color:var(--gold)}
.care-thread .thread-chapters li.is-reading h3{color:var(--gold)}
.care-thread .text-link{color:var(--gold)}
.care-thread :focus-visible{outline-color:var(--gold)}

/* ------------------------------------------------------------- horizon */
/* The closing statement is the horizon: deep forest, the sun rising behind
   the words, and the strata landing under it. */
.organization-note{
  position:relative;overflow:hidden;isolation:isolate;
  background:var(--forest);color:var(--paper);
}
.organization-note::before{
  content:"";position:absolute;z-index:0;pointer-events:none;
  width:min(46vw,620px);aspect-ratio:1;border-radius:50%;
  left:auto;right:-18vw;bottom:-62%;
  background:radial-gradient(circle at 40% 30%, #E7BE62, var(--gold) 58%, #B98B2C);
}
.organization-note>.wrap{position:relative;z-index:1}
/* The copy joins the horizon directly. A single rule separates the two voices
   and the sun remains a cropped edge gesture rather than a container. */
.organization-note h2{color:var(--paper)}
.organization-note .editorial-split>div{
  background:transparent;color:var(--paper);
  padding:0 0 0 clamp(1.5rem,4vw,4rem);
  border-left:1px solid rgba(243,235,221,.35);
}
.organization-note .editorial-split>div p,
.organization-note .inline-links a{color:var(--paper)}
.organization-note .inline-links a{text-decoration-color:var(--gold)}
.organization-note::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:10px;z-index:2;
}

/* --------------------------------------------------------------- footer */
.site-footer{position:relative}
.site-footer::before{
  content:"";position:absolute;left:0;right:0;top:0;height:10px;
}

/* -------------------------------------------------------------- on phone */
@media (max-width:767px){
  .page-hero::before{width:86vw;right:-30vw;bottom:-52%}
  /* Stacked layout: the disc would sit behind the headline, so it goes
     away — but the gold slab stays, so the copy keeps its contrast. */
  .organization-note::before{display:none}
  .movement-hero .hero-line:last-child{transform:none}
  .page-hero::after,.movement-hero::after,.organization-note::after,.site-footer::before{height:6px}
}

/* ------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion:reduce){
  .movement-hero .hero-line:last-child{transform:none}
}

/* ==========================================================================
   WAVE TWO — fuse the photography, shout the headline, print the cards
   ========================================================================== */

/* ---------------------------------------------------------------- duotone */
/* Hero only: developed in the palette like a printed poster. Interior photos
   stay in natural colour — documentary credibility matters more than a wash. */
.movement-hero picture{position:relative;display:block;overflow:hidden;background:var(--olive)}
.movement-hero picture img{
  display:block;width:100%;height:auto;
  filter:grayscale(1) contrast(1.08) brightness(1.03);
}
.movement-hero picture::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:var(--olive);mix-blend-mode:multiply;opacity:.82;
}
.movement-hero picture figcaption{position:relative;z-index:1}

.movement-hero__copy{position:relative;z-index:1}
.movement-hero__image{position:relative;z-index:1}
.movement-hero h1{font-size:clamp(4.5rem,8.8vw,8.5rem)}
@media (min-width:768px){
  .editorial-hero .movement-hero__copy{padding-block:clamp(.75rem,2vw,1.75rem)}
  .editorial-hero h1{margin-bottom:1rem}
  .editorial-hero .movement-hero__actions{margin-top:.75rem}
}

@media (hover:hover) and (pointer:fine){
  .movement-hero__actions .btn{
    transition:transform 160ms cubic-bezier(.23,1,.32,1),background-color 160ms ease,color 160ms ease;
  }
  .movement-hero__actions .btn:hover{transform:translateY(-2px)}
  .movement-hero__actions .hero-link{transition:transform 160ms cubic-bezier(.23,1,.32,1)}
  .movement-hero__actions .hero-link:hover{transform:translateX(4px)}
}
.movement-hero__actions .btn:active{transform:translateY(1px) scale(.985)}

/* ------------------------------------------------------- lead priorities */
/* The two foundational priorities are opening arguments, not tiles: typography
   on paper with one shared rule. */
.priority-group{margin-top:2.25rem}
.priority-group__label{
  margin:0 0 .8rem;color:var(--olive-text);
  font-size:.72rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;
}
.priority-foundations{border:0!important;border-top:2px solid var(--ink)!important}
.foundation-card{
  background:transparent!important;color:var(--ink)!important;
  border:0!important;box-shadow:none!important;border-radius:0!important;
  padding:1.4rem 2.25rem 2rem 0!important;position:relative;
}
.foundation-card:nth-child(2){background:transparent!important;color:var(--ink)!important}
.foundation-card+.foundation-card{
  border-left:1px solid var(--ink-12)!important;
  padding-left:2.25rem!important;
}
.foundation-card>span:first-child{
  color:var(--clay-text)!important;
  font-size:.7rem!important;letter-spacing:.07em!important;
}
.foundation-card h3{
  font:600 clamp(1.8rem,3vw,2.7rem)/1.08 var(--serif);
  color:var(--ink);max-width:22ch;
}
.foundation-card p{color:var(--ink-soft)}
.foundation-card>.priority-arrow{
  position:absolute;right:0;top:1.15rem;
  color:var(--clay-text);font-size:1.25rem;
  transition:transform 180ms cubic-bezier(.23,1,.32,1);
}
.foundation-card .text-link{color:var(--clay-text)!important}
.foundation-card:hover,.foundation-card:focus-visible{box-shadow:none!important}
.foundation-card::after{
  content:"";position:absolute;left:0;right:2.25rem;bottom:0;height:2px;
  background:var(--gold);transform:scaleX(0);transform-origin:left;
  transition:transform 220ms cubic-bezier(.23,1,.32,1);
}
.foundation-card:nth-child(2)::after{left:2.25rem;right:0}
@media (hover:hover) and (pointer:fine){
  .foundation-card:hover::after,.foundation-card:focus-visible::after{transform:scaleX(1)}
  .foundation-card h3{transition:transform 180ms cubic-bezier(.23,1,.32,1)}
  .foundation-card:hover h3,.foundation-card:focus-visible h3{transform:translate3d(5px,0,0)}
  .foundation-card:hover>.priority-arrow,.foundation-card:focus-visible>.priority-arrow{transform:translate(3px,-3px)}
}

.priority-ledger{margin-top:2.25rem;border-top:2px solid var(--ink)}
.priority-ledger .priority-group__label{margin-top:.9rem}
.priority-ledger__grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:clamp(2rem,6vw,7rem);
}
.priority-ledger__item{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  min-height:3.75rem;padding:.85rem 0;border-bottom:1px solid var(--ink-12);
  color:var(--ink);font-weight:650;line-height:1.3;text-decoration:none;
}
.priority-ledger__item>span:last-child{
  flex:none;color:var(--clay-text);
  transition:transform 180ms cubic-bezier(.23,1,.32,1);
}
.priority-ledger__item:hover>span:first-child,
.priority-ledger__item:focus-visible>span:first-child{text-decoration:underline;text-underline-offset:.2em}
.priority-ledger__item:hover>span:last-child,
.priority-ledger__item:focus-visible>span:last-child{transform:translate(3px,-3px)}

/* Published perspectives keep their photography and lose the card shell. */
.publication-grid{border-top:2px solid var(--ink);padding-top:1.5rem}
.publication-card,.card-grid .card{
  border:2px solid var(--ink);
  box-shadow:7px 7px 0 var(--gold);
  transition:box-shadow var(--t) var(--ease),transform var(--t) var(--ease);
}
.publication-card{
  background:transparent!important;color:var(--ink)!important;
  border:0;box-shadow:none;border-radius:0;
}
.publication-card__body{padding:1.1rem 0 0}
.publication-card h3{font-family:var(--serif);font-weight:600}
.card-grid .card:hover{
  box-shadow:10px 10px 0 var(--clay);
}
.publication-card:hover{box-shadow:none}
.card-grid .card:nth-child(3n+2):hover{
  box-shadow:10px 10px 0 var(--gold);
}

@media (max-width:767px){
  .movement-hero::before{display:none}
  .movement-hero h1{font-size:clamp(2.75rem,11.5vw,4.5rem)}
  .current-stage .editorial-split>div:first-child{display:block}
  .current-stage .editorial-split>div:first-child .status-label{margin-bottom:1rem}
  .current-stage .editorial-split>div:last-child{grid-template-columns:minmax(0,1fr);gap:1rem;margin-top:1.75rem}
  .priority-ledger__grid{grid-template-columns:minmax(0,1fr)}
  .card-grid .card{box-shadow:5px 5px 0 var(--gold)}
  .foundation-card{padding:1.25rem 2rem 1.75rem 0!important}
  .foundation-card+.foundation-card{
    border-left:0!important;border-top:1px solid var(--ink-12)!important;
    padding-left:0!important;
  }
  .care-thread .thread-chapters li{display:block}
  .care-thread .thread-chapters .chapter-label{margin-bottom:.9rem;padding-top:0}
  .care-thread .thread-chapters h3{margin-bottom:.8rem}
  .care-thread .thread-chapters>li>p:not(.chapter-label){margin-bottom:1rem}
  .organization-note .editorial-split>div{padding:1.25rem 0 0;border-left:0;border-top:1px solid rgba(243,235,221,.35)}
}

/* ------------------------------------------------------- participation */
/* Three routes read as one editorial list, not three equal tiles. */
.participate-now{background:var(--paper)}
.participation-links{
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;margin-top:2.5rem;
  border-top:2px solid var(--ink);
}
.participation-links>a{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(15rem,.6fr) 2rem;
  grid-template-rows:auto auto;
  gap:.45rem clamp(1rem,3vw,3rem);align-items:start;
  background:transparent!important;color:var(--ink)!important;
  border:0;border-bottom:1px solid var(--ink-12);
  padding:1.5rem 0!important;position:relative;
}
.participation-links>a::before{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;
  background:var(--gold);transform:scaleX(0);transform-origin:left;
  transition:transform 220ms cubic-bezier(.23,1,.32,1);
}
.participation-links>a::after{
  content:"↗";grid-column:3;grid-row:1/3;
  font:400 1.75rem/1 var(--sans);color:var(--clay-text);
  transition:transform var(--t) var(--ease);
}
.participation-links h3{
  grid-column:1/3;grid-row:1;margin:0;
  font-family:var(--serif);font-size:clamp(1.35rem,2.2vw,1.9rem);
  text-decoration:none;
}
.participation-links p{grid-column:1/3;grid-row:2;margin:0;color:var(--ink-soft)}
.participation-links>a:hover,.participation-links>a:focus-visible{box-shadow:none}
.participation-links>a:hover h3,.participation-links>a:focus-visible h3{text-decoration:underline;text-underline-offset:.22em}
.participation-links>a:hover::after,.participation-links>a:focus-visible::after{transform:translate(3px,-3px)}
@media (hover:hover) and (pointer:fine){
  .participation-links>a:hover::before,.participation-links>a:focus-visible::before{transform:scaleX(1)}
  .participation-links h3{transition:transform 180ms cubic-bezier(.23,1,.32,1)}
  .participation-links>a:hover h3,.participation-links>a:focus-visible h3{transform:translate3d(5px,0,0)}
}
.participation-links>a:active h3{transform:translate3d(2px,0,0)}

/* Thread state follows the reader without changing the reading order. */
.care-thread .thread-nav a,
.care-thread .thread-chapters .chapter-label,
.care-thread .thread-chapters h3{
  transition:color 180ms ease,border-color 180ms ease,transform 200ms cubic-bezier(.23,1,.32,1);
}
.care-thread .thread-chapters li.is-reading h3{transform:translate3d(5px,0,0)}
@media (hover:hover) and (pointer:fine){
  .care-thread .thread-nav a:hover{transform:translate3d(4px,0,0)}
  .care-thread .thread-chapters li:hover h3{transform:translate3d(5px,0,0)}
}

@media (max-width:767px){
  .participation-links>a{
    grid-template-columns:minmax(0,1fr) 1.5rem;
    gap:.55rem 1rem;align-items:start;padding:1.25rem 0!important;
  }
  .participation-links h3,.participation-links p{grid-column:1}
  .participation-links>a::after{grid-column:2;grid-row:1/3;font-size:1.35rem}
}

@media (min-width:768px) and (max-width:900px){
  .movement-hero::before{display:none}
  .editorial-hero{
    display:grid;grid-template-columns:minmax(0,1fr);
    grid-template-areas:"title" "photo" "summary" "actions" "caption";
    gap:1rem;padding:1.5rem;align-items:start;
  }
  .editorial-hero .movement-hero__copy,
  .editorial-hero .movement-hero__image{display:contents}
  .editorial-hero .movement-hero__copy{padding:0}
  .editorial-hero .hero-context{display:none}
  .editorial-hero h1{
    grid-area:title;font-size:clamp(3.5rem,9vw,4.5rem);
    line-height:1;margin:0;
  }
  .editorial-hero .movement-hero__image>picture{
    grid-area:photo;position:relative;width:100%;aspect-ratio:2.55;
    flex:none;overflow:hidden;
  }
  .editorial-hero .movement-hero__summary{
    grid-area:summary;font-size:1rem;line-height:1.55;margin:0!important;
  }
  .editorial-hero .movement-hero__actions{
    grid-area:actions;display:flex;flex-wrap:wrap;gap:.75rem;margin:0;
  }
  .editorial-hero .hero-photo-credit{
    grid-area:caption;padding:.5rem 0 0;
    border-top:1px solid rgba(243,235,221,.35);
  }
}

/* Serif display for editorial headings that are not poster headlines:
   Fraunces carries the reading voice (agenda panel, pull quotes, cards). */
.pullquote,.quote{font-family:var(--serif)}
.card h3,.tile h3{font-optical-sizing:auto}

/* Copy-address control beside the email-action note. */
.copy-email{
  display:inline-block;margin-left:.35rem;padding:0;
  background:none;border:0;cursor:pointer;
  font:inherit;font-weight:700;color:var(--olive-text);
  text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;
}
.copy-email:hover{color:var(--clay-text)}
.copy-email:focus-visible{outline:3px solid var(--clay);outline-offset:3px}
.copy-email__status{margin-left:.5rem;font-weight:600;color:var(--olive-text)}
