/*
  THEME: the only file you need to edit to change the look of the site.
  Values come from the Tyura brand guidelines (sections 3 and 4).
*/

/* Fonts are served from assets/fonts (no Google requests, so no visitor IPs go to Google).
   Both are variable fonts: one file covers every weight. Licences: assets/fonts/OFL-*.txt */
@font-face {
  font-family: "Figtree";
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/figtree-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: "Figtree";
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/figtree-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/jost-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: "Jost";
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/jost-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand palette (brand book 3.1) */
  --tyura-forest: #004214;   /* main colour, 60% of the page */
  --tyura-yellow: #FFCF00;   /* sun yellow, 10%, dark backgrounds only */
  --tyura-cream: #FBF6E6;    /* light backgrounds, 25% */
  --tyura-leaf: #2F7A4A;     /* charts, icons, small accents on cream */
  --tyura-mist: #E6EDE4;     /* panels on cream */

  /* Dark sections (default): forest background, cream text, yellow accent */
  --color-canvas: var(--tyura-forest);
  --color-text: var(--tyura-cream);
  --color-muted: rgba(251, 246, 230, 0.75);
  --color-border: rgba(251, 246, 230, 0.2);
  --color-accent: var(--tyura-yellow);
  --color-surface: var(--tyura-yellow);      /* filled buttons */
  --color-on-surface: var(--tyura-forest);   /* text on filled buttons */

  /* Light sections: cream background, forest text */
  --color-canvas-light: var(--tyura-cream);
  --color-text-light: var(--tyura-forest);
  --color-muted-light: var(--tyura-leaf);
  --color-border-light: rgba(0, 66, 20, 0.2);
  --color-panel-light: var(--tyura-mist);

  /* Typography (brand book 4): Jost for headlines, Figtree for reading */
  --font-main: "Figtree", system-ui, sans-serif;
  --font-heading: "Jost", system-ui, sans-serif;
  --font-size-body: 20px;
  --font-size-sm: 15px;
  --font-size-caption: 14px;
  --font-size-md: 26px;
  --font-size-lg: 40px;     /* subhead */
  --font-size-xl: 56px;     /* headline */
  --font-size-hero: clamp(40px, 5.4vw, 76px);   /* display */
  --font-weight-body: 400;
  --font-weight-emphasis: 600;
  --font-weight-heading: 500;
  --line-height-heading: 1.05;
  --letter-spacing-caps: 0.2em;

  /* Spacing */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 28px;
  --space-xl: 56px;
  --space-2xl: 112px;

  /* Shape: calm and sharp, no heavy rounding */
  --radius-card: 6px;
  --radius-button: 999px;
  --radius-pill: 999px;
}
