/* The static pages' one stylesheet (G5, G6): the two faces, the tokens, the
   brand header and one heading scale with 2 px corners, so the guide, the
   landing pages, the Dispatch, the legal pages and the 404 read as one site.
   Each page keeps only its own layout in its style block. */
@font-face {
  font-family: 'Tektur';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/tektur-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Tektur';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/tektur-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0b0e12;
  --line: #2a3442;
  --text: #e8eef6;
  --muted: #93a2b5;
  --accent: #ffcd65;
  --accent-ink: #241c00;
  --hazard: #f7c52e;
  /* A panel one step off the page, an item a step further, its slot darkest. */
  --panel: #10151c;
  --tile: #0d1219;
  --well: #070a0d;
  --edge: #1b232e;
  --corner: 2px;
  --display: 'Tektur', 'IBM Plex Sans', system-ui, sans-serif;
  --ui: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--ui);
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* The brand header: the badge and the wordmark as the front sets them,
   linking to the game, and Play on the right. */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--edge);
}

.site-head .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--accent);
  font: 800 24px/1 var(--display);
  letter-spacing: 3px;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--accent-ink);
}

.site-head .brand img {
  display: block;
  width: 48px;
  height: 29px;
  flex: none;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.45));
}

.site-head .back {
  flex: none;
  margin: 0;
}

/* Play, a plate in the accent: the same on every page. */
.back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--accent);
  border-radius: var(--corner);
  font: 700 15px/1 var(--display);
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}

.back a:hover,
.back a:focus-visible {
  background: var(--accent);
  color: var(--bg);
}

/* One heading scale on every page. */
h1 {
  font: 700 28px/1.25 var(--display);
  color: var(--accent);
}

h2 {
  font: 600 18px/1.4 var(--display);
  color: var(--accent);
}

h3 {
  font: 600 15px/1.4 var(--display);
  color: var(--text);
}

@media (max-width: 479px) {
  .site-head .brand {
    gap: 10px;
    font-size: 20px;
    letter-spacing: 2px;
  }

  .site-head .brand img {
    width: 40px;
    height: 24px;
  }

  h1 {
    font-size: 24px;
  }
}

@media (max-width: 359px) {
  .site-head .brand span {
    font-size: 17px;
    letter-spacing: 1px;
  }

  .back a {
    padding: 0 12px;
  }
}
