/*
 * Breadwinner v3, the home page only, in the reference's shape (moneyincheck.org, measured
 * 2026-09-26, rebuilt 2026-10-09). The shared system is v3.css (tokens, components, motion
 * tiers); this file lays the home page out the way the reference lays its page out:
 *
 *  1. Hero: the manifesto in Display (Kitchen Ink, weight 300, one sentence per line) with
 *     the pack standing at its right, a kicker above, a by-line and the one Haldi button
 *     below, then the letterhead strip (name, line, live date, city).
 *  2. The big paragraph: full width, centred, 5.6vw weight 250, line-height 1.35, the ink
 *     clips on the line at 1.45em, handwritten measurements scattered round it.
 *  3. The bread: a horizontal strip of the shots, then the price slip beside the claim and
 *     the pincode form, then the pack you can turn beside the label slip.
 *  4. The founders: round portrait, centred bio at 2.5vw weight 250, small tilted prints
 *     at the edges with tiny captions, the quote as the sign-off, then who answers for it.
 *  5. (The manifesto now lives in the hero only; the later section was a repeat.)
 *  6. The footer line-up of the family clips, then the footer.
 *
 * Reference rhythm on a phone (padding top/bottom): hero 104/40, intro 48/96, book 48/96,
 * author 64/80, claim 72/72, strip 24/48, footer 64/64. Desktop sections are very tall.
 * Same house rules: OKLCH only, no pure black or white, reduced motion respected.
 */

html, body { overflow-x: clip; }

/* ---------------------------------------------------------------------------
   Shared: the strip title ("The Book  5 Languages. 3 Formats. One Story."), the
   handwritten marks (the reference's chess moves), inline clips, the floats.
   --------------------------------------------------------------------------- */
.strip-title {
  max-width: none;
  font-size: var(--t-title);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  text-wrap: pretty;
}
.strip-title > strong { font-weight: 600; margin-right: 0.45em; }

.mark {
  position: absolute;
  display: block;
  width: max-content;
  z-index: 1;
  font-family: var(--font-hand);
  font-size: var(--t-hand);
  font-weight: 400;
  line-height: 1.2;
  color: var(--accent-text);
  transform: rotate(var(--mark-tilt, -3deg));
  pointer-events: none;
}
.mark .note-words { clip-path: inset(-25% -10% -25% -10%); transition: clip-path 700ms var(--ease-expo); }
.mark.is-waiting .note-words { clip-path: inset(-25% 110% -25% -10%); transition: none; }
@media (max-width: 599.98px) {
  .mark:not([data-phone]) { display: none; }
  .mark[data-phone] { top: var(--pt) !important; left: var(--pl, auto) !important; right: var(--pr, auto) !important; font-size: var(--t-hand); }
}

.ink-clip--inline { width: 1.45em; height: 1.45em; vertical-align: -0.38em; margin: 0 0.06em; }
.ink-clip--inline-lg { width: 2.6em; height: 2.6em; vertical-align: -0.9em; margin: 0 0.1em; }

/* ---------------------------------------------------------------------------
   1. Hero
   --------------------------------------------------------------------------- */
.home-hero { padding-top: var(--s-xl); padding-bottom: calc(var(--section) / 2); }
.home-hero__wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  min-height: calc(100svh - var(--nav-h) - 7rem);
}
.home-hero__kicker {
  max-width: none;
  font-size: var(--t-lede);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
/* The manifesto, one sentence per line (The Sense Break Rule): Display type in Kitchen Ink.
   On a phone the size follows the width so the longest line still fits on one line. */
.hero-word {
  position: relative;
  margin: var(--s-md) 0 0;
  max-width: none;
  font-size: var(--t-display);
  font-weight: 300;
  font-variation-settings: "opsz" 72;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-text);
}
.hero-word__line { display: block; white-space: nowrap; }
.hero-cta { display: flex; align-items: center; gap: var(--s-lg); margin-top: 2.5rem; }
.hero-object {
  position: absolute;
  right: 4%;
  top: 0;
  z-index: 1;
  width: clamp(7rem, 15vw, 14rem);
  margin: 0;
  transform: rotate(-2deg);
  filter: var(--shadow-held);
  pointer-events: none;
}
.hero-object img { display: block; width: 100%; height: auto; }
.home-hero__by {
  margin-top: 2.5rem;
  max-width: 34ch;
  font-size: var(--t-body);
  font-weight: 400;
  line-height: var(--lh-body);
  text-wrap: pretty;
}

