/* MOB Academy Phase 1 — tokens from MOB_Academy_Phase1_DESIGN.md */
/* Self-hosted (SIL Open Font License): no third-party requests, no render-blocking font CSS */
@font-face { font-family: 'Bebas Neue'; src: url(assets/fonts/bebas-neue-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(assets/fonts/inter-var.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  --mob-black: #000000;
  --mob-charcoal: #1C1C1C;
  --mob-gold: #AB8D4A;
  --mob-gold-deep: #9F7E31;
  --mob-gold-light: #C9AE6B;
  --mob-gold-tint: #E9DFC4;
  --mob-gray-logo: #9D9FA2;
  --mob-gray-desc: #808084;
  --mob-gray-mid: #6B6C70;
  --mob-gray-text: #4A4B4F;
  --mob-ivory: #F5F3EE;
  --mob-white: #FFFFFF;

  --font-display: 'Bebas Neue', Oswald, 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', system-ui, Arial, sans-serif;
  --font-serif: 'Libre Bodoni', Georgia, serif;

  --text-hero: 64px;
  --text-h2: 32px;
  --text-h3: 22px;
  --text-stat: 48px;
  --text-eyebrow: 12px;
  --text-button: 15px;
  --text-lead: 18px;
  --text-body: 16px;
  --text-small: 14px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;

  --container: 1200px;
  --radius: 2px;
  --section-gap: 48px;
  --header-h: 72px;
}

@media (min-width: 900px) {
  :root {
    --text-hero: 104px;
    --text-h2: 44px;
    --text-h3: 28px;
    --text-eyebrow: 14px;
    --text-lead: 20px;
    --text-body: 18px;
    --section-gap: 96px;
    --header-h: 96px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--mob-white);
  color: var(--mob-black);
  font: 400 var(--text-body)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; }
p { margin: 0 0 var(--space-3); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mob-black); outline-offset: 2px; }
.band--black :focus-visible { outline-color: var(--mob-gold-light); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--mob-black); color: var(--mob-white); padding: 12px 16px; }
.skip:focus { left: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .container { padding: 0 40px; } }
.center { text-align: center; }

/* Bands */
.band { padding: var(--section-gap) 0; }
.band--black { background: var(--mob-black); color: var(--mob-white); }
.band--ivory { background: var(--mob-ivory); }
.band--white { background: var(--mob-white); }
.band--ivory p, .band--white p { color: var(--mob-gray-text); }

/* Type */
.eyebrow {
  font: 400 var(--text-eyebrow)/1.2 var(--font-display);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mob-gold-light); margin-bottom: var(--space-3);
}
.band .eyebrow--dark { color: var(--mob-black); }
.lead { font-size: var(--text-lead); line-height: 1.6; max-width: 34em; }
.gold { color: var(--mob-gold-light); }
/* Gold emphasis on light surfaces: black text, gold underline (gold text fails contrast on white) */
.underline { text-decoration: underline; text-decoration-color: var(--mob-gold); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.section-title { font-size: var(--text-h2); line-height: 1.08; margin-bottom: var(--space-4); }
.section-title::before { content: ""; display: block; width: 56px; height: 4px; background: var(--mob-gold); margin-bottom: var(--space-4); }
.section-title--center::before { margin-left: auto; margin-right: auto; }
.section-title--light { color: var(--mob-white); }
.label { font: 400 var(--text-small)/1.2 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; }
.band p.label { color: var(--mob-black); }
.small { font-size: var(--text-small); line-height: 1.5; color: var(--mob-gray-text); }
.opt { font-weight: 400; color: var(--mob-gray-text); }
.todo { background: var(--mob-gold-tint); color: var(--mob-black); padding: 0 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 16px 28px;
  font: 400 var(--text-button)/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--mob-gold-light); color: var(--mob-black); }
