/* The legal pages and the credits (ARCH §8.6), in the design system of docs/design-system.md.
   Self-contained: they must read with JavaScript off and with no build step, so the
   token block is a copy of src/ui/style.css's; keep the two in step. */

@font-face {
  font-family: 'Dela Gothic One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dela-gothic-one-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-next-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --night: #18181b;
  --well: #0d0d10;
  --surface: #222227;
  --line: #36363e;
  --paper: #fff3de;
  --fur: #d9a06b;
  --fur-deep: #8e5e3a;
  --text: #f5ecdf;
  --dim: #a6a6ae;
  --display: 'Dela Gothic One', 'Arial Black', system-ui, sans-serif;
  --ui: 'Atkinson Hyperlegible Next', system-ui, -apple-system, sans-serif;
}

/* The other themes, as style.css has them; /theme.js picks the player's. */
:root[data-theme='cocoa'] {
  --night: #1b1612;
  --well: #0f0c0a;
  --surface: #271f1a;
  --line: #3f3329;
  --dim: #bba999;
}

:root[data-theme='maroon'] {
  --night: #221418;
  --well: #140a0d;
  --surface: #2e1b21;
  --line: #4a2d36;
  --dim: #c2a6ae;
}

:root[data-theme='night-pond'] {
  --night: #221a2e;
  --well: #17111f;
  --surface: #2c2239;
  --line: #3e3150;
  --dim: #b0a2bc;
}

:root[data-theme='navy'] {
  --night: #141b2b;
  --well: #0a0f1b;
  --surface: #1b2538;
  --line: #2e3c58;
  --dim: #a0aac0;
}

:root[data-theme='deep-pond'] {
  --night: #0f1c22;
  --well: #071217;
  --surface: #14262f;
  --line: #254252;
  --dim: #94adb6;
}

:root[data-theme='forest'] {
  --night: #13201a;
  --well: #09130e;
  --surface: #1a2c22;
  --line: #2c4636;
  --dim: #9fb5a7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 20px 72px;
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
}

.site {
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.site .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  font: 400 19px/1 var(--display);
}

.site .brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0e0e10;
  box-shadow: 0 0 0 2px var(--paper);
}

.site .back {
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding-top: 40px;
}

h1 {
  font: 400 clamp(34px, 6vw, 49px) / 1.05 var(--display);
  color: var(--paper);
  margin: 0 0 8px;
}

h2 {
  font: 700 22px/1.25 var(--ui);
  margin: 40px 0 8px;
}

h3 {
  font: 700 17px/1.3 var(--ui);
  color: var(--fur);
  margin: 24px 0 4px;
}

p,
li,
dd {
  max-width: 68ch;
}

a {
  color: var(--fur);
  text-underline-offset: 3px;
}

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

.dated {
  color: var(--dim);
  font-size: 14px;
  margin: 0 0 28px;
}

.nav {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--dim);
}

dt {
  font-weight: 700;
  margin-top: 16px;
}

dd {
  margin: 2px 0 0 0;
  color: var(--dim);
}

code {
  font-size: 14px;
  background: var(--well);
  padding: 1px 6px;
  border-radius: 4px;
}

/* The credits' icon symbols: out of the flow, but still rendered for <use>. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.person h3 {
  color: var(--paper);
  margin-bottom: 8px;
}

/* The cats' photos: tiles of one shape, each opening its full-size photo. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: var(--well);
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 720px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.socials {
  display: flex;
  gap: 10px;
  margin: 0;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--fur);
}

.socials a:hover {
  color: var(--paper);
}

.socials svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
