/* Local fonts and a continuous deck layout. Keep Safari 14.0 fallbacks. */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/Barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(fonts/Barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/Barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url(fonts/ChakraPetch-500.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url(fonts/ChakraPetch-600.woff2) format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url(fonts/ChakraPetch-700.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/IBMPlexMono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/IBMPlexMono-500.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --rail: #070807;
  --ink: #121512;
  --panel: #1b1f1b;
  --line: #303830;
  --fg: #e8ece6;
  --muted: #a8b0a5;
  --u: #41b21e;
  --on-u: #070807;
  --f-head: "Chakra Petch", "Barlow", sans-serif;
  --f-body: "Barlow", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, monospace;
  --rail-w: 0px;
  --bar-h: 60px;
  --pad-y: clamp(56px, 6.2vw, 104px);
  --pad-x: clamp(22px, 5.5vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--fg); font: 400 18px/1.5 var(--f-body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus { outline: 2px solid var(--u); outline-offset: 4px; }
a:focus:not(:focus-visible) { outline: none; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: 700; }
p { margin: 0; }
main:focus { outline: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 30; padding: 12px 18px; background: var(--u); color: var(--on-u); }
.skip-link:focus { top: 8px; }

/* The strip scrolls independently on phones. The logo remains reachable. */
.rail {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; height: var(--bar-h);
  background: var(--rail); border-bottom: 1px solid var(--line);
  padding-left: max(8px, env(safe-area-inset-left, 0px));
}
.rail .mark { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: 6px; }
.rail .mark img { width: 32px; height: 32px; }
.rail ol {
  position: relative; min-width: 0; flex: 1; list-style: none; margin: 0; padding: 0 20px 0 0;
  display: flex; align-items: center; height: 100%; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.rail ol::-webkit-scrollbar { display: none; }
.rail li { flex: none; margin-right: 2px; }
.rail li a {
  display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding: 12px 13px; text-decoration: none; white-space: nowrap;
  font: 500 12px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.rail li a:hover { color: var(--fg); }
.rail li.on a { color: var(--on-u); background: var(--u); }
.rail li a:focus { outline-offset: -3px; }
.rail::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 18px; pointer-events: none; background: linear-gradient(90deg, rgba(7, 8, 7, 0), var(--rail)); }
.rail.flood { border-bottom-color: var(--u); }

@media (min-width: 1024px) {
  :root { --rail-w: 80px; --bar-h: 0px; }
  .rail {
    position: fixed; top: 0; bottom: 0; left: 0; width: var(--rail-w); height: auto;
    flex-direction: column; padding: 28px 0; border-bottom: 0; border-right: 1px solid #202620;
  }
  .rail .mark { width: 48px; height: 48px; margin: 0; }
  .rail .mark img { width: 48px; height: 48px; }
  .rail ol { flex-direction: column; justify-content: space-around; width: 100%; height: auto; overflow-x: hidden; overflow-y: auto; padding: 4px 0; margin-top: 24px; }
  .rail li { margin: 0; }
  .rail li a { writing-mode: vertical-rl; -webkit-transform: rotate(180deg); transform: rotate(180deg); padding: 12px 14px; font-size: 12px; letter-spacing: .1em; }
  .rail::after { display: none; }
  .rail.flood { border-right-color: var(--u); }
  main { margin-left: var(--rail-w); }
}
@media (min-width: 1024px) and (max-height: 700px) {
  .rail { padding: 16px 0; }
  .rail ol { margin-top: 12px; }
  .rail li a { padding: 8px 14px; font-size: 11px; letter-spacing: .04em; }
}

/* Main games fill a desktop viewport; shorter sections connect the chapters. */
.slide {
  position: relative; padding: var(--pad-y) var(--pad-x);
  padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px));
  border-top: 1px solid #252c25;
  scroll-margin-top: var(--bar-h); scroll-snap-margin-top: var(--bar-h);
}
.wrap { width: 100%; max-width: 1440px; position: relative; margin: 0 auto; }
.h-title { font: 700 clamp(34px, 3.8vw, 64px)/1.08 var(--f-head); letter-spacing: -.025em; }
.h-title em { font-style: normal; color: var(--u); }
.lede { font: 400 clamp(19px, 1.55vw, 26px)/1.5 var(--f-body); color: var(--muted); max-width: 900px; margin-top: 22px; }
.label, .release { font: 500 12px/1.6 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--u); }
.release { margin-top: 16px; }

/* Notched button drawn as 2 clipped layers: ::before is the 2px ring (shown on hover and focus), ::after the fill,
   inset 2px with its notch offset 2px along the cut, so the ring follows the cut corner instead of being sheared off. */
.btn {
  position: relative; z-index: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  text-decoration: none; padding: 14px 22px; background: none;
  font: 700 16px/1.25 var(--f-head); letter-spacing: .06em; text-transform: uppercase;
}
.btn::before, .btn::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background: var(--btn-fill);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 10px) 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 10px) 100%, 0 100%);
}
.btn::after {
  top: 2px; right: 2px; bottom: 2px; left: 2px;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14.6px), calc(100% - 9.1px) 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14.6px), calc(100% - 9.1px) 100%, 0 100%);
}
.btn:hover::before, .btn:focus::before { background: var(--fg); }
.btn:focus { outline: none; }
.btn.go { --btn-fill: var(--u); color: var(--on-u); }
.link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0;
  text-decoration: underline; text-decoration-color: var(--u); text-decoration-thickness: 2px; text-underline-offset: 7px;
  font: 600 18px/1.4 var(--f-head);
}
.link:hover { color: var(--u); }
.actions { display: flex; flex-wrap: wrap; align-items: center; margin-top: 24px; margin-bottom: -8px; }
.actions > * { margin: 0 24px 8px 0; }

