/*
 * Shared visual primitives for the whole site.
 *
 * Page-specific CSS may alias these values, but must keep its own geometry,
 * illustration colours and interaction state tokens local.
 */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext-600-normal.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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-600-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext-700-normal.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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-700-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --site-bg: #faf8f2;
  --site-surface: #fffdfa;
  --site-surface-muted: #eeece4;
  --site-text: #20313d;
  --site-text-soft: #53636c;
  --site-text-faint: #647178;
  --site-brand-emerald: #1f735f;
  --site-brand-emerald-soft: #dcebe5;
  --site-ornament-emerald: #1f6c5c;
  --site-brand-berry: #8b3d5c;
  --site-ornament-berry: #a44057;
  --site-brand-gold: #a88445;
  --site-brand-violet: #6f5878;
  --site-nav-bg: #faf8f2;
  --site-nav-border: #c8ad78;
  --site-nav-accent: #1b6d59;
  --site-border: #ddd9cf;
  --site-focus: #8b3d5c;
  --site-selection-bg: #e6c7d2;
  --site-selection-text: #20313d;
  --site-shadow: 0 1px 2px rgba(27, 43, 50, .06), 0 10px 28px rgba(27, 43, 50, .07);
  --site-font-display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --site-font-serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --site-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --site-bg: #104a52;
    --site-surface: #185b61;
    --site-surface-muted: #246a6d;
    --site-text: #f5f3ea;
    --site-text-soft: #cad8d6;
    --site-text-faint: #b6caca;
    --site-brand-emerald: #79dec2;
    --site-brand-emerald-soft: #164b4d;
    --site-ornament-emerald: #72cdb5;
    --site-brand-berry: #e0a5ca;
    --site-ornament-berry: #be50b4;
    --site-brand-gold: #d7b96f;
    --site-brand-violet: #c4b2dd;
    --site-nav-bg: #104a52;
    --site-nav-border: #987d49;
    --site-nav-accent: #8be4c8;
    --site-border: #3a7477;
    --site-focus: #efa5c3;
    --site-selection-bg: #75406d;
    --site-selection-text: #f5f3ea;
    --site-shadow: 0 1px 2px rgba(2, 22, 28, .34), 0 12px 32px rgba(2, 19, 25, .28);
  }
}

:root[data-theme='dark'] {
  --site-bg: #104a52;
  --site-surface: #185b61;
  --site-surface-muted: #246a6d;
  --site-text: #f5f3ea;
  --site-text-soft: #cad8d6;
  --site-text-faint: #b6caca;
  --site-brand-emerald: #79dec2;
  --site-brand-emerald-soft: #164b4d;
  --site-ornament-emerald: #72cdb5;
  --site-brand-berry: #e0a5ca;
  --site-ornament-berry: #be50b4;
  --site-brand-gold: #d7b96f;
  --site-brand-violet: #c4b2dd;
  --site-nav-bg: #104a52;
  --site-nav-border: #987d49;
  --site-nav-accent: #8be4c8;
  --site-border: #3a7477;
  --site-focus: #efa5c3;
  --site-selection-bg: #75406d;
  --site-selection-text: #f5f3ea;
  --site-shadow: 0 1px 2px rgba(2, 22, 28, .34), 0 12px 32px rgba(2, 19, 25, .28);
}

:root[data-theme='light'] {
  --site-bg: #faf8f2;
  --site-surface: #fffdfa;
  --site-surface-muted: #eeece4;
  --site-text: #20313d;
  --site-text-soft: #53636c;
  --site-text-faint: #647178;
  --site-brand-emerald: #1f735f;
  --site-brand-emerald-soft: #dcebe5;
  --site-ornament-emerald: #1f6c5c;
  --site-brand-berry: #8b3d5c;
  --site-ornament-berry: #a44057;
  --site-brand-gold: #a88445;
  --site-brand-violet: #6f5878;
  --site-nav-bg: #faf8f2;
  --site-nav-border: #c8ad78;
  --site-nav-accent: #1b6d59;
  --site-border: #ddd9cf;
  --site-focus: #8b3d5c;
  --site-selection-bg: #e6c7d2;
  --site-selection-text: #20313d;
  --site-shadow: 0 1px 2px rgba(27, 43, 50, .06), 0 10px 28px rgba(27, 43, 50, .07);
}

::selection {
  background: var(--site-selection-bg);
  color: var(--site-selection-text);
  text-shadow: none;
}
