/* Fonts are self-hosted (no requests to Google), subset to Latin incl. Latvian & Finnish characters. */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque.woff") format("woff");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root { color-scheme: dark; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #0E1013; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }

a { color: #F5A524; }
a:hover { color: #FFC45C; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #F5A524;
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 999px;
  background: #F5A524; color: #0E1013; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.brand-logo { width: 36px; height: 36px; display: block; }

/* Subtle lift on cards that are links */
a[style*="background: #171A1F"], a[style*="border: 1px solid #2A2E35"] { transition: background-color .15s ease, border-color .15s ease; }
a[style*="background: #171A1F"]:hover { background-color: #1E2228 !important; }
a[style*="border: 1px solid #2A2E35"]:hover { border-color: #F5A524 !important; }

.form-status { margin: 0; font-size: 15px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Phones: the pages use inline styles, so these overrides need !important */
@media (max-width: 680px) {
  h1 { font-size: 40px !important; line-height: 1.05 !important; }
  h2 { font-size: min(36px, 9vw) !important; line-height: 1.05 !important; }
  [style*="padding: 56px"], [style*="padding: 48px"] { padding: 24px !important; }
  [style*="padding: 40px"] { padding: 24px !important; }
  [style*="padding: 48px 48px 40px"] { padding: 24px 24px 20px !important; }
  [style*="padding: 0 48px 48px"] { padding: 0 24px 24px !important; }
  [style*="padding: 40px 48px"] { padding: 24px !important; }
  [style*="margin: 32px; padding: 40px"] { margin: 12px !important; padding: 20px !important; }
  [style*="min-height: 620px"] { min-height: 520px !important; }
  header nav a { padding: 8px 10px !important; font-size: 14px; }
}
