/* DNSTUFF website: the crate's kraft, tape and ink; stencil capitals for headings, Outfit for text.
   Game pages set <body class="game-..."> and their own tokens and fonts in the game's media/game.css. */
@font-face { font-family: "Big Shoulders Stencil"; src: url("big-shoulders-stencil.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #F5EFE4; --surface: #FFFAF2; --ink: #2A2118; --muted: #65533F; --line: #E0D2BC;
  --kraft: #B8743A; --link: #86501F; --tape: #E9C38F; --band: #E9C38F; --shade: rgba(60, 38, 16, .14);
  --display: "Big Shoulders Stencil", "Arial Narrow", "Segoe UI", sans-serif;
  --body: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --heading: var(--display); --heading-color: var(--ink); --heading-case: uppercase; --heading-track: .03em;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17130F; --surface: #211B16; --ink: #F4E3C8; --muted: #BCA88D; --line: #3A2F24;
    --kraft: #D08F4F; --link: #EDB57C; --tape: #F4D9A8; --band: rgba(208, 143, 79, .5); --shade: rgba(0, 0, 0, .4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #17130F; --surface: #211B16; --ink: #F4E3C8; --muted: #BCA88D; --line: #3A2F24;
  --kraft: #D08F4F; --link: #EDB57C; --tape: #F4D9A8; --band: rgba(208, 143, 79, .5); --shade: rgba(0, 0, 0, .4); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--body); }
img, video { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--kraft); }
:focus-visible { outline: 3px solid var(--kraft); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }

/* header and footer */
header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: block; line-height: 0; }
.brand img { height: 40px; width: auto; }
nav.main { display: flex; gap: 6px 22px; flex-wrap: wrap; font-weight: 600; font-size: 16px; }
nav.main a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--tape); color: var(--ink); }
footer.site { border-top: 1px solid var(--line); margin-top: 72px; padding-block: 28px 56px; color: var(--muted); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

/* type */
h1, h2, h3 { font-family: var(--heading); color: var(--heading-color); line-height: 1.05; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(44px, 8vw, 88px); font-weight: 800; text-transform: var(--heading-case); letter-spacing: var(--heading-track); }
h2 { font-size: clamp(32px, 4.6vw, 46px); font-weight: 700; text-transform: var(--heading-case); letter-spacing: var(--heading-track); margin: 64px 0 18px; }
h3 { font-size: 24px; font-weight: 700; margin: 28px 0 8px; }
p, li { max-width: 68ch; }
p { margin: 0 0 14px; }
.lead { font-size: 21px; color: var(--ink); }
.muted { color: var(--muted); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.tape { display: inline; background: linear-gradient(transparent 58%, var(--band) 58%, var(--band) 92%, transparent 92%); }

/* home hero */
.hero-home { padding-block: 64px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.hero-home .mark { width: clamp(120px, 18vw, 200px); height: auto; }
.hero-home p.lead { margin-top: 22px; }
@media (max-width: 720px) { .hero-home { grid-template-columns: 1fr; gap: 20px; padding-top: 32px; } .hero-home > picture { order: -1; } .hero-home .mark { width: 96px; } }

/* buttons and chips */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.button { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); }
.button:hover { background: var(--kraft); border-color: var(--kraft); color: var(--paper); }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--kraft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; list-style: none; }
.chips li { margin: 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--muted); background: var(--surface); }
.chips li.on { color: var(--ink); border-color: var(--kraft); }

/* game cards */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px var(--shade); display: flex; flex-direction: column; }
.card > a.pic { display: block; aspect-ratio: 1232 / 706; background: #2A2118; }
.card > a.pic img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 0; font-size: 30px; text-transform: uppercase; letter-spacing: .02em; }
.card h3 a { color: inherit; text-decoration: none; }
.card .alt { color: var(--muted); font-style: italic; margin: 0; }
/* one game: the card spans the row, picture beside the text */
.cards.single { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) {
  .card.feature { display: grid; grid-template-columns: minmax(0, 56%) minmax(0, 1fr); }
  .card.feature > a.pic { aspect-ratio: auto; height: 100%; min-height: 320px; }
  .card.feature .body { justify-content: center; padding: 28px 36px; }
}

/* company facts */
dl.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { dl.facts { grid-template-columns: 1fr; gap: 0; } dl.facts dd { margin-bottom: 10px; } }

/* long text pages (privacy) */
.doc h1 { font-size: clamp(40px, 6vw, 64px); margin-top: 48px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 10px 0 28px; }
.doc h2 { font-size: 30px; margin: 40px 0 10px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc code { font-size: .9em; overflow-wrap: anywhere; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--tape); border-radius: 10px; padding: 16px 20px; margin: 24px 0; }
.note p:last-child { margin: 0; }

@media (max-width: 520px) { body { font-size: 17px; } .brand img { height: 34px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
