/* Cloak & Dice — the game's page (backlog/website.md).
   Static, no external fonts, scripts or trackers: the type is the app's
   own where the reader's device has it (Futura, American Typewriter on
   Apple devices) and a close system face elsewhere. */

:root {
  --night: #131117;
  --night-2: #1c1920;
  --paper: #ede4cf;
  --paper-dim: #b9ae98;
  --oxblood: #a3332a;
  --brass: #c9a35a;
  --rule: #3a3340;
  --title: "Futura Condensed ExtraBold", "Futura-CondensedExtraBold", "Futura", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --type: "American Typewriter", "Courier Prime", "Courier New", monospace;
  --body: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 18px/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--paper); }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.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));
}

/* The top bar */
.bar { border-bottom: 1px solid var(--rule); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand span { font: 26px/1 var(--title); letter-spacing: .06em; text-transform: uppercase; }
.brand .amp, h1 .amp { color: var(--oxblood); }
.bar nav { display: flex; gap: 18px; font: 14px/1 var(--type); text-transform: uppercase; letter-spacing: .1em; }
.bar nav a { text-decoration: none; }

/* The desk at night, the name over it */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .55; }
.hero .over {
  position: absolute; inset: 0;
  display: grid; align-content: center; gap: 14px;
  background: linear-gradient(90deg, rgb(19 17 23 / .92) 0%, rgb(19 17 23 / .6) 45%, rgb(19 17 23 / 0) 75%);
}
.hero .over .wrap { width: 100%; display: grid; gap: 14px; justify-items: start; }
h1 { margin: 0; font: clamp(44px, 8vw, 96px)/0.95 var(--title); letter-spacing: .04em; text-transform: uppercase; }
.tagline { margin: 0; font: clamp(15px, 2vw, 19px)/1.4 var(--type); color: var(--brass); letter-spacing: .14em; text-transform: uppercase; }
.lede { margin: 0; max-width: 40ch; font-size: clamp(16px, 2vw, 20px); color: var(--paper); }
.store { display: inline-block; margin-top: 6px; padding: 12px 18px; border: 2px solid var(--paper); border-radius: 6px; font: 15px/1 var(--type); letter-spacing: .1em; text-transform: uppercase; color: var(--paper); }

/* Sections */
section { padding-block: 64px; border-bottom: 1px solid var(--rule); }
h2 { margin: 0 0 24px; font: clamp(30px, 4.5vw, 44px)/1.05 var(--title); letter-spacing: .05em; text-transform: uppercase; text-wrap: balance; }
h3 { margin: 0 0 6px; font: 15px/1.3 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
p { margin: 0 0 14px; max-width: 65ch; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.cols > div { min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.split img { border-radius: 4px; border: 1px solid var(--rule); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery figure { margin: 0; display: grid; gap: 6px; }
.gallery img { border-radius: 4px; border: 1px solid var(--rule); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { font: 13px/1.4 var(--type); color: var(--paper-dim); }

.faq dt { font: 15px/1.4 var(--type); letter-spacing: .06em; color: var(--brass); margin-top: 18px; }
.faq dd { margin: 4px 0 0; max-width: 65ch; }
.mail { font: 18px/1.4 var(--type); }

/* The legal pages */
.legal { padding-block: 48px 72px; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 28px; }
.legal h2 { font-size: 26px; margin: 36px 0 10px; }
.legal h3 { margin-top: 20px; }
.legal address { font-style: normal; margin-bottom: 14px; }
.legal pre { white-space: pre-wrap; font: 14px/1.5 var(--type); color: var(--paper-dim); background: var(--night-2); border: 1px solid var(--rule); border-radius: 4px; padding: 16px; overflow-x: auto; }
.todo { background: var(--oxblood); color: var(--paper); padding: 0 6px; border-radius: 3px; font-family: var(--type); font-size: .85em; }

footer { padding-block: 28px 40px; font: 14px/1.6 var(--type); color: var(--paper-dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (max-width: 820px) {
  .cols, .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero > img { aspect-ratio: 4 / 3; }
  .hero .over { background: linear-gradient(180deg, rgb(19 17 23 / .35) 0%, rgb(19 17 23 / .9) 70%); align-content: end; padding-bottom: 28px; }
  .bar nav { display: none; }
}
@media (max-width: 460px) {
  body { font-size: 17px; }
  .gallery { grid-template-columns: 1fr; }
}
