/* ==========================================================================
   boffo.css: the Boffo look, shared by the Boffo page and the live demo
   --------------------------------------------------------------------------
   Boffo keeps its own look rather than the site's: cream paper, one ink,
   oxblood, Bodoni for display, Caslon for copy, a typewriter face for
   fiction. This file holds what the pages share: the two color schemes,
   the type, the page base and the small-capital labels. Each page keeps
   only its own layout. Change a color here and both pages follow.

   Fonts: each page links Bodoni Moda, Libre Caslon Text and Courier Prime
   from Google Fonts in its own <head> (the security rules allow them only
   there).
   ========================================================================== */

/* Light: the cream of Aaron's mockup */
body:not(.dark-mode) {
  --page: #f1ebdf; --side: #ebe3d4; --card: #fbf8f1; --sunk: #f5f0e6; --field: #fffdf8;
  --ink: #1b1814; --muted: #6e665a; --faint: #a39a8a; --rule: #e0d7c6; --rule-soft: #ece5d8;
  --red: #a3241e; --red-hover: #b82d26; --red-ink: #a3241e; --on-red: #ffffff;
  --solid: #1d1a16; --on-solid: #fbf8f1; --ok: #2f8f4e; --active: #f3dfd6;
}

/* Dark */
body.dark-mode {
  --page: #0f0e0c; --side: #14120f; --card: #1a1814; --sunk: #13110e; --field: #201d18;
  --ink: #efe7d6; --muted: #a39a88; --faint: #6f675a; --rule: #332e26; --rule-soft: #262219;
  --red: #a8322b; --red-hover: #bd3d34; --red-ink: #e3897b; --on-red: #fff6ea;
  --solid: #efe7d6; --on-solid: #15130f; --ok: #5fb37a; --active: #2a1d1a;
}

:root {
  --display: "Bodoni Moda", "Bodoni 72", Didot, "Bodoni MT", Georgia, serif;
  --serif: "Libre Caslon Text", "Big Caslon", Baskerville, Georgia, serif;
  --type: "Courier Prime", "Courier New", Courier, monospace;
  --label: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

body {
  margin: 0; background: var(--page); color: var(--ink); font-family: var(--serif);
  font-size: 17px; line-height: 1.6; transition: background-color .3s, color .3s;
}

/* Small capitals: the labels, in one voice everywhere. */
.caps { font-family: var(--label); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
