/* ---------------------------------------------------------------------------
 * The chrome every website page shares, dressed as a field guide to the world
 * it is a window onto: paper white, one ink, hairline rules, and the game's
 * own faint iso diamond grid under everything — render/ground.ts draws that
 * same grid inside the game, at the same 2:1 slope.
 *
 * Color is rationed on purpose: these pages are ink on paper, and every hue is
 * left to the things that mean something — the live dot, the clan pennants,
 * the blobs themselves. Each page layers its own stylesheet over this one.
 * ------------------------------------------------------------------------- */

:root {
  --paper: #fcfcfa;
  --ink: #23272f;
  --ink-soft: #6d7380;
  --hair: rgba(35, 39, 47, 0.14);
  --hair-soft: rgba(35, 39, 47, 0.07);
  --grid: rgba(35, 39, 47, 0.055);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.6 var(--body);
  background-color: var(--paper);
  /* The world's diamond grid, at iso's own 2:1 slope (atan 0.5 = 26.565°). */
  background-image:
    repeating-linear-gradient(26.565deg, var(--grid) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(-26.565deg, var(--grid) 0 1px, transparent 1px 46px);
}

::selection {
  background: rgba(35, 39, 47, 0.14);
}

a {
  color: inherit;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* Small letterspaced caps: the field guide's label, and every secondary line
 * on the site wears it. */
.caps {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --- top bar --------------------------------------------------------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 0;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark img {
  display: block;
  margin-top: 2px;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}

.top nav a {
  color: var(--ink-soft);
  text-decoration: none;
  text-underline-offset: 3px;
}

.top nav a:hover,
.top nav a[aria-current="page"] {
  color: var(--ink);
}

.top nav a:hover {
  text-decoration: underline;
}

/* --- footer ---------------------------------------------------------- */
footer {
  border-top: 1px solid var(--hair);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 20px 0 34px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.foot a {
  color: var(--ink-soft);
  text-decoration: none;
  text-underline-offset: 3px;
}

.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
