/* ============================================================
   WE BECAME THE PROOF shared stylesheet
   Brand system: WBP red / black / white.
   NOTE: the red values below are PLACEHOLDERS. Replace the hex in
   the :root block with the exact colors extracted from the official
   WBP logo. Do not substitute the Thoughts 2 Lyfe colors.
   ============================================================ */

/* ---- Design tokens : light (default) ---- */
:root {
  /* brand */
  --red:       #C8102E;   /* TODO: replace with logo red */
  --red-deep:  #7A0C1E;   /* TODO: replace with logo deep red */
  --red-tint:  #FBE9EC;

  /* warm neutrals, biased toward the red accent */
  --ink:       #17110F;   /* near-black, warm */
  --ink-soft:  #4A3F3B;   /* secondary text */
  --paper:     #FBF8F3;   /* page background */
  --surface:   #FFFFFF;   /* cards */
  --band:      #F3ECE1;   /* alternating section band */
  --band-ink:  #140D0C;   /* dark band background */
  --line:      #E6DBCC;   /* hairline */

  --focus:     #1769C9;   /* keyboard focus ring (non-brand, high-contrast) */

  /* type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui:      "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* scale */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(20,13,12,.06), 0 10px 30px -18px rgba(20,13,12,.35);
  color-scheme: light;
}

/* ---- Design tokens : dark ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red:      #F0314A;
    --red-deep: #C8102E;
    --red-tint: #2A1216;
    --ink:      #F5EFE7;
    --ink-soft: #C2B5A7;
    --paper:    #141110;
    --surface:  #1C1815;
    --band:     #211A17;
    --band-ink: #0D0908;
    --line:     #342B26;
    --focus:    #6AB0FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red:      #F0314A;
  --red-deep: #C8102E;
  --red-tint: #2A1216;
  --ink:      #F5EFE7;
  --ink-soft: #C2B5A7;
  --paper:    #141110;
  --surface:  #1C1815;
  --band:     #211A17;
  --band-ink: #0D0908;
  --line:     #342B26;
  --focus:    #6AB0FF;
  color-scheme: dark;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.04; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* skip link */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
  font-family: var(--font-ui); font-weight: 600; transition: top .15s;
}
.skip:focus { top: 12px; }

/* ---- layout ---- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2.2rem, 5vw, 3.5rem); }
.band { background: var(--band); }
.band-dark { background: var(--band-ink); color: #F6F1EA; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-ui); font-weight: 700; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--red);
  margin: 0 0 1rem;
}
.band-dark .eyebrow { color: var(--red); }
.lede { font-size: clamp(1.12rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }
.section > .wrap > h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; }
.measure { max-width: 62ch; }

/* ---- buttons ---- */
.btn, .btn-ghost {
  font-family: var(--font-ui); font-weight: 700; font-size: .98rem;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, background .18s ease, color .18s ease;
}
.btn { background: var(--red); color: #fff; }
.btn:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: currentColor; transform: translateY(-2px); }
.btn-ghost:hover span { color: var(--paper); }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---- header / nav ---- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { height: 42px; width: auto; }
.brand .brand-mark {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em;
  font-size: 1.05rem; line-height: 1; text-transform: uppercase;
}
.brand .brand-mark small { display: block; font-size: .62rem; letter-spacing: .12em; color: var(--red); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-ui); font-weight: 600; font-size: .95rem; text-decoration: none;
  color: var(--ink); padding: .55rem .8rem; border-radius: var(--radius); display: inline-block;
}
.nav-links a:hover { background: var(--red-tint); color: var(--red-deep); }
.nav-links a[aria-current="page"] { color: var(--red-deep); box-shadow: inset 0 -2px 0 var(--red); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem; background: none; border: 0;
    font-family: var(--font-ui); font-weight: 700; color: var(--ink); cursor: pointer; padding: .5rem;
  }
  .nav-toggle .bars { width: 22px; height: 2px; background: currentColor; position: relative; display: block; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; }
  .nav-toggle .bars::before { top: -7px; } .nav-toggle .bars::after { top: 7px; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem max(20px, env(safe-area-inset-left,0px)) 1rem; box-shadow: var(--shadow);
  }
  .nav-links a { padding: .85rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links[hidden] { display: none; }
}

