/* Shared by every page of the new design, the home and each project's room:
   the fonts (each downloads only where a page uses it), and how the site
   wears a theme. The palettes themselves are in themes.css (generated). */

@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('/fonts/public-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Melodrama'; src: url('/fonts/melodrama-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

/* Roles on the theme's 16 Base16 slots. A theme is only a palette; this is
   how the site wears it. Five projects take five accents; green (0B), cyan
   (0C) and brown (0F) are free for projects still to come. */
:root {
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --paper: var(--base00);          /* the background */
  --ink: var(--base05);            /* text and the name */
  --rule: var(--base02);           /* quiet dividers */
  --quiet: var(--base03);          /* tuning panel */
  --sealed-1: var(--base08);       /* red */
  --sealed-3: var(--base09);       /* orange */
  --tickets: #221f1b;              /* the house it opens on (--tickets-room), a shade lighter so its faces still model; the same in every theme */
  --updates: var(--base0D);        /* blue */
  --sealed-2: var(--base0E);       /* magenta */
  /* What a volume holds, where it is not the volume's own colour: the room
     it opens into. The volume is the outside, the room the inside. Inside a
     ticket is the house, its lights down, in every theme. The Updates room
     is its own blue, the inside of the envelope, so the way in spills one
     colour; the letter in it is on pale blue airmail paper. */
  --tickets-room: #10100e;
  --airmail-paper: #dde7f1;
  /* The airmail label, the same on the Updates volume's spine and in its
     room: cream with the volume's blue, darkened, for ink. */
  --mail-label: color-mix(in oklab, #f3ead3, var(--updates) 8%);
  --mail-label-ink: color-mix(in oklab, var(--updates), black 35%);
  /* Marks and text on a project's colour are light on colours darker than
     this lightness and dark on lighter ones: where the two give equal
     contrast. */
  --mark-flip: 0.58;
}

/* Each project's own colour: its volume, and its room unless --room says
   otherwise. The way in spills one into the other. The sealed volumes keep
   their colours under plain numbers until they open. */
.s1 { --own: var(--sealed-1); }
.s2 { --own: var(--sealed-2); }
.s3 { --own: var(--sealed-3); }
.tickets { --own: var(--tickets); --room: var(--tickets-room); }
.updates { --own: var(--updates); }

* { box-sizing: border-box; }
body { margin: 0; }
