/* Deep In Debt — one-page site. Colours are the game's: cave dark, sign paper, logo red, nugget gold. */

@font-face { font-family: "Archivo Black"; src: url("/fonts/Archivo-Black.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/fonts/CourierPrime-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --cave: #1b120e;
  --cave-2: #241812;
  --rock: #3a2a20;
  --paper: #efe4c6;
  --paper-ink: #221612;
  --red: #b3241a;
  --red-hi: #cf3326;
  --gold: #f2b33d;
  --text: #ece2cf;
  --muted: #b3a38a;
  --line: rgba(239, 228, 198, 0.14);
  --radius: 10px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cave);
  color: var(--text);
  font: 400 17px/1.6 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffd27a; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--paper); color: var(--paper-ink); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  background: linear-gradient(rgba(27, 18, 14, 0.92), rgba(27, 18, 14, 0));
  transition: background 0.25s;
}
.top.is-scrolled { background: rgba(27, 18, 14, 0.94); box-shadow: 0 1px 0 var(--line); }
.top__brand img { width: 120px; opacity: 0; transition: opacity 0.25s; }
.top.is-scrolled .top__brand img { opacity: 1; }
.top__nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); font-weight: 700; font-size: 15px; }
.top__nav a { color: var(--text); text-decoration: none; }
.top__nav a:hover { color: var(--gold); }
.top__nav .btn { padding: 8px 14px; font-size: 14px; }
@media (max-width: 640px) { .top__nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font: 700 16px/1 "Archivo", sans-serif; letter-spacing: 0.02em; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.12s, background 0.2s, border-color 0.2s;
}
.btn img { width: 22px; height: 22px; }
.btn--steam { background: var(--red); color: #fff; }
.btn--steam:hover { background: var(--red-hi); color: #fff; transform: translateY(-1px); }
.btn--ghost { color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--pending { background: var(--rock); color: var(--muted); cursor: default; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 0; }
.hero > .hero__art { max-width: none; }
.hero__art { display: block; position: relative; }
/* Capped so the lede and the Steam button stay above the fold on a laptop screen. */
.hero__art img { width: 100%; max-height: 78vh; object-fit: cover; object-position: 40% 30%; }
.hero__art::after {
  content: ""; position: absolute; inset: 45% 0 0 0;
  background: linear-gradient(rgba(27, 18, 14, 0), var(--cave));
}
.hero__body {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: clamp(-150px, -9vw, -24px) auto 0; padding: 0 var(--gutter);
}
.kicker {
  margin: 0 0 10px; color: var(--gold);
  font: 700 14px/1.2 "Courier Prime", monospace; letter-spacing: 0.14em; text-transform: uppercase;
}
.hero__lede { margin: 0; max-width: 34ch; font: 400 clamp(22px, 2.6vw, 32px)/1.3 "Archivo", sans-serif; color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- sections ---------- */
section { padding: clamp(64px, 9vw, 120px) var(--gutter) 0; }
section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section-title {
  margin-top: 0; margin-bottom: clamp(28px, 4vw, 48px);
  font: 400 clamp(28px, 4vw, 44px)/1.05 "Archivo Black", sans-serif; text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--paper);
}

/* ---------- run steps ---------- */
.step {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 4vw, 56px); align-items: center;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.step--flip { grid-template-columns: 7fr 5fr; }
.step--flip .step__text { order: 2; }
.step__num {
  display: inline-block; margin-bottom: 10px;
  font: 700 14px/1 "Courier Prime", monospace; letter-spacing: 0.14em; color: var(--gold);
}
.step h3 { margin: 0 0 12px; font: 400 clamp(26px, 3vw, 36px)/1.05 "Archivo Black", sans-serif; text-transform: uppercase; color: var(--paper); }
.step p { margin: 0; color: var(--text); max-width: 42ch; }
.clip {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #120c09; border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.clip video { width: 100%; }
@media (max-width: 820px) {
  .step, .step--flip { grid-template-columns: 1fr; }
  .step--flip .step__text { order: 0; }
}

.tools { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.tools__title { margin: 0 0 8px; font: 400 clamp(26px, 3vw, 36px)/1.05 "Archivo Black", sans-serif; text-transform: uppercase; color: var(--paper); }
.tools p { margin: 0 auto 8px; max-width: 52ch; }
.tools video { width: 100%; max-width: 980px; margin: 0 auto; }

.notgambling {
  padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--muted); text-align: center;
}
.notgambling strong { color: var(--text); }

/* ---------- screenshots ---------- */
.shots__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 1.6vw, 18px); }
.shots__grid a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.shots__grid img { width: 100%; transition: transform 0.35s; }
.shots__grid a:hover img { transform: scale(1.025); }
@media (max-width: 600px) { .shots__grid { grid-template-columns: 1fr; } }

/* ---------- creators ---------- */
.creators { padding-bottom: clamp(64px, 9vw, 120px); }
.creators__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .creators__grid { grid-template-columns: 1fr; } }
.terms { list-style: none; margin: 0 0 36px; padding: 0; }
.terms li { position: relative; padding-left: 34px; margin-bottom: 18px; }
.terms li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%231b120e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.terms strong { color: var(--paper); }
.dl__title { margin: 0 0 12px; font: 400 22px/1.1 "Archivo Black", sans-serif; text-transform: uppercase; color: var(--paper); }
.dl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dl li { border-bottom: 1px solid var(--line); }
.dl a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; color: var(--text); text-decoration: none; font-weight: 700; }
.dl a:hover { color: var(--gold); }
.dl span { color: var(--muted); font-weight: 400; font-family: "Courier Prime", monospace; font-size: 14px; white-space: nowrap; }
.dl__note { color: var(--muted); font-size: 15px; margin: 12px 0 28px; }
.contact { font-weight: 700; }

/* the fact sheet is the collector's bill */
.bill {
  position: relative; padding: 26px 24px 72px;
  background: var(--paper); color: var(--paper-ink); border-radius: 4px;
  font-family: "Courier Prime", ui-monospace, monospace; font-weight: 700;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); transform: rotate(-0.6deg);
}
.bill__head { margin: 0; font: 400 24px/1 "Archivo Black", sans-serif; text-transform: uppercase; color: var(--paper-ink); }
.bill__sub { margin: 4px 0 16px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #6b5a47; }
.bill dl { margin: 0; }
.bill dl > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; padding: 8px 0; border-top: 1px dashed rgba(34, 22, 18, 0.3); font-size: 15px; line-height: 1.4; }
.bill dt { text-transform: uppercase; letter-spacing: 0.06em; color: #6b5a47; }
.bill dd { margin: 0; }
.bill__stamp {
  position: absolute; right: 18px; bottom: 16px; margin: 0; padding: 4px 10px;
  border: 3px dashed var(--red); border-radius: 6px; color: var(--red);
  font: 700 15px/1 "Courier Prime", monospace; letter-spacing: 0.12em; text-transform: uppercase;
  transform: rotate(-9deg); opacity: 0.85;
}
@media (max-width: 420px) { .bill { padding-bottom: 30px; } .bill dl > div { grid-template-columns: 1fr; gap: 0; } .bill__stamp { position: static; display: inline-block; margin-top: 14px; } }

/* ---------- footer ---------- */
.foot { padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; }
.foot p { margin: 6px 0; }
.foot__quiet { opacity: 0.75; }
.socials { display: flex; justify-content: center; gap: 18px; margin-bottom: 10px; font-weight: 700; }
