/* Marsadel design tokens. Every colour, type size, space and rule of the site lives here.
   Contrast ratios (WCAG 2) are printed on the component sheet, computed at build time. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/archivo-normal-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: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/archivo-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader-normal-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: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader-italic-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: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Martian Mono"; font-style: normal; font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; src: url("../fonts/martian-mono-normal-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; }

:root {
  /* colour: the plate, the one ink, the touchstone, and fire */
  --plate: #d4d2ca;        /* page ground */
  --plate-2: #c6c4bb;      /* a struck band, one step down */
  --plate-3: #b9b7ae;      /* the floor of a struck punch */
  --slip: #eeece6;         /* the record slip */
  --ink: #161715;          /* the one ink: 11.9:1 on plate */
  --ink-2: #45463f;        /* secondary text: 6.3:1 on plate, 5.5:1 on plate 2 */
  --ink-3: #5e5f57;        /* tertiary, labels on slip only: 5.5:1 on slip */
  --stone: #1a1b19;        /* the touchstone, where a record is tested */
  --on-stone: #ebe9e2;     /* 14.2:1 on stone */
  --on-stone-2: #a8a69e;   /* 7.1:1 on stone */
  --fire: #c84916;         /* graphics only on plate: notch, needle, bearings */
  --fire-text: #9a3310;    /* fire as text on plate: 4.9:1; the NOT ON SALE YET stamp only */
  --fire-stone: #f2703a;   /* fire as text on stone: 5.9:1 */
  --focus: #161715;        /* the focus ring: ink, 11.9:1 on plate (fire is kept for the one mark that matters in a view) */
  --rule: var(--ink);
  --rule-soft: rgba(22, 23, 21, 0.26);
  --rule-stone: rgba(235, 233, 226, 0.32);

  /* type families. Arabic falls to Noto Kufi Arabic (its unicode range keeps Latin untouched) */
  --f-wide: "Archivo", "Noto Kufi Arabic", "Arial Narrow", sans-serif;      /* hero line, big numerals, kickers */
  --f-text: "Newsreader", "Markazi Text", Georgia, serif;                   /* prose and headings */
  --f-mono: "Martian Mono", "Noto Kufi Arabic", ui-monospace, "Cascadia Mono", monospace; /* hashes, references */
  --f-ar-display: "Noto Kufi Arabic", "Archivo", "Segoe UI", sans-serif;    /* Latin inside Arabic falls to Archivo */
  --f-ar-text: "Markazi Text", "Newsreader in Arabic", "Noto Naskh Arabic", serif;    /* Latin inside Arabic falls to Newsreader, set 82 percent so it sits with Markazi */
  --f-ar-system: "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;        /* one Arabic word on an English page, no font download */
  --wide: 125%;            /* the extended width of Archivo */

  /* type scale. Every font size in the other sheets is one of these tokens (the build refuses a
     literal); sizes in em stay relative to their context. Five small steps, two trackings and
     two widths of Archivo. */
  --fs-xs: 0.72rem;        /* 11.5 px: labels, kickers in columns, status marks; the floor */
  --fs-s: 0.8125rem;       /* 13 px */
  --fs-m: 0.9375rem;       /* 15 px: fine print, notes, captions */
  --fs-l: 1.0625rem;       /* 17 px: small text */
  --fs-body: 1.1875rem;    /* 19 px */
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.9rem;
  --fs-step: 2.35rem;      /* step numerals */
  --fs-entry: clamp(2.6rem, 2rem + 1.6vw, 3.6rem);    /* the entry number of the ledger */
  --fs-seal-name: 1.125rem; /* a seal's name set large beside its key */
  --fs-tally-phone: 2.2rem;
  --fs-num-xs: 2.6rem;
  --fs-num-phone: 3.4rem;
  --fs-input: 16px;        /* a phone does not zoom into a field at 16 px */
  --fs-hero: clamp(1.9rem, 1.3rem + 2.1vw, 3.4rem);
  --fs-num: clamp(4.5rem, 3rem + 5vw, 8.25rem);         /* the struck price */
  --fs-num-s: clamp(2.5rem, 2rem + 1.6vw, 3.6rem);       /* step numbers */
  --fs-offer-num: clamp(3.4rem, 2.6rem + 2.4vw, 5rem);
  --fs-unit-num: clamp(4rem, 2.6rem + 3.4vw, 6.4rem);
  --fs-h1: clamp(2.1rem, 1.75rem + 1.5vw, 3.2rem);       /* page titles, serif */
  --fs-h2: clamp(1.5rem, 1.38rem + 0.5vw, 1.85rem);      /* section heads, serif, calm */
  --fs-h3: clamp(1.2rem, 1.12rem + 0.3vw, 1.38rem);
  --fs-lede: clamp(1.25rem, 1.12rem + 0.55vw, 1.6rem);
  /* Arabic: Markazi's small x height reads smaller, so Arabic sizes have their own steps */
  --fs-ar-fine: 1.125rem;  /* the floor for fine Arabic text */
  --fs-ar-l: 1.3rem;
  --fs-ar-body: 1.42rem;
  --fs-ar-lede: 1.55rem;
  --fs-ar-hero-lede: 1.7rem;
  --fs-ar-h2: 2.05rem;
  --fs-ar-h1-phone: 2.2rem;
  --fs-ar-hero: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem);
  --fs-ar-h1: clamp(2.3rem, 1.8rem + 1.6vw, 3.4rem);
  --fs-small: var(--fs-l);
  --fs-fine: var(--fs-m);
  --fs-label: var(--fs-xs);
  --fs-kicker: var(--fs-s);
  --lh-body: 1.55;
  --lh-tight: 1.08;
  --track-label: 0.08em;
  --track-kicker: 0.14em;
  --w-label: 112%;         /* Archivo for labels and controls */

  /* space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gutter: 40px;
  --max: 1440px;
  --cols: repeat(12, minmax(0, 1fr));
  --col-gap: 48px;
  --measure: 36rem;        /* one measure for prose, steps and the sources list: about 66 characters of 19 px Newsreader */
  --entry-col: 7.5rem;     /* the ledger's entry column: the entry number, the page seal */
  --folio: 4px double var(--ink); /* the folio rule between the entry column and the text: two hairlines */

  /* rules and cuts */
  --rule-1: 1px solid var(--rule);
  --rule-2: 2px solid var(--rule);
  --rule-s: 1px solid var(--rule-soft);
  --cut: 9px;
  --notch: 6px;
  /* the cut corner punch outline, for clip paths */
  --punch: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}
@media (max-width: 1360px) { :root { --col-gap: 32px; } }
/* tablets and phones: no label that carries meaning under 12 px */
@media (max-width: 1100px) { :root { --gutter: 28px; --col-gap: 24px; --fs-xs: 0.75rem; } }
@media (max-width: 720px) {
  :root { --gutter: 16px; --fs-body: 1.09rem; --measure: 100%; --fs-xs: 0.75rem; }
}
:root { --fire-text-band: #862b0c; /* fire as text on plate 2: 5.1:1 */ --chart-ground: #ebe9e2; /* the sea of the estate chart */ }
