/* alexbacro.com shared design tokens.
   Served at /theme.css. Sub-apps (chess/, records/) link this file so every page reads as one site.
   Source of the look: Magritte's "The Banquet" (a flat red sun set in front of the trees)
   plus a night-teal phone clip, run through a slow day and night. See CLAUDE.md, "Design language". */

@font-face {
  font-family: "Gloock";
  src: url("/fonts/gloock-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* night: the resting palette */
  --night: #0f2726;        /* sky and page background */
  --night-deep: #0a1c1b;   /* lowest sky, behind the trunks */
  --foliage: #1b3b37;      /* near trees */
  --foliage-far: #24443f;  /* far, misted trees */
  --ember: #6b2c1c;        /* the warm glow behind the crowns, the only gradient */
  --haze: #33504b;         /* pale mist the trunks stand in */
  --red: #e0381f;          /* the sun. One loud red, used sparingly */
  --red-deep: #b52612;     /* red on stone (hover, focus) for contrast */
  --stone: #cfcbbd;        /* parapet, and light text on night */
  --stone-light: #dcd8cb;
  --stone-shadow: #a9a596;
  --joint: rgba(70, 66, 56, 0.16);
  --wall-ink: #2d2c27;     /* text carved into stone */
  --wall-ink-soft: #5b5850;

  --moon-shade: #7f8a82;   /* the flat phase shadow on the moon */

  --display: "Gloock", "Iowan Old Style", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* motion tokens (from the vendored animate skill; don't invent new curves) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --sun-d: clamp(120px, 17vmin, 230px);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--night);
  color: var(--stone);
  font-family: var(--body);
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
