/* ==========================================================================
   REFUSE TO MOVE — campaign site
   Design: Gabriel Silveira (PSD comps via Pawel Wargan, 2026-07).
   Build: static HTML/CSS/JS.
   Palette + metrics measured from wb_dsgn_refusetomove_home.psd (2000px canvas)
   ========================================================================== */

/* ---- Fonts (self-hosted, OFL — licensing-safe substitutes) ----
   Display role (ABC Bingo Bold in comps): candidates below, pick via /specimens.html
   Body role (Neue Haas Grotesk 55 Rg / Display Roman in comps): Inter          */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-v20-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-v27-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Licensed display face — ABC Bingo by ABC Dinamo (permission 2026-07-16,
   credited in footer). Pawel shipped the Regular cut of both the default and
   Condensed widths; the woff2 are the deployable files. */
@font-face {
  font-family: "ABC Bingo";
  src: url("../fonts/abc-bingo-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ABC Bingo Condensed";
  src: url("../fonts/abc-bingo-condensed-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Black";
  src: url("../fonts/archivo-black-v23-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Climate Crisis";
  src: url("../fonts/climate-crisis-v15-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/baloo-2-v23-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  /* palette — #FCEA50 is the value written on Pawel's COLORS.png */
  --yellow: #fcea50;
  --ink: #121212;
  --paper: #ffffff;

  /* display font: LICENSED ABC Bingo by ABC Dinamo is now live (permission
     granted 2026-07-16, ABC Dinamo credited in the footer). Webfont files
     landed 2026-07-17. Caveat: the comps used ABC Bingo *Bold*, but Pawel
     supplied only the *Regular* cut of both the default and Condensed widths —
     so display type renders a touch lighter than the comp's poster weight.
     Default = "ABC Bingo" (default width; holds the comp's proportion). The
     alternate is "ABC Bingo Condensed" (narrower than the comp) — flip this one
     var to switch. Anton stays in the fallback stack as a graceful degrade.
     Compare both cuts against the PSD crops on /specimens.html. */
  --font-display: "ABC Bingo", "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* geometry (comp: border 4px @2000 canvas, radius ~16, container 1383) */
  --border-w: 3px;
  --radius: 14px;
  --radius-sm: 12px;
  --container: min(1100px, 92vw);
  --bar-pad: clamp(1.1rem, 2.4vw, 1.9rem);

  /* stacked-bar geometry: lip = visible strip of a closed bar (comp 90/2000) */
  --lip: clamp(3.4rem, 6.2vw, 4.35rem);
  --bar-h: calc(var(--lip) * 1.62);

  /* type scale (comp px @2000 canvas -> vw @1440 viewport) */
  --fs-hero: clamp(2.5rem, 6.45vw, 5.8rem);      /* 129px comp */
  --fs-h2: clamp(1.9rem, 4.15vw, 3.7rem);        /* 83px comp  */
  --fs-bar: clamp(1.3rem, 2.6vw, 2.3rem);        /* 52px comp  */
  --fs-box: clamp(0.98rem, 1.7vw, 1.5rem);       /* 47px comp, wraps 2 lines */
  --fs-h3: clamp(1.25rem, 2.3vw, 2rem);          /* 46px comp  */
  --fs-lede: clamp(1.15rem, 2vw, 1.75rem);       /* 40px comp  */
  --fs-body: clamp(1rem, 1.4vw, 1.25rem);        /* 29px comp  */
}

@media (max-width: 640px) {
  :root {
    --border-w: 2px;
    --radius: 11px;
    --radius-sm: 9px;
  }
}

/* ---- Reset-ish ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
}

/* display type */
.display {
  font-family: var(--font-display);
  font-weight: 400; /* ABC Bingo cuts ship as a single Regular weight (400) */
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
}

/* ---- A11y helpers ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 99;
  padding: 0.7em 1.2em;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-display);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   HERO  (comp: roundel 470px -> title -> 3 CTA boxes, all centered)
   ========================================================================== */

.hero {
  padding-top: clamp(2.4rem, 4.5vw, 4rem);
  text-align: center;
}

.hero__inner {
  width: var(--container);
  margin-inline: auto;
}

/* comp: roundel 468px on a 1370px stack -> 376px @1100 container (x0.803) */
.hero__roundel {
  width: clamp(190px, 31.4vw, 376px);
  margin-inline: auto;
}

.hero__roundel a {
  display: block;
  border-radius: 50%;
}

.hero__title {
  margin-top: clamp(1.8rem, 3.4vw, 3.2rem);
  font-size: var(--fs-hero);
}

/* comp line break is designed for wide screens; wrap naturally when narrow */
@media (max-width: 560px) {
  .hero__title br {
    display: none;
  }

  .hero__title {
    text-wrap: balance;
  }
}

/* CTA boxes (comp: 252x308 on the 1370 stack -> 202x247 @1100, gap 23 -> 18.5) */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 202px));
  justify-content: center;
  gap: clamp(0.65rem, 1.55vw, 1.16rem);
  margin-top: clamp(1.7rem, 3.3vw, 3rem);
  padding: 0;
  list-style: none;
}

.cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  aspect-ratio: 252 / 308;
  padding: clamp(0.9rem, 1.8vw, 1.5rem) 0.6rem clamp(0.75rem, 1.5vw, 1.15rem);
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: center;
}

