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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "cv11", "ss01";
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Headings: Castoro display for h1/h2, Inter for the rest */
h1, h2, h3, h4, h5, h6 { color: var(--text); line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

/* Numeric scoring values */
.tabular-nums, .score-num, .kpi-val, .series-total {
  font-variant-numeric: tabular-nums;
}

/* Links */
a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Touch targets */
button, input, select, textarea, a.btn {
  min-height: 44px;
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Swiss grid helpers */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 0.4rem;
}
.mono { font-family: var(--font-mono); }
.text-brand { color: var(--brand); }
.text-orange { color: var(--brand-2); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Checkboxes and radios keep their natural size (the 44px rule is for text-like controls) */
input[type="checkbox"], input[type="radio"] {
  min-height: 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--brand);
  flex: none;
}