/* Padding supplies the ratio on Safari 14.0, including before images load. */
.ratio { position: relative; width: 100%; padding-top: 56.25%; background: var(--panel); overflow: hidden; }
.ratio.capsule { padding-top: 46.74%; }
.ratio > img, .ratio > video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

/* Brand PNGs are displayed without filters or other alterations. */
.slide.cover { padding: 0; background: #0a0806; border-top: 0; }
.cover .art { position: relative; height: clamp(210px, 58vw, 440px); }
.cover .art picture { display: block; height: 100%; }
.cover .art img { width: 100%; height: 100%; object-fit: cover; }
.cover .art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(0deg, #0a0806, rgba(10, 8, 6, 0)); }
.cover .copy { position: relative; z-index: 1; padding: 8px var(--pad-x) 48px; }
.cover .logo { width: 580px; }
.cover .tag { font: 500 clamp(22px, 1.8vw, 30px)/1.35 var(--f-body); margin-top: 22px; max-width: 760px; }
.cover .status { margin-top: 16px; font-size: 11px; }
.cover .studio { margin-top: 28px; }
.cover .studio img { width: 136px; }
@media (min-width: 760px) {
  .slide.cover { display: flex; flex-direction: column; justify-content: flex-end; min-height: 760px; min-height: calc(100vh - var(--bar-h)); }
  .cover .art { position: absolute; top: 0; right: 0; bottom: 0; left: 0; height: auto; }
  .cover .art img { object-position: 70% 50%; }
  .cover .art::after { top: 0; height: auto; background: linear-gradient(90deg, #0a0806 8%, rgba(10, 8, 6, .15) 75%), linear-gradient(0deg, #0a0806 3%, rgba(10, 8, 6, 0) 65%); }
  .cover .copy { padding: 140px var(--pad-x) var(--pad-y); }
  .cover .status { font-size: 12px; }
  .cover .studio { margin-top: 40px; }
  .cover .studio img { width: 160px; }
}
@media (max-width: 479px) {
  .cover .actions { display: grid; grid-template-columns: 1fr; grid-gap: 4px; justify-items: start; }
  .cover .actions > * { margin: 0; }
  .cover .actions .btn { width: 100%; }
}

/* Studio statement. */
.statement h2 { font: 600 clamp(32px, 4.1vw, 68px)/1.15 var(--f-head); letter-spacing: -.025em; }
.statement h2 em { font-style: normal; color: var(--u); }
.support { display: grid; grid-template-columns: 1fr; grid-gap: 24px; margin-top: 44px; }
.support > div { border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); }
.support h3 { font: 600 20px/1.25 var(--f-head); color: var(--fg); margin-bottom: 10px; }
.support p { font-size: 18px; line-height: 1.5; }
@media (min-width: 760px) { .support { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 40px; } }
@media (max-width: 759px) { .statement h2 br { display: none; } }

/* Only the 2 chapter dividers carry decorative numbers. */
.slide.divider { overflow: hidden; background: #0d100d; padding-top: 72px; padding-bottom: 72px; }
.divider .slash { position: absolute; right: -8%; top: -20%; width: 28%; height: 140%; background: #1b211a; -webkit-transform: skewX(-30deg); transform: skewX(-30deg); }
.divider .wrap { display: grid; grid-template-columns: 1fr; grid-gap: 28px; }
.divider .big { font: 700 clamp(100px, 14vw, 220px)/.85 var(--f-head); color: var(--u); letter-spacing: -.05em; }
@supports (-webkit-text-stroke: 1px #41b21e) { .divider .big { color: transparent; -webkit-text-stroke: 2px var(--u); } }
.divider h2 { font: 700 clamp(40px, 5.4vw, 88px)/1.05 var(--f-head); letter-spacing: .02em; text-transform: uppercase; }
.divider .lede { max-width: 620px; font-size: clamp(18px, 1.5vw, 24px); }
@media (min-width: 1024px) {
  .slide.divider { display: flex; align-items: center; min-height: 480px; }
  .divider .wrap { grid-template-columns: .7fr 2fr; grid-gap: 56px; align-items: center; }
}

/* Images follow titles on phones; copy and facts sit beside them on desktop. */
.game .grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 28px; }
.game-overview .lede { margin-top: 0; }
.media { display: grid; grid-gap: 12px; min-width: 0; }
.media .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr; grid-gap: 0; }
.facts div { display: grid; grid-template-columns: 80px minmax(0, 1fr); grid-gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding: 14px 0; }
.facts dt { font: 500 11px/1.5 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--u); }
.facts dd { margin: 0; font: 400 18px/1.4 var(--f-body); }
.game-details .actions { margin-top: 14px; }
@media (min-width: 1024px) {
  .game { display: flex; align-items: center; }
  .game .grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); grid-template-areas: "heading media" "overview media" "details media"; grid-gap: 24px 56px; }
  .game-heading { grid-area: heading; }
  .game-overview { grid-area: overview; }
  .game-details { grid-area: details; }
  .game .media { grid-area: media; align-self: center; }
  .game.flip .grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .95fr); grid-template-areas: "media heading" "media overview" "media details"; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 0 24px; }
  .facts div { display: block; padding: 14px 0; }
  .facts dd { margin-top: 6px; }
}
@media (min-width: 1024px) and (min-height: 640px) and (orientation: landscape) {
  .game { min-height: 100vh; }
  .game.flip { min-height: 78vh; }
}

