/* Sindorin website tokens. Generated from the Sindorin Design System (screen medium only). */

/* Instrument Sans (SIL OFL 1.1), variable weight 400–700, self-hosted from Google Fonts */
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/InstrumentSans-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;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/InstrumentSans-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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/InstrumentSans-normal-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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/InstrumentSans-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;
}

/* Colour */
:root {
  /* Base palette */
  --sd-charcoal: #1F2321;
  --sd-graphite: #3A403D;
  --sd-ochre: #A5541F;
  --sd-ochre-light: #D98B55;
  --sd-sage: #6A7A73;
  --sd-mist: #A9B3AD;
  --sd-stone: #DCDCD5;
  --sd-paper: #F7F6F2;
  --sd-white: #FFFFFF;
  --sd-black: #000000;

  /* Accent plumbing: surfaces pick one */
  --accent-light-ground: var(--sd-ochre);
  --accent-dark-ground: var(--sd-ochre-light);

  /* Semantic: light surface (default) */
  --text-primary: var(--sd-charcoal);
  --text-secondary: var(--sd-graphite);
  --text-inverse: var(--sd-paper);
  --surface-page: var(--sd-white);
  --surface-paper: var(--sd-paper);
  --surface-inset: var(--sd-paper);
  --surface-dark: var(--sd-charcoal);
  --border-subtle: var(--sd-stone);
  --border-strong: var(--sd-charcoal);
  --border-cover: var(--sd-mist);
  --accent: var(--accent-light-ground);
  --accent-contrast: var(--sd-white);
  --logo-ink: var(--sd-charcoal);

  /* Data and phases (See / Decide / Act) */
  --phase-see: var(--sd-charcoal);
  --phase-decide: var(--sd-sage);
  --phase-act: var(--sd-mist);

  /* Links */
  --link: var(--sd-charcoal);
  --link-hover: var(--accent);
}

/* Type. One family, three weights. */
:root {
  --font-sans: 'Instrument Sans', Aptos, 'Segoe UI', Arial, sans-serif;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  --tracking-display: -0.02em;
  --tracking-title: -0.015em;
  --tracking-heading: -0.01em;
  --tracking-label: 0.08em;

  --leading-display: 1.05;
  --leading-title: 1.1;
  --leading-heading: 1.25;
  --leading-tight: 1.3;
  --leading-body: 1.5;
  --leading-label: 1.2;

  --t-h2: 26px;
  --t-h3: 20px;
  --t-lead: 19px;
  --t-body: 16px;
  --t-small: 14px;
  --t-label: 12px;
  --t-meta-label: 11px;
  --t-meta-value: 14px;
}

/* Spacing, rules, radii. No shadows, no gradients. */
:root {
  --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;

  --rule-hair: 1px;
  --rule-strong: 3px;
  --accent-rule-w: 40px;
  --accent-rule-h: 3px;

  --radius-panel: 6px;
  --radius-control: 4px;

  --duration-fast: 120ms;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

/* Dark ground: Charcoal background, Paper text, light accent */
[data-surface="dark"] {
  --text-primary: var(--sd-paper);
  --text-secondary: var(--sd-mist);
  --text-inverse: var(--sd-charcoal);
  --surface-page: var(--sd-charcoal);
  --surface-inset: var(--sd-graphite);
  --border-subtle: var(--sd-graphite);
  --border-strong: var(--sd-paper);
  --border-cover: var(--sd-graphite);
  --accent: var(--accent-dark-ground);
  --accent-contrast: var(--sd-charcoal);
  --logo-ink: var(--sd-paper);
  --phase-see: var(--sd-paper);
  --phase-decide: var(--sd-mist);
  --phase-act: var(--sd-sage);
  --link: var(--sd-paper);
  --link-hover: var(--accent);
}

/* Paper ground: insets flip to White so panels and highlights stay visible */
[data-surface="paper"] {
  --surface-page: var(--sd-paper);
  --surface-inset: var(--sd-white);
}

/* Base */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sd-paper); color: var(--text-primary); font-family: var(--font-sans); font-size: var(--t-body); line-height: var(--leading-body); }
a { color: var(--link); transition: color var(--duration-fast) var(--ease); }
a:hover { color: var(--link-hover); }
