/* Design tokens (docs/DESIGN.md "Tokens"). The ONLY file that names a colour, a radius or a
   font; every other stylesheet uses var(--…). tests/test_architecture.py checks that every
   var(--x) used anywhere is defined here or next to its use. */

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/EBGaramond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/EBGaramond-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/HostGrotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/HostGrotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* measured from the sketch source */
  --bg:        #fbf4ea;   /* page, and every odd band */
  --bg-alt:    #f2ebe2;   /* every even band */
  --ink:       #141314;   /* text and headlines */
  --muted:     #525151;   /* secondary text */
  --hairline:  #dcd5cc;   /* card and input borders */
  --brand:     #7a1f33;   /* primary buttons, active states, badges */
  --on-brand:  #fcfcfd;
  --sunk:      color-mix(in oklab, var(--bg) 94%, #000);     /* inset card on --bg */
  --sunk-alt:  color-mix(in oklab, var(--bg-alt) 94%, #000); /* inset card on --bg-alt */
  --raised:    color-mix(in oklab, var(--bg) 40%, white);    /* inputs, the nav bar */
  --radius:    8px;       /* cards, buttons, inputs */
  --radius-sm: 6px;       /* badges, chips */
  --col:       1200px;    /* max content width */
  --body:      16px;
  --display:   61px;      /* 3.8 x body, desktop */
  --display-m: 46px;      /* phone */
  --font-display: "EB Garamond", Georgia, serif;   /* weight 500 */
  --font-body:    "Host Grotesk", system-ui, sans-serif;

  /* derived (not in the sketch) */
  --line-strong: #a39b91;  /* the outlined button's 1px border (ink-muted) */
  --brand-hover: color-mix(in oklab, var(--brand) 88%, #000);
  --scrim:       color-mix(in oklab, var(--ink) 40%, transparent);
  --focus:       color-mix(in oklab, var(--brand) 55%, transparent);
  --section:     1.9rem;  /* section title, 1.9 x body */
  --card-title:  1.25rem; /* card title, 1.25 x body */
  --small:       0.875rem;
  --tiny:        0.8125rem;
  --gap-band:    48px;    /* space inside a band: phone */
  --gap-band-d:  88px;    /* desktop */
  --tap:         44px;    /* the smallest touch target */
  --tap-m:       48px;    /* buttons on a phone */
  --bar-h:       64px;    /* top bar */
  --tab-h:       64px;    /* phone tab bar */

  /* state pairs: a tint and a text colour, warm and muted like the sketch. Each text colour
     passes WCAG AA (4.5:1) on its tint, on --bg and on --bg-alt (tests/test_design_tokens.py). */
  --danger:      #a12d1c;  /* brick: clearly redder and lighter than the wine brand colour */
  --danger-tint: #f7ddd2;
  --warn:        #7d5700;  /* ochre */
  --warn-tint:   #f4e4bd;
  --ok:          #3d5e2b;  /* moss */
  --ok-tint:     #e2e9cf;
  --print-ink:   #000;
  --print-paper: #fff;
}
