/* friends in friendly places — site design system
   Palette: Deep Grotto #17241D · Cave Moss #344936 · Warm Limestone #E8E0CF
   Field Paper #F5F0E6 · Editorial Black #171815 · Flash White #FCFBF7
   Zack Back article palette (sampled from supplied artwork):
   Field Yellow #F8EA76 · Panel Yellow #FFEF78 · Coin Green #36731E */

:root {
  --grotto: #17241D;
  --moss: #344936;
  --limestone: #E8E0CF;
  --paper: #F5F0E6;
  --ink: #171815;
  --flash: #FCFBF7;
  --zb-yellow: #F8EA76;
  --zb-yellow-bright: #FFEF78;
  --zb-green: #36731E;
  --zb-green-deep: #23480F;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --grotesk: 'Manrope', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --measure: 43rem;
  --wide: 58rem;
  --shell: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--zb-green);
  outline-offset: 3px;
  border-radius: 1px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 60;
  background: var(--ink); color: var(--flash);
  font-family: var(--mono); font-size: .8rem;
  padding: .6rem 1rem; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .65rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(252, 251, 247, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 24, 21, .14);
}
.masthead--yellow {
  background: rgba(248, 234, 118, .92);
  border-bottom-color: rgba(23, 24, 21, .18);
}
.masthead__brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none;
}
.masthead__brand img { width: 30px; height: 30px; }
.masthead__wordmark {
  font-family: var(--grotesk); font-weight: 800;
  font-size: .98rem; letter-spacing: -.01em; white-space: nowrap;
}
.masthead__nav { display: flex; gap: clamp(.9rem, 2.5vw, 1.8rem); }
.masthead__nav a {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; padding: .35rem 0;
}
.masthead__nav a:hover, .masthead__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 600px) {
  .masthead { padding-left: 1rem; padding-right: 1rem; }
  .masthead__wordmark { font-size: .84rem; }
  .masthead__nav { gap: .9rem; }
}
.progress {
  position: fixed; top: 0; left: 0; z-index: 55;
  height: 3px; width: 0; background: var(--zb-green);
}
.masthead--yellow ~ .progress, body.report .progress { background: var(--ink); }

/* ---------- footer ---------- */
.footer {
  margin-top: 0;
  background: var(--grotto); color: var(--limestone);
  padding: 3.5rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
}
.footer__inner {
  max-width: var(--shell); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start;
}
.footer__brand { display: flex; align-items: center; gap: .8rem; }
.footer__brand img { width: 44px; height: 44px; }
.footer__wordmark { font-family: var(--grotesk); font-weight: 800; font-size: 1.1rem; color: var(--flash); }
.footer__tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .3rem; color: var(--limestone); }
.footer__nav { display: flex; gap: 1.6rem; }
.footer__nav a { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer__fine {
  max-width: var(--shell); margin: 2.6rem auto 0;
  padding-top: 1.4rem; border-top: 1px solid rgba(232, 224, 207, .25);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .06em;
  color: rgba(232, 224, 207, .75);
}

/* ---------- homepage ---------- */
.home-hero {
  background: var(--zb-yellow);
  padding: clamp(2.5rem, 6vh, 4.5rem) 1.25rem 0;
  text-align: center;
}
.home-hero__inner { max-width: var(--shell); margin: 0 auto; }
.kicker {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; margin: 0 0 1.4rem;
}
.kicker a { text-decoration: none; }
.home-hero h1 {
  font-family: var(--grotesk); font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  line-height: 1.02; letter-spacing: -.022em; text-transform: uppercase;
  margin: 0 auto .1em; max-width: 18ch;
}
.home-hero__deck {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5;
  max-width: 38rem; margin: 1.1rem auto 0;
}
.home-hero__byline { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; margin: 1.5rem 0 0; }
.home-hero__cta {
  display: inline-block; margin: 1.8rem 0 2.6rem;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: transparent;
  border: 1.5px solid var(--ink); padding: .85rem 1.7rem; text-decoration: none;
}
.home-hero__cta:hover { background: var(--ink); color: var(--zb-yellow); }
.home-hero__art { max-width: 66rem; margin: 0 auto; }
.home-hero__art img { width: 100%; }
.home-upcoming {
  background: var(--paper);
  padding: 3.2rem 1.25rem 4rem; text-align: center;
}
.home-upcoming p { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--moss); margin: 0; }

/* ---------- simple pages (about / archive) ---------- */
.page {
  max-width: var(--measure); margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) 1.25rem 5rem;
}
.page h1 {
  font-family: var(--grotesk); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; margin: 0 0 1.6rem;
}
.page .lede { font-size: 1.35rem; line-height: 1.55; }
.archive-item {
  display: grid; grid-template-columns: 150px 1fr; gap: 1.5rem; align-items: center;
  border-top: 1px solid rgba(23,24,21,.18); padding: 1.8rem 0;
  text-decoration: none;
}
.archive-item:last-of-type { border-bottom: 1px solid rgba(23,24,21,.18); }
.archive-item__meta { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--moss); margin: 0 0 .5rem; }
.archive-item h2 {
  font-family: var(--grotesk); font-weight: 800; letter-spacing: -.015em;
  font-size: 1.45rem; line-height: 1.15; margin: 0 0 .45rem;
}
.archive-item p { font-size: 1rem; line-height: 1.5; margin: 0; color: rgba(23,24,21,.8); }
.archive-item:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 540px) {
  .archive-item { grid-template-columns: 1fr; }
  .archive-item img { width: 100%; }
}

