/* det-33.com. One stylesheet for the home page and the press kit.
   Committed to dark, like the game's own frame: the key art and the op accent
   colours are tuned against a dark slate and wash out on white. */

@font-face {
  font-family: "Rubik Dirt";
  src: url("/fonts/RubikDirt-Regular.woff2") format("woff2");
  font-display: swap;
  /* Subset to capitals, digits and punctuation (site/README.md): every use is
     upper-cased, so the 144 KB file is the whole cost. */
  unicode-range: U+0020-005F, U+00B7, U+2013-2014, U+2019;
}
@font-face {
  font-family: "Averia Serif Libre";
  src: url("/fonts/AveriaSerifLibre-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d1016;
  --panel: #161b24;
  --panel-2: #11151d;
  --line: #2a3140;
  --ink: #e6e3da;
  --dim: #9aa0aa;
  --gold: #e8c46a;
  --orange: #e8692c;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Averia Serif Libre", Georgia, "Iowan Old Style", serif;
  --display: "Rubik Dirt", Impact, var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--serif); }
a { color: var(--gold); }
img, video { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--gold); color: #111; padding: 8px 12px; }

/* Nav */
nav { position: sticky; top: 0; z-index: 5; background: rgba(13, 16, 22, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 24px; height: 58px; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
nav a { color: var(--dim); text-decoration: none; white-space: nowrap; }
nav a:hover, nav a:focus-visible { color: var(--ink); }
nav .brand { color: var(--orange); font: 400 22px/1 var(--display); letter-spacing: .04em; }
nav .buy { margin-left: auto; color: #111; background: var(--gold); padding: 10px 14px; border-radius: 4px; }
nav .buy:hover { color: #111; filter: brightness(1.08); }

/* Buttons */
.btn { display: inline-block; padding: 14px 20px; border-radius: 4px; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: rgba(22, 27, 36, .85); font: 600 14px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.btn:hover { border-color: var(--dim); }
.btn.primary { background: var(--gold); color: #111; border-color: var(--gold); }
.btn.primary:hover { filter: brightness(1.08); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Hero */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end;
  background: #0d1016 image-set(url("/media/hero-1200.webp") 1x, url("/media/hero-2400.webp") 2x) center 35% / cover; }
@media (min-width: 1300px) { .hero { background-image: url("/media/hero-2400.webp"); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,16,22,.05) 20%, rgba(13,16,22,.97) 92%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 56px; width: 100%; }
.hero h1 { margin: 0; }
.hero h1 img { display: block; width: min(560px, 82vw); height: auto; filter: drop-shadow(0 4px 18px #000); }
.pitch { font-size: clamp(19px, 2.3vw, 26px); line-height: 1.45; max-width: 700px; margin: 14px 0 24px; text-shadow: 0 2px 12px #000; }
.badges { margin: 18px 0 0; color: var(--dim); font: 500 13px/1.5 var(--sans); letter-spacing: .08em; }

/* Sections */
section { padding: 80px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 58px; }
.label { font: 800 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
h2 { font: 800 clamp(24px, 3vw, 32px)/1.15 var(--sans); margin: 0 0 18px; }
.lead { color: var(--dim); max-width: 720px; margin: 0 0 32px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.panel h3 { font: 800 17px/1.3 var(--sans); margin: 0 0 12px; }
.dim { color: var(--dim); }

/* Trailer: a srcdoc frame holds our own poster and a link, so nothing loads
   from YouTube until someone presses play. */
.trailer { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #000; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-note { color: var(--dim); font: 500 13px/1.5 var(--sans); margin: 10px 0 0; }

/* Weekly op */
.op { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.op-head { display: flex; gap: 20px; align-items: center; }
.op-emblem { flex: none; width: 76px; height: 76px; }
.op-week { font: 700 12px/1 var(--sans); letter-spacing: .18em; color: var(--gold); text-transform: uppercase; }
.op-name { font: 400 clamp(34px, 5vw, 48px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 8px 0 6px; }
.op-left { color: var(--dim); font: 500 14px/1.4 var(--sans); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; margin: 22px 0 0; font-size: 16px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; }
.op-note { color: var(--gold); font-size: 15px; margin: 20px 0 0; }
.steps { margin: 0; padding-left: 20px; color: var(--dim); }
.steps li { margin: 0 0 10px; }
.steps b { color: var(--ink); font-weight: 400; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.pillar h3 { font: 800 19px/1.3 var(--sans); margin: 16px 0 6px; }
.pillar p { color: var(--dim); margin: 0; font-size: 16px; }

/* Builds */
.builds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.build { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: 0; }
.build video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.build figcaption { padding: 14px 16px 16px; }
.build b { display: block; font: 800 16px/1.3 var(--sans); }
.build span { display: block; margin-top: 4px; color: var(--dim); font-size: 15px; line-height: 1.5; }

/* Field guide */
.guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li { font: 500 13px/1 var(--sans); padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel-2); }
.chips i { color: var(--dim); font-style: normal; }
.guide p { color: var(--dim); font-size: 15px; margin: 14px 0 0; }
.tips { margin: 0; padding-left: 18px; color: var(--dim); font-size: 15px; }
.tips li { margin: 0 0 8px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; margin: 0; }
.faq dt { font: 700 16px/1.4 var(--sans); margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--dim); }

/* Latest update */
.update { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: center; }
.update img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.update h2 { margin-bottom: 8px; }
.update .date { color: var(--dim); font: 500 13px/1 var(--sans); letter-spacing: .08em; margin: 0 0 14px; }

/* Footer */
footer { padding: 44px 0 64px; color: var(--dim); font: 500 14px/1.9 var(--sans); }
footer a { color: var(--ink); margin-right: 22px; }

/* Press kit */
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; margin: 0; }
.facts dt { color: var(--dim); font: 600 14px/1.6 var(--sans); }
.facts dd { margin: 0; }
.press-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.press-grid a { display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.press-grid img { display: block; width: 100%; height: auto; }
.downloads { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.downloads a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink); background: var(--panel); }
.downloads small { display: block; color: var(--dim); font: 500 12px/1.4 var(--sans); }

@media (max-width: 900px) {
  .op, .pillars, .builds, .guide, .faq, .update { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: repeat(2, 1fr); }
  .downloads { grid-template-columns: 1fr; }
  nav a:not(.brand):not(.buy) { display: none; }
  section { padding: 56px 0; }
}
