/* ==========================================================================
   don't bin gen z — home page
   Linked only by src/pages/home.js, after /css/site.css.

   Every selector in this file starts with .home- or .star-. Shared primitives
   (.wrap .prose .eyebrow .scrawl .dot .btn .star) live in site.css and are used
   as-is; nothing here redefines one. The prototype's inline styles and its
   fake `style-hover` attribute become real classes with real :hover here.

   Star placement is CSS, per the spec's choreography table. Every star's parent
   below carries `position: relative; overflow: hidden`, which is this file's job,
   not site.css's.
   ========================================================================== */


/* --------------------------------------------------------------------- hero
   ink ground, three stars, one h1. star-10 is the only one that survives below
   641px (it carries .star-sm-keep) so small screens get one star, not a crowd. */

.home-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.home-hero-in {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 11vw, 132px) var(--gut) clamp(34px, 5vw, 56px);
}

.home-hero-eyebrow {
  margin: 0 0 clamp(22px, 4vw, 40px);
  max-width: 34ch;
  font-family: var(--mono);
  font-size: clamp(12px, 2.6vw, 14px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.home-hero-h {
  margin: 0;
  max-width: 17ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 9.6vw, 126px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}


/* ------------------------------------------------------------- retrospective
   paper ground. The rail is a sibling column of the article, both inside .wrap. */

.home-retro { background: var(--paper); }

.home-retro-in {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding: clamp(48px, 8vw, 104px) var(--gut) clamp(56px, 9vw, 120px);
}

.home-col { flex: 1 1 auto; min-width: 0; }


/* ------------------------------------------------------------ "on this page"
   Hidden below 1120px — the article needs the full column there. Above it the
   rail sticks 108px down, clear of the 104px sticky header. Each item is a real
   anchor, so it works with JavaScript off; .is-on is added server-side to the
   first item and maintained by public/js/home.js. */

.home-rail { display: none; }

.home-rail-cap {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;          /* touch target, up from the prototype's 35px */
  padding: 9px 0 9px 12px;
  border-left: 2px solid var(--rule);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.home-rail-item:hover { color: var(--ink); border-left-color: var(--rust); }
.home-rail-item.is-on { color: var(--ink); border-left-color: var(--rust); }

.home-rail-n { color: var(--rust); }

/* the label wraps inside the 176px rail rather than pushing out of it */
.home-rail-l { min-width: 0; overflow-wrap: anywhere; }

@media (min-width: 1120px) {
  .home-rail {
    display: block;
    flex: 0 0 176px;
    position: sticky;
    top: 108px;
  }
}


/* -------------------------------------------------------------- article body
   .home-prose wraps the shared .prose block and owns only the space beneath it;
   the paragraph rhythm itself is site.css's. Sibling margins collapse, so a
   block that sets its own top margin (the quote, the ladder) wins. */

.home-prose { margin: 0 0 clamp(28px, 4vw, 44px); }
.home-prose > p:last-child { margin-bottom: 0; }
.home-prose--gap { margin-bottom: clamp(32px, 5vw, 52px); }

.home-kicker {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
}

.home-h2 {
  margin: 0 0 clamp(28px, 4vw, 44px);
  max-width: 24ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5.4vw, 66px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.home-h3 {
  margin: clamp(52px, 7vw, 88px) 0 26px;
  max-width: 22ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 4.4vw, 54px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* the Anton one-liners between blocks */
.home-line {
  margin: 26px 0 clamp(48px, 7vw, 80px);
  font-family: var(--display);
  font-weight: 400;
  font-size: max(18px, min(3.2vw, 30px));
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.home-line--rust {
  margin: 0 0 22px;
  max-width: 68ch;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  color: var(--rust);
}


/* ------------------------------------------------------------ the timeline
   26 / 22 / 19 JULY. The prototype says August and is wrong — see the header
   comment in src/pages/home.js and the spec's "Known defect in the source". */

.home-dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.home-date {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px 22px 24px;
  background: var(--paper);
  border-top: 3px solid var(--rust);
}

.home-date-n {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.04em;
}

.home-date-t { font-size: 15.5px; line-height: 1.5; color: var(--body-ink-2); }


/* ----------------------------------------------------- new brand / one week */

.home-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 48px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.home-brand-h {
  flex: 1 1 320px;
  min-width: 0;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.home-brand-v { color: var(--rust); }

.home-gif {
  flex: none;
  width: min(360px, 100%);
  height: auto;
  aspect-ratio: 600 / 336;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: 4px;
}


/* ------------------------------------------------------------- pull quotes
   The rust manifesto quote and the slate donation quote. Both are positioned
   parents for their star. */

.home-quote {
  position: relative;
  overflow: hidden;
  margin: clamp(32px, 5vw, 52px) 0;
  padding: clamp(28px, 5vw, 56px) clamp(22px, 4vw, 48px);
  background: var(--rust);
  color: var(--chalk);   /* never --paper on rust */
  border-radius: 4px;
}

.home-quote-p {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 22ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4.6vw, 60px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.home-donate {
  position: relative;
  overflow: hidden;
  margin: 0 0 clamp(36px, 5vw, 56px);
  padding: clamp(28px, 5vw, 52px) clamp(22px, 4vw, 44px);
  background: var(--slate);
  border-radius: 4px;
}

.home-donate-p {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 24ch;
  font-size: clamp(26px, 4.6vw, 54px);
  line-height: 1.04;
  color: var(--amber);
}


/* ------------------------------------------------------------------- goal */

.home-goal-cap {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-goal {
  margin: 0 0 clamp(44px, 6vw, 72px);
  max-width: 26ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}


/* ---------------------------------------------------------------- numbers */

.home-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  margin-bottom: 36px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.home-num { padding: 30px 24px 32px; background: var(--paper); }

.home-num-v {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.86;
  letter-spacing: -0.025em;
  color: var(--rust);
}

.home-num-l {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-num-note { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }


/* ------------------------------------------------------- scrawl + the minis
   .scrawl (site.css) supplies Pagkaki; this only sizes, colours and tilts it.
   One line, a real number, never UI. */

.home-scrawl {
  margin: 30px 0 26px;
  font-size: clamp(30px, 6vw, 62px);
  color: var(--rust);
  transform: rotate(-1.5deg);
}

.home-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 1px;
  margin-bottom: 32px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.home-mini > div { padding: 20px; background: var(--paper); }

.home-mini-v {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.home-mini-l { margin: 6px 0 0; font-size: 15px; color: var(--muted); }


/* ----------------------------------------------------------------- ladder
   "What is this?" → "Yes, I will give up my day and travel to Clacton."
   Each rung steps right; the last one is rust. Indentation is nth-child rather
   than seven more class names. */

.home-ladder {
  margin: clamp(36px, 5vw, 56px) 0;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.home-ladder-cap {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-ladder-steps { display: flex; flex-direction: column; gap: 6px; }

.home-ladder-a {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.home-ladder-to {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--rust);
}

.home-ladder-steps > :nth-child(2),
.home-ladder-steps > :nth-child(3) { margin-left: clamp(14px, 3vw, 44px); }
.home-ladder-steps > :nth-child(4),
.home-ladder-steps > :nth-child(5) { margin-left: clamp(28px, 6vw, 88px); }
.home-ladder-steps > :nth-child(n + 6) { margin-left: clamp(42px, 9vw, 132px); }
.home-ladder-steps > :last-child { color: var(--rust); }

.home-ladder-end { margin: 24px 0 0; font-size: 19px; line-height: 1.68; color: var(--body-ink); }


/* ---------------------------------------------------------- what's next
   Ink panel, amber full stop (the prototype's own choice on this ground) and
   the rust-ruled block beneath it. */

.home-next {
  position: relative;
  overflow: hidden;
  margin: clamp(36px, 5vw, 60px) 0;
  padding: clamp(30px, 5vw, 60px) clamp(22px, 4vw, 48px);
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
}

.home-next-h {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 22ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5.4vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.home-next-dot { color: var(--amber); }

.home-pull {
  margin: 0 0 clamp(28px, 4vw, 44px);
  padding-left: 22px;
  max-width: 68ch;
  border-left: 3px solid var(--rust);
}
.home-pull p {
  margin: 0 0 20px;
  font-size: 19px;
  line-height: 1.68;
  color: var(--body-ink);
  text-wrap: pretty;
}
.home-pull p:last-child { margin-bottom: 0; }


/* ---------------------------------------------------------------- sign up
   Both buttons open the mailing-list dialog (public/js/modals.js owns the
   delegate). Colours come from the shared .btn variants. */

.home-signup {
  margin: clamp(44px, 6vw, 72px) 0 0;
  padding: clamp(26px, 4vw, 48px);
  background: var(--slate);
  color: var(--paper);
  border-radius: 4px;
}

.home-signup-h {
  margin: 0 0 8px;
  max-width: 24ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.home-signup-sub {
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted-dark);
}

.home-signup-actions { display: flex; flex-wrap: wrap; gap: 12px; }


/* ------------------------------------------------------------- sign-off */

.home-sign {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: clamp(40px, 5vw, 64px) 0 0;
}

.home-sign-cap { margin: 0 0 4px; font-family: var(--mono); font-size: 14px; color: var(--muted); }

.home-sign-name {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.home-sign-url { margin: 0; font-family: var(--mono); font-size: 13.5px; color: var(--muted); }

.home-sign-x {
  margin: 0;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
  color: var(--rust);
}


/* --------------------------------------------------------- register to vote
   Amber band with a 2px ink rule on top. The eyebrow is the shared .eyebrow with
   no colour variant on purpose: there is no ink variant, and inheriting the
   band's own ink is exactly right. */

.home-vote {
  /* --ink at 25%, the prototype's hairline on amber. The one colour literal in
     this file, declared once here and used only through this custom property. */
  --home-vote-rule: rgba(11, 11, 11, 0.25);
  background: var(--amber);
  color: var(--ink);
  border-top: 2px solid var(--ink);
}

.home-vote-in {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 28px 56px;
  padding: clamp(40px, 6vw, 76px) var(--gut);
}

.home-vote-col { flex: 1 1 380px; min-width: 0; }

.home-vote-h {
  margin: 0 0 20px;
  max-width: 18ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5.4vw, 66px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.home-vote-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 54ch;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--home-vote-rule);
}
.home-vote-list li {
  padding: 10px 0;
  font-size: 17px;
  border-bottom: 1px solid var(--home-vote-rule);
}
.home-vote-list li:last-child { border-bottom: none; }

.home-vote-cta {
  flex: 1 1 250px;
  padding: 22px 28px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.home-vote-cta:hover { background: var(--rust); color: var(--chalk); }


/* ------------------------------------------------------------------ the art
   Slate band, three-up grid on 2px --slate-2 gutters. Each figure is a real
   anchor to the full-size WebP: with JavaScript it opens the lightbox, without
   it the browser opens the image. */

.home-art { background: var(--slate); color: var(--paper); }

.home-art-in { padding: clamp(48px, 7vw, 96px) var(--gut); }

.home-art-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: 28px;
}

.home-art-h {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 62px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.home-art-note {
  margin: 0;
  max-width: 40ch;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted-dark);
}

.home-art-link { color: var(--amber); text-decoration-color: currentColor; }
.home-art-link:hover { color: var(--amber); }

.home-art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--slate-2);
  border: 1px solid var(--slate-2);
}

.home-shot { position: relative; margin: 0; background: var(--ink); }

.home-shot-link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: zoom-in;
  text-decoration: none;
}

.home-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* -------------------------------------------------------------------- stars
   The spec's choreography table, to the pixel. Positions only — the star()
   component emits no geometry, and every parent above is already
   `position: relative; overflow: hidden`. Below 641px only .star-sm-keep
   survives (site.css), which here means star-10 in the hero. */

.star-hero-a { right: -7%; top: 4%; width: min(44vw, 470px); transform: rotate(-6deg); }
.star-hero-b { right: 26%; bottom: -14%; width: min(22vw, 200px); transform: rotate(11deg); }
.star-hero-c { left: -4%; bottom: -5%; width: min(30vw, 150px); transform: rotate(17deg); }

.star-quote { right: -40px; top: -30px; width: 190px; transform: rotate(-9deg); }
.star-donate { right: 18px; bottom: -34px; width: 150px; transform: rotate(8deg); }
.star-next { right: -44px; bottom: -54px; width: 200px; transform: rotate(-12deg); }
