/*
Theme Name: ASH Canada
Theme URI: https://www.ash.ca
Author: Nightfire Studios
Description: Campaign-poster block theme for Action on Smoking & Health (ASH Canada). Navy/white bands, ultra-condensed caps headlines, one yellow "action" colour. Homepage sections build themselves from ordinary posts in the Hot topic, Media release and Smoke Signals categories.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ash-canada-theme
*/

/* =========================================================================
   Tokens
   Colours mirror theme.json's palette so editor-picked colours and theme CSS
   always agree. Fonts are self-hosted via theme.json (assets/fonts/).
   ========================================================================= */
:root {
  --navy: var(--wp--preset--color--navy, #072446);
  --navy-2: var(--wp--preset--color--navy-2, #0F3560);
  --yellow: var(--wp--preset--color--yellow, #EAA941);
  --blue: var(--wp--preset--color--blue, #1F86B3);
  --paper: var(--wp--preset--color--paper, #EEF3F6);
  --white: var(--wp--preset--color--white, #FFFFFF);
  --muted: var(--wp--preset--color--muted, #4B6375);
  --line: var(--wp--preset--color--line, #D3DDE4);
  --on-navy-muted: #A9BDCB;

  --display: var(--wp--preset--font-family--archivo, 'Archivo', 'Arial Narrow', system-ui, sans-serif);
  --body: var(--wp--preset--font-family--archivo, 'Archivo', system-ui, sans-serif);
  --mono: var(--wp--preset--font-family--mono, 'IBM Plex Mono', ui-monospace, Menlo, monospace);

  --ease: cubic-bezier(.2, .7, .1, 1);
  --gut: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px));
  --gut-r: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right, 0px));
  --radius: clamp(18px, 2vw, 28px);

  color-scheme: light;
}

/* =========================================================================
   Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--navy); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
figure { margin: 0; }

/* Block gaps are switched off in theme.json; every section sets its own. */
.wp-site-blocks > * + *,
.site-main > * + * { margin-block-start: 0; }
.wp-block-image { margin: 0; }
.wp-block-buttons { gap: 12px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* =========================================================================
   Type
   ========================================================================= */
.mega {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: .84;
  letter-spacing: -.01em;
  font-size: clamp(48px, 9.5vw, 150px);
}
.h1 {
  font-family: var(--display);
  font-stretch: 68%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: .88;
  font-size: clamp(52px, 8.6vw, 132px);
}
.h2 {
  font-family: var(--display);
  font-stretch: 70%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: .9;
  font-size: clamp(40px, 5.6vw, 84px);
}
.h3 {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  font-size: clamp(26px, 2.6vw, 38px);
}
/* The accent word in any headline (italic in the editor) is the yellow one on
   dark backgrounds and blue on light. */
.mega em, .h1 em, .h2 em { font-style: normal; color: var(--blue); }
.frame em, .band--navy em { color: var(--yellow); }

.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 58ch; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* =========================================================================
   Structure
   ========================================================================= */
.wrap {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gut) var(--gut-r);
}
.band { padding-block: clamp(72px, 10vw, 140px); }
.band--navy { background: var(--navy); color: var(--white); }
.band--paper { background: var(--paper); }
.band--yellow { background: var(--yellow); color: var(--navy); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head > p { max-width: 44ch; color: var(--muted); }
.band--navy .section-head > p { color: var(--on-navy-muted); }

/* =========================================================================
   Buttons
   Core Button block styles registered in functions.php (Styles panel):
   is-style-ash-yellow / -navy / -outline. Extra classes: has-arrow, btn-sm.
   The hand-written .btn is for raw HTML (e.g. the sign-up form).
   ========================================================================= */
.wp-block-button[class*="is-style-ash-"] .wp-block-button__link,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 800 16px/1 var(--body);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
/* Fill that slides up on hover. */
.wp-block-button[class*="is-style-ash-"] .wp-block-button__link::before,
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .4s var(--ease);
}
.wp-block-button[class*="is-style-ash-"] .wp-block-button__link:hover::before,
.btn:hover::before { transform: translateY(0); }

.wp-block-button.is-style-ash-yellow .wp-block-button__link { background: var(--yellow); color: var(--navy); }
.wp-block-button.is-style-ash-yellow .wp-block-button__link::before { background: var(--white); }
.wp-block-button.is-style-ash-navy .wp-block-button__link,
.btn-navy { background: var(--navy); color: var(--white); }
.wp-block-button.is-style-ash-navy .wp-block-button__link::before,
.btn-navy::before { background: var(--blue); }
.wp-block-button.is-style-ash-outline .wp-block-button__link { background: transparent; color: currentColor; border-color: currentColor; }
.wp-block-button.is-style-ash-outline .wp-block-button__link::before { background: var(--yellow); }
.wp-block-button.is-style-ash-outline .wp-block-button__link:hover { color: var(--navy); border-color: var(--yellow); }

.has-arrow .wp-block-button__link::after,
.arr { content: "→"; display: inline-block; transition: transform .35s var(--ease); }
.has-arrow .wp-block-button__link:hover::after,
a:hover .arr, .btn:hover .arr { transform: translateX(5px); }

.wp-block-button.btn-sm .wp-block-button__link { min-height: 44px; padding: 0 18px; font-size: 14px; }
.wp-block-button.wp-block-button__width-100 .wp-block-button__link { width: 100%; justify-content: space-between; }

.text-link {
  font: 800 15px/1 var(--body);
  color: currentColor;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 6px;
}

/* =========================================================================
   Header (parts/header.html → patterns/header.php)
   ========================================================================= */
#progress {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--yellow);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 80;
  pointer-events: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  transition: box-shadow .3s;
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(7, 36, 70, .35); }


.site-bar { background: var(--white); position: relative; z-index: 2; }
.site-bar-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* The logo file is white (for the footer); tinted navy here. */
.site-logo { display: flex; }
.site-logo img {
  height: 30px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(10%) sepia(30%) saturate(1800%) hue-rotate(170deg);
}

.site-nav { display: flex; gap: 30px; align-items: center; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 8px 0;
  font: 700 15px/1 var(--body);
  color: var(--navy);
  text-decoration: none;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"]::after { background: var(--yellow); }

.site-ctas { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; }

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}
.burger span { width: 18px; height: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--navy);
  color: var(--white);
  padding: calc(110px + env(safe-area-inset-top, 0px)) var(--gut-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gut);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .55s cubic-bezier(.7, 0, .3, 1), visibility 0s .55s;
}
.site-drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .55s cubic-bezier(.7, 0, .3, 1); }
.site-drawer-nav { list-style: none; margin: 0; padding: 0; }
.site-drawer-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-stretch: 66%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1;
  transform: translateY(24px);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s, color .2s;
}
.site-drawer-nav a::after { content: "→"; }
.site-drawer.is-open .site-drawer-nav a { transform: none; opacity: 1; }
.site-drawer-nav a:hover,
.site-drawer-nav a[aria-current="page"] { color: var(--yellow); }
.site-drawer-foot { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.site-drawer-foot .mono { color: var(--on-navy-muted); }

/* =========================================================================
   Photo frame (home hero + page heroes)
   An image block sits behind the content as the background.
   ========================================================================= */
.frame {
  margin: 12px var(--gut-r) 0 var(--gut);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--navy);
  color: var(--white);
  isolation: isolate;
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.frame-media { position: absolute; inset: 0; z-index: -2; }
.frame-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2.4s var(--ease);
}
.js .frame-media img { transform: scale(1.08); }
.js .frame.is-ready .frame-media img { transform: scale(1); }
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 36, 70, .15) 0%, rgba(7, 36, 70, .25) 40%, rgba(7, 36, 70, .92) 100%),
    linear-gradient(90deg, rgba(7, 36, 70, .55), rgba(7, 36, 70, 0) 60%);
}
.frame .lede { color: rgba(255, 255, 255, .9); }

