@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #F9F8F6;
  --surface: #F1EFEA;
  --ink: #141413;
  --mute: #5F5C56;
  --rule: #E5E5E5;
  --rule-strong: #D9D6CF;
  --accent: #B8431C;
  --on-dark: #F9F8F6;
  --mute-on-dark: #A8A49C;
  --rule-on-dark: #2E2D2A;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 56px);
  --section: clamp(96px, 9vw, 140px);
  --seam: clamp(48px, 4.5vw, 64px);
  --max: 1520px;
  --gutter: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, figure, address { margin: 0; }
ol { padding: 0; list-style: none; }
address { font-style: normal; }
p, figcaption { text-wrap: pretty; }
h1, h2, h3, .pitch, .lede, .meta, .mechanics li, .foot span { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }

h1, h2, .boss h3, .pitch, .mail {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
}
h1 em, h2 em { font-style: italic; color: var(--accent); }
.kicker, .meta, .index, figcaption, .mechanics span {
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.nav nav { display: flex; gap: clamp(4px, 2vw, 24px); }
.nav nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px;
  text-decoration: none; font-size: 0.9375rem; color: var(--mute);
}
.nav nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); align-items: center;
  column-gap: clamp(32px, 5vw, 96px);
  padding-block: clamp(72px, 8vw, 120px) var(--seam);
}
.hero h1 { font-size: clamp(min(3.5rem, 14vw), 7.6vw, 8.75rem); line-height: 0.94; margin-top: 28px; }
.lede { font-size: 1.125rem; color: var(--mute); max-width: 32em; margin-top: clamp(32px, 4vw, 56px); }
.hero-mark { justify-self: end; width: min(100%, 400px); transform: rotate(-6deg); }

/* Games */
.games { padding-top: var(--seam); border-top: 1px solid var(--rule); }
.section-head h2, .studio h2 { font-size: clamp(2.75rem, 6.5vw, 5.5rem); line-height: 1; margin-top: 20px; }
.section-head h2 em { display: block; }
.section-head { padding-bottom: clamp(48px, 6vw, 80px); }
.bleed { width: 100%; max-height: 78vh; object-fit: cover; object-position: center 22%; }
.index { color: var(--accent); }
.meta { margin-top: 18px; }
.pitch { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.1; }
.mechanics { margin-top: 32px; border-bottom: 1px solid var(--rule); }
.mechanics li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.mechanics span { color: var(--ink); padding-top: 0.2em; }

.game-body {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(48px, 6vw, 80px);
}
.heroage h3 img { width: min(100%, 400px); margin-top: 20px; }

.bento {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-rows: 1fr 1fr;
  gap: 16px; padding-bottom: var(--section);
}
.bento figure { border: 1px solid var(--rule); background: var(--surface); display: flex; flex-direction: column; }
.bento img { width: 100%; flex: 1 1 0; height: 0; min-height: 0; object-fit: cover; }
.bento .big { grid-row: span 2; }
.bento .big img { flex: none; height: auto; aspect-ratio: 16 / 9; }
figcaption { padding: 10px 14px; }

.boss { background: var(--ink); color: var(--on-dark); padding-block: var(--section); }
.boss-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.boss h3 { font-size: clamp(3.25rem, 6.5vw, 5.5rem); line-height: 0.95; margin-top: 14px; }
.boss .meta, .boss .index, .boss figcaption { color: var(--mute-on-dark); }
.boss .pitch { margin-top: 40px; font-style: italic; }
.boss .mechanics, .boss .mechanics li { border-color: var(--rule-on-dark); }
.boss .mechanics li { grid-template-columns: 5.5rem 1fr; color: var(--mute-on-dark); }
.boss .mechanics span { color: var(--on-dark); }
.boss figure { border: 1px solid var(--rule-on-dark); display: flex; flex-direction: column; }
.boss figure img { width: 100%; flex: 1 1 auto; min-height: 0; object-fit: cover; }
.boss-shots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.boss-shots figure { grid-column: span 2; }
.boss-shots .wide { grid-column: span 3; }

/* Studio */
.studio { padding-block: var(--section); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); }
.prose { padding-top: 28px; max-width: 34em; }
.prose p { font-size: 1.125rem; padding: 18px 0; border-top: 1px solid var(--rule); }
.prose p:last-child { border-bottom: 1px solid var(--rule); }

/* Contact */
.contact { border-top: 1px solid var(--rule); background: var(--surface); padding-block: var(--section); }
.contact h2, .mail { font-size: clamp(2.25rem, 6.4vw, 5.5rem); line-height: 1.02; }
.contact h2 { margin-top: 20px; }
.mail a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.12em; overflow-wrap: anywhere; }
.mail a:hover { color: var(--ink); }
.contact address { margin-top: 40px; color: var(--mute); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 28px var(--gutter); color: var(--mute); font-size: 0.8125rem;
  border-top: 1px solid var(--rule);
}
.foot a { display: inline-block; padding: 8px 0; margin-left: 12px; color: var(--ink); }

/* Text pages: privacy, 404 */
.page { max-width: 760px; padding-block: clamp(72px, 8vw, 120px) var(--section); }
.page h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; margin-top: 20px; }
.page h2 { font-size: 2rem; line-height: 1.1; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); }
.page p { margin-top: 16px; font-size: 1.0625rem; }
.page .lede { margin-top: 28px; }
.page a { color: var(--accent); }

@media (max-width: 1100px) {
  .boss-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero, .game-body, .boss-grid, .studio-grid { grid-template-columns: 1fr; }
  .hero-mark { justify-self: start; order: -1; width: 140px; margin-bottom: 32px; }
  .bento, .boss-shots { grid-template-columns: 1fr; grid-template-rows: none; }
  .bento .big { grid-row: auto; }
  .bento img { flex: none; height: auto; aspect-ratio: 16 / 9; }
  .boss-shots figure, .boss-shots .wide { grid-column: auto; }
  .prose { padding-top: 0; }
}
@media (max-width: 620px) {
  .bleed { aspect-ratio: 3 / 2; object-position: 42% 20%; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .mechanics li, .boss .mechanics li { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
