/* Liminal Games Studio, shared styles.
   Tokens first, then the parts every page uses: header, footer, buttons and the
   long-form document layout used by the Poly Blockade privacy and support pages.
   Page-specific styles stay inline in each page.

   Type is one family, Archivo, and its width axis carries the identity: the
   studio speaks at 112%, Poly Blockade at its widest (125%) and Leave No
   Witnesses at its narrowest (62%). */

/* Archivo is served from fonts/ (SIL Open Font License, see fonts/OFL.txt).
   Each subset is one variable file carrying both the width and weight axes;
   pages preload the latin file, and latin-ext loads only if a page needs it. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-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: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 72rem;

  --bg: #f5f6fb;
  --fg: #1a1d3a;
  --muted: #5a5f80;
  --line: #d6d9ea;

  /* Focus rings */
  --blue: #3d6bff;

  /* Leave No Witnesses: a faceted night sky */
  --lnw-a: #171a36;
  --lnw-b: #1f1d42;
  --lnw-c: #3a1f40;
  --lnw-fg: #eef0fa;
  --lnw-muted: #a3a8c8;
  --lnw-line: rgba(238, 240, 250, 0.16);

  /* Poly Blockade: bright, toy-like greens */
  --pb-a: #2ec4a6;
  --pb-b: #6ccf5f;
  --pb-c: #ffc93c;
  --pb-fg: #14172f;
  --pb-muted: #1f2747;
  --pb-line: rgba(20, 23, 47, 0.3);

  --state-unaware: #a3a8c8;
  --state-suspicious: #ffb627;
  --state-alert: #ff8a3d;
  --state-combat: #ff5e5b;

  /* Placeholder highlight for text that must be filled in before launch */
  --todo-bg: #ffe08a;
  --todo-fg: #14172f;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10122a;
    --fg: #eef0fa;
    --muted: #9ca1c4;
    --line: #2a2e55;
    --lnw-a: #1c2047;
    --lnw-b: #262352;
    --lnw-c: #44234b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10122a;
  --fg: #eef0fa;
  --muted: #9ca1c4;
  --line: #2a2e55;
  --lnw-a: #1c2047;
  --lnw-b: #262352;
  --lnw-c: #44234b;
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-inline: var(--gutter);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.wrap { max-width: var(--measure); margin-inline: auto; }
a { color: inherit; }
/* Components set their own display, which would otherwise override hidden */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Cancels the body gutter so a band runs edge to edge */
.full-bleed { margin-inline: calc(-1 * var(--gutter)); }
.facets { display: block; width: 100%; height: 100%; }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.25rem;
}
.brand { display: block; }
/* The logo's light parts are transparent, so the page shows through them */
.logo { display: block; width: auto; height: 3rem; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--fg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--fg);
  border-radius: 3px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font: inherit;
  font-size: 0.9375rem;
  font-stretch: 112%;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--fg); }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current] { color: var(--fg); }

/* Long-form documents (privacy policy, support) */
.doc-hero { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(1.25rem, 3vw, 2rem); }
.doc-hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.doc-hero .doc-meta { margin: 1.25rem 0 0; color: var(--muted); }
.doc-band { height: clamp(70px, 10vw, 120px); }

.doc {
  max-width: 42rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.doc h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.5rem;
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 1.75rem 0 0.4rem; font-size: 1.0625rem; font-weight: 650; }
.doc p, .doc ul { margin: 0 0 1rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.4rem; }
.doc a { text-underline-offset: 0.2em; }
.doc .summary {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--pb-a);
  background: color-mix(in srgb, var(--pb-a) 9%, transparent);
}
.doc .summary ul { margin: 0; }

/* Placeholders. The draft banner shows for as long as any placeholder remains. */
.todo {
  padding: 0 0.25em;
  border-radius: 2px;
  background: var(--todo-bg);
  color: var(--todo-fg);
}
.draft-banner {
  display: none;
  margin: 1.5rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  background: var(--todo-bg);
  color: var(--todo-fg);
}
body:has(.todo) .draft-banner { display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