.page-hero { min-height: clamp(440px, 62vh, 640px); gap: 22px; }

/* Headline lines rise in one after another (motion.js wraps each line). */
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span { display: block; }
.js .is-animating .line > span { transform: translateY(105%); }
.js .is-animating.is-ready .line > span { transform: none; transition: transform 1.1s var(--ease); }
.js .is-animating.is-ready .line:nth-child(2) > span { transition-delay: .12s; }
.js .is-animating.is-ready .line:nth-child(3) > span { transition-delay: .24s; }

/* =========================================================================
   Home — hero
   ========================================================================= */
.hero { min-height: min(860px, calc(100svh - 140px)); }
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================================
   Home — ticker
   ========================================================================= */
.ticker {
  background: var(--yellow);
  color: var(--navy);
  overflow: hidden;
  margin-top: 12px;
  border-block: 2px solid var(--navy);
}
.ticker-list {
  display: flex;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ticker-list.is-running { animation: tick 38s linear infinite; }
.ticker:hover .ticker-list { animation-play-state: paused; }
.ticker-list li {
  font-family: var(--display);
  font-stretch: 66%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(22px, 2.4vw, 34px);
  padding: 14px 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.ticker-list li::after {
  content: "";
  width: 14px;
  height: 14px;
  margin: 0 28px;
  background: var(--navy);
  transform: rotate(45deg);
}
@keyframes tick { to { transform: translateX(-50%); } }

/* =========================================================================
   Home — manifesto
   ========================================================================= */
.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.manifesto-copy { display: flex; flex-direction: column; gap: 32px; }
.manifesto-text {
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 800;
  font-size: clamp(30px, 3.7vw, 56px);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.manifesto-text strong { font-weight: inherit; }
/* Without JS (and in the editor) bold reads as highlighted. */
.manifesto-text strong,
.manifesto-text .w.on.hl {
  background: linear-gradient(var(--yellow), var(--yellow)) 0 88% / 100% 32% no-repeat;
}
.js .manifesto-text.is-split strong { background: none; }
.manifesto-text .w { transition: color .25s; }
.js .manifesto-text.is-split .w { color: #B9C8D3; }
.js .manifesto-text.is-split .w.on { color: var(--navy); }

.manifesto-media { position: sticky; top: 160px; border-radius: 22px; overflow: hidden; background: var(--paper); }
.manifesto-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* =========================================================================
   Home — stats
   ========================================================================= */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--white); }
.stat {
  padding: 28px 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid rgba(255, 255, 255, .2);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(72px, 9vw, 150px);
  line-height: .85;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.stat p:not(.stat-num) { color: var(--on-navy-muted); max-width: 30ch; }

/* =========================================================================
   Home — action cards
   ========================================================================= */
.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.act-card {
  position: relative;
  background: var(--navy);
  color: var(--white);
  border-radius: 24px;
  overflow: hidden;
  min-height: 540px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  isolation: isolate;
  transition: color .3s;
}
.act-card-media { position: absolute; inset: 0; z-index: -3; }
.act-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.act-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(7, 36, 70, 0) 25%, rgba(7, 36, 70, .95) 85%);
}
.act-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--yellow);
  transform: translateY(100%);
  transition: transform .6s var(--ease);
}
.act-card:hover .act-card-media img,
.act-card:focus-within .act-card-media img { transform: scale(1.06); }
.act-card:hover::after,
.act-card:focus-within::after { transform: translateY(0); }
.act-card:hover,
.act-card:focus-within { color: var(--navy); }
.act-card-verb {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(80px, 8vw, 124px);
  line-height: .8;
}
.act-card-title { font: 800 21px/1.25 var(--body); }
.act-card-text { opacity: .85; max-width: 34ch; }
.act-card-go { margin-top: 8px; }
.act-card-go a { color: inherit; font-weight: 800; text-decoration: none; }
/* Stretch the link over the whole card. */
.act-card-go a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.act-card-go a:focus-visible { outline: none; }
.act-card:has(a:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* =========================================================================
   Hot topics block (rows / grid / links)
   ========================================================================= */
.topic-rows { border-top: 2px solid var(--navy); }
.topic-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 56px;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
}
.topic-row-title {
  font-family: var(--display);
  font-stretch: 68%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(34px, 4.4vw, 68px);
  line-height: .9;
  transition: transform .5s var(--ease), color .3s;
}
.topic-row-summary { color: var(--muted); max-width: 46ch; }
.topic-row-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.topic-row:hover .topic-row-title,
.topic-row:focus-visible .topic-row-title { transform: translateX(16px); color: var(--blue); }
.topic-row:hover .topic-row-arrow,
.topic-row:focus-visible .topic-row-arrow { background: var(--yellow); border-color: var(--yellow); transform: rotate(-45deg); }