.letterhead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-lg);
  margin-top: var(--s-2xl);
  padding-top: var(--s-sm);
  border-top: var(--line-w) solid var(--rule);
}
.letterhead__cell { max-width: none; font-size: var(--t-fine); line-height: 1.5; }
.letterhead__cell--date { color: var(--accent-text); }
/* From 900px the pack stands in the right columns, centred on the headline and sub-line. */
@media (min-width: 900px) {
  .home-hero__wrap {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 2vw;
    align-content: center;
    align-items: start;
    justify-items: start;
  }
  .home-hero__kicker, .hero-word, .home-hero__by { grid-column: 1; }
  .hero-cta { display: contents; }
  .hero-cta > .btn { grid-column: 1; margin-top: 2.5rem; }
  .hero-object {
    position: relative;
    right: auto;
    top: auto;
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: center;
    justify-self: end;
    width: clamp(8rem, 20.1vw, 18.125rem);   /* 290 x 360 at 1440 */
  }
}
@media (max-width: 899.98px) {
  .letterhead { flex-wrap: wrap; justify-content: flex-start; row-gap: 0; column-gap: var(--s-md); }
  .letterhead__cell { white-space: normal; }
}
/* Tablet (600 to 899px): the pack stands beside the by-line and button, as on phones, instead of floating alone above the headline. */
@media (min-width: 600px) and (max-width: 899.98px) {
  .home-hero__wrap { display: grid; grid-template-columns: minmax(0, 1fr) 24vw; column-gap: var(--s-lg); align-content: center; }
  .home-hero__kicker, .hero-word { grid-column: 1 / -1; }
  .home-hero__by { grid-column: 1; grid-row: 3; align-self: start; margin-top: 1.75rem; }
  .hero-cta { display: contents; }
  .hero-object { position: relative; right: auto; top: auto; grid-column: 2; grid-row: 3; align-self: start; width: 22vw; margin-top: 1.75rem; }
  .hero-cta > .btn { grid-column: 1 / -1; grid-row: 4; justify-self: start; margin-top: var(--s-xl); }
}
@media (max-width: 599.98px) {
  .home-hero { padding-top: 6.5rem; }
  .home-hero__wrap { min-height: 0; }
  /* Only the live delivery line, one line, 32px under the button. */
  .letterhead { margin-top: var(--s-xl); }
  .letterhead__cell:not(.letterhead__cell--date) { display: none; }
  /* The pack stands beside the by-line, in flow, so it covers none of the manifesto; the
     button then runs full width under both and is inside the first screen at 390 x 844. */
  .home-hero__wrap { display: grid; grid-template-columns: minmax(0, 1fr) 34vw; column-gap: var(--s-md); align-content: center; }
  .home-hero__kicker, .hero-word { grid-column: 1 / -1; }
  .home-hero__by { grid-column: 1; grid-row: 3; align-self: start; margin-top: 1.75rem; }
  .hero-cta { display: contents; }
  .hero-object { position: relative; right: auto; top: auto; grid-column: 2; grid-row: 3; align-self: start; width: 33vw; margin-top: 1.75rem; }
  /* The cut-out has empty margins (11% left and right, 19% above, 22% below, as fractions of the
     pack's width); trim them so the pack itself fills the 33vw it is given. About 1.45 times the
     pack it was at 28vw with the margins in. */
  .hero-object img { width: 121.7%; max-width: none; margin: -19% 0 -22.4% -11%; }
  .hero-cta > .btn { grid-column: 1 / -1; grid-row: 4; justify-self: start; margin-top: var(--s-xl); }
}

/* ---------------------------------------------------------------------------
   2. The big paragraph
   --------------------------------------------------------------------------- */
