/* ── Self-hosted fonts (replaces next/font). Paths resolve relative to this
   file, i.e. wp-theme/icons/assets/css/ → ../fonts/. ─────────────────────── */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-normal-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-normal-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-normal-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-normal-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  /* Satoshi has no 600; 700 covers semibold/bold weights. */
  font-family: "Satoshi";
  src: url("../fonts/satoshi-normal-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Bridge the loaded families into the type tokens (mirrors app/globals.css). */
:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
}

/* ── Base reset / element defaults ──────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--c-surface);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

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

a {
  color: var(--c-green);
}

p {
  text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ── Skip link ──────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100%;
  z-index: 1000;
  padding: var(--s-3) var(--s-4);
  background: var(--c-surface-raised);
  color: var(--c-text);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  text-decoration: none;
}
.skip-link:focus {
  top: var(--s-4);
}

/* ── Editorial layout system ────────────────────────────────────────── */
.section {
  padding-block: clamp(4rem, 9vw, 8rem);
}
.page-head {
  padding-block: clamp(7.5rem, 14vw, 12rem) clamp(2.5rem, 5vw, 4rem);
}
.rule-hair {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin-block: clamp(2.5rem, 5vw, 4rem);
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-green);
  margin: 0 0 var(--s-4);
}
.lede {
  margin-top: var(--s-6);
  max-width: 40ch;
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  color: var(--c-text);
  text-wrap: pretty;
}
.stack-top {
  margin-top: var(--s-24);
}
.tail-space {
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
.section-pad {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.hf-split-line {
  padding-bottom: 0.14em;
}

/* ── Container primitive (components/primitives/Container) ───────────── */
.ic-container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.ic-container.is-prose {
  max-width: var(--max-w-prose);
}

/* ── Heading primitive (components/primitives/Heading) ──────────────── */
.ic-h {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
  margin: 0;
}
.ic-h--hero {
  font-size: var(--fs-hero);
}
.ic-h--4xl {
  font-size: var(--fs-4xl);
}
.ic-h--3xl {
  font-size: var(--fs-3xl);
}
.ic-h--2xl {
  font-size: var(--fs-2xl);
}
.ic-h--xl {
  font-size: var(--fs-xl);
}
.ic-h--lg {
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}

/* ── Button primitive (components/primitives/Button) ────────────────── */
.ic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  line-height: 1;
  padding: var(--s-3) var(--s-6);
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--d-fast) var(--e-standard),
    color var(--d-fast) var(--e-standard),
    border-color var(--d-fast) var(--e-standard);
}
.ic-btn--primary {
  background: var(--c-green);
  color: var(--c-text-on-clay);
}
.ic-btn--primary:hover {
  background: var(--c-green-soft);
}
.ic-btn--donate {
  background: var(--c-clay);
  color: var(--c-text-on-clay);
}
.ic-btn--donate:hover {
  background: var(--c-clay-hover);
}
.ic-btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.ic-btn--ghost:hover {
  border-color: var(--c-green);
  color: var(--c-green);
}

/* ── Visually-hidden utility ────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
