/* Find Your Stoic Mentor (V2.1): shared base in the layout system of the Jessi Jean model page (docs/v3-layout-brief.md).
   Colour is a code: yellow = act or look here (buttons, small labels), red = the second line of a headline, numbers,
   a "not"; grey = everything that supports; white = the line to read.
   Tokens, type, bands, buttons. Page CSS lives in site.css (landing) and quiz.css (quiz; it sets its own tokens on body.qz).
   Every V2.0 custom property name still exists (values moved to the new palette). Fonts come from fonts.css. */

:root {
  /* backgrounds: sections alternate ink and coal; strips and cards are lighter */
  --ink: #0A0A0A;
  --coal: #0F0F0F;
  --card: #1C1C1C;
  --strip: #1F1F1F;

  /* text */
  --bone: #F5F5F5;                 /* white: the line to read */
  --bone-body: #888888;            /* grey: everything that supports */
  --bone-dim: #6E6E6E;             /* dim small print */
  --dim: #555555;                  /* lines and borders */
  --rule: rgba(255, 255, 255, .08);
  --line: #2E2E2E;

  /* colour code */
  --yellow: #FFD600;
  --red: #C62828;
  --red-hi: #E53935;
  --red-deep: #B71C1C;
  --orange: #FF6D00;
  --orange-deep: #E65100;

  /* V2.0 names kept so nothing that still reads them breaks */
  --paper: #F5F5F5;
  --paper-dim: #E0E0E0;
  --bronze: #FFD600;
  --ink-body: rgba(10, 10, 10, .82);

  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --serif: "Outfit", "Helvetica Neue", Arial, sans-serif;   /* the text face (V2.0 name kept) */
  --text: var(--serif);
  --label: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
  --caps: "Cinzel", "Times New Roman", serif;               /* name plates and the wordmark only */

  /* fluid type: phone (390) to desktop (1440) */
  --fs-h1: clamp(3.5rem, 2.64rem + 4.57vw, 6.75rem);         /* hero title: 60 to 108 */
  --fs-statement: clamp(2.75rem, 1.8rem + 4.38vw, 5.75rem);  /* big two-colour headline: 46 to 92 */
  --fs-heading: clamp(2.5rem, 2.03rem + 2.95vw, 4.6875rem);  /* section headline: 44 to 75 */
  --fs-h3: clamp(2.5rem, 2.09rem + 2.19vw, 4.0625rem);       /* 42 to 65 */
  --fs-h4: clamp(2.125rem, 1.97rem + 1.14vw, 3rem);          /* 36 to 48 */
  --fs-lead: clamp(1.125rem, 1.06rem + .3vw, 1.25rem);       /* 18 to 20 */
  --fs-body: clamp(1rem, .96rem + .2vw, 1.125rem);           /* 16 to 18 */
  --fs-small: clamp(.8125rem, .8rem + .06vw, .875rem);       /* 13 to 14 */

  --wrap: 1170px;
  --pad: clamp(20px, 5vw, 48px);
  --band-y: clamp(64px, 6.4vw, 104px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.3, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--bone-body);
  font-family: var(--serif); font-weight: 400; font-size: var(--fs-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
em, i { font-style: italic; }

/* ---------- bands ---------- */
.band { padding: var(--band-y) var(--pad); position: relative; }
.band--ink { background: var(--ink); }
.band--coal { background: var(--coal); }
.band--strip { background: var(--strip); }
.band--paper { background: var(--paper); color: var(--ink-body); }
.band--tight { padding-block: clamp(36px, 5vw, 64px); }
.wrap { max-width: var(--wrap); margin-inline: auto; }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- type ---------- */
.h1, .statement, .heading {
  font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: 1px; text-transform: uppercase; color: var(--bone);
}
.h1 { font-size: var(--fs-h1); line-height: 1; }
.statement { font-size: var(--fs-statement); }
.heading { font-size: var(--fs-heading); }
.heading--red, .statement--red { color: var(--red); }
.lead { font-size: var(--fs-lead); line-height: 1.45; font-weight: 600; color: var(--bone); }
.body { font-size: var(--fs-body); }
.small { font-size: var(--fs-small); line-height: 1.5; color: var(--bone-dim); }
.mono { font-family: var(--mono); }
.caps { font-family: var(--caps); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.source { font-family: var(--mono); font-size: var(--fs-small); letter-spacing: .02em; color: var(--bone-body); font-style: normal; }

/* coloured words inside a keyed text (they stay editable) */
.y { color: var(--yellow); }
.r { color: var(--red); }
.rh { color: var(--red-hi); }
.g { color: var(--bone-body); }
.w { color: var(--bone); }
.o { color: var(--orange); }

/* V2.0 popped phrase, still used by the quiz: red, with a marker line drawn under it */
.pop {
  color: var(--red-hi); font-weight: inherit;
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat; background-position: 0 96%; background-size: 0% .09em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: .06em;
  transition: background-size .9s var(--ease) .15s;
}
.pop.is-in, .still .pop { background-size: 100% .09em; }

/* ---------- buttons: yellow, square, Space Grotesk caps, an arrow ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 60px; padding: 20px 32px; border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--label); font-weight: 500; font-size: 1rem; letter-spacing: 2px; line-height: 1.2;
  text-transform: uppercase; text-decoration: none; text-align: center; white-space: nowrap;
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 0 0 0 rgba(255, 214, 0, 0), 0 6px 22px rgba(255, 214, 0, .16);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
}
.btn::after { content: "\2192"; font-family: var(--label); font-weight: 500; font-size: 1.1em; line-height: 0; transition: transform .18s var(--ease); }
.btn--bone { background: var(--bone); color: var(--ink); }
.btn--bronze { background: var(--yellow); color: var(--ink); }
.btn--ink, .btn--ghost { background: transparent; color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }
.btn--big { min-height: 64px; }
.btn--plain::after { content: none; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 0 rgba(255, 214, 0, 0), 0 10px 30px rgba(255, 214, 0, .3); }
  .btn--ink:hover, .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--yellow), 0 8px 24px rgba(255, 214, 0, .14); }
  .btn:hover::after { transform: translateX(4px); }
}
.btn:active { transform: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.cta { margin-top: clamp(28px, 3vw, 40px); }
@media (max-width: 640px) {
  .btn { padding-inline: 24px; }
}

/* ---------- ink illustrations: black disappears into the band ---------- */
.plate { mix-blend-mode: lighten; }

/* ---------- reveal on scroll (off with ?still or reduced motion) ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .pop { transition: none; background-size: 100% .09em; }
}