.btn--gold:hover { background: var(--mob-gold); }
.btn--outline { border-color: var(--mob-gold-light); color: var(--mob-white); background: transparent; }
.btn--outline:hover { background: var(--mob-gold-light); color: var(--mob-black); }
.btn--dark { background: var(--mob-black); color: var(--mob-white); }
.btn--dark:hover { background: var(--mob-charcoal); }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: var(--space-5); }
@media (min-width: 600px) { .btn-row { flex-direction: row; } .btn-row--center { justify-content: center; } }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--mob-white); border-bottom: 1px solid var(--mob-gray-logo); }
.header__inner { display: flex; align-items: center; gap: var(--space-3); height: var(--header-h); }
.header__logo { display: flex; align-items: center; min-height: 44px; }
.header__logo img { height: 36px; width: auto; }
.header__donate { margin-left: auto; min-height: 44px; padding: 12px 20px; }
.nav { display: none; }
.nav a { font: 500 16px/1 var(--font-body); text-decoration: none; padding: 14px 4px; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--mob-gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--mob-black); background: var(--mob-white); color: var(--mob-black); border-radius: var(--radius); cursor: pointer; }
.nav.is-open {
  display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--mob-white); border-bottom: 1px solid var(--mob-gray-logo); padding: 8px 16px 16px;
}
.nav.is-open a { border-bottom: 1px solid var(--mob-ivory); }
@media (min-width: 900px) {
  .header__logo img { height: 48px; }
  .nav, .nav.is-open { display: flex; position: static; flex-direction: row; gap: 28px; margin-left: auto; padding: 0; border: 0; }
  .nav.is-open a { border: 0; }
  .header__donate { margin-left: 12px; }
  .header__logo + .header__donate { margin-left: auto; } /* pages without the nav: keep the button at the right edge */
  .menu-btn { display: none; }
}

/* Hero */
.hero__grid { display: grid; gap: var(--space-5); align-items: center; }
.hero__title { font-size: var(--text-hero); line-height: 0.95; color: var(--mob-white); margin-bottom: var(--space-4); }
.hero__sub { font: 400 22px/1.2 var(--font-display); letter-spacing: 0.02em; margin-bottom: var(--space-3); }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(460px, 0.85fr) minmax(0, 1.15fr); gap: var(--space-6); } }

/* Hero video: full 16:9 frame, never cropped, so lower thirds stay readable */
.hero-video { position: relative; aspect-ratio: 16 / 9; background: var(--mob-black); border-radius: var(--radius); overflow: hidden; }
.hero-video video { width: 100%; height: 100%; object-fit: contain; }
.sound-btn {
  position: absolute; top: 12px; right: 12px; min-height: 44px; padding: 0 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mob-black); color: var(--mob-white); border: 1px solid var(--mob-gold-light); border-radius: var(--radius);
  font: 400 16px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
.sound-btn:hover { background: var(--mob-charcoal); }
.sound-btn .ic-on, .sound-btn.is-on .ic-off { display: none; }
.sound-btn.is-on .ic-on { display: block; }

/* Photos */
.photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 45% 50%; border-radius: var(--radius); }

/* Splits */
.split { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .split--video { grid-template-columns: 1.4fr 1fr; }
  .split--form { grid-template-columns: 1fr 1.4fr; align-items: start; }
}

/* Pillars */
.intro { margin-bottom: var(--space-5); }
.pillars { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--mob-ivory); border-radius: var(--radius); overflow: hidden; }
.pillar__art { height: 200px; background: var(--mob-black); border-bottom: 4px solid var(--mob-gold); }
.pillar__art svg { display: block; width: 100%; height: 100%; }
.pillar__body { padding: 20px; }
@media (min-width: 900px) { .pillar__body { padding: 24px; } }
.pillar h3 { font-size: var(--text-h3); line-height: 1.15; margin-bottom: 12px; }
.band .pillar p:last-child { font-size: 16px; line-height: 1.55; margin: 0; }
.note { max-width: 40em; margin: var(--space-5) auto 0; }
.band .note--light { color: var(--mob-gray-logo); font-size: var(--text-small); }