/* Cursor-following image preview over topic rows (motion.js). */
.peek {
  position: fixed;
  left: 0;
  top: 0;
  width: 300px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transition: opacity .25s;
  box-shadow: 0 30px 60px -20px rgba(7, 36, 70, .5);
}
.peek.is-on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }

.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.topic-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.topic-card:hover,
.topic-card:focus-within { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(7, 36, 70, .45); border-color: var(--navy); }
.topic-card-image { aspect-ratio: 4 / 3; overflow: hidden; }
.topic-card-image img { transition: transform .9s var(--ease); }
.topic-card:hover .topic-card-image img { transform: scale(1.06); }
.topic-card-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.topic-card-title {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 26px;
  line-height: .95;
}
.topic-card-title a { color: var(--navy); text-decoration: none; }
.topic-card-title a::after { content: ""; position: absolute; inset: 0; }
.topic-card-summary { color: var(--muted); font-size: 15px; flex: 1; }
.topic-card-go { font-weight: 800; font-size: 14px; display: flex; gap: 8px; }

.topic-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

/* =========================================================================
   Cards shared by news + topics
   ========================================================================= */
.card-image { width: 100%; height: 100%; object-fit: cover; }
.card-image--empty { display: block; background: var(--navy-2); }

.meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font: 500 12px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip,
.chip-terms a {
  background: var(--navy);
  color: var(--white);
  padding: 6px 9px;
  border-radius: 6px;
  text-decoration: none;
}
.band--navy .chip { background: var(--yellow); color: var(--navy); }
.chip-terms .wp-block-post-terms__separator { display: none; }
.chip-terms { display: flex; gap: 6px; }

