/* Mossvale's site, in the game's colours: dark wood, cream text, gold for anything worth noticing, and
   the pixel font for names and headings. */
@font-face { font-family: 'Pixelify Sans'; src: url('/assets/fonts/pixelify-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pixelify Sans'; src: url('/assets/fonts/pixelify-sans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --board: #1C1A17; --panel: #2B2620; --edge: #6B5A44; --slot: #1F1B16; --line: #3A352C;
  --gold: #F2C14E; --cream: #F4EEDC; --grey: #C9BFA8; --green: #8CCB5E; --red: #E8735E;
  --pixel: 'Pixelify Sans', system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
/* The pixel font's ligatures turn "fi" into one odd letter. */
html { background: var(--board); color: var(--cream); font-family: var(--text); font-variant-ligatures: none; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--gold); }
a:hover { color: #FFD87A; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.top { padding: 16px 20px; max-width: 1120px; width: 100%; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--pixel); font-weight: 700; font-size: 24px; color: var(--gold); text-decoration: none; }
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 8px 20px 40px; }

.hero { display: grid; gap: 28px; align-items: center; }
h1 { margin: 0; font-family: var(--pixel); font-weight: 700; font-size: clamp(34px, 7.4vw, 56px); line-height: 1.06; letter-spacing: -0.5px; color: var(--cream); }
.lede { margin: 14px 0 0; font-size: 18px; line-height: 1.5; color: var(--grey); max-width: 34em; }

.join { margin-top: 22px; padding: 16px; border: 2px solid var(--edge); border-radius: 14px; background: var(--panel); }
.join label { display: block; font-family: var(--pixel); font-size: 18px; color: var(--gold); margin-bottom: 10px; }
.join .row { display: flex; flex-wrap: wrap; gap: 10px; }
.join input[type=email] { flex: 1 1 220px; min-width: 0; height: 50px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--edge); background: var(--slot); color: var(--cream); font: 17px var(--text); }
.join input[type=email]::placeholder { color: #8A8170; }
.join input[aria-invalid=true] { border-color: var(--red); }
.join button, .button { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--gold); color: var(--board); font: 700 17px var(--text); text-decoration: none; cursor: pointer; }
.join button:hover, .button:hover { background: #FFD87A; color: var(--board); }
.play { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.play .button { height: 56px; padding: 0 30px; font-size: 19px; }
.play .small { margin: 0; }
.error { margin: 10px 0 0; color: var(--red); font-size: 15px; }
.small { margin: 10px 0 0; font-size: 13px; color: var(--grey); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.clip { margin: 0; }
.clip video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; border: 2px solid var(--edge); background: var(--slot); object-fit: cover; }
.clip figcaption { margin-top: 8px; font-size: 13px; color: var(--grey); }

.features { display: grid; gap: 14px; margin-top: 40px; }
.features article { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #24211C; }
.features img { grid-row: span 2; width: 64px; height: 64px; object-fit: contain; }
.features h2 { margin: 2px 0 4px; font-family: var(--pixel); font-size: 20px; color: var(--cream); }
.features p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--grey); }

footer { width: 100%; max-width: 1120px; margin: 0 auto; padding: 18px 20px 28px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: 13px; color: var(--grey); border-top: 1px solid var(--line); }

.note { max-width: 560px; text-align: center; padding-top: 48px; }
.note .badge { width: 96px; height: 96px; }
.note p { font-size: 17px; line-height: 1.55; color: var(--grey); }
.prose { max-width: 680px; }
.prose h1 { font-size: 40px; }
.prose h2 { margin: 28px 0 6px; font-family: var(--pixel); font-size: 22px; color: var(--gold); }
.prose p { font-size: 16px; line-height: 1.6; color: var(--grey); }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.15fr; gap: 44px; padding-top: 24px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .features article { grid-template-columns: 1fr; }
  .features img { grid-row: auto; margin-bottom: 8px; }
}
