/* ==========================================================================
   base.css — web fonts, design tokens, reset, typography, utilities
   ========================================================================== */

/* Self-hosted, subset to latin + punctuation by tools/build_fonts.py.
   Inter is a variable font, so one file covers every weight we use.
   font-display: swap keeps text visible while the font arrives. */
@font-face {
  font-family: "Inter";
  src: url("../asset/fonts/inter-variable.woff2") format("woff2-variations"),
       url("../asset/fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../asset/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../asset/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --navy-900: #081a3a;
  --navy-800: #0d2a5e;
  --navy-700: #123a7e;
  --navy-600: #1a4fa0;
  --navy-100: #e8effa;
  --green-700: #077434;
  --green-600: #0a8a3d;
  --green-500: #17a94f;
  --green-100: #e6f6ec;

  /* Neutrals */
  --ink: #142138;
  --body: #48566d;
  --muted: #6b7a91;
  --line: #e3e9f2;
  --surface: #ffffff;
  --surface-soft: #f4f7fc;
  --surface-tint: #eef3fb;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Space + shape */
  --container: 1200px;
  --gutter: 20px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 32, 70, .06), 0 2px 8px rgba(11, 32, 70, .05);
  --shadow: 0 10px 30px rgba(11, 32, 70, .09);
  --shadow-lg: 0 22px 60px rgba(11, 32, 70, .16);
  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--green-600); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* Utilities ------------------------------------------------------------- */
.u-green { color: var(--green-600); }
.u-navy  { color: var(--navy-700); }
.u-center { text-align: center; }
.u-nowrap { white-space: nowrap; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--navy-800); color: #fff;
  padding: 10px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { top: 0; color: #fff; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
