/* Java House coffee: tokens. From round 2 of hero frame C (Off the shelf).
   Components read the semantic tokens only. Spacing is the 4px scale plus three layout tokens. */

@font-face { font-family: "Bearo"; src: url("../assets/fonts/bearo.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../assets/fonts/clash-display-normal.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../assets/fonts/general-sans-normal.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("../assets/fonts/zodiak-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("../assets/fonts/zodiak-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  /* raw colour */
  --cream: #F3ECDF;
  --paper: #F1E9DB;
  --ink: #24130B;
  --ink-quiet: #5A4536;
  --roast: #110A06;
  --roast-2: #1B120B;

  /* the four coffees, from each bag (set on .stage by script) */
  --kenya: #0F2846;
  --yirga: #5B1410;
  --kivu: #0D3D3E;
  --arabica: #6A4C0D;

  /* semantic colour */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-quiet: var(--ink-quiet);
  --fg-on-deep: var(--cream);
  --fg-on-deep-quiet: rgba(243, 236, 223, 0.8);
  --line: rgba(36, 19, 11, 0.18);
  --line-on-deep: rgba(243, 236, 223, 0.32);

  /* type: six sizes */
  --font-display: "Bearo", "Clash Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --font-name: "Zodiak", Georgia, serif;
  --t-display: 14vw;
  --t-h2: clamp(32px, 3.9vw, 56px);
  --t-h3: 24px;
  --t-lead: 20px;
  --t-body: 16px;
  --t-small: 12px;

  /* spacing: 4px scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;

  /* layout */
  --section: 64px;
  --head-gap: 32px;
  --col-gap: 24px;
  --gutter: 20px;
  --grid-2: minmax(0, 1fr);
  --radius: 2px;
  --control: 48px;
  --max: 1312px;
  --bag-lane: 320px;   /* phones: room under the map where the travelling bag rests */
}

@media (min-width: 768px) {
  :root {
    --t-display: min(14.6vw, 26svh, 232px);
    --section: 96px;
    --head-gap: 48px;
    --col-gap: 48px;
    --gutter: 40px;
  }
}

@media (min-width: 1024px) {
  :root {
    --section: 128px;
    --gutter: 64px;
    --col-gap: 64px;
    --grid-2: minmax(0, 5fr) minmax(0, 7fr);
  }
}