/* ---------- report: hero ---------- */
body.report { background: var(--flash); }
.report-hero {
  background: var(--zb-yellow);
  padding: clamp(2.2rem, 5.5vh, 4rem) 1.25rem 0;
  text-align: center;
}
.report-hero__inner { max-width: var(--shell); margin: 0 auto; }
.report-hero h1 {
  font-family: var(--grotesk); font-weight: 800;
  font-size: clamp(2.35rem, 6.8vw, 5.4rem);
  line-height: 1.0; letter-spacing: -.022em; text-transform: uppercase;
  margin: 0 auto; max-width: 18ch;
}
.report-hero__deck {
  font-size: clamp(1.12rem, 1.9vw, 1.4rem); line-height: 1.5;
  max-width: 40rem; margin: 1.3rem auto 0;
}
.report-hero__byline {
  font-family: var(--grotesk); font-weight: 700; font-size: 1rem;
  margin: 1.6rem 0 0;
}
.report-hero__art { max-width: 70rem; margin: 2.2rem auto 0; }
.report-hero__art img { width: 100%; display: block; }
/* Mobile: break the hero art out of the hero's side padding so the collage
   runs edge to edge instead of floating inside yellow gutters. */
@media (max-width: 640px) {
  .report-hero__art { max-width: none; margin-left: -1.25rem; margin-right: -1.25rem; }
}

/* meta strip under hero */
.report-meta {
  background: var(--flash);
  border-bottom: 1px solid rgba(23,24,21,.14);
}
.report-meta__inner {
  max-width: var(--wide); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .85rem 1.25rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: rgba(23,24,21,.85);
}
.share-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 1.5px solid var(--ink); color: var(--ink);
  padding: .5rem 1rem; cursor: pointer;
}
.share-btn:hover { background: var(--ink); color: var(--flash); }

/* audio player (hidden until a recording exists) */
.report-audio { max-width: var(--measure); margin: 2.2rem auto 0; padding: 0 1.25rem; }
.report-audio[hidden] { display: none; }
.report-audio__box {
  border: 1.5px solid rgba(23,24,21,.25); padding: .9rem 1.1rem;
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em;
}
.report-audio audio { width: 100%; }

/* ---------- report: article body ---------- */
.article { background: var(--flash); padding-bottom: 0; }
.article__inner { padding: 1rem 1.25rem 4.5rem; }
.article p {
  max-width: var(--measure);
  margin: 0 auto 1.55em;
}
.article p.lede-graf::first-letter {
  font-family: var(--grotesk); font-weight: 800;
  font-size: 3.4em; line-height: .82; float: left;
  padding: .07em .12em 0 0;
}
.chapter { margin: 4.5rem auto 2.6rem; max-width: var(--measure); text-align: left; scroll-margin-top: 5rem; }
.dossier { scroll-margin-top: 4rem; }
.chapter__kicker {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--zb-green);
  margin: 0 0 .8rem;
}
.chapter h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.08;
  letter-spacing: -.01em; margin: 0;
}
.chapter::before {
  content: ""; display: block; width: 3.2rem; height: 4px;
  background: var(--zb-yellow); margin-bottom: 2.2rem;
  outline: 1px solid rgba(23,24,21,.2);
}

/* pull quotes */
.pull {
  max-width: var(--wide); margin: 3.2rem auto;
  padding: 0 1rem; text-align: center; border: 0;
}
.pull p {
  font-family: var(--grotesk); font-weight: 800; letter-spacing: -.015em;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem); line-height: 1.22;
  max-width: 30ch; margin: 0 auto;
}
.pull cite {
  display: block; font-family: var(--mono); font-style: normal;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(23,24,21,.7); margin-top: 1.1rem;
}
.pull::before {
  content: ""; display: block; width: 4.5rem; height: 4px;
  background: var(--zb-yellow); margin: 0 auto 1.6rem;
  outline: 1px solid rgba(23,24,21,.2);
}

/* info boxes */
.infobox {
  max-width: var(--measure); margin: 2.8rem auto;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 1.5rem 1.6rem 1.2rem;
}
.infobox h3 {
  font-family: var(--mono); font-weight: 600; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase;
  margin: 0 0 1.1rem; padding-bottom: .8rem;
  border-bottom: 1px solid rgba(23,24,21,.25);
}
.infobox dl { margin: 0; }
.infobox dt {
  font-family: var(--grotesk); font-weight: 700; font-size: .92rem; letter-spacing: .01em;
}
.infobox dd { margin: .15rem 0 .85rem; font-size: 1rem; line-height: 1.5; }
.infobox dd:last-child { margin-bottom: 0; }

