/*
 * Oak Plate: tokens
 * A quiet maker's notebook on plain white. Small condensed headings, a warm book serif for
 * everything you read, faint tracked capitals for the nav and spec lines, one cobalt button
 * with a pressed lip, and the goods themselves drawn on oak-grain tiles like product photos
 * shot on a wooden table.
 *
 * Fonts (free on Google Fonts):
 * <link href="https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600;700&family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,500;1,7..72,400&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces */
  --op-paper: #FFFFFF;        /* the page, always */
  --op-mist: #F6F6F7;         /* the one quiet band per page, input wells */
  --op-rule: #DEDEE2;         /* hairlines and input borders */
  --op-rule-strong: #4A4A50;  /* the one long section rule */

  /* Text */
  --op-ink: #2A2A2E;          /* headings and body */
  --op-stone: #7D7D86;        /* subtitles, parentheticals, attributions */
  --op-faint: #B2B2B9;        /* nav links, spec lines, fine print */

  /* Accents */
  --op-cobalt: #2B5CE8;       /* the main button, focus rings, checked boxes */
  --op-lip: #1A3CAE;          /* the pressed bottom edge under cobalt buttons */
  --op-sky: #4C95F0;          /* small "where to buy" buttons and secondary actions */
  --op-sky-lip: #3378D6;
  --op-link: #2A2A2E;         /* links are ink with a cobalt underline */

  /* Oak: only for the object tiles */
  --op-oak: #C68E5C;
  --op-oak-light: #D9A876;
  --op-grain: #A9713F;
  --op-walnut: #6E4122;
  --op-wood: repeating-linear-gradient(97deg, rgba(90, 45, 15, .10) 0 1px, transparent 1px 7px),
             repeating-linear-gradient(97deg, transparent 0 46px, rgba(70, 35, 10, .28) 46px 48px, transparent 48px 120px),
             linear-gradient(97deg, var(--op-oak-light), var(--op-oak) 30%, var(--op-grain) 55%, var(--op-oak) 75%, var(--op-oak-light));
  --op-vignette: radial-gradient(120% 100% at 35% 30%, transparent 45%, rgba(50, 22, 5, .38) 100%);

  /* Object colors: tins, pouches and cards drawn on the oak */
  --op-art-teal: #2E6A73;
  --op-art-red: #C23A2C;
  --op-art-slate: #353D48;
  --op-art-cream: #EFE6D3;
  --op-art-gold: #C9A04A;

  /* Fonts */
  --op-head: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
  --op-serif: 'Literata', Georgia, serif;

  /* Type scale: small and quiet, the objects do the shouting */
  --op-text-hero: clamp(28px, 3.4vw, 38px);
  --op-text-h2: clamp(24px, 2.6vw, 30px);
  --op-text-h3: 20px;
  --op-text-lead: 18px;
  --op-text-body: 17px;
  --op-text-small: 14px;
  --op-text-spec: 11px;        /* tracked capitals: nav, spec lines, kickers */
  --op-tracking-spec: .16em;

  /* Shape */
  --op-radius: 3px;            /* buttons, inputs, tiles */
  --op-radius-card: 4px;
  --op-lip-size: 3px;          /* height of the pressed edge */

  /* Shadows: objects cast warm shadows down and to the right; UI barely casts any */
  --op-shadow-object: 14px 22px 26px rgba(45, 20, 4, .45), 3px 5px 6px rgba(45, 20, 4, .35);
  --op-shadow-tile: 0 1px 2px rgba(20, 20, 30, .08), 0 10px 24px -12px rgba(20, 20, 30, .25);
  --op-shadow-nav: 0 10px 16px -14px rgba(20, 20, 30, .30);

  /* Space */
  --op-container: 1040px;
  --op-narrow: 640px;
  --op-section: clamp(56px, 8vw, 96px);
  --op-gap: 28px;
}
