/* Fonts, design tokens, resets, and shared accessible utilities. */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/SpaceGrotesk.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/DMSans.ttf') format('truetype');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --blue: #082d80;
  --yellow: #f9b615;
  --cream: #f8f5eb;
  --line: #082d8026;
  --display: 'Space Grotesk', Arial, sans-serif;
  --hover-gray: #e8e5d9;
  --focus-color: #ba6b20;
  --radius-card: 12px;
  --radius-control: 6px;
  --radius-label: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--blue);
  font-family: 'DM Sans', Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 5px;
}

.wrap {
  width: min(calc(100% - 40px), 1280px);
  margin-inline: auto;
}

.label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  margin: 0 0 23px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 8px;
  left: 8px;
  background: var(--blue);
  color: white;
  padding: 14px;
  clip-path: inset(100%);
}

.skip-link:focus {
  clip-path: none;
}

@media (min-width: 700px) {
  .wrap {
    width: min(calc(100% - 64px), 1280px);
  }
  .label {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
