/* Dormroom Studios. Mobile-first; desktop at 760px. */
@font-face { font-family: Barlow; font-weight: 300; font-display: swap; src: url(/fonts/barlow-300-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(/fonts/barlow-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url(/fonts/barlow-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(/fonts/barlow-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Barlow; font-weight: 300; font-display: swap; src: url(/fonts/barlow-300-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(/fonts/barlow-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url(/fonts/barlow-500-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(/fonts/barlow-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-400-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500-latin.woff2) format("woff2"); }


:root {
  --ink: #08090b;
  --hairline: #1e1f24;
  --text: #f2efe8;
  --text-2: #b4b2ad;
  --muted: #8a8a86;
  --accent: #3ac6cb;
  --gutter: 20px;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.55 Barlow, system-ui, sans-serif; overflow-x: clip; }
h2, p { margin: 0; }
h2 { font-weight: 500; font-size: 15px; line-height: 1.2; color: var(--muted); }
.lede { font-weight: 300; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -.012em; color: var(--text); max-width: 16ch; }
p { color: var(--text-2); max-width: 620px; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 3px; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.meta { color: var(--muted); }
.inline-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.inline-links a { min-height: 44px; display: inline-flex; align-items: center; }

/* Header */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); }
.wordmark { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.wordmark, .top-nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.top-nav { display: flex; gap: 20px; font-size: 15px; }
.top-nav a:not(:last-child) { display: none; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 900px); overflow: hidden; display: flex; align-items: flex-end; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,11,.55) 0%, transparent 30%, transparent 50%, rgba(8,9,11,.92) 100%); pointer-events: none; }
.hero-bottom { position: relative; z-index: 1; width: 100%; padding: 0 var(--gutter) 24px; display: flex; flex-direction: column; gap: 18px; }
.hero-logo { width: 220px; }
.status { color: var(--text); }
.countdown { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 18px; border-top: 1px solid rgba(242,239,232,.25); }
.cell { display: flex; flex-direction: column; gap: 4px; }
.num { font-weight: 600; font-size: 64px; line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.unit { color: var(--text-2); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; font-weight: 500; font-size: 16px; text-decoration: none; flex: 1 1 auto; }
.btn-light { background: var(--text); color: var(--ink); }
.btn-light:hover { background: var(--accent); color: var(--ink); }
.btn-outline { border: 1px solid rgba(242,239,232,.4); }
.btn-outline:hover { border-color: var(--accent); }

/* Sections */
.sec { padding: 56px var(--gutter); border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 28px; }
.sec-head, .sec-body { display: flex; flex-direction: column; gap: 14px; }
.sec-body { gap: 18px; }
.sec.sec-game { padding-left: 0; padding-right: 0; gap: 28px; }
/* The poster is artwork: never cropped, never taller than the smallest viewport. */
.panel img { width: min(100%, calc(100svh * 16 / 9)); margin-inline: auto; aspect-ratio: 16 / 9; }

/* Snap the poster into view, and snap it fully out on either side. Proximity: only near these points. */
html { scroll-snap-type: y proximity; }
.hero { scroll-snap-align: start; }
#about { scroll-snap-align: end; }
.panel { scroll-snap-align: center; }
.game-text { scroll-snap-align: start; }
.game-text { padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 28px; }
.facts { margin: 0; display: flex; flex-direction: column; max-width: 620px; }
.facts div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--hairline); }
.facts div:last-child { border-bottom: 1px solid var(--hairline); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.email { display: inline-block; align-self: flex-start; font-weight: 300; font-size: clamp(22px, 4.2vw, 40px); line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; text-decoration-thickness: 1px; }

.foot { padding: 24px var(--gutter) 32px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 14px; }

/* 404 */
.missing { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; }
.missing .hero-art { opacity: .25; filter: grayscale(.6); }
.missing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8,9,11,.92) 100%); pointer-events: none; }
.missing-text { position: relative; z-index: 1; padding: 0 var(--gutter) 32px; display: flex; flex-direction: column; gap: 12px; }
.code { margin: 0; font-weight: 300; font-size: clamp(44px, 10vw, 96px); line-height: 1; letter-spacing: -.02em; color: var(--text); }
.missing-line { font-size: 22px; color: var(--text); }

@media (min-width: 760px) {
  :root { --gutter: 40px; }
  .top { padding: 20px var(--gutter); }
  .top-nav { gap: 28px; }
  .top-nav a:not(:last-child) { display: inline-flex; }
  .hero-art { object-position: 50% 50%; }
  body { font-size: 18px; }
  h2 { font-size: 32px; }
  .hero-bottom { padding-bottom: 40px; gap: 22px; }
  .hero-logo { width: 360px; }
  .countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 24px; }
  .num { font-size: clamp(72px, 7.5vw, 112px); }
  .btn { flex: 0 0 auto; }
  .sec { padding: 96px var(--gutter); }
  .sec.sec-game { gap: 40px; }
  .sec, .game-text { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .sec-body { gap: 22px; }
  .sec.sec-game { display: flex; }
  .missing-text { padding-bottom: 48px; }
}
