/* HOLDOUT download page. The lobby's look (Figma "HOLDOUT website", 1319:1981): #111213, paper
   #EDE6D6, Overpass, the red crayon marks. Sizes follow the 1440 px desktop frame. */

@font-face { font-family: "Overpass"; font-weight: 500; font-display: swap; src: url("/fonts/overpass-medium.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 600; font-display: swap; src: url("/fonts/overpass-semibold.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 700; font-display: swap; src: url("/fonts/overpass-bold.woff2") format("woff2"); }
@font-face { font-family: "Overpass Mono"; font-weight: 400; font-display: swap; src: url("/fonts/overpass-mono.woff2") format("woff2"); }

:root {
  --bg: #111213;
  --paper: #ede6d6;
  --pad: clamp(20px, 4.2vw, 60px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--paper);
  font: 500 16px/1.4 "Overpass", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, ol, figure { margin: 0; }

:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }

kbd {
  display: inline-block;
  padding: 3px 8px 2px;
  border: 1px solid var(--paper);
  border-radius: 3px;
  background: rgb(0 0 0 / 0.35);
  font: 700 13px/1.25 "Overpass", sans-serif;
  color: var(--paper);
}

/* Hero: the key art full bleed, wordmark top left, the download as the selected lobby option. */

.hero {
  position: relative;
  min-height: max(640px, 100svh);
  max-height: 1200px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 3.75vw, 54px) var(--pad) clamp(24px, 4.4vw, 62px);
  isolation: isolate;
  overflow: hidden;
}

.art, .art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  z-index: -2;
}

.hero::after { /* flat darken, like the boot screen frames */
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(17 18 19 / 0.3);
  z-index: -1;
}

.masthead h1 img { width: clamp(240px, 31.25vw, 450px); }

.intro {
  margin: clamp(6px, 0.6vw, 8px) 0 0 clamp(4px, 0.6vw, 9px);
  font-size: clamp(13.5px, 1.35vw, 19.5px);
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.5);
}

.pitch-block { align-self: end; padding-bottom: clamp(36px, 5.5vw, 72px); }

.pitch {
  font-weight: 600;
  font-size: clamp(19px, 1.95vw, 28px);
  line-height: 1.29;
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.5);
}
.pitch > span { display: block; }
.pitch .phrase { display: inline-block; } /* lines break at the comma only */

.download {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.1vw, 16px);
  margin: clamp(26px, 2.6vw, 36px) 0 0 -2px;
  padding-bottom: clamp(16px, 1.6vw, 22px);
  text-decoration: none;
}
.download .pointer { width: clamp(24px, 2.4vw, 34px); flex: none; transition: transform 160ms ease-out; }
.download .label {
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.1;
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.5);
}
.download .mark {
  --inset: clamp(30px, 3.4vw, 46px);
  position: absolute;
  left: var(--inset);
  bottom: 0;
  width: calc(100% - var(--inset) + 6px);
  height: clamp(18px, 2vw, 28px);
  object-fit: fill;
  pointer-events: none;
}
.download:hover .pointer { transform: translateX(4px); }
.download:active .label { transform: translateY(1px); }

.release {
  margin: clamp(12px, 1.1vw, 16px) 0 0 clamp(36px, 3.4vw, 48px);
  font: 400 clamp(12px, 1.05vw, 15px)/1.5 "Overpass Mono", ui-monospace, monospace;
  opacity: 0.7;
}
.release { display: flex; flex-wrap: wrap; column-gap: 2.2em; }
.release span { white-space: nowrap; }

.mac-only { display: none; margin: 14px 0 0 clamp(36px, 3.4vw, 48px); font-size: 14px; opacity: 0.75; }
.not-mac .mac-only { display: block; }

.hints {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-left: 12px;
}
.hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  font: 600 16.5px/1 "Overpass", sans-serif;
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
}
.hint .action { opacity: 0.85; padding-top: 2px; }
.hint:hover .action { opacity: 1; text-decoration: underline 2px #a3221d; text-underline-offset: 5px; }
.build {
  margin-left: auto;
  font: 400 12px/1 "Overpass Mono", ui-monospace, monospace;
  opacity: 0.45;
}

/* Below the art */

.marked {
  display: inline-block;
  padding-bottom: 14px;
  background: url("/img/mark_underline.png") no-repeat left -4px bottom / 100% 14px;
  font-weight: 700;
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.2;
}

.friends {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 315px);
  gap: 48px 9vw;
  padding: clamp(64px, 6vw, 90px) var(--pad) 0;
  max-width: 1440px;
}

.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; }
.steps strong { display: block; font-weight: 700; font-size: 20px; line-height: 1.3; }
.steps span { display: block; font-size: 14px; opacity: 0.7; margin-top: 2px; }

.party { display: flex; align-items: center; gap: 10px; margin-top: 34px; font-weight: 600; font-size: 16px; }
.party .code { font: 400 20px/1.2 "Overpass Mono", ui-monospace, monospace; padding: 4px 10px 3px; letter-spacing: 0.04em; }
.party img { width: 26px; }

.map { align-self: start; margin-top: 72px; }
.map img { width: 100%; border: 2px solid var(--paper); }
.map figcaption { margin-top: 10px; }
.map strong { display: block; font-weight: 700; font-size: 18px; }
.map span { display: block; font-size: 13.5px; opacity: 0.7; }

.credits { padding: clamp(72px, 7vw, 110px) var(--pad) 0; max-width: 1440px; }
.credits:focus { outline: none; }
.credit-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 28px 9vw;
  margin-top: 32px;
}
.credit-groups h3 { margin: 0 0 8px; font-weight: 600; font-size: 16.5px; opacity: 0.55; }
.credit-groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.credit-groups li { font-weight: 600; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.3; opacity: 0.9; }
.credit-groups li a { text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgb(237 230 214 / 0.35); }
.credit-groups li a:hover { text-decoration-color: #a3221d; text-decoration-thickness: 2px; }
.credit-groups p { margin-top: 8px; font-size: 14px; opacity: 0.6; }

footer { padding: 64px var(--pad) 48px; font-size: 14px; opacity: 0.45; }

@media (max-width: 720px) {
  .hero { min-height: 0; max-height: none; grid-template-rows: auto auto auto; padding-bottom: 28px; }
  .art, .art img { height: 640px; bottom: auto; object-position: 42% 50%; }
  .hero::after { height: 640px; bottom: auto; background: rgb(17 18 19 / 0.35); }
  .pitch-block { padding: 272px 0 0; }
  .hints { margin: 52px 0 0; flex-wrap: wrap; row-gap: 16px; }
  .friends { grid-template-columns: 1fr; padding-top: 40px; }
  .map { margin-top: 0; }
}
