/* Design tokens: colour, type and space. Values come from the cover art. */

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("../fonts/libre-baskerville-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("../fonts/libre-baskerville-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: optional;
  src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: optional;
  src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  /* Ground */
  --ink-950: #0e1213;
  --ink-900: #141a1b;
  --ink-700: #2a3638;
  --ink-600: #44514f;

  /* Type on dark */
  --ivory: #f0e7d2;
  --bone: #cfc7b3;
  --stone: #9a9585;

  /* Accent */
  --ochre: #cf9534;
  --ochre-hot: #e5ac45;
  --ochre-ink: #1a1408;

  /* Paper: the book page, used for plates and the press bio */
  --paper: #efe6d0;
  --paper-ink: #1b1710;
  --paper-accent: #6a4a10;

  /* Type families */
  --font-display: "Libre Baskerville", georgia, "Times New Roman", serif;
  --font-label: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", arial, sans-serif;
  --font-body: "Source Serif 4", georgia, "Times New Roman", serif;

  /* Type scale */
  --text-sm: 0.9375rem;
  --text-base: 1.125rem;
  --text-lg: 1.3125rem;
  --text-h3: 1.375rem;
  --text-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --text-h1: clamp(2.25rem, 1.3rem + 4.2vw, 4.5rem);
  --leading-tight: 1.12;
  --leading-body: 1.65;
  --measure: 62ch;

  /* Space, 4px base */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  /* Layout */
  --page-max: 70rem;
  --page-pad: clamp(1.25rem, 4vw, 2.5rem);

  /* Shape: square corners, flat shadows, hairline rules */
  --radius: 2px;
  --rule: 1px solid var(--ink-700);
  --rule-double: 4px double var(--ink-600);
  --shadow-hard: 8px 8px 0 rgb(0 0 0 / 55%);
  --focus: 3px solid var(--ochre-hot);
}