/* Stats */
.stats { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { border-top: 3px solid var(--mob-gold); padding-top: var(--space-4); }
.stats strong { display: block; font: 400 var(--text-stat)/1 var(--font-display); margin-bottom: var(--space-2); }
@media (min-width: 900px) { .stats strong { font-size: 64px; } }
.stats span { display: block; font-size: var(--text-small); line-height: 1.4; }

/* Video */
.video { aspect-ratio: 16 / 9; background: var(--mob-black); border-radius: var(--radius); overflow: hidden; }
.video video { width: 100%; height: 100%; object-fit: cover; }

/* Form */
.form-card { background: var(--mob-white); border-top: 4px solid var(--mob-gold); border-radius: var(--radius); padding: 20px; }
@media (min-width: 900px) { .form-card { padding: 32px; } }
.row { display: grid; gap: 0 var(--space-3); }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font: 600 14px/1.4 var(--font-body); margin-bottom: 6px; }
input:not([type=checkbox]), select {
  width: 100%; min-height: 46px; padding: 13px 14px;
  font: 400 16px/1.2 var(--font-body); color: var(--mob-black);
  background: var(--mob-white); border: 1px solid var(--mob-gray-desc); border-radius: var(--radius);
}
input[aria-invalid=true], select[aria-invalid=true] { border: 2px solid var(--mob-black); background: var(--mob-gold-tint); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: var(--space-4); font-size: 14px; line-height: 1.5; color: var(--mob-gray-text); }
.check input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--mob-black); }
.form-error { font: 600 14px/1.5 var(--font-body); color: var(--mob-black); background: var(--mob-gold-tint); border-left: 4px solid var(--mob-gold); padding: 10px 12px; }
.form-card .btn--dark { width: 100%; }
@media (min-width: 600px) { .form-card .btn--dark { width: auto; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks h3 { font-size: var(--text-h3); margin-bottom: var(--space-2); }

/* Donate band */
.donate__title { font-size: clamp(44px, 7vw, 72px); }
.donate__lead { margin: 0 auto; }

/* Footer */
.footer { padding: var(--space-6) 0 var(--space-5); background: var(--mob-white); }
.footer__grid { display: grid; gap: var(--space-5); }
.footer__grid img { height: 64px; width: auto; margin-bottom: var(--space-3); }
.footer__links, .footer__contact { display: flex; flex-direction: column; gap: 4px; }
.footer__links a { font-size: var(--text-small); text-decoration: none; padding: 6px 0; }
.footer__links a:hover { text-decoration: underline; }
.footer__links a, .footer__contact a { min-height: 44px; display: flex; align-items: center; padding: 0; }
.footer__ig { gap: 8px; }
.footer__legal { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--mob-gray-logo); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

/* Inner pages */
.page-404 { min-height: 100vh; display: grid; place-items: center; }

/* 404 page */
.nf__grid { display: grid; gap: var(--space-4); align-items: center; }
.nf__title { margin-bottom: var(--space-4); }
.nf__code { order: -1; margin: 0; font: 400 120px/0.85 var(--font-display); color: var(--mob-charcoal); letter-spacing: 0.02em; }
@media (min-width: 900px) {
  .nf__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-6); }
  .nf__code { order: 0; font-size: 280px; text-align: right; }
}
.nf-links__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 600px) { .nf-links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .nf-links__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nf-card {
  display: flex; flex-direction: column; gap: var(--space-2); height: 100%; min-height: 44px;
  padding: 20px 24px; background: var(--mob-white); border-top: 4px solid var(--mob-gold); border-radius: var(--radius);
  text-decoration: none; transition: background-color .2s;
}
.nf-card:hover { background: var(--mob-gold-tint); }
.nf-card__title { font: 400 var(--text-h3)/1.15 var(--font-display); text-transform: uppercase; color: var(--mob-black); }
.nf-card__text { font-size: var(--text-small); line-height: 1.5; color: var(--mob-gray-text); }
.footer__legal a { color: var(--mob-black); }
.prose { max-width: 760px; }
.prose h2 { font-size: var(--text-h3); margin: var(--space-5) 0 var(--space-3); }
.prose ul { color: var(--mob-gray-text); padding-left: 1.2em; margin: 0 0 var(--space-3); }
.prose li { margin-bottom: var(--space-2); }
.prose strong { color: var(--mob-black); }
.prose a { color: var(--mob-black); text-decoration-color: var(--mob-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 0 0 var(--space-4); }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; color: var(--mob-gray-text); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--mob-gray-logo); }
.prose thead th { font: 400 15px/1.2 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mob-black); border-bottom: 3px solid var(--mob-gold); }
.prose tbody th { font-weight: 600; color: var(--mob-black); }