/* The one band held a `breath` from its neighbours (each neighbour brings section / 2). */
.story-section { padding-block: calc(var(--breath) - var(--section) / 2); }
.story-wrap { position: relative; text-align: center; }
.story-wrap .story {
  max-width: none;
  margin-inline: auto;
  font-size: var(--t-statement);
  font-weight: 300;
  font-variation-settings: "opsz" 72;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.story-wrap .story + .story { margin-top: 1.2em; }
@media (max-width: 599.98px) { .story-wrap .story + .story { margin-top: 3.5rem; } }

/* ---------------------------------------------------------------------------
   3. The bread
   --------------------------------------------------------------------------- */
.bread-head { position: relative; }
.shots-wrap { position: relative; margin-top: var(--s-lg); --shot-h: clamp(13rem, 36vw, 34rem); }
.shots[role="list"] {
  display: flex;
  gap: var(--s-lg);
  margin: 0;
  padding: var(--s-sm) 0 var(--s-md);
  padding-inline-start: var(--gutter);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: -2px; }
.shots__item { flex: none; scroll-snap-align: start; max-width: 86vw; }
.shots__item .print { --tilt: 0deg; }
/* Prints paged in sideways never wait lifted and turned: the latch watches the vertical scroll only. */
.shots__item .print[data-once].is-waiting > .print__frame { transform: rotate(var(--tilt)); }
.shots__item .print__frame { height: calc(var(--shot-h) + 2 * var(--print-edge, 0.375rem)); width: auto; }
.shots__item .print__frame > picture > img { display: block; height: var(--shot-h); width: auto; max-width: none; }
.shots__item .print__caption { max-width: min(28ch, calc(100% - 0.75rem)); }
.shots__nav { display: flex; justify-content: flex-end; gap: var(--s-sm); padding-inline: var(--gutter); margin-top: var(--s-xs); }
.shots__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border: 1.5px solid var(--ink-text);
  border-radius: 50%;
  background: none;
  color: var(--ink-text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.shots__btn:hover { background-color: var(--raised); }
@media (max-width: 599.98px) { .shots-wrap { --shot-h: 15rem; } .shots__nav { display: none; } }

.bread-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5rem var(--gutter);
  margin-top: var(--section);
}
@media (max-width: 599.98px) { .bread-grid { margin-top: 4rem; } }
@media (min-width: 900px) {
  .bread-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}
.bread-grid__buy .order-slip { max-width: 30rem; }
.bread-claim__line { display: block; text-wrap: balance; }
.bread-claim {
  max-width: 26ch;
  text-wrap: balance;
  font-size: var(--t-headline);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.bread-body {
  text-wrap: pretty;
  margin-top: var(--s-lg);
  max-width: 34rem;
  font-size: var(--t-body);
  font-weight: 300;
  line-height: var(--lh-body);
}
.bread-body em { font-weight: 500; }
.bread-form__title { margin-top: var(--s-2xl); font-size: var(--t-title); font-weight: 400; line-height: 1.25; }
.bread__pin { margin-top: var(--s-sm); max-width: 30rem; }
.bread__pin > .field-row { margin-top: var(--s-xs); }
.bread__notify { margin-top: var(--s-xl); max-width: 30rem; }
.bread__notify .notify-row > button { width: auto; }

.bread-receipt {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-3xl) var(--gutter);
  margin-top: var(--section);
}
@media (min-width: 900px) {
  .bread-receipt { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}
.bread-receipt .pack3d { margin: var(--s-lg) auto 0; }
.bread-receipt .label-block { margin-top: var(--s-lg); }
/* The stage is a locked square with the pack centred in it, so the buttons were ~100px under the photo.
   Percent margins are of the stage's width: pull them up to 16px under the pack. */
.bread-receipt .pack3d__buttons { margin-top: -14.4%; }
.bread-receipt .pack3d.is-3d .pack3d__buttons { margin-top: -20%; }
.bread-receipt .pack3d__btn { min-width: var(--tap); text-align: left; }
.bread-receipt__pack .pack3d__caption { max-width: 92%; }

/* ---------------------------------------------------------------------------
   4. The founders
   --------------------------------------------------------------------------- */
.founders-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 900px) { .founders-wrap { padding-inline: clamp(8rem, 14vw, 15rem); } }
.founders-portrait { width: 7rem; margin: 0; }
.founders-portrait img, .people__grid--row .person__photo { border-radius: 50%; }
.founders-title { text-wrap: balance; margin-top: var(--s-md); font-size: var(--t-title); font-weight: 400; line-height: 1.25; }
.founders-when { margin-top: var(--s-2xs); font-size: var(--t-fine); }
.founders-bio {
  margin-top: var(--s-xl);
  max-width: 50ch;
  font-size: var(--t-lede);
  font-weight: 300;
  font-variation-settings: "opsz" 72;
  line-height: 1.45;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.founders-bio em { font-weight: 400; }
.founders-quote { margin-top: var(--s-2xl); max-width: 36ch; }
.founders-quote p { max-width: none; font-size: var(--t-body); font-style: italic; line-height: var(--lh-body); }
.founders-sign { margin-top: var(--s-md); }
.founders-sign__name { display: block; font-size: var(--t-fine); font-weight: 600; }
.founders-sign__role { display: block; margin-top: var(--s-2xs); font-size: var(--t-fine); color: var(--pencil-text); }

.tinies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-xl) var(--s-md); width: 100%; margin-top: var(--s-2xl); text-align: left; }
.tiny { margin: 0; }
.tiny .print__caption { max-width: min(22ch, calc(100% - 0.75rem)); font-size: var(--t-fine); line-height: 1.5; }
@media (min-width: 900px) {
  .tinies { display: contents; }
  .tiny { position: absolute; width: clamp(5.5rem, 9vw, 9.5rem); }
  /* Two prints a side: the column cannot hold three without them overlapping their neighbours' captions. */
  .tiny--1 { top: 2%; left: 1%; }
  .tiny--2 { top: 2%; right: 2%; }
  .tiny--3 { top: 46%; left: 0; width: clamp(7rem, 12vw, 12rem); }
  .tiny--4 { top: 46%; right: 1%; }
  .tiny--5, .tiny--6 { display: none; }
}

