/* BookMaestro design tokens. DESIGN.md is the source of truth: change both files together.
   Defining tokens restyles nothing; a page opts in with its own theme stylesheet (welcome-theme.css). */
/* Lato, SIL Open Font License (lato-OFL.txt) */
@font-face {
  font-family: 'Lato';
  src: url('/lato-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/lato-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/lato-italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Color */
  --bm-teal: #006072;
  --bm-teal-dark: #244750;
  --bm-orange: #f27b35;
  --bm-orange-line: #c95f22;
  --bm-gold: #c4a15b;
  --bm-coral: #ff715b;
  --bm-ink: #192d3b;
  --bm-muted: #53646a;
  --bm-paper: #ffffff;
  --bm-surface-warm: #f3f1eb;
  --bm-line: #c6d3d1;
  --bm-error: #a02e2b;
  --bm-danger: #983149;
  --bm-success: #285345;

  /* Shelf edge */
  --bm-shelf-top: #c8935d;
  --bm-shelf-face-light: #ad7444;
  --bm-shelf-face-dark: #92603b;
  --bm-shelf-bottom: #664226;
  --bm-shelf-highlight: #e0b98c;

  /* Main page: section bands, the solid block set behind a card, sample chips, goal colors */
  --bm-panel-night: #263f4b;
  --bm-panel-slate: #3d6467;
  --bm-panel-plum: #5c4059;
  --bm-panel-tan: #e8ded3;
  --bm-panel-straw: #f0d795;
  --bm-panel-sage: #d8e1dc;
  --bm-block-tan: #bc9f74;
  --bm-block-sage: #71877d;
  --bm-block-mint: #b9cbb4;
  --bm-block-night: #233e40;
  --bm-chip: #edf0e1;
  --bm-chip-gold: #f2dfb0;
  --bm-plum: #774b70;
  --bm-gold-dark: #947021;

  /* Type */
  --bm-font: 'Lato', Arial, sans-serif;
  --bm-type-title: 56px;
  --bm-type-section: 46px;
  --bm-type-h3: 30px;
  --bm-type-h4: 22px;
  --bm-type-subsection: 37px;
  --bm-type-brand: 32px;
  --bm-type-lead: 30px;
  --bm-type-card: 25px;
  --bm-type-hint: 20px;
  --bm-type-body: 18px;
  --bm-type-control: 16px;
  --bm-type-small: 13px;

  /* Spacing: the gaps between stacked lines and groups, page margins, card padding */
  --bm-space-line: 0.25rem;
  --bm-space-label: 0.375rem;
  --bm-space-group: 0.5rem;
  --bm-space-section: 1rem;
  --bm-space-major: 1.5rem;
  --bm-gutter: 32px;
  --bm-pad-card: 20px;

  /* Radius */
  --bm-radius-cover: 2px;
  --bm-radius-control: 8px;
  --bm-radius-card: 12px;
  --bm-radius-image: 20px;
  --bm-radius-panel: 24px;
  --bm-radius-pill: 999px;
}

@media (max-width: 1024px) {
  :root {
    --bm-gutter: 24px;
  }
}

@media (max-width: 750px) {
  :root {
    --bm-type-title: 38px;
    --bm-type-section: 34px;
    --bm-type-h3: 24px;
    --bm-type-h4: 20px;
    --bm-type-subsection: 34px;
    --bm-type-brand: 28px;
    --bm-type-card: 24px;
    --bm-type-hint: 18px;
    --bm-type-body: 17px;
  }
}

@media (max-width: 600px) {
  :root {
    --bm-gutter: 16px;
    --bm-pad-card: 16px;
  }
}