.cta-box__icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

/* comp icon heights (x0.803): pledge 131->105, report 160->128, join 156->125 */
.cta-box__icon img {
  height: clamp(58px, 10.7vw, 128px);
  width: auto;
}

.cta-grid li:nth-child(1) .cta-box__icon img {
  height: clamp(58px, 8.8vw, 105px);
}

.cta-grid li:nth-child(3) .cta-box__icon img {
  height: clamp(58px, 10.45vw, 125px);
}

.cta-box__label {
  font-size: var(--fs-box);
  line-height: 1.02;
}

@media (hover: hover) {
  .cta-box {
    transition: transform 140ms ease, box-shadow 140ms ease;
  }

  /* comp hover: box lifts up-left, original outline reads as hard shadow */
  .cta-box:hover {
    transform: translate(-6px, -6px);
    box-shadow: 6px 6px 0 var(--ink);
  }
}

.cta-box:active {
  transform: translate(0, 0);
  box-shadow: none;
}

@media (max-width: 480px) {
  .cta-grid {
    grid-template-columns: minmax(0, 340px);
    gap: 0.7rem;
  }

  .cta-box {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
    aspect-ratio: auto;
    padding: 0.85rem 1.1rem;
    text-align: left;
  }

  .cta-box__icon {
    flex: 0 0 56px;
  }

  .cta-box__icon img {
    height: 52px;
  }
}

/* ==========================================================================
   MULTILINGUAL SLOGAN MARQUEE (campaign asset checklist; not in comps)
   Designer 7/16 (Gabriel): if kept, it sits at the very top of the page.
   ========================================================================== */

.marquee {
  background: var(--ink);
  color: var(--yellow);
  overflow: hidden;
  border-block: var(--border-w) solid var(--ink);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee__seq {
  display: flex;
  align-items: center;
  padding-block: 0.55em;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__seq > span {
  padding-inline: 0.9em;
}

.marquee__seq > span::after {
  content: "///";
  padding-left: 1.8em;
  opacity: 0.85;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee {
    overflow-x: auto;
  }

  .marquee__track {
    animation: none;
  }
}

/* ==========================================================================
   STACKED SECTION BARS (comp: 1383x307 bars, 90px pitch, overlap stack)
   <details class="bar"> — works without JS
   ========================================================================== */

.stack {
  width: var(--container);
  margin-inline: auto;
  padding-top: clamp(2.2rem, 4vw, 3.4rem);
  padding-bottom: clamp(2.6rem, 5vw, 4.5rem);
}

.bar {
  position: relative;
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
}

/* closed: show the lip; body of the card peeks behind the next bar */
details.bar:not([open]),
.bar--link {
  height: var(--bar-h);
  overflow: hidden;
}

.bar + .bar {
  margin-top: calc(var(--lip) - var(--bar-h)); /* negative -> overlap */
}

.bar[open] + .bar,
.bar--static + .bar {
  margin-top: clamp(1.1rem, 2vw, 1.55rem);
}

details.bar:not([open]):last-child,
.bar--link:last-child {
  height: var(--lip); /* stack terminates cleanly (comp crops last bar) */
}

/* last bar (Connect) shows its own bottom border inside the lip, which
   pushed its title + arrow 3px low vs the lane — the covered bars read
   +1.5px. Shedding one border width puts Connect at the exact same
   optical position as every other bar (designer 7/16: connect was the
   only one slightly decentered). */
.bar:last-child > summary {
  height: calc(var(--lip) - var(--border-w));
}

.bar > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--lip);
  padding-inline: var(--bar-pad);
  font-family: var(--font-display);
  font-size: var(--fs-bar);
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.bar > summary::-webkit-details-marker {
  display: none;
}

.bar__arrow {
  width: clamp(26px, 2.6vw, 36px);
  flex: none;
  transition: transform 180ms ease;
}

.bar[open] .bar__arrow {
  transform: rotate(180deg);
}

@media (hover: hover) {
  .bar {
    transition: transform 150ms ease, margin 220ms ease;
  }

  /* comp hover state: whole bar lifts 20px (@2000) */
  details.bar:not([open]):hover,
  details.bar:not([open]):focus-within,
  .bar--link:hover,
  .bar--link:focus-visible {
    transform: translateY(-9px);
  }
}

/* smooth expand where supported (progressive enhancement) */
.bar::details-content {
  opacity: 1;
  transition: content-visibility 260ms allow-discrete, opacity 260ms ease;
}

.bar:not([open])::details-content {
  opacity: 0;
}

/* ---- Bar content (comp: inset rules at 28px, content col ~69% width) ---- */
.bar__content {
  padding: 0 var(--bar-pad) clamp(1.6rem, 3.2vw, 2.6rem);
}

.bar__content::before {
  content: "";
  display: block;
  border-top: var(--border-w) solid var(--ink);
  margin-bottom: clamp(1.6rem, 3.2vw, 2.6rem);
}

.rule {
  border: 0;
  border-top: var(--border-w) solid var(--ink);
  margin-block: clamp(1.6rem, 3.2vw, 2.6rem);
}

/* highlight block (interior comp: big title + lede | DO NOT SHIP box)
   comp no-box: 283x431 on the 1370 stack -> 227 wide @1100 (x0.803) */
.highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(215px, 19vw, 227px);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: start;
}

