/* Font, design tokens and element defaults. Components are BEM blocks in components/,
   single-purpose helpers are u- classes in utilities/. */

/* Golos Text (SIL OFL, see assets/fonts/OFL.txt): one variable file per script covers weights 400–900 */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(../fonts/golos-text-latin-ext-wght-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: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(../fonts/golos-text-latin-wght-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colours: mostly green */
  --color-bg: #f3f7f2;
  --color-surface: #ffffff;
  --color-text: #17271d;
  --color-muted: #5b6e61;
  --color-border: #d7e3d9;
  --color-primary: #2d7a4b;
  --color-primary-hover: #23623c;
  --color-primary-soft: #e2f0e6;

  /* Backup and other statuses */
  --color-good: #2d7a4b;
  --color-good-soft: #e2f0e6;
  --color-warning: #b26a00;
  --color-warning-soft: #fbefd9;
  --color-bad: #b83227;
  --color-bad-soft: #f8e1df;

  --font: 'Golos Text', system-ui, sans-serif;

  --space-xs: 0.25rem;
  --space-s: 0.5rem;
  --space-m: 1rem;
  --space-l: 1.5rem;
  --space-xl: 2.5rem;

  --radius: 0.625rem;
  --shadow: 0 1px 2px rgb(23 39 29 / 0.06), 0 2px 8px rgb(23 39 29 / 0.04);
  --page-width: 56rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  font-weight: 650;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

p,
ul {
  margin: 0;
}

a {
  color: var(--color-primary);
}

a:hover {
  color: var(--color-primary-hover);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

input,
button {
  font: inherit;
  color: inherit;
}

input[type="date"],
input[type="password"],
input[type="text"] {
  min-height: 2.5rem;
  padding: var(--space-xs) var(--space-s);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) * 0.6);
  background: var(--color-surface);
}

/* iOS zooms in on focused inputs with smaller text */
@media (pointer: coarse) {
  input {
    font-size: 16px;
  }
}