/* Steam catalogue. */
.catalog .h-title { font-size: clamp(32px, 3.2vw, 52px); }
.catalog .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 32px 18px; margin-top: 36px; }
.catalog .c { display: block; text-decoration: none; }
.catalog .ratio { margin-bottom: 16px; }
.catalog h3 { font: 600 clamp(18px, 1.4vw, 23px)/1.3 var(--f-head); }
.catalog .when { display: block; margin-top: 8px; font: 500 11px/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--u); }
.steam-tags { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; }
.steam-tags li { margin: 0 6px 6px 0; padding: 4px 8px; border: 1px solid var(--line); font: 400 11px/1.4 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.catalog .c:hover h3 { color: var(--u); }
@media (min-width: 1024px) { .catalog .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 28px; } }
@media (max-width: 479px) {
  .catalog .grid { grid-template-columns: minmax(0, 1fr); grid-gap: 28px; }
  .catalog .c { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); grid-gap: 0 16px; }
  .catalog .ratio { grid-column: 1; grid-row: 1 / 4; align-self: start; margin: 0; }
  .catalog h3, .catalog .when, .catalog .steam-tags { grid-column: 2; }
}

/* Rust: a single contextual player figure leads directly into the mods. */
.numbers { border-top: 0; padding-bottom: 48px; }
.numbers .wrap { display: grid; grid-template-columns: 1fr; grid-gap: 36px; }
.numbers .h-title { font-size: clamp(32px, 3.3vw, 54px); max-width: 520px; }
.player-count { border-top: 2px solid var(--u); padding-top: 24px; }
.player-count .estimate { display: block; font: 500 12px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--u); }
.player-count strong { display: block; margin: 6px 0 12px; font: 700 clamp(80px, 8vw, 136px)/1 var(--f-head); letter-spacing: -.045em; }
.player-count .context { display: block; font-size: 20px; color: var(--muted); }
@media (min-width: 760px) {
  .numbers .wrap { grid-template-columns: 1fr 1fr; grid-gap: 64px; align-items: center; }
  .player-count { border-top: 0; border-left: 2px solid var(--u); padding: 0 0 0 40px; }
}