/* =========================================================================
   Latest news block
   ========================================================================= */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.news-card { position: relative; display: flex; flex-direction: column; gap: 16px; }
.news-card-image { display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 2; }
.news-card-image img { transition: transform .8s var(--ease); }
.news-card:hover .news-card-image img { transform: scale(1.05); }
.news-card-title { font: 800 22px/1.2 var(--body); text-wrap: balance; }
.news-card-title a { color: var(--navy); text-decoration: none; }
.news-card-title a::after { content: ""; position: absolute; inset: 0; }
.news-card:hover .news-card-title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Placeholder before the first post in a section is published. */
.empty-state {
  border: 2px dashed var(--line);
  border-radius: 22px;
  padding: clamp(32px, 5vw, 64px);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.empty-state-title { font-family: var(--display); font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: 28px; }
.empty-state-text { color: var(--muted); max-width: 52ch; }

/* =========================================================================
   Home — global split
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.split-copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.split-copy .lede { color: var(--on-navy-muted); }
.split-media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; }
.split-media .wp-block-image { position: absolute; inset: 0; }
.split-media img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.split-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--yellow);
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 12px;
}

/* =========================================================================
   Join band
   ========================================================================= */
.join {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.join-title { font-size: clamp(60px, 10vw, 160px); }
.join-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 58px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: var(--white);
  padding: 0 24px;
  font: 400 17px var(--body);
  color: var(--navy);
}
.join-links { display: flex; gap: 24px; }
.join-links a {
  font: 800 15px/1 var(--body);
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 6px;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-top: clamp(64px, 8vw, 110px);
  overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { color: var(--on-navy-muted); max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-col .mono { color: var(--yellow); margin-bottom: 6px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--white); font-size: 15px; text-decoration: none; }
.footer-col a:hover { color: var(--yellow); }
/* Scrolling slogans. At rest (no JS, reduced motion, editor) the lines wrap
   and centre so every word is visible; motion.js adds .is-running to turn
   them into one endless row. */
.footer-marquee {
  list-style: none;
  margin: clamp(48px, 7vw, 96px) 0 0;
  padding: 0 var(--gut-r) 0 var(--gut);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: .35em;
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(44px, 8vw, 130px);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .35);
  user-select: none;
}
.footer-marquee li { display: block; flex: none; }
.footer-marquee em { font-style: normal; color: var(--yellow); -webkit-text-stroke: 0; }
.footer-marquee.is-running {
  flex-wrap: nowrap;
  width: max-content;
  padding: 0;
  column-gap: 0;
  font-size: clamp(60px, 15.5vw, 250px);
  line-height: .8;
  white-space: nowrap;
  animation: tick 70s linear infinite;
}
/* Yellow diamond between slogans while scrolling. */
.footer-marquee.is-running li::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: .14em;
  height: .14em;
  margin: 0 .3em;
  background: var(--yellow);
  transform: rotate(45deg);
}
.footer-marquee:hover { animation-play-state: paused; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 24px;
  font-size: 13px;
  color: var(--on-navy-muted);
}
.footer-base a { color: var(--on-navy-muted); }
.footer-base a:hover { color: var(--yellow); }