.highlight__title {
  font-size: var(--fs-h2);
  max-width: 16ch;
}

.lede {
  margin-top: clamp(0.9rem, 1.8vw, 1.5rem);
  font-size: var(--fs-lede);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 30ch;
}

@media (max-width: 760px) {
  .highlight {
    grid-template-columns: 1fr;
  }
}

/* DO NOT SHIP / DO NOT SHOOT motif box */
.no-box {
  justify-self: end;
  width: 100%;
  max-width: 227px;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  text-align: center;
  background: var(--paper);
}

.no-box__label {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  text-transform: uppercase;
  line-height: 1;
}

/* comp: slash runs edge to edge of the box interior; bullet 67 -> 54 wide */
.no-box__art {
  position: relative;
  margin: 0.8rem auto;
  width: 100%;
}

.no-box__art img {
  width: clamp(38px, 4.4vw, 53px);
  margin-inline: auto;
  padding-block: 0.55rem;
}

.no-box__slash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

@media (max-width: 760px) {
  .no-box {
    justify-self: start;
  }
}

/* body copy blocks */
.bar__body {
  max-width: 46rem;
}

.bar__body h3,
.bar__body .h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  text-transform: uppercase;
  line-height: 1;
}

.bar__body p {
  margin-top: 0.9em;
  max-width: 62ch;
}

.bar__body h3 + p,
.bar__body .h3 + p {
  margin-top: 0.7em;
}

.bar__body * + h3,
.bar__body * + .h3 {
  margin-top: 2em;
}

/* partner logos strip (interior comp: end of ABOUT content) */
.partners {
  margin: 0;
}

.partners img {
  width: min(100%, 820px);
}

/* text buttons / links */
.btn {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.72em 1.5em;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  text-transform: uppercase;
  text-decoration: none;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1;
}

@media (hover: hover) {
  .btn {
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
  }

  .btn:hover {
    background: var(--yellow);
    color: var(--ink);
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 var(--ink);
  }
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.btn--ghost {
  background: var(--paper);
  color: var(--ink);
}

/* placeholder actions (report PDF not yet delivered): read as inert */
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (hover: hover) {
  .btn[aria-disabled="true"]:hover {
    background: var(--ink);
    color: var(--yellow);
    transform: none;
    box-shadow: none;
  }
}

.arrow-link {
  font-weight: 700;
  text-underline-offset: 3px;
}

/* ==========================================================================
   FORMS (Netlify) — white fields, ink borders, display-font submit
   ========================================================================== */

.form {
  margin-top: 1.6rem;
  max-width: 34rem;
}

.form__row {
  margin-bottom: 1.05rem;
}

.form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form label .opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.65;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.68em 0.85em;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--yellow);
  border: var(--border-w) solid var(--ink);
  border-radius: 10px;
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.form .btn {
  margin-top: 0.4rem;
}

.hidden {
  display: none !important;
}

.form__note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  opacity: 0.75;
  max-width: 40ch;
}

/* ==========================================================================
   FOOTER — designer ref 7/16 (Gabriel): keep the yellow, no black band,
   no repeated menu. Helmet mark left, wordmark + small print right.
   (icon-512 is the helmet on a #FCEA50 disc — blends into the yellow bg.)
   ========================================================================== */

.footer {
  padding-block: clamp(2.2rem, 4vw, 3rem);
}

.footer__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem clamp(1.1rem, 2.4vw, 2rem);
}

.footer__mark {
  flex: none;
}

.footer__mark img {
  width: clamp(104px, 13.2vw, 158px);
}

.footer__text {
  flex: 1 1 32ch; /* drops below the helmet when the row gets tight */
}

.footer__title {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: 0.02em;
}

.footer__meta {
  margin-top: 0.55rem;
  font-size: clamp(0.78rem, 1.15vw, 0.88rem);
  line-height: 1.55;
}

/* ==========================================================================
   INTERIOR PAGE (about.html — section pre-expanded, other bars are links)
   ========================================================================== */

.bar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--lip);
  padding-inline: var(--bar-pad);
  font-family: var(--font-display);
  font-size: var(--fs-bar);
  text-transform: uppercase;
  line-height: 1;
}

.bar--link {
  display: block;
  text-decoration: none;
}
