/* DYDAKTIC design tokens
   One metal, one dark, and a lot of quiet space.
   Dark is the brand and the only theme on the web. The light block below is
   kept for print and documents; nothing on the site switches to it. */

/* ---------- Fonts (open licence, self-hosted under /fonts) ---------- */
/* Montserrat stands in for the wordmark face at 500 and 600. Swap in the real
   face here and in --font-display when it is identified. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/montserrat-500-600-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: "Montserrat";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/montserrat-500-600-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: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-400-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: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-400-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: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-400-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: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-400-italic-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;
}

/* ---------- Primitives ---------- */
:root {
  /* Colour: two colours and their supports. Gold is the only hue. */
  --gold: #dabc75;
  --gold-bright: #efd79a;   /* imagery highlights; hover in dark */
  --gold-deep: #a88c48;     /* pressed in dark; text-weight gold in light */
  --black: #010000;
  --bone: #f2eee6;
  --stone: #6b6257;         /* imagery mid-tones only; not an interface colour */

  /* Type families */
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Type scale */
  --text-display-1: clamp(2.25rem, 1.25rem + 2.8vw, 3.5rem);
  --text-display-2: clamp(1.875rem, 1.25rem + 2.2vw, 3rem);
  --text-heading: clamp(1.5rem, 1.15rem + 1.2vw, 2rem);
  --text-subheading: 1.25rem;
  --text-eyebrow: 0.75rem;
  --text-lede: 1.25rem;
  --text-body: 1.0625rem;
  --text-body-sm: 0.9375rem;
  --text-quote: 26px;
  --text-label: 0.8125rem;
  --text-caption: 0.8125rem;

  --leading-display: 1.1;
  --leading-heading: 1.2;
  --leading-body: 1.6;
  --leading-quote: 1.45;

  --tracking-wordmark: 0.3em;   /* eyebrows match the wordmark */
  --tracking-label: 0.08em;     /* buttons and nav */
  --tracking-display: 0.01em;   /* display work, slightly open */

  --measure: 66ch;              /* 60 to 70 characters */

  /* Space: base unit is 16px */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Shape: corners are square. */
  --radius-none: 0;
  --radius-sm: 2px;             /* buttons and tags only */
  --radius-full: 9999px;        /* circular mark and avatar crops only */

  /* Rules: the mark's even stroke is the reference. Nothing thicker. */
  --line-hair: 1px;
  --line-rule: 2px;

  --container: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Dark theme: the brand, and the site's only theme ---------- */
:root,
[data-theme="dark"] {
  color-scheme: dark;

  --surface-000: #000000;       /* hero plates and the logo's own ground */
  --surface-100: var(--black);  /* pages */
  --surface-200: #14120f;       /* raised things, edged with a hairline */

  --ink: var(--bone);
  --ink-muted: #a8a196;         /* 7:1 on surface-200 */
  --on-gold: var(--black);

  --accent: var(--gold);        /* text, links, eyebrows, focus, primary fill */
  --accent-hover: var(--gold-bright);
  --accent-active: var(--gold-deep);
  --link: var(--accent);
  --focus: var(--accent);

  --hairline: rgba(242, 238, 230, 0.12);
  --border-strong: rgba(242, 238, 230, 0.4);

  --scrim: rgba(0, 0, 0, 0.72);
}

/* ---------- Light theme: print and documents only. Never toggled on the web. ---------- */
[data-theme="light"] {
  color-scheme: light;

  --surface-000: #ffffff;
  --surface-100: var(--bone);
  --surface-200: #e8e3d9;

  --ink: var(--black);
  --ink-muted: #4f4a42;
  --on-gold: var(--black);

  --accent: var(--gold);        /* decorative only: rules, fills */
  --accent-hover: var(--gold-deep);
  --accent-active: #85702f;
  --link: var(--gold-deep);     /* text-weight gold */
  --focus: var(--gold-deep);

  --hairline: rgba(1, 0, 0, 0.12);
  --border-strong: rgba(1, 0, 0, 0.45);

  --scrim: rgba(242, 238, 230, 0.8);
}
