/* Font face declarations */
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Reset (light) */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
img, picture, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* Base */
html { -webkit-text-size-adjust: 100%; } /* smooth-scroll removed: fights GSAP ScrollTrigger scrub and causes parallax stutter */
html, body { margin: 0 !important; padding: 0 !important; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.wp-site-blocks { padding: 0 !important; margin: 0 !important; }
.wp-site-blocks > * { margin-top: 0 !important; margin-block-start: 0 !important; }
.wp-block-template-part { margin: 0 !important; height: 0; overflow: visible; }

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

/* Mono */
.mono, code, pre, kbd { font-family: var(--font-mono); }

/* Links */
a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { text-decoration-thickness: 2px; }

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
/* .dark class is applied by sections like How It Works, Our Responsibility, footer (added in Tasks 8, 11, 4 respectively) */
.dark :focus-visible { outline-color: var(--bone); }

/* Visually hidden (screen-reader only) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--bone);
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 100ms ease-out;
}
.skip-link:focus { transform: translateY(0); }

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