/* Colours are the game's Ember palette. */
:root {
  --night: #11172A;
  --window: #1A2136;
  --raised: #2A334F;
  --primary: #F28C1E;
  --accent: #F2B31B;
  --text: #FFF3E0;
  --muted: #BDB6AA;
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(56px, 8vw, 96px);
}

@font-face { font-family: 'Eczar'; font-weight: 800; font-display: swap; src: url('/fonts/eczar-800.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url('/fonts/hanken-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap; src: url('/fonts/hanken-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 700; font-display: swap; src: url('/fonts/hanken-grotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'Lilita One'; font-weight: 400; font-display: swap; src: url('/fonts/lilita-one-400.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--night); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a { color: var(--primary); }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

img { display: block; width: 100%; height: auto; }

h1, h2, .h3-serif { font-family: 'Eczar', Georgia, serif; font-weight: 800; }
h1, h2, h3, p { margin: 0; }

.skip {
  position: absolute;
  left: -9999px;
  background: var(--accent);
  color: var(--night);
  padding: 10px 16px;
  font-weight: 700;
}
.skip:focus { left: 8px; top: 8px; z-index: 1; color: var(--night); }

/* Header and footer */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 24px var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: 'Lilita One', sans-serif;
  font-size: 26px;
}
.brand svg { flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 500; }
.site-nav a { color: var(--text); text-decoration: none; padding: 10px 0; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current] { color: var(--accent); }

.site-footer { padding: 32px var(--gutter); border-top: 1px solid var(--raised); font-size: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { padding: 4px 0; }

/* Shared pieces */
.button {
  display: inline-block;
  background: var(--primary);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 4px;
}
.button:hover { background: var(--accent); color: var(--night); }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.panel { background: var(--window); }
.band { padding: var(--section) var(--gutter); }
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 88px); }
.split > * { flex: 1 1 420px; min-width: 0; }
.picture { border-radius: 6px; }
.tagline { font-size: 22px; line-height: 1.45; max-width: 24em; }
.section-title { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 16px; margin-top: 32px; }
@media (min-width: 700px) { .grid-heroes { grid-template-columns: repeat(4, 1fr); gap: 28px 20px; } }

/* Home */
.home-hero { align-items: flex-end; padding: 24px var(--gutter) 0; }
.home-hero .words { padding-bottom: clamp(24px, 6vw, 96px); }
.home-hero h1 { font-size: clamp(48px, 7vw, 92px); line-height: 1.02; text-wrap: balance; }
.home-hero .actions { margin-top: 32px; }
.cave-glow { flex-basis: 380px; display: flex; justify-content: center; filter: drop-shadow(0 0 48px rgba(242, 140, 30, 0.38)); }
.cave {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  clip-path: polygon(0.0% 100.0%, 0.7% 93.4%, 1.6% 87.4%, 2.7% 81.7%, 4.0% 76.2%, 5.4% 70.9%, 6.6% 66.3%, 7.7% 61.7%, 8.8% 57.1%, 10.0% 52.3%, 11.4% 47.5%, 13.9% 44.9%, 15.6% 37.6%, 18.0% 30.7%, 21.0% 24.2%, 24.6% 18.2%, 28.7% 12.7%, 31.7% 10.1%, 35.4% 6.6%, 39.2% 3.8%, 43.2% 1.7%, 47.3% 0.4%, 51.5% 0.0%, 56.1% 0.4%, 60.5% 1.5%, 64.7% 3.3%, 68.6% 5.8%, 72.3% 8.9%, 73.8% 12.7%, 77.1% 16.8%, 80.2% 21.7%, 82.9% 27.1%, 85.2% 33.0%, 87.1% 39.2%, 85.6% 44.3%, 87.7% 49.6%, 89.7% 55.0%, 91.7% 60.5%, 93.5% 66.2%, 95.0% 72.2%, 96.2% 77.8%, 97.4% 83.3%, 98.4% 88.8%, 99.3% 94.4%, 100.0% 100.0%);
}
.eyebrow { color: var(--primary); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; }
.home-game .split { gap: clamp(32px, 5vw, 72px); margin-top: 16px; align-items: flex-start; }
.home-game h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.home-game .tagline { margin-top: 20px; }
.home-game .button { margin-top: 24px; }

/* The Mighty Few */
.game-hero { align-items: center; padding: 24px var(--gutter) var(--section); }
.game-logo { max-width: 520px; }
.game-hero .tagline { margin-top: 28px; }
.game-hero .actions { margin-top: 24px; }
.hero-name { font-family: 'Eczar', Georgia, serif; font-weight: 800; font-size: 24px; line-height: 1.2; margin-top: 12px; }
.map-name { font-family: 'Eczar', Georgia, serif; font-weight: 800; font-size: 28px; line-height: 1.2; margin-top: 12px; }
.maps { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; max-width: 900px; }
.army-line { margin-top: 12px; max-width: 32em; font-size: 20px; }
.unit-name { margin-top: 8px; font-weight: 700; }

/* Text pages */
.text-page { max-width: 760px; padding: 32px var(--gutter) var(--section); }
.text-page h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.05; }
.lead { margin-top: 24px; font-size: 20px; }
.contact { margin-top: 28px; padding: clamp(16px, 5vw, 24px); background: var(--window); border-radius: 6px; }
.contact > p:first-child { font-size: 20px; }
.contact .button { margin-top: 16px; padding: 14px clamp(12px, 4vw, 20px); font-size: clamp(14px, 4.3vw, 18px); white-space: nowrap; }
.contact .muted { margin-top: 16px; }
.questions { margin-top: 48px; font-size: 32px; line-height: 1.2; }
.question { margin-top: 28px; font-size: 20px; line-height: 1.3; }
.answer { margin-top: 6px; }
.not-found-actions { margin-top: 32px; }