.who-wrap { margin-top: clamp(4rem, 3.26rem + 3.05vw, 6rem); text-align: center; }   /* 64px at 390, 96px at 1440 */
.who-wrap .strip-title { max-width: 60ch; margin-inline: auto; }
.people__grid--row { grid-template-columns: repeat(2, 150px); justify-content: center; gap: var(--s-xl) var(--s-lg); margin-top: var(--s-2xl); }
@media (min-width: 840px) { .people__grid--row { grid-template-columns: repeat(4, 160px); column-gap: var(--s-xl); } }
.people__grid--row > .person { justify-items: center; text-align: center; }
.people__grid--row .person__name { width: auto; font-size: var(--t-label); }
.who-licence { max-width: 36rem; margin: var(--s-2xl) auto 0; text-align: left; }
.who-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s-xl); margin-top: var(--s-lg); }
@media (max-width: 599.98px) { .founders-portrait { width: 6rem; } }

/* ---------------------------------------------------------------------------
   6. The line-up and the footer
   --------------------------------------------------------------------------- */
.site-foot__art { margin-bottom: var(--s-3xl); text-align: center; }
/* Six-figure procession (2026-10-11 doodle-theme rework): each <li> carries its own
   --fig-ratio (set inline, from its SVG's own viewBox) so aspect-ratio derives the
   item's width from the height set below -- no per-figure width math here. Below
   1024px there isn't room for six figures at a bold, readable height, so the row
   becomes its own horizontal-scroll strip (justify-content: flex-start + overflow-x)
   rather than shrinking the figures small again or wrapping to two rows; the page
   itself never gains horizontal scroll because the overflow is scoped to .lineup. */
.lineup {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 2.5rem;
  margin: 0;
  padding: 0 1rem;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.lineup__item { flex: none; aspect-ratio: var(--fig-ratio, 1); height: 10rem; }
@media (min-width: 1024px) {
  .lineup { justify-content: center; overflow: visible; padding: 0; }
  .lineup__item { height: 11.25rem; } /* 180px */
}
@media (min-width: 1366px) { .lineup__item { height: 12.5rem; } } /* 200px */
@media (min-width: 1920px) { .lineup__item { height: 14.375rem; } } /* 230px */
.share--foot { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-xs) var(--s-md); margin-top: var(--s-2xl); }
.foot-hello { margin-top: var(--s-sm); }
.foot-hello .link { font-family: var(--font-hand); font-size: var(--t-hand); line-height: 1.2; color: var(--accent-text); }
@media (max-width: 599.98px) { .site-foot__art { margin-bottom: var(--s-2xl); } }

/* ---------------------------------------------------------------------------
   7. Story clauses ink once and never un-ink (the JS once-latch in v3-motion.js plus
   `.clause` in v3.css, in every browser). The reading line is defined once, in v3.css.
   --------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
   Phone fixes (below 600px). (The hero pack now sits in flow beside the button; see section 1.)
   --------------------------------------------------------------------------- */

/* Founders snapshots on phones: two across, so captions are not one word per line. */
@media (max-width: 599.98px) {
  .tinies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiny .print__caption { margin-top: 1.75rem; }  /* clear of the tilted frame's corner */
}