/* figures in the running text */
.article figure { margin: 3.4rem auto; }
.article figure img { margin-left: auto; margin-right: auto; }
.fig--body { max-width: var(--measure); }
.fig--wide { max-width: var(--wide); }
.fig--portrait { max-width: 30rem; }
.fig--tall { max-width: 24rem; }
.fig--full { max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.fig--full img { width: 100%; }
.fig--full figcaption { max-width: var(--wide); margin-left: auto; margin-right: auto; padding: 0 1.25rem; }
.article figcaption, .dossier figcaption {
  font-family: var(--serif); font-size: .95rem; line-height: 1.5;
  color: rgba(23,24,21,.75);
  padding-top: .7rem; margin-top: 0;
  border-top: 1px solid rgba(23,24,21,.16);
}
.fig-pair {
  max-width: var(--wide); margin: 3.4rem auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
}
.fig-pair figure { margin: 0; }
@media (max-width: 640px) { .fig-pair { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- photographic dossiers ---------- */
.dossier {
  background: var(--grotto); color: var(--limestone);
  margin: 5rem 0; padding: 4.2rem 1.25rem 4.6rem;
}
.dossier__inner { max-width: var(--shell); margin: 0 auto; }
.dossier__label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--zb-yellow);
  margin: 0 0 .9rem; text-align: center;
}
.dossier h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.1;
  color: var(--flash); text-align: center; margin: 0 0 .7rem;
}
.dossier__standfirst {
  font-size: 1.05rem; line-height: 1.55; text-align: center;
  max-width: 36rem; margin: 0 auto 3.4rem; color: rgba(232,224,207,.85);
}
.dossier figure { margin: 0; }
.dossier figcaption { color: rgba(232,224,207,.8); border-top-color: rgba(232,224,207,.28); }

/* art-directed dossier rows */
.drow {
  display: grid; gap: 2.2rem 2rem; align-items: start;
  margin: 0 0 3.2rem;
}
.drow:last-child { margin-bottom: 0; }
.drow--split { grid-template-columns: 1fr 1fr; }
.drow--dom { grid-template-columns: 1.85fr 1fr; }
.drow--dom-r { grid-template-columns: 1fr 1.85fr; }
.drow--full { grid-template-columns: 1fr; }
.drow--full > figure { width: min(100%, 66rem); margin: 0 auto; }
.drow--solo { grid-template-columns: 1fr; }
.drow--solo > figure { width: min(100%, 38rem); margin: 0 auto; }
.drow--solo > figure.fig--dtall { width: min(100%, 26rem); }
.drow figure img { width: 100%; }
@media (min-width: 701px) {
  .drow .fig--offset { margin-top: 3rem; }
}
@media (max-width: 700px) {
  .drow--split, .drow--dom, .drow--dom-r { grid-template-columns: 1fr; }
  .drow { margin-bottom: 2.4rem; gap: 2.4rem; }
}

/* evidence emphasis: keep infographics readable */
.fig--evidence { max-width: var(--measure); }
.fig--evidence img { border: 1px solid rgba(23,24,21,.2); }
.fig-pair figure img { width: 100%; }

/* ---------- sources / reporting note ---------- */
.sources {
  background: var(--paper);
  border-top: 1px solid rgba(23,24,21,.16);
  padding: 3.6rem 1.25rem 4.2rem;
}
.sources__inner { max-width: var(--measure); margin: 0 auto; }
.sources .chapter { margin-top: 0; }
.sources p { max-width: none; margin: 0 0 1.4em; font-size: 1.05rem; }
.sign-off {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase; text-align: center;
  margin: 3.4rem auto 0; max-width: var(--wide);
  color: var(--moss);
}

/* next / footer link on article */
.report-end {
  background: var(--flash);
  text-align: center; padding: 0 1.25rem 4.5rem;
}
.report-end a {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid var(--ink); padding: .85rem 1.6rem; display: inline-block;
}
.report-end a:hover { background: var(--ink); color: var(--flash); }

/* ---------- lightbox (tap any article photo to enlarge) ---------- */
.article figure img, .report-hero__art img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .9rem; padding: 3.4rem 1rem 1.4rem;
  background: rgba(23, 24, 21, .95);
}
.lightbox[hidden] { display: none; }
.lightbox__stage { display: flex; align-items: center; justify-content: center; min-height: 0; }
.lightbox__stage img {
  max-width: min(96vw, 90rem); max-height: 80vh;
  width: auto; height: auto; object-fit: contain;
  cursor: zoom-out;
}
.lightbox__caption {
  font-family: var(--serif); font-size: .95rem; line-height: 1.5;
  color: var(--limestone); text-align: center;
  max-width: 44rem; margin: 0; padding: 0 .5rem;
}
.lightbox__caption:empty { display: none; }
.lightbox__close {
  position: absolute; top: .9rem; right: .9rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 1.5px solid var(--flash); color: var(--flash);
  padding: .5rem 1rem; cursor: pointer;
}
.lightbox__close:hover { background: var(--flash); color: var(--ink); }
body.lightbox-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox { animation: lightbox-fade .16s ease; }
  @keyframes lightbox-fade { from { opacity: 0; } to { opacity: 1; } }
}
