@font-face {
  font-family: "Nunito";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/nunito-400.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/nunito-500.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/nunito-600.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/nunito-800.woff2") format("woff2");
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

h1, h2, h3, h4, h5, h6, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Headings */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -1.3px;
  line-height: 1.0;
  font-size: clamp(40px, 6vw, 72px);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -1.1px;
  line-height: 1.08;
  font-size: clamp(28px, 4vw, 44px);
}

.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.2;
  font-size: 22px;
}

.body { color: var(--text-muted); font-size: 16px; line-height: 1.55; }
.caption { font-size: 12px; color: var(--text-italic); font-style: italic; }

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-from) 0%, var(--gradient-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Sections */
section { padding: clamp(60px, 10vh, 120px) 0; position: relative; }

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

/* Selection */
::selection { background: var(--accent); color: var(--bg-deepest); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.visually-hidden:focus {
  position: fixed; top: 12px; left: 12px;
  width: auto; height: auto; margin: 0; padding: 8px 12px;
  clip: auto;
  background: var(--accent); color: var(--bg-deepest);
  border-radius: var(--radius-pill); font-weight: 700; z-index: 200;
}
