/* ==========================================================================
   FREE MY BOYS — base
   Concrete, steel, and one hazard light. All motifs are CSS gradients; the
   page ships zero images by design.
   Ports to theme/assets/base.css in the Shopify phase as-is.
   ========================================================================== */

@font-face {
  font-family: 'Stencil';
  src: url('/fonts/big-shoulders-stencil-latin.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Condensed';
  src: url('/fonts/barlow-condensed-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Condensed';
  src: url('/fonts/barlow-condensed-600-latin.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}

:root {
  --void:        #08080a;
  --concrete-900:#101014;
  --concrete-800:#17171c;
  --concrete-700:#212128;
  --concrete-600:#2c2c35;
  --concrete-500:#3d3d48;
  --concrete-400:#585866;
  --concrete-300:#7c7c8b;
  --concrete-200:#a3a3b0;
  --bone:        #e9e7e2;

  /* The single accent. Used sparingly — it should feel like a warning light,
     not a brand colour. */
  --hazard:      #ffb000;
  /* Dimmed amber for small marks. Measured 4.67:1 on --concrete-900; the
     obvious-looking #7a5400 only managed 2.80:1. */
  --hazard-dim:  #a87400;

  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 62ch;

  /* Reveals normally start almost immediately. When the doors are closed they
     wait for the doors to clear, so the page assembles itself as they part. */
  --reveal-base: 100ms;

  --ease-out: cubic-bezier(.16, .84, .44, 1);
}

html.doors-closed { --reveal-base: 1040ms; }

* { box-sizing: border-box; }

html {
  background: var(--void);
  /* Belt and braces: the doors are position:fixed, so a scrollbar-driven
     reflow while they animate would be visible. */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background:
    /* faint vertical bar rhythm, barely there — the room, not the door */
    repeating-linear-gradient(
      90deg,
      transparent 0 calc(6.25vw - 1px),
      rgba(255,255,255,.018) calc(6.25vw - 1px) 6.25vw
    ),
    radial-gradient(120% 90% at 50% -10%, var(--concrete-900) 0%, var(--void) 62%);
  color: var(--bone);
  font-family: 'Condensed', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1rem, .95rem + .25vw, 1.15rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--hazard); color: var(--void); }

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

.sheet {
  width: min(100%, 78rem);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* --- staggered assembly ------------------------------------------------- */
/* NOTE: deliberately NOT applied to .hero__title. That element is the LCP
   candidate and must paint at once — an opacity ramp would delay it. */
.reveal {
  animation: rise 620ms var(--ease-out) both;
  animation-delay: calc(var(--reveal-base) + (var(--i, 0) * 90ms));
}
/* Set here rather than as style="--i:N" in the markup: style-src 'self' blocks
   inline style attributes, which drops the property and collapses the stagger. */
.reveal--1 { --i: 1; }
.reveal--2 { --i: 2; }
.reveal--3 { --i: 3; }
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: none; }
}

/* --- top bar ------------------------------------------------------------ */
.bar {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-block: 1.4rem 0;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--concrete-300);
}
.bar__mark {
  font-family: 'Stencil', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .06em;
  color: var(--bone);
}
.bar__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--concrete-600), transparent);
}
.bar__status { color: var(--hazard); }

/* --- hero --------------------------------------------------------------- */
.hero {
  padding-block: clamp(3rem, 9vw, 7rem) clamp(3rem, 8vw, 6rem);
}

.hero__eyebrow {
  margin: 0 0 1.4rem;
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--concrete-300);
}