/* =========================================================================
   Pages, single posts, archives
   ========================================================================= */
.plain-head {
  padding-block: clamp(56px, 8vw, 110px) clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.plain-head .lede { color: var(--muted); }

.single { padding-bottom: clamp(72px, 10vw, 140px); }
.single-cover { border-radius: 24px; overflow: hidden; margin-bottom: clamp(32px, 4vw, 56px); }
.single-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose { max-width: 760px; font-size: 18px; line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--display); font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: clamp(28px, 3vw, 40px); line-height: 1; margin-top: 1.6em; }
.prose h3 { font-weight: 800; font-size: 22px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 2px solid var(--navy); }
.tile {
  position: relative;
  padding: 30px 26px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--line);
  isolation: isolate;
  transition: color .3s;
}
.tile:last-child { border-right: 0; }
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.tile:hover, .tile:focus-within { color: var(--white); }
.tile:hover::before, .tile:focus-within::before { transform: scaleY(1); }
.tile .mono { color: var(--blue); }
.tile:hover .mono { color: var(--yellow); }
.tile-title { font-family: var(--display); font-stretch: 70%; font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 3.4vw, 52px); line-height: .9; }
.tile-title a { color: inherit; text-decoration: none; }
.tile-title a::after { content: ""; position: absolute; inset: 0; }
.tile p:last-child { opacity: .8; }

.contact { display: flex; flex-direction: column; gap: 32px; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 720px; }
.contact-info > div { border-top: 2px solid var(--navy); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.contact-info .mono { color: var(--blue); }

.narrow { max-width: 960px; display: flex; flex-direction: column; gap: 28px; }
.narrow .lede { color: var(--muted); }
.petition-text {
  background: var(--paper);
  border-left: 4px solid var(--yellow);
  padding: 24px 26px;
  border-radius: 0 16px 16px 0;
  font-family: var(--display);
  font-stretch: 90%;
  font-size: 19px;
  line-height: 1.5;
}

.archive { padding-bottom: clamp(72px, 10vw, 140px); }
.archive-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.archive-row { padding: 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.archive-row-title { font: 800 clamp(19px, 1.8vw, 24px)/1.25 var(--body); }
.archive-row-title a { color: var(--navy); text-decoration: none; }
.archive-row-title a:hover { color: var(--blue); }
.archive-pager { margin-top: 32px; gap: 12px; font-weight: 700; }

.not-found { min-height: 50vh; justify-content: center; }

/* =========================================================================
   Scroll reveal — transform only, so content is readable at rest
   ========================================================================= */
.js .rv { transform: translateY(46px); transition: transform 1s var(--ease) var(--d, 0s); }
.js .rv.is-in { transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1180px) {
  .site-nav, .site-ctas .hide-m { display: none; }
  .burger { display: flex; }
  .site-ctas { margin-left: auto; }
  .manifesto, .split, .join { grid-template-columns: minmax(0, 1fr); }
  .manifesto-media { position: static; }
  .topic-grid, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(2) { border-right: 0; }
  .tile:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .split-media { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-bar-inner { height: 68px; }

  /* Photo sits on the top of the frame, copy on solid navy beneath it. */
  .hero .frame-media { inset: 0 0 auto 0; height: 60%; }
  .hero .frame-media img { object-position: 50% 30%; }
  .hero::before { background: linear-gradient(180deg, rgba(7, 36, 70, 0) 0%, rgba(7, 36, 70, 0) 30%, rgba(7, 36, 70, .75) 50%, var(--navy) 60%); }
  .hero { padding-top: min(46vh, 380px); }
  .hero-copy { gap: 20px; }

  .acts, .news-grid, .stats, .topic-grid, .tiles, .contact-info { grid-template-columns: minmax(0, 1fr); }
  .act-card { min-height: 420px; }
  .stat { padding: 24px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
  .stat:last-child { border-bottom: 0; }
  .topic-row { grid-template-columns: minmax(0, 1fr) 48px; gap: 14px; padding: 22px 0; }
  .topic-row-summary { grid-column: 1; grid-row: 2; }
  .topic-row-arrow { grid-row: 1 / 3; grid-column: 2; width: 48px; height: 48px; }
  .tile { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .is-animating .line > span, .js .rv { transform: none !important; }
  .frame-media img { transform: none !important; }
}
