:root {
  --bg: #14151A;
  --panel: #212229;
  --field: #14151A;
  --line: #35363F;
  --text: #F2EFE9;
  --muted: #B4B2AD;
  --amber: #E8A33D;
  --error: #FFB4A8;
  --head: 104px;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(8px, 1.2vw, 14px);
  --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 1.125rem/1.6 var(--sans);
}
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  padding: 8px 14px; background: var(--amber); color: var(--bg);
}
.skip:focus { top: 12px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--head); padding: 0 clamp(16px, 5vw, 80px);
  background: var(--bg);
}
.brand img { width: auto; height: 68px; }
.site-nav { display: flex; gap: clamp(32px, 4.5vw, 64px); }
.site-nav a { font-size: 1rem; font-weight: 400; letter-spacing: 0.14em; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--amber); }
.menu-btn {
  display: none;
  width: 48px; height: 48px; margin-right: -8px; padding: 12px 8px;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.menu-btn span { display: block; height: 2px; background: currentColor; }
.menu-btn span + span { margin-top: 8px; }

/* Full-width banner: fills the window below the header without losing the artwork's content */
.hero {
  position: relative;
  display: block;
  height: clamp(38vw, calc(100vh - var(--head)), 56.15vw);
  height: clamp(38vw, calc(100svh - var(--head)), 56.15vw);
  overflow: hidden;
}
.hero picture { display: block; height: 100%; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::before, .hero::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 1;
  height: 1.05vw;
  background: url("../images/hero-stripe.webp") center / 100% 100% no-repeat;
}
.hero::before { top: 0; }
.hero::after { bottom: 0; }

.statement { padding: clamp(56px, 9vw, 120px) clamp(24px, 8vw, 112px); text-align: center; }
.statement h1 { max-width: 18ch; margin: 0 auto; font-size: clamp(2rem, 5vw, 3.75rem); }

/* Panels sit in a tight grid, like posters on a wall */
.wall { display: grid; gap: var(--gap); padding: 0 var(--gutter); }
.page { padding-top: clamp(24px, 4vw, 48px); }
.page-title { margin-bottom: clamp(12px, 2vw, 24px); font-size: clamp(2.5rem, 6vw, 4rem); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.panel { padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px); background: var(--panel); }
.panel h2 { margin-bottom: 16px; font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
.panel p { max-width: 52ch; }
.panel p + p { margin-top: 12px; }
.panel .status { margin-bottom: 8px; color: var(--amber); font-size: 1.25rem; font-weight: 400; }
.soft { color: var(--muted); }
.email { color: var(--text); font-weight: 400; text-underline-offset: 4px; overflow-wrap: anywhere; }
.email:hover { color: var(--amber); }

.btn {
  display: inline-block;
  padding: 14px 24px;
  border: 0; border-radius: 4px;
  background: var(--amber); color: var(--bg);
  font: 600 1.0625rem/1.3 var(--sans);
  text-align: left; text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--text); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.panel .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.text-link { font-weight: 400; text-underline-offset: 4px; }
.text-link:hover { color: var(--amber); }

/* Games page */
.game { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--gap); }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game-art picture { display: block; height: 100%; }
.game .panel { display: flex; flex-direction: column; justify-content: center; }
.tester { scroll-margin-top: calc(var(--head) + 16px); }
.tester h2 { margin-bottom: 24px; max-width: 24ch; }
.tester-form { max-width: 520px; }
.field { margin-top: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 400; }
.field input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #6A6B76; border-radius: 4px;
  background: var(--field); color: var(--text);
  font: 400 1.0625rem/1.4 var(--sans);
}
.field input:focus { border-color: var(--amber); outline: 2px solid var(--amber); outline-offset: 0; }
.botcheck { position: absolute; left: -9999px; }
.panel .note { margin-top: 16px; color: var(--muted); font-size: 1rem; }
.tester-form .btn { margin-top: 18px; }
.panel .form-error { margin-top: 16px; color: var(--error); font-weight: 400; }
.thanks { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.25; outline: none; }
.more { padding: clamp(32px, 5vw, 56px) 0 0; color: var(--muted); font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 400; text-align: center; }

/* About page */
.about { padding-block: clamp(40px, 7vw, 88px); }
.about h1 { max-width: 16ch; font-size: clamp(2.25rem, 6vw, 4rem); }
.about .lead { margin: 18px 0 32px; color: var(--amber); font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 400; line-height: 1.3; }
.about p + p:not(.lead) { margin-top: 12px; }

/* Footer */
footer { margin-top: clamp(48px, 8vw, 96px); }
.foot-main { padding: clamp(48px, 7vw, 88px) var(--gutter); background: var(--panel); }
.foot-inner {
  display: flex; align-items: center; justify-content: center; gap: clamp(48px, 10vw, 160px);
  max-width: 1120px; margin: 0 auto;
}
.foot-logo { flex: none; }
.foot-logo img { width: auto; height: 72px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 32px clamp(40px, 6vw, 88px); }
footer h2 { margin-bottom: 12px; font-size: 1rem; letter-spacing: 0.16em; text-transform: uppercase; }
footer ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
footer li + li { margin-top: 4px; }
footer li a { font-size: 1rem; text-decoration: none; overflow-wrap: anywhere; }
footer li a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { padding: 28px var(--gutter); color: var(--muted); font-size: 1rem; text-align: center; }

@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; }
  .foot-inner { gap: 48px; }
  .foot-cols { column-gap: 32px; }
  .game-art img { height: auto; }
}

@media (max-width: 760px) {
  :root { --head: 72px; }
  .brand img { height: 50px; }
  .menu-btn { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; font-size: 1.125rem; }
  .hero { height: auto; }
  .hero picture { height: auto; }
  .hero img { height: auto; }
  .hero::before, .hero::after { display: none; }
  .pair { grid-template-columns: 1fr; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 36px; }
  .foot-logo img { height: 60px; }
  .foot-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
