:root {
  --ink: #14262b;
  --ink-deep: #0e1d22;
  --paper: #edf2ef;
  --mist: #d0e1de;
  --lichen: #d3e8a9;
  --muted: #425955;
  --line: #b8c9c2;
  --display: 'Bahnschrift', 'Aptos Display', 'Arial Narrow', system-ui, sans-serif;
  --text: 'Aptos', 'Segoe UI', sans-serif;
  --utility: 'Cascadia Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--text); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; max-width: 100%; }
section[id], article[id] { scroll-margin-top: 2rem; }
.shell { width: min(100% - 7rem, 82rem); margin-inline: auto; }
.skip { position: absolute; top: 1rem; left: 1rem; z-index: 1; padding: .65rem 1rem; background: var(--lichen); color: var(--ink); transform: translateY(-200%); }
.skip:focus { transform: none; }

.masthead, .hero, .site-footer { background: var(--ink); color: var(--paper); }
.masthead { border-bottom: 1px solid #38504f; }
.masthead-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.35rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; font: 700 1.4rem/1 var(--display); letter-spacing: -.035em; text-decoration: none; }
.mark { width: 2rem; height: 2rem; flex: 0 0 auto; }
nav { display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 3rem); }
nav a, .site-footer a:last-child { text-decoration: none; }
nav a:hover, .site-footer a:last-child:hover { text-decoration: underline; }

.hero { padding-block: clamp(2.6rem, 5.6vw, 5.5rem); }
.hero-inner { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(1.5rem, 4vw, 4.5rem); }
.label { font: 500 .875rem/1.4 var(--utility); letter-spacing: .045em; }
.hero-label { color: var(--mist); margin-bottom: 1.25rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; }
h1 { font-size: clamp(3rem, 5.95vw, 6.15rem); line-height: .99; letter-spacing: -.07em; }
h1 em { color: var(--lichen); font-style: normal; }
.hero-description { color: var(--mist); max-width: 30ch; margin-top: 1.55rem; font-size: clamp(1.08rem, 1.6vw, 1.36rem); line-height: 1.45; }
.cta { display: inline-flex; align-items: center; min-height: 3.1rem; margin-top: 1.8rem; padding: .65rem 1.25rem; background: var(--lichen); color: var(--ink-deep); font-weight: 700; text-decoration: none; transition: background .18s ease; }
.cta:hover { background: #e6f3cf; }
.cta:focus-visible { outline-color: var(--lichen); }
.hero-art { position: relative; padding: .45rem .45rem 0; border: 1px solid #57706c; background: var(--ink-deep); }
.hero-art img { width: 100%; height: auto; }
.hero-art figcaption { display: flex; justify-content: space-between; gap: .8rem; padding: .65rem .35rem; color: var(--mist); font: .875rem/1.25 var(--utility); }
.hero-art a { color: var(--paper); }

.games { padding-block: clamp(3.3rem, 6.5vw, 6.5rem); }
h2 { font-size: clamp(2.2rem, 4.1vw, 4.5rem); line-height: 1.02; letter-spacing: -.055em; }
.games h2 { margin-bottom: clamp(1.6rem, 3vw, 2.7rem); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.3rem, 5vw, 4.4rem) clamp(1.4rem, 3vw, 2.8rem); }
.game { min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 1.45rem; }
.game-media { background: var(--ink-deep); margin-bottom: 1.15rem; }
.game-media img { width: 100%; height: auto; }
.game-media figcaption { color: var(--mist); padding: .42rem .65rem; font: .8125rem/1.25 var(--utility); text-align: right; }
.game .label { color: var(--muted); margin-bottom: .25rem; }
h3 { font-size: clamp(1.95rem, 3.5vw, 3.25rem); line-height: 1.09; letter-spacing: -.045em; }
.game-description { max-width: 54ch; margin-top: .5rem; color: var(--muted); font-size: 1.05rem; }

.studio { background: var(--mist); border-top: 1px solid var(--line); }
.studio-inner { display: grid; grid-template-columns: .82fr 1.18fr; gap: 1.5rem clamp(1.5rem, 4vw, 4.5rem); align-items: start; padding-block: clamp(3rem, 7vw, 6rem); }
.studio-inner p { max-width: 47ch; font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.48; }
.contact-links { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin-top: 1rem; font-size: 1.1rem; font-style: normal; font-weight: 700; }
.footer-inner { min-height: 5rem; }
.site-footer a:last-child { color: var(--mist); }

@media (max-width: 1050px) {
  .shell { width: min(100% - 4rem, 82rem); }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 2.5rem); }
  .hero-inner, .studio-inner { grid-template-columns: 1fr; }
  .hero-inner { gap: 2.4rem; }
  h1 { font-size: clamp(3rem, 10vw, 5rem); }
}

@media (max-width: 520px) {
  .game-grid { grid-template-columns: 1fr; }
  .wordmark { font-size: 1.16rem; gap: .45rem; }
  .mark { width: 1.6rem; height: 1.6rem; }
  .masthead-inner { gap: .6rem 1rem; flex-wrap: wrap; padding-block: .75rem; }
  nav { gap: .75rem; font-size: .9375rem; }
}

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