/* ==========================================================================
   Design tokens — single source of truth for color, type and spacing.
   Every other stylesheet consumes these variables; never hardcode a hex
   value or font name outside this file.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-variable.260c81a4759b.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/manrope-variable.938c6e8019b6.woff2") format("woff2");
}

:root {
  /* Palette — matched to the institution's own crest (navy + sky blue +
     white). No green; the official emblem is monochrome blue, so the
     site's accent color follows it directly. */
  --color-navy: #16224c;
  --color-navy-dark: #0e1836;
  --color-navy-light: #2c407c;
  --color-white: #ffffff;
  --color-gray-50: #f7f8fa;
  --color-gray-100: #f3f5f7;
  --color-gray-200: #e4e8ec;
  --color-gray-300: #d3d9e0;
  --color-gray-400: #9aa4b2;
  --color-gray-600: #5b6673;
  --color-gray-800: #2a323c;
  --color-accent: #4472b8;
  --color-accent-dark: #2f5aa0;
  --color-accent-light: #eaf1fb;
  --color-danger: #b3261e;

  /* Typography — self-hosted Inter (body) / Manrope (headings) variable
     fonts, see @font-face above. System stack stays as fallback while
     the webfonts load. */
  --font-heading: "Manrope", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.625rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.25rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5.5rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 1px 1px rgba(11, 37, 69, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 16px 40px rgba(11, 37, 69, 0.16);

  --container-max: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  /* Actual header stack height (utility bar + brand row + nav strip),
     measured and set precisely by main.js on load/resize. This estimate
     is only what shows before that JS runs. */
  --header-h: 168px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-gray-800);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
}

h1 { font-size: var(--text-4xl); font-weight: 800; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--color-navy-light);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

a:hover, a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  padding-left: var(--space-5);
}

hr {
  border: none;
  border-top: 1px solid var(--color-gray-200);
  margin: var(--space-6) 0;
}

/* Accessible, visible focus state for keyboard navigation. */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  z-index: 1000;
}

.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}
