/* base.css – reset, variables, typography (redesign: distinct identity) */

:root {
  --color-primary: #0d2d4d;
  --color-primary-rgb: 13, 45, 77;
  --color-accent: #FBC227;
  --color-accent-alt: #f8a809;
  --color-accent-light: #ffe270;
  --color-tertiary: #4a7d3d;
  --color-tertiary-light: #6b9b5e;
  --color-cream: #f8f5f0;
  --color-warm: #f0ebe3;
  --color-white: #fff;
  --color-text: #2c2c2c;
  --color-text-muted: #5a5a5a;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", "DM Sans", serif;
  --container-max: 1120px;
  --container-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space-section: clamp(4rem, 10vw, 7rem);
  --space-block: clamp(1.5rem, 4vw, 2.5rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
  --footer-bottom-font-size: 0.7rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  margin: 0 0 0.4em;
  line-height: 1.2;
  font-weight: 800;
  font-family: var(--font-display);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--container-gutter);
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--container-gutter);
}

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