@font-face {
  font-family: "Free Cheese";
  src: url("fonts/FreeCheese-Regular.woff2") format("woff2"),
       url("fonts/FreeCheese-Regular.woff") format("woff");
  font-display: swap;
}

:root {
  --bg: #fff3d6;
  --bg-alt: #ffe9bd;
  --card: #fffaf0;
  --text: #5b3a24;
  --muted: #7d5a3e;
  --leaf: #4aa35a;
  --leaf-dark: #2f7a3c;
  --soil: #8a5a36;
  --gold: #f5c542;
  --gold-dark: #8a6200;
  --line: #ecd3a4;
  --shadow: 0 6px 18px rgba(91, 58, 36, 0.14);
  --radius: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1812;
    --bg-alt: #2a2019;
    --card: #2f241c;
    --text: #f5e6cf;
    --muted: #cdb393;
    --leaf: #7ed36b;
    --leaf-dark: #9ee38b;
    --soil: #b98356;
    --gold: #f5c542;
    --gold-dark: #f5c542;
    --line: #4a3a2c;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

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

a { color: var(--leaf-dark); text-underline-offset: 3px; }
a:hover { color: var(--leaf); }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, .display {
  font-family: "Free Cheese", system-ui, sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--gold); color: #3b2616; padding: 8px 14px; border-radius: 10px; z-index: 10;
}
.skip:focus { left: 16px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand span { font-family: "Free Cheese", system-ui, sans-serif; text-transform: uppercase; font-size: 1.25rem; }
.site-nav { display: flex; gap: 18px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--leaf-dark); }
@media (max-width: 560px) { .site-nav { display: none; } }

/* Hero */
.hero { padding: 40px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); margin: 0 0 16px; color: var(--leaf-dark); }
.hero p { max-width: 36em; margin: 0 auto; font-size: 1.1rem; color: var(--muted); }
.hero .hills {
  margin: 32px auto 0; width: min(100%, 520px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

/* Sections */
section { padding: 56px 0; }
section h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0 0 12px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--gold); color: #3b2616; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}

.game { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.game-intro { display: grid; gap: 28px; align-items: center; }
@media (min-width: 800px) { .game-intro { grid-template-columns: 200px 1fr; gap: 40px; } }
.game-icon { width: 160px; margin: 0 auto; border-radius: 36px; box-shadow: var(--shadow); }
@media (min-width: 800px) { .game-icon { width: 200px; border-radius: 44px; } }
.game-intro h2 { color: var(--leaf-dark); }
.pitch { font-size: 1.1rem; margin: 0 0 16px; }

.features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.features li {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 44px;
  position: relative; box-shadow: 0 2px 6px rgba(91, 58, 36, 0.06);
}
.features li::before {
  content: ""; position: absolute; left: 14px; top: 16px; width: 18px; height: 18px;
  background: var(--leaf); border-radius: 0 60% 0 60%;
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 14px;
  background: var(--card); color: var(--muted); border: 2px dashed var(--line); font-weight: 600;
  cursor: not-allowed; font: inherit; font-size: 0.95rem;
}
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-dark); }
.store b { display: block; font-weight: 700; color: var(--text); }
.store-text { text-align: left; line-height: 1.2; }

.gallery {
  margin-top: 40px; display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }
.shot { margin: 0; }
.shot .frame {
  background: #3b2616; padding: 8px; border-radius: 22px; box-shadow: var(--shadow);
}
.shot img { border-radius: 14px; width: 100%; aspect-ratio: 16 / 9; image-rendering: pixelated; }
.shot figcaption { font-size: 0.9rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* About + contact */
.split { display: grid; gap: 24px; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
}
.panel h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
.panel p { margin: 0 0 12px; }
.mail {
  display: inline-block; margin-top: 4px; padding: 10px 18px; border-radius: 14px; background: var(--leaf-dark);
  color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 3px 0 #1f5a2a;
  word-break: break-all;
}
.mail:hover { color: #fff; filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { .mail, .mail:hover { color: #1f1812; } }

/* Footer */
.site-footer { padding: 32px 0 44px; font-size: 0.9rem; color: var(--muted); text-align: center; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--muted); }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.lost h1 { font-size: clamp(2rem, 8vw, 3.2rem); color: var(--leaf-dark); margin: 16px 0 8px; }
.lost svg { width: 120px; height: 120px; margin: 0 auto; }
