/* beta/paper.css -- the Beta programme on paper.
 *
 * WHY THIS FILE EXISTS. Every other page on this site is a dark page: its text is #eceff3 and its
 * surfaces are near-black, measured against a dark ground. "Some pages should be light" is
 * therefore not a palette switch -- it is a page-level theme, and this is that theme, for the one
 * page whose subject (a programme you can walk into) suits a printed sheet.
 *
 * WHAT IT OVERRIDES, and why nothing else: style.css is entirely token-driven, so re-declaring the
 * tokens here flips every component at once -- cards, pills, the demo stage, the checks. The few
 * rules below the token block are the places where style.css names a colour outside a token.
 *
 * THE CONTRAST IS MEASURED, NOT CHOSEN. pytmp/check_beta_contrast.py reads this file and style.css
 * and asserts every text/background pair at >= 4.5:1 (WCAG AA for body text). If a colour here
 * changes without that check passing, the page is wrong, not the check.
 */

:root {
  /* the sheet */
  --bg: #f7f2e8;
  --bg-soft: #efe7d6;
  --surface: #fffdf8;
  --surface-hi: #fffefb;
  --rule: #ded3bf;
  --line: #cdbfa6;

  /* the ink */
  --text: #211b14;
  --muted: #574a3a;
  --faint: #6b5c49;

  /* the accents are INK, not glow: the dark-page accents (amber #f2a93b and friends) sit at about
     1.8:1 on paper and cannot be used for text. These are their printed counterparts. */
  --accent: #8a5a12;
  --accent-2: #1f4f8f;
  --accent-3: #1c6b4a;
  --accent-4: #6a3b8f;
}

/* The wordmark's square is the page's ground. The moon and the stroke follow --text already, so on
   paper the mark is dark ink on a pale tile instead of pale ink on a dark one. */
.wordmark__mark .m-bg { fill: #f7f2e8; }

/* Selection is ink on a warm highlight, not the browser's default blue. */
::selection { background: #f0d9a8; color: #211b14; }

/* A hairline shadow is what makes a card read as a piece of card rather than a flat rectangle on a
   flat page. It is 6% ink, so it cannot move any measured contrast. */
.card,
.try__stage,
.try__tabs { box-shadow: 0 1px 0 rgba(33, 27, 20, .06); }

/* The demo frame holds another page's own design; give it a paper border so it sits ON the sheet
   instead of floating. */
.try__frame { background-color: var(--surface); }

/* The skip link is a control, so it keeps a real surface of its own. */
.skip-link { background-color: var(--surface); color: var(--text); }