.hero__title {
  margin: 0;
  font-family: 'Stencil', sans-serif;
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.015em;
  text-transform: uppercase;
  /* Fills the viewport width at any size without a media query. */
  font-size: clamp(4rem, 21vw, 17rem);
  display: grid;
}
.hero__free {
  /* the hazard light catches the top edge */
  background: linear-gradient(178deg, var(--hazard) -30%, var(--bone) 34%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__boys {
  /* concrete-500 measured 1.87:1 against the void — below even the 3:1 large
     text floor, on half the headline. concrete-300 is 4.87:1 and still reads
     as the receding half of the lockup. */
  color: var(--concrete-300);
  /* grid-breaking: the second line hangs off the first */
  padding-left: .06em;
}

/* Below the title the hero splits: the argument on the left, the ask on the
   right. Single column until there is genuinely room for two. */
.hero__body {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .hero__body { grid-template-columns: 1fr minmax(20rem, .82fr); }
}

.hero__lede {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(1.05rem, 1rem + .5vw, 1.4rem);
  color: var(--concrete-200);
}

/* --- pledge ------------------------------------------------------------- */
.hero__pledge {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 52ch;
  margin-top: 2.2rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(180deg, var(--concrete-800), var(--concrete-900));
  border-left: 3px solid var(--hazard);
}
.hero__pledge-amt {
  flex: none;
  font-family: 'Stencil', sans-serif;
  font-weight: 800;
  font-size: 2.9rem;
  line-height: .9;
  color: var(--hazard);
}
.hero__pledge-txt {
  margin: 0;
  font-size: .98rem;
  color: var(--concrete-200);
}
.hero__pledge-txt strong { color: var(--bone); font-weight: 600; }

/* --- intake form -------------------------------------------------------- */
/* Grid gap handles the spacing in both the one- and two-column arrangements. */
.intake { max-width: 40rem; }

.intake__label {
  display: block;
  margin-bottom: .7rem;
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--concrete-300);
}
.intake__row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.intake__input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: .9rem 1rem;
  background: var(--concrete-900);
  border: 1px solid var(--concrete-600);
  color: var(--bone);
  font: inherit;
  transition: border-color 160ms var(--ease-out);
}
.intake__input::placeholder { color: var(--concrete-300); }
.intake__input:hover { border-color: var(--concrete-500); }
.intake__input:focus { border-color: var(--hazard); outline: none; }

.intake__go {
  flex: none;
  padding: .9rem 1.7rem;
  background: var(--hazard);
  border: 1px solid var(--hazard);
  color: var(--void);
  font-family: 'Stencil', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 160ms var(--ease-out);
}
.intake__go:hover { background: #ffc233; }
.intake__go:active { transform: translateY(1px); }
.intake__go[disabled] {
  background: var(--concrete-700);
  border-color: var(--concrete-600);
  color: var(--concrete-400);
  cursor: not-allowed;
}

/* Honeypot. Off-screen rather than display:none — some bots skip hidden
   fields, fewer skip ones that are merely out of frame. */
.intake__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.intake__note {
  margin: .8rem 0 0;
  font-size: .86rem;
  color: var(--concrete-300);
  min-height: 1.3em;
}
.intake__note[data-state="err"] { color: #ff6b5e; }
.intake__note[data-state="ok"]  { color: var(--hazard); }

/* --- slab / cards ------------------------------------------------------- */
.slab {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--concrete-700);
}
.slab__h {
  margin: 0 0 2.2rem;
  font-family: 'Stencil', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--concrete-300);
}
.cards {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--concrete-700); /* becomes the hairline between cards */
  border: 1px solid var(--concrete-700);
}
.card {
  position: relative;
  padding: 2rem 1.6rem 2.2rem;
  background: var(--concrete-900);
  transition: background-color 200ms var(--ease-out);
}
.card:hover { background: var(--concrete-800); }
.card__no {
  font-family: 'Stencil', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  color: var(--hazard-dim);
  letter-spacing: .1em;
}
.card__h {
  margin: .5rem 0 .7rem;
  font-family: 'Stencil', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--bone);
}
.card__p {
  margin: 0;
  font-size: .95rem;
  color: var(--concrete-200);
}

/* --- notice ------------------------------------------------------------- */
.notice {
  padding: clamp(1.8rem, 4vw, 2.8rem);
  margin-block: clamp(2.5rem, 6vw, 4rem);
  /* hazard chevrons — the only place the accent goes loud */
  background:
    repeating-linear-gradient(
      45deg,
      var(--concrete-900) 0 14px,
      var(--concrete-800) 14px 28px
    );
  border-top: 2px solid var(--hazard);
  border-bottom: 2px solid var(--hazard);
}
.notice__h {
  margin: 0 0 .8rem;
  font-family: 'Stencil', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--hazard);
}
.notice__p {
  max-width: var(--measure);
  margin: 0;
  color: var(--concrete-200);
}

/* --- foot --------------------------------------------------------------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--concrete-700);
  font-size: .8rem;
  color: var(--concrete-300);
}
.foot__mark {
  font-family: 'Stencil', sans-serif;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--concrete-300);
}

/* --- motion ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  * , *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
