/* Off the Clock: shared brand styles for the small sites (mods., local.). Colors from Branding/BRAND.md.
   The main site (Portfolio/site/style.css) uses the same tokens. Mobile-first; plain, large, readable text. */
:root {
  --ink: #161224; --cream: #faf2de; --orange: #ff8c28; --yellow: #ffd83c; --cyan: #50e6ff;
  --purple: #6432aa; --navy: #141840; --dark: #201a32;
  --bg: var(--navy); --surface: #1c1d4a; --surface-2: var(--dark); --line: #34307a;
  --text: var(--cream); --muted: #d3cbe3;
  --pixel-font: "Press Start 2P", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --body-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px; --max: 1120px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.65 var(--body-font); }
img { max-width: 100%; height: auto; display: block; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2 { font-family: var(--pixel-font); color: var(--yellow); font-weight: 400; line-height: 1.55; text-shadow: 3px 3px 0 var(--purple); margin: 0 0 .8em; overflow-wrap: break-word; }
h1 { font-size: clamp(1.05rem, 4.2vw, 1.7rem); }
h2 { font-size: clamp(.92rem, 3vw, 1.2rem); }
h3 { font-size: 1.2rem; line-height: 1.35; margin: 0 0 .45em; color: var(--cream); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 12px; z-index: 10; font-weight: 700; }
.skip:focus { left: 8px; }

.site-header { background: var(--ink); border-bottom: 4px solid var(--purple); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--yellow); text-decoration: none; font-family: var(--pixel-font); font-size: .78rem; padding: 4px 0; }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.site-nav a { color: var(--cream); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 4px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--yellow); border-bottom-color: var(--orange); }

.btn { display: inline-block; padding: 12px 20px; border-radius: 6px; font-weight: 700; text-decoration: none; line-height: 1.3; font-size: 1rem;
  background: var(--orange); color: var(--ink); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--purple); font-family: inherit; cursor: pointer; }
.btn:hover { background: var(--yellow); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--cream); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero { background: var(--navy); }
.hero-inner { display: grid; gap: 8px; padding-top: 32px; padding-bottom: 36px; }
.hero-mascot { width: 160px; height: 160px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.stripes { height: 16px; background: linear-gradient(#3c2068 0 25%, #542480 25% 50%, #7a2c98 50% 75%, #a83a9e 75%); }
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1fr 260px; align-items: center; gap: 32px; padding-top: 52px; padding-bottom: 56px; }
  .hero-mascot { width: 260px; height: 260px; order: 2; }
}

.section { padding: 48px 0; scroll-margin-top: 20px; }
.section.alt { background: var(--surface-2); }
.section-intro { color: var(--muted); max-width: 46em; margin-bottom: 24px; }
.note { background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--muted); max-width: 46em; }
.note p:last-child { margin: 0; }
.note strong { color: var(--cream); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card .kicker { color: var(--cyan); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0 0 .6em; }
.card ul { padding-left: 1.2em; margin: .4em 0 0; color: var(--muted); }
.card li { margin-bottom: .35em; }

.proof { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.proof li { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 6px 12px; font-size: .95rem; }
.proof strong { color: var(--yellow); }
.footnote { color: var(--muted); font-size: .9rem; margin: 8px 0 0; }
.who { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.who li { background: var(--ink); border: 1px solid var(--purple); border-radius: 999px; padding: 4px 14px; font-size: .95rem; }
.sr-only-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.steps { padding-left: 1.3em; max-width: 46em; }
.steps li { margin-bottom: .6em; }

/* Mods site: one block per game */
.game { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); margin: 0 0 22px; overflow: hidden; scroll-margin-top: 16px; }
.game-head { display: grid; gap: 0; }
.game-head img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-head > div { padding: 16px 18px 4px; }
.game-head h2 { margin-bottom: .5em; }
.game-head p { color: var(--muted); }
@media (min-width: 820px) { .game-head { grid-template-columns: 320px 1fr; align-items: center; } .game-head img { height: 100%; } }
.mod-list { list-style: none; margin: 0; padding: 4px 18px 16px; display: grid; gap: 4px 28px; }
@media (min-width: 820px) { .mod-list { grid-template-columns: repeat(2, 1fr); } }
.mod-list li { border-bottom: 1px dashed var(--line); padding: 10px 0; }
.mod-list a { font-weight: 700; }
.mod-list p { color: var(--muted); margin: 2px 0 0; font-size: .97rem; }
.mod-list .where { color: var(--cyan); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.jump { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; background: var(--ink); border: 2px solid var(--purple); color: var(--cream); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 600; }
.jump a:hover { border-color: var(--yellow); color: var(--yellow); }

/* Contact form */
.form { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 18px; max-width: 40em; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field .hint { color: var(--muted); font-size: .95rem; margin: 0; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--cream); border: 3px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%; min-height: 48px; }
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); outline: 3px solid var(--cyan); outline-offset: 2px; }
.form .btn { justify-self: start; font-size: 1.05rem; }
.small { color: var(--muted); font-size: .95rem; margin: 0; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.msg-page { padding: 56px 16px; max-width: 44em; }
.msg-page img { width: 128px; height: 128px; margin-bottom: 16px; }

.site-footer { background: var(--ink); border-top: 4px solid var(--purple); padding: 28px 0; color: var(--muted); font-size: .95rem; }
.site-footer p { margin: 0 0 .6em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; padding: 0; margin: 0 0 12px; }
.footer-links a { color: var(--cream); font-weight: 600; }
