/*
  Fold Band tokens
  Feel: a hand-kept personal homepage. One warm white sheet sits on a cool grey,
  finely hatched desk. A striped vermilion ribbon runs down the sheet's left edge,
  folds across it as the navigation band, and carries on down the right edge.
  Condensed bold headlines in vermilion, a bookish serif for reading, and bold
  caps sans for labels. Retro, honest and a little nerdy.

  Fonts (free, Google Fonts):
  <link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Barlow:wght@500;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap" rel="stylesheet">
*/
:root {
  /* Desk (the page behind the sheet) */
  --fb-desk: #8a8f9a;
  --fb-desk-line: #838893;
  --fb-desk-ink: #2a2d33;

  /* Sheet */
  --fb-sheet: #fffdf8;
  --fb-sheet-alt: #f6f1e7;
  --fb-rule: #e4ddcf;
  --fb-rule-strong: #c9bfae;

  /* Ink */
  --fb-ink: #16171b;
  --fb-ink-soft: #3d3f46;
  --fb-muted: #6f6a62;

  /* Ribbon */
  --fb-ribbon: #ef6128;
  --fb-ribbon-light: #ff9257;
  --fb-fold: #b8471a;
  --fb-link: #b13d0c;
  --fb-link-hover: #7d2a06;
  --fb-on-ribbon: #ffffff;

  /* Small status colors */
  --fb-ok: #2f7a4b;
  --fb-ok-bg: #e5f1e8;
  --fb-warn: #a46a00;
  --fb-warn-bg: #fbefd2;

  /* Fonts */
  --fb-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --fb-font-label: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --fb-font-body: "Source Serif 4", Georgia, serif;

  /* Type scale */
  --fb-size-mast: clamp(3rem, 7vw, 4.75rem);
  --fb-size-h1: clamp(2.4rem, 5vw, 3.4rem);
  --fb-size-h2: 1.5rem;
  --fb-size-h3: 1.15rem;
  --fb-size-body: 1.0625rem;
  --fb-size-small: 0.9375rem;
  --fb-size-label: 0.8125rem;
  --fb-leading: 1.6;
  --fb-leading-tight: 1.02;
  --fb-track-caps: 0.04em;

  /* Shape */
  --fb-ribbon-w: 34px;
  --fb-band-h: 46px;
  --fb-radius-sheet: 12px;
  --fb-radius: 4px;
  --fb-border: 1px solid var(--fb-rule);
  --fb-border-ink: 2px solid var(--fb-ink);
  --fb-shadow-sheet: 0 1px 0 rgba(0, 0, 0, 0.08), 0 18px 40px -24px rgba(20, 22, 28, 0.55);
  --fb-shadow-card: 0 1px 0 var(--fb-rule-strong);
  --fb-stripes: repeating-linear-gradient(135deg, var(--fb-ribbon) 0 9px, var(--fb-ribbon-light) 9px 15px);
  --fb-hatch: repeating-linear-gradient(45deg, var(--fb-desk) 0 3px, var(--fb-desk-line) 3px 4px);

  /* Space */
  --fb-sheet-w: 760px;
  --fb-pad: 44px;
  --fb-space-1: 4px;
  --fb-space-2: 8px;
  --fb-space-3: 12px;
  --fb-space-4: 16px;
  --fb-space-5: 24px;
  --fb-space-6: 32px;
  --fb-space-7: 48px;
  --fb-space-8: 64px;
}

@media (max-width: 640px) {
  :root {
    --fb-ribbon-w: 14px;
    --fb-band-h: auto;
    --fb-pad: 20px;
    --fb-radius-sheet: 8px;
  }
}
