/* Dust & Drafts v0.3: shared styles for every page */

@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/press-start-2p-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: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/press-start-2p-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-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: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0b0b18;
  --panel: #14142b;
  --tile: #1c1c3a;
  --line: #2d2b52;
  --ink: #f5f3ff;
  --muted: #a3a1c4;

  --yellow: #ffd23f;
  --red: #ff3b5c;
  --cyan: #3de0ff;
  --green: #4cff8a;
  --gold: #ffc83d;

  --pixel: "Press Start 2P", ui-monospace, "Courier New", monospace;
  --sans: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --max: 1440px;
  --gutter: clamp(16px, 3vw, 36px);
  --frame: 0 0 0 4px #000, 0 0 0 8px var(--line), 12px 12px 0 8px #000;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  background:
    radial-gradient(1100px 620px at 38% 30%, rgba(108, 60, 190, 0.28), transparent 65%),
    var(--bg);
}

a { color: inherit; text-decoration-color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--cyan); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #000;
  font-weight: 700;
  background: var(--cyan);
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ buttons & tags */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 16px 11px;
  border: 0;
  color: #15120a;
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--yellow);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.22), 4px 4px 0 #000;
  cursor: pointer;
}
.btn:hover { color: #15120a; filter: brightness(1.08); }
.btn:active { transform: translate(2px, 2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22), 2px 2px 0 #000; }
.btn:disabled,
.btn[aria-disabled="true"] {
  color: #8d8bb0;
  background: #2c2b4d;
  box-shadow: 4px 4px 0 #000;
  cursor: not-allowed;
  filter: none;
  transform: none;
}
.btn-ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-ghost:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:active { box-shadow: inset 0 0 0 2px var(--line); }
.btn-block { display: flex; width: 100%; }
.btn-big { min-height: 52px; font-size: 13px; }

.link-btn {
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  background: none;
  cursor: pointer;
}
.link-btn:hover { color: var(--ink); text-decoration-color: var(--cyan); }

.tag {
  display: inline-block;
  padding: 4px 5px 3px;
  font-family: var(--pixel);
  font-size: 8px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: 2px;
}
.tag-warn { color: #15120a; background: var(--yellow); }
.tag-muted { color: var(--ink); background: var(--line); }
.tag-you { color: #06121a; background: var(--cyan); }

/* ------------------------------------------------------------ logo */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--pixel);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo-flag {
  flex: none;
  width: 20px;
  height: 20px;
  background: repeating-conic-gradient(var(--ink) 0 25%, var(--bg) 0 50%) 0 0 / 10px 10px;
  box-shadow: 3px 3px 0 #000, 0 0 0 2px var(--ink);
}
.amp { margin: 0 0.35em; color: var(--yellow); }

.h-pixel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ forms */

.field { display: grid; gap: 6px; }
.field label,
.label {
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1.4;
  text-transform: uppercase;
}
.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  font: 500 17px/1.2 var(--sans);
  background: #0a0a1c;
  box-shadow: inset 0 0 0 2px var(--line);
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: #6d6b93; }
.input:hover { box-shadow: inset 0 0 0 2px #45427a; }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cyan); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--red); }

.check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.check input {
  width: 24px;
  height: 24px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #0a0a1c;
  box-shadow: inset 0 0 0 2px var(--line);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.check input:hover { box-shadow: inset 0 0 0 2px #45427a; }
.check input:checked {
  background:
    linear-gradient(var(--green), var(--green)) 5px 5px / 14px 14px no-repeat,
    #0a0a1c;
  box-shadow: inset 0 0 0 2px var(--green);
}
.check input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--red); }

.form-error {
  min-height: 0;
  margin: 0;
  color: #ff8fa3;
  font-size: 14px;
  font-weight: 500;
}
.form-error:empty { display: none; }
.form-note { margin: 0; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------ site footer */

.site-foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--gutter) 40px;
  color: var(--muted);
  font-size: 13px;
}
.site-foot p { max-width: 96ch; margin: 0 0 8px; }
.site-foot strong { color: var(--ink); font-weight: 600; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }

/* Touch screens: stand-alone links get a tap area at least 44px tall. */
@media (pointer: coarse) {
  .logo { min-height: 44px; }
  .site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ------------------------------------------------------------ text pages (terms, privacy, 404) */

.page-doc .doc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px var(--gutter) 8px;
}
.doc {
  max-width: 880px;
  margin: 24px auto 48px;
  padding: clamp(22px, 4vw, 44px);
  background: var(--panel);
  box-shadow: var(--frame);
}
.page-doc .site-foot { max-width: 880px; }
.doc-center { margin-top: 18vh; text-align: center; }
.doc h1 {
  margin: 16px 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.doc h2 {
  margin: 36px 0 10px;
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  text-transform: uppercase;
}
.doc p,
.doc li { max-width: 72ch; font-size: 16px; line-height: 1.65; }
.doc ul,
.doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc strong { font-weight: 700; }
.doc .lede { color: var(--ink); font-size: 18px; }
.doc .meta { color: var(--muted); font-size: 14px; }
.doc .caps { font-weight: 700; letter-spacing: 0.01em; }
.callout {
  margin: 24px 0;
  padding: 16px 18px;
  background: #0f0f24;
  box-shadow: inset 4px 0 0 var(--yellow);
}
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.doc .toc li { margin: 0; font-size: 14px; }

@media (max-width: 520px) {
  .hide-sm { display: none; }
  .logo { font-size: 11px; }
}

@media print {
  body { color: #000; background: #fff; }
  .doc { box-shadow: none; background: none; padding: 0; }
  .doc h2 { color: #000; }
  .doc-bar,
  .site-foot nav { display: none; }
}
