/* Survival Skool — homepage styles
   Design: "Condemned" (v3). Dark concrete, amber emergency light, red spray paint.
   Fonts are self-hosted (SIL Open Font License) in /assets/fonts. */

@font-face { font-family: "Big Shoulders Stencil Display"; font-weight: 800; font-display: swap; src: url("/assets/fonts/big-shoulders-stencil-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Stencil Display"; font-weight: 900; font-display: swap; src: url("/assets/fonts/big-shoulders-stencil-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Rubik Wet Paint"; font-weight: 400; font-display: swap; src: url("/assets/fonts/rubik-wet-paint-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0C0C0A;
  --bg-2: #11100D;
  --panel: #121210;
  --line: #262520;
  --line-2: #33312A;
  --text: #DDD6C6;
  --text-2: #BDB6A7;
  --muted: #9C9586;
  --label: #8E877A;
  --amber: #E3A33B;
  --amber-hover: #F4C46A;
  --red: #C4291C;
  --red-soft: #E8857A;
  --red-label: #C2766A;
  --red-muted: #A8796E;
  --paper: #E4DCC9;
  --stencil: "Big Shoulders Stencil Display", Impact, "Arial Narrow", sans-serif;
  --spray: "Rubik Wet Paint", "Big Shoulders Stencil Display", cursive;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, iframe { max-width: 100%; }
a { color: var(--amber); }
a:hover { color: var(--amber-hover); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--bg); padding: 10px 16px; font-family: var(--mono); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.section { position: relative; padding: 96px 24px; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* type */
.eyebrow { margin: 0 0 10px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.eyebrow--muted { color: var(--label); }
.h-stencil { margin: 0; font-family: var(--stencil); font-weight: 900; font-size: clamp(46px, 6vw, 84px); line-height: 0.92; text-transform: uppercase; }
.lede { color: var(--text-2); }
.mono-list { margin: 0 0 30px; padding: 0; list-style: none; display: grid; gap: 8px; font-family: var(--mono); font-size: 14px; color: var(--text-2); }
.spray { font-family: var(--spray); color: var(--red); line-height: 1; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; text-decoration: none; font-family: var(--mono); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s; }
.btn--amber { background: var(--amber); color: var(--bg); }
.btn--amber:hover { background: var(--amber-hover); color: var(--bg); }
.btn--ghost { border-color: #5B564C; color: var(--text); }
.btn--ghost:hover { border-color: var(--text); color: #fff; }
.btn--red { background: var(--red); color: #F3EEE4; }
.btn--red:hover { background: #D93A2B; color: #fff; }
.btn--red-ghost { border-color: #7A3A31; color: #F3EEE4; }
.btn--red-ghost:hover { border-color: var(--red-soft); color: #fff; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ticker */
.ticker { background: var(--red); color: #F3EEE4; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; padding: 8px 0; }
.ticker__track { display: inline-flex; gap: 48px; padding-left: 24px; animation: ticker 60s linear infinite; }
.ticker__track > span { flex: none; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(12,12,10,0.94); backdrop-filter: blur(6px); }
.site-nav { max-width: var(--wrap); margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.brand { text-decoration: none; color: var(--text); font-family: var(--stencil); font-weight: 900; font-size: 28px; letter-spacing: 0.05em; text-transform: uppercase; }
.brand:hover { color: #fff; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 24px; font-family: var(--mono); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.nav-links a { color: var(--text); text-decoration: none; padding: 12px 0; }
.nav-links a:hover { color: var(--amber); }
.nav-links a.nav-cta { color: var(--bg); background: var(--amber); padding: 11px 16px; font-weight: 600; }
.nav-links a.nav-cta:hover { background: var(--amber-hover); color: var(--bg); }

/* hero */
.hero { position: relative; background: radial-gradient(ellipse 70% 60% at 70% 20%, #2A2216 0%, #12110D 55%, var(--bg) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__inner { max-width: var(--wrap); margin: 0 auto; padding: 88px 24px 160px; position: relative; }
.hero__title { margin: 0; position: relative; }
.hero__logo { display: block; width: 100%; max-width: 1100px; height: auto; }
.hero__spray { position: absolute; right: 6%; top: 52%; transform: rotate(-8deg); font-size: clamp(30px, 5vw, 72px); text-align: center; }
.hero__text { margin: 34px 0 0; max-width: 660px; font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); }
.hero .btn-row { margin-top: 36px; gap: 16px; }
.tape { position: absolute; left: -5%; width: 110%; white-space: nowrap; overflow: hidden; color: var(--bg); border-top: 3px solid var(--bg); border-bottom: 3px solid var(--bg); font-family: var(--stencil); font-weight: 900; letter-spacing: 0.18em; }
.tape--1 { bottom: 46px; transform: rotate(-2.5deg); background: #D9AE36; padding: 9px 0; font-size: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.tape--2 { bottom: 20px; transform: rotate(1.5deg); background: #B8922C; padding: 7px 0; font-size: 18px; opacity: 0.9; }

/* directory */
.directory { padding-bottom: 40px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: 36px; }
.section-head--rule { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.section-head__note { margin: 0; max-width: 360px; font-size: 16px; color: var(--muted); }
.districts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.district { background: var(--panel); border-top: 3px solid var(--amber); padding: 26px 24px 24px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 12px; min-height: 320px; transition: background-color .15s; }
.district:hover { background: #1A1916; color: var(--text); }
.district__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--label); }
.district__name { font-family: var(--stencil); font-weight: 900; font-size: clamp(30px, 2.6vw, 38px); line-height: 0.95; color: var(--amber); }
.district__tag { font-family: var(--mono); font-size: 11px; line-height: 1.6; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.district__project { margin-top: 8px; font-family: var(--stencil); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; }
.district__desc { font-size: 15px; line-height: 1.55; color: var(--muted); }
.district__go { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.district--annex { background: #160D0B; border-top-color: var(--red); }
.district--annex:hover { background: #1F110E; }
.district--annex .district__num, .district--annex .district__tag { color: var(--red-label); }
.district--annex .district__name { color: var(--red); }
.district--annex .district__go { color: var(--red-soft); border-top-color: #3A1A15; }

/* playground */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 56px; }
.split--top { align-items: start; }
.split--center { align-items: center; }
.playground .h-stencil { margin-bottom: 18px; }
.playground p { margin: 0 0 16px; max-width: 520px; }
.playground .note { margin-bottom: 30px; color: var(--muted); }
.registry { background: var(--panel); border: 1px solid var(--line-2); font-family: var(--mono); }
.registry__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); }
.signal { color: #7FA35F; }
.signal[data-state="lost"] { color: var(--red-soft); }
.signal[data-state="pending"] { color: var(--label); }
.registry__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border-bottom: 1px solid var(--line-2); }
.registry__stat { padding: 18px 20px; border-right: 1px solid var(--line-2); }
.registry__stat:last-child { border-right: 0; }
.registry__label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.registry__value { font-family: var(--stencil); font-weight: 900; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; color: var(--text); }
.registry__note { padding: 12px 20px; border-bottom: 1px solid var(--line-2); font-size: 12px; color: #A39C8E; }
.registry__boardhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding: 16px 20px 8px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); }
.leaderboard { width: 100%; border-collapse: collapse; font-size: 15px; }
.leaderboard th { padding: 6px 20px; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); text-align: left; }
.leaderboard th:nth-child(2) { padding-left: 0; }
.leaderboard th:last-child, .leaderboard td:last-child { text-align: right; }
.leaderboard td { padding: 10px 20px; border-top: 1px solid #222119; }
.leaderboard td:first-child { color: var(--amber); width: 40px; }
.leaderboard td:nth-child(2) { padding-left: 0; color: var(--text); overflow-wrap: anywhere; }
.leaderboard td:last-child { color: #A39C8E; }
.leaderboard .empty td { color: var(--label); }
.registry__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 20px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--label); }
.registry__foot a { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

/* athenaeum */
.stack { display: flex; flex-direction: column; gap: 44px; }
.athenaeum__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px 56px; align-items: end; }
.athenaeum__head p { margin: 0 0 16px; }
.showcase { margin: 0; position: relative; border: 1px solid var(--line-2); background: var(--bg); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.showcase img { display: block; width: 100%; height: auto; }
.showcase .spray { position: absolute; right: 26px; bottom: 16px; font-size: clamp(22px, 3vw, 42px); transform: rotate(-4deg); }
.chips { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: -24px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }

/* media / embeds */
.media-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.media-main { flex: 2 1 560px; min-width: 0; }
.media-side { flex: 1 1 280px; min-width: 0; display: grid; gap: 28px; align-content: start; }
.embed { position: relative; aspect-ratio: 16 / 9; background: #0A0B09; border: 1px solid var(--line-2); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--vertical { aspect-ratio: 9 / 16; width: 100%; max-width: 340px; margin: 0 auto; border-color: #7A3A31; box-shadow: 0 0 60px rgba(196,41,28,0.25); background: #070303; }
.embed--annex { border-color: #5A231C; background: #070303; }
.embed--spotify { aspect-ratio: auto; height: 152px; background: #151511; border: 0; border-radius: 12px; }
.media-caption { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.media-title { font-family: var(--stencil); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; }
.media-main .media-title { font-size: 32px; }
.media-link { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.media-link:hover { text-decoration: underline; }
.media-kicker { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-soft); }

/* annex */
.annex { position: relative; overflow: hidden; padding: 104px 24px; background: radial-gradient(ellipse 60% 70% at 20% 40%, #2A0F0B 0%, #120807 60%, var(--bg) 100%); border-top: 1px solid #3A1A15; border-bottom: 1px solid #3A1A15; }
.annex::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.28) 0 2px, transparent 2px 4px); pointer-events: none; }
.annex > * { position: relative; }
.badge-red { margin: 0 0 14px; display: inline-block; border: 1px solid var(--red); color: var(--red-soft); padding: 6px 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.glitch { color: #F3EEE4; text-shadow: 3px 0 0 rgba(196,41,28,0.75), -3px 0 0 rgba(60,170,190,0.35); }
.annex .h-stencil { font-size: clamp(60px, 9vw, 140px); line-height: 0.85; margin-bottom: 18px; }
.annex__lede { margin: 0 0 16px; max-width: 540px; font-size: 19px; color: #D3C9BA; }
.annex__body { margin: 0 0 30px; max-width: 540px; color: #A8998A; }
.annex__right { display: grid; gap: 18px; }
.log { background: #0A0505; border: 1px solid #5A231C; font-family: var(--mono); font-size: 14px; color: #C9B8A8; padding: 22px 24px; line-height: 1.9; overflow-x: auto; }
.log__head { color: var(--red-muted); font-size: 12px; letter-spacing: 0.14em; }
.log .hi { color: #F3EEE4; }
.log .warn { color: var(--red-soft); }
.log .blink::after { content: "_"; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .log .blink::after { animation: none; } }
.annex__row2 { max-width: var(--wrap); margin: 80px auto 0; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.annex__row2 .media-main { scroll-margin-top: 90px; }
.files { flex: 1 1 300px; display: flex; flex-direction: column; }
.files__panel { flex: 1; background: #0A0505; border: 1px solid #5A231C; padding: 24px; font-family: var(--mono); font-size: 13px; color: #C9B8A8; display: flex; flex-direction: column; gap: 16px; }
.file-row { display: flex; align-items: center; gap: 12px; }
.file-row__id { color: var(--red-muted); flex: none; }
.file-row__bar { height: 12px; background: #3A1A15; }
.file-row__status { margin-left: auto; font-size: 11px; letter-spacing: 0.14em; color: var(--red-soft); flex: none; }
.files__panel .btn { margin-top: auto; }

/* rules */
.rules-card { max-width: 860px; margin: 0 auto; background: var(--paper); color: #1A1814; border: 1px solid var(--bg); padding: clamp(28px, 4vw, 52px); box-shadow: 0 20px 60px rgba(0,0,0,0.7); position: relative; scroll-margin-top: 90px; }
.rules-card::before { content: ""; position: absolute; top: -10px; left: 50%; width: 90px; height: 22px; margin-left: -45px; background: rgba(210,200,170,0.75); transform: rotate(-3deg); }
.rules-card .eyebrow { color: #6B6457; margin-bottom: 6px; }
.rules-card .h-stencil { font-size: clamp(40px, 5vw, 64px); line-height: 0.95; margin-bottom: 22px; }
.rules-card ol { margin: 0 0 26px; padding-left: 26px; font-size: 19px; line-height: 1.8; }
.rules-card .guidelines { margin: 0 0 10px; font-size: 16px; color: #3A352C; }
.rules-card .guidelines a { color: #8E2A22; font-weight: 600; }
.rules-card .warning { margin: 0; font-family: var(--mono); font-size: 14px; color: #6B6457; }
.rules-card .spray { position: absolute; right: 28px; bottom: 22px; font-size: 40px; transform: rotate(-10deg); }

/* final cta */
.final { padding: 110px 24px; background: radial-gradient(ellipse 60% 80% at 50% 100%, #2A2216 0%, var(--bg) 70%); border-top: 1px solid var(--line); text-align: center; }
.final .h-stencil { margin: 0 auto 30px; max-width: 900px; font-size: clamp(52px, 8vw, 120px); line-height: 0.9; }
.final .btn { min-height: 60px; padding: 0 34px; font-size: 17px; }

/* footer */
.site-footer { background: #080807; border-top: 1px solid #1E1D19; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 36px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; font-family: var(--mono); font-size: 13px; color: var(--label); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--label); }
.site-footer a:hover { color: var(--amber); }

/* simple pages (lore, privacy, accessibility, 404) */
.page { min-height: 70vh; padding: 88px 24px; }
.page__inner { max-width: 760px; margin: 0 auto; }
.page h1 { margin: 0 0 24px; }
.page h2 { margin: 36px 0 10px; font-family: var(--stencil); font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1; }
.page p, .page li { color: var(--text-2); }
.page--center { display: flex; align-items: center; justify-content: center; text-align: center; }
.page--annex { background: radial-gradient(ellipse 60% 70% at 30% 40%, #2A0F0B 0%, #120807 60%, var(--bg) 100%); }

@media (max-width: 640px) {
  .section { padding: 72px 20px; }
  .hero__inner { padding: 56px 20px 140px; }
  .hero__spray { position: static; display: block; margin-top: 10px; text-align: left; transform: rotate(-4deg); font-size: 38px; }
  .nav-links { gap: 0 16px; font-size: 12px; }
  .brand { font-size: 24px; }
  .rules-card .spray { position: static; display: block; margin-top: 18px; transform: rotate(-4deg); }
}