.cards { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 28px; margin-top: 36px; }
.card { min-width: 0; background: var(--panel); }
.card .in { padding: 28px; }
.card h3 { font: 700 clamp(26px, 2vw, 34px)/1.15 var(--f-head); letter-spacing: -.01em; }
.card p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.card .tags { font: 400 11px/1.8 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }
.mods { border-top: 0; padding-top: 0; }
.mods .cards { margin-top: 0; }
.mods .card { background: transparent; }
.mods .card .ratio { padding-top: 52%; }
.mods .card .in { padding: 22px 0 0; border-top: 2px solid var(--u); }
.mods .card .link { margin-top: 8px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 32px; } }

/* AT uses a text composition without a fabricated cover or placeholder image. */
.projects .card { border-top: 3px solid var(--u); }
.project-at { display: flex; flex-direction: column; justify-content: space-between; padding: 36px 28px; min-height: 340px; }
.project-at h3 { font: 700 clamp(96px, 9vw, 152px)/1 var(--f-head); color: var(--u); letter-spacing: -.02em; }
.project-at .project-description { margin-top: 52px; }
.project-at .project-type { font: 600 clamp(24px, 2vw, 32px)/1.2 var(--f-head); color: var(--fg); }
.project-at .tags { margin-top: 14px; }
.project-at .project-status { border-top: 1px solid #3a433a; padding-top: 18px; margin-top: 28px; }

/* Co-development: services above a pair of readable project credits. */
.services { list-style: none; margin: 28px 0 0; padding: 0; }
.services li { border-top: 1px solid var(--line); padding: 18px 0; font: 600 20px/1.3 var(--f-head); }
.services li:last-child { border-bottom: 1px solid var(--line); }
.partners { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 32px; margin-top: 40px; }
.partner { display: block; text-decoration: none; }
.partner figure { margin: 0; }
.partner .ratio { padding-top: 57.3%; }
.partner figcaption { margin-top: 16px; font: 600 22px/1.25 var(--f-head); }
.partner figcaption span { display: block; margin-top: 8px; font: 400 17px/1.45 var(--f-body); color: var(--muted); }
.partner:hover figcaption { color: var(--u); }
@media (min-width: 760px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .codev .text { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 0 56px; }
  .codev .h-title, .codev .lede, .codev .actions { grid-column: 1; }
  .codev .services { grid-column: 2; grid-row: 1 / 4; margin: 0; align-self: center; }
}


.close { background: #0d100d; }
.close .lockup { width: 640px; }
.contact { margin: 48px 0 0; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 24px; }
.contact dt { font: 500 11px/1.5 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--u); }
.contact dd { margin: 6px 0 0; font: 500 clamp(19px, 1.7vw, 26px)/1.4 var(--f-head); }
.contact a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: break-word; text-decoration-color: var(--u); text-underline-offset: 7px; }
.contact a:hover { color: var(--u); }
footer { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; font: 400 12px/1.5 var(--f-mono); color: var(--muted); }
footer > * { margin-right: 24px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1024px) { .contact { grid-template-columns: 1.1fr 1fr .8fr; grid-gap: 32px; } }

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

/* Mailing list: heading beside a single email field on desktop, stacked on phones. */
.signup .grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-gap: 28px; align-items: end; }
.signup-form .label { display: block; margin-bottom: 10px; }
.signup-form .field { display: flex; flex-wrap: wrap; }
.signup-form input {
  -webkit-appearance: none; appearance: none; flex: 1 1 240px; min-width: 0; min-height: 52px; margin: 0 12px 12px 0;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--fg);
  font: 400 18px/1.3 var(--f-body);
}
.signup-form input::placeholder { color: #6f786e; }
.signup-form input:focus { outline: 2px solid var(--u); outline-offset: 0; border-color: var(--u); }
.signup-form .btn { flex: none; min-height: 52px; margin-bottom: 12px; border: 0; cursor: pointer; }
.signup-form .btn[disabled] { opacity: .6; cursor: default; }
.form-note { margin-top: 4px; font-size: 16px; color: var(--muted); }
.form-note.ok { color: var(--u); }
.form-note.error { color: #e07a6a; }
@media (max-width: 479px) { .signup-form input { margin-right: 0; flex-basis: 100%; } .signup-form .btn { width: 100%; } }
@media (min-width: 1024px) { .signup .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-gap: 64px; } }
