/*
 * The Standard Reader, brand tokens.
 *
 * Tier 2 of the Semetrika example set. Every page is assembled from
 * Semetrika's own components and value classes; everything that makes
 * them look like a newspaper rather than the default theme lives in
 * this one file, and this file contains nothing but token overrides.
 *
 * Load order (see docs/content/tokens.md):
 *
 *   <link rel="stylesheet" href="semetrika.min.css">
 *   <link rel="stylesheet" href="brand.css">
 *
 * Semetrika declares its own tokens inside `@layer tokens`, the weakest
 * layer in the bundle, so these unlayered `:root` rules win whichever
 * order the two files load in.
 *
 * The three ramps below are absolute brand colors, which is why none
 * of them needs a `:root[data-color-scheme='dark']` counterpart. The
 * semantic tokens that reference them already flip by scheme upstream,
 * so overriding the ramps re-themes the light scheme and the dark one
 * in a single pass. A consumer only has to write a dark block when
 * they override a semantic token directly, because an unlayered
 * override outranks Semetrika's own dark declarations.
 *
 * Ramps generated with the palette generator on the docs site from one
 * seed color each.
 */

:root {
  /* Ink. Structure: body copy, borders, header, footer, quiet surfaces. */
  --color-primary-1: #eef6ff;
  --color-primary-2: #cbd9e9;
  --color-primary-3: #aebccb;
  --color-primary-4: #93a0af;
  --color-primary-5: #788593;
  --color-primary-6: #5e6a78;
  --color-primary-7: #45515e;
  --color-primary-8: #2e3945;
  --color-primary-9: #18232e;
  --color-primary-10: #050e18;
  --color-primary-11: #000105;

  /* Oxblood. Interactive: links, form accents, current section. */
  --color-secondary-1: #fff2f0;
  --color-secondary-2: #ffc8c4;
  --color-secondary-3: #ff9b96;
  --color-secondary-4: #eb7674;
  --color-secondary-5: #cb5a59;
  --color-secondary-6: #ad3e40;
  --color-secondary-7: #8e2128;
  --color-secondary-8: #6e0112;
  --color-secondary-9: #460008;
  --color-secondary-10: #220002;
  --color-secondary-11: #050000;

  /* Bottle green. Accent: pull quotes, editor's picks, section flags. */
  --color-tertiary-1: #d7fff8;
  --color-tertiary-2: #a8e6dd;
  --color-tertiary-3: #8cc8bf;
  --color-tertiary-4: #70aca3;
  --color-tertiary-5: #559088;
  --color-tertiary-6: #39756d;
  --color-tertiary-7: #1d5b54;
  --color-tertiary-8: #01423c;
  --color-tertiary-9: #012824;
  --color-tertiary-10: #00110f;
  --color-tertiary-11: #020100;

  /* A broadsheet sets everything in a serif, headlines included. */
  --font-family-primary: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --font-family-secondary: Georgia, 'Times New Roman', Times, serif;

  /* Print has no rounded corners, so neither does the online edition. */
  --option-rounded-corners: 0;

  /* A semantic token rather than a ramp: Semetrika's accent button is a
     quiet grey, and the subscribe call to action is the one place this
     paper allows itself the masthead red. */
  --btn-accent-background-color: transparent;
  --btn-accent-border-color: var(--color-secondary-7);
  --btn-accent-color: var(--color-secondary-7);
}

/*
 * The one block this file needs, and the reason the distinction above
 * matters. `--btn-accent-color` is a semantic token, not a ramp, and
 * an unlayered override outranks Semetrika's own dark declarations, so
 * without this the deep red would carry into the dark scheme and leave
 * unreadable text on a near-black page. Step 3 of the same ramp is the
 * dark-scheme reading of the masthead red.
 */
:root[data-color-scheme='dark'] {
  --btn-accent-border-color: var(--color-secondary-3);
  --btn-accent-color: var(--color-secondary-3);
}