/* ---- hero (home) ---- */
.hero {
  background:
    radial-gradient(130% 120% at 80% -10%, color-mix(in srgb, var(--red) 16%, transparent), transparent 55%),
    var(--band-ink);
  color: #F7F2EB; position: relative; overflow: hidden;
}
.hero .wrap { padding-block: clamp(3.5rem, 9vw, 7rem); position: relative; z-index: 2; }
.hero .eyebrow { color: #fff; opacity: .85; }
.hero h1 {
  font-weight: 800; letter-spacing: -.02em; color: #fff;
  font-size: clamp(2.6rem, 8.5vw, 6rem); margin: 0 0 1rem; max-width: 16ch;
}
.hero h1 .accent { color: var(--red); }
.hero .sub { font-family: var(--font-ui); font-weight: 600; font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: #fff; margin: 0 0 1.2rem; }
.hero .hero-text { max-width: 54ch; color: #E9E0D6; font-size: 1.14rem; margin: 0 0 1.8rem; }
.hero .btn-ghost { color: #fff; }
.hero-mark { position: absolute; right: -4%; bottom: -12%; width: min(46%, 520px); opacity: .20; z-index: 1; filter: saturate(1.1); pointer-events: none; }
@media (max-width: 720px){ .hero-mark { display: none; } }

/* ---- mission / vision ---- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.4rem, 3vw, 2.6rem); }
.statement h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--red-deep); margin-bottom: .6rem; }
.band-dark .statement h2 { color: var(--red); }

/* ---- program cards (The Need / Connection / Proof) ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.3rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem; position: relative; overflow: hidden;
}
.card .num {
  font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: var(--red);
  letter-spacing: .04em;
}
.card h3 { font-size: 1.18rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; margin: .5rem 0 .55rem; }
.card p { color: var(--ink-soft); font-size: 1.02rem; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--red); }

/* ---- citation / small research note ---- */
.citation {
  border-left: 3px solid var(--red); background: var(--surface);
  padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .98rem; color: var(--ink-soft); box-shadow: var(--shadow);
}
.citation a { word-break: break-word; }

/* ---- story tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.tile {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile .thumb { aspect-ratio: 16 / 10; background: var(--band-ink); overflow: hidden; }
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tile .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.tile h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.tile p { color: var(--ink-soft); font-size: 1rem; }
.tile .more { font-family: var(--font-ui); font-weight: 700; color: var(--red-deep); margin-top: auto; }

/* ---- closing statement ---- */
.closing { text-align: center; }
.closing p {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em;
  font-size: clamp(1.4rem, 3.6vw, 2.3rem); max-width: 22ch; margin-inline: auto; line-height: 1.12; color: #fff;
}

/* split hero layout (education pages) */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---- big hero image (education pages) ---- */
.feature-hero { background: var(--band-ink); }
.feature-hero .frame {
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); background: #000;
}
.feature-hero figcaption { color: #CFC4B7; font-family: var(--font-ui); font-size: .85rem; margin-top: .7rem; }
.display-year {
  font-family: var(--font-display); font-weight: 800; color: var(--red);
  font-size: clamp(4rem, 20vw, 13rem); line-height: .8; letter-spacing: -.03em; margin: 0;
}

/* ---- stat tiles ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.1rem; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: var(--radius); padding: 1.6rem 1.4rem;
}
.stat .fig {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1;
}
.stat .label { font-family: var(--font-ui); font-weight: 600; color: var(--ink-soft); margin-top: .5rem; font-size: .98rem; }

/* ---- person blocks ---- */
.people { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
.person { border-top: 2px solid var(--line); padding-top: 1.4rem; }
.person h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--red-deep); margin-bottom: .5rem; }
.band-dark .person h3 { color: var(--red); }

/* ---- timeline (Morrill Acts) ---- */
.timeline { display: grid; gap: 1.3rem; }
.event {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.5rem 1.6rem;
}
.event .year { font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: 1.05rem; letter-spacing: .02em; }
.event h3 { font-size: 1.3rem; font-weight: 800; margin: .3rem 0 .6rem; }
.event p { color: var(--ink-soft); }

/* ---- gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--band-ink); }
.gallery figcaption { font-family: var(--font-ui); font-size: .8rem; color: var(--ink-soft); padding: .6rem .7rem .8rem; }
.gallery .tall img { aspect-ratio: 3 / 4; }

/* ---- sources ---- */
.sources { font-family: var(--font-ui); font-size: .95rem; }
.sources h2 { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 1rem; }
.sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.sources li { display: flex; gap: .6rem; }
.sources li::before { content: "→"; color: var(--red); font-weight: 700; }
.sources a { color: var(--ink); word-break: break-word; }
.sources a:hover { color: var(--red-deep); }
.rights { font-size: .85rem; color: var(--ink-soft); margin-top: 1.4rem; max-width: 70ch; }

/* ---- back to home ---- */
.back-home { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-ui); font-weight: 700; color: var(--red-deep); text-decoration: none; }
.back-home:hover { text-decoration: underline; }

/* ---- footer ---- */
.site-footer { background: var(--band-ink); color: #D8CEC2; }
.site-footer .wrap { padding-block: clamp(2.4rem, 5vw, 3.4rem); display: grid; gap: 1.2rem; }
.site-footer .f-brand { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.25rem; text-transform: uppercase; }
.site-footer .tagline { font-family: var(--font-ui); color: #CFC4B7; font-size: .98rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer nav a { color: #E9E0D6; font-family: var(--font-ui); font-weight: 600; text-decoration: none; }
.site-footer nav a:hover { color: var(--red); }
.site-footer .note { font-size: .82rem; color: #9E9388; max-width: 64ch; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.1rem; }

/* ---- branded survey form (/survey) ---- */
.form-wrap { max-width: 680px; }
.field { border: 0; margin: 0; padding: 0; display: block; }
.field + .field { margin-top: 2rem; }
.field legend, .field .q { font-family: var(--font-ui); font-weight: 700; font-size: 1.08rem; color: var(--ink); padding: 0; margin-bottom: .8rem; line-height: 1.3; }
.field .req { color: var(--red); }
.field .help { font-family: var(--font-ui); font-weight: 500; font-size: .88rem; color: var(--ink-soft); margin: -.4rem 0 .8rem; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.scale .pill { display: flex; align-items: center; justify-content: center; padding: .9rem 0; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); cursor: pointer; transition: all .12s; }
.scale input:checked + .pill { background: var(--red); border-color: var(--red); color: #fff; }
.scale input:focus-visible + .pill { outline: 3px solid var(--focus); outline-offset: 2px; }
.scale label:hover .pill { border-color: var(--red); }
.scale-ends { display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: .78rem; color: var(--ink-soft); margin-top: .45rem; }
.choices { display: grid; gap: .55rem; }
.choice { display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-family: var(--font-ui); font-weight: 500; transition: border-color .12s, background .12s; }
.choice:hover { border-color: var(--red); }
.choice input { margin-top: .2rem; accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.choice:has(input:checked) { border-color: var(--red); background: var(--red-tint); }
.choice input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field textarea, .field input[type="text"] { width: 100%; font-family: var(--font-body); font-size: 1rem; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); resize: vertical; }
.field textarea:focus, .field input[type="text"]:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--red); }
.other-text { margin-top: .5rem; }
.form-error { color: var(--red-deep); font-family: var(--font-ui); font-weight: 600; font-size: .9rem; margin-top: .5rem; }
.form-submit { margin-top: 2.2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.thanks { text-align: center; padding: 2rem 0; }
.thanks h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--red-deep); margin-bottom: .6rem; }

/* ---- survey / QR band ---- */
.survey-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 2.6rem); align-items: center; }
@media (max-width: 640px) { .survey-grid { grid-template-columns: 1fr; justify-items: start; } }
.qr-card { background: #fff; padding: 16px; border-radius: 10px; box-shadow: 0 16px 40px -20px rgba(0,0,0,.6); display: inline-flex; align-items: center; justify-content: center; }
.qr-card img, .qr-card canvas { display: block; width: 190px; height: 190px; }
.qr-hint { font-family: var(--font-ui); font-size: .82rem; color: #CFC4B7; max-width: 190px; text-align: center; }

/* generic stacking helper */
.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 1.8rem; }
