/* ============================================================
   TRUMPONI — Base: reset, fonts, typography, a11y primitives
   ============================================================ */

/* Self-hosted variable fonts (latin) */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../assets/fonts/cinzel-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/spacegrotesk-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

* { margin: 0; }

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

body {
  background-color: var(--c-ink);
  color: var(--c-cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden; /* guard: no horizontal scrollbars from decorative layers */
  background-image:
    radial-gradient(1100px 620px at 85% -5%, rgba(227, 179, 65, .07), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(110, 20, 35, .12), transparent 55%),
    radial-gradient(1000px 800px at 110% 75%, rgba(20, 53, 38, .12), transparent 55%);
}

/* subtle marble grain over everything, sits under content */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  background-size: 140px;
  opacity: .035;
  pointer-events: none;
  z-index: 1;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .02em;
  color: var(--c-cream);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a {
  color: var(--c-gold);
  text-decoration: none;
}
a:hover { color: var(--c-gold-bright); }

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

::selection { background: var(--c-gold); color: var(--c-ink); }

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

/* ---------- a11y primitives ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: .65rem 1rem;
  background: var(--c-gold);
  color: var(--c-ink);
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  transition: top var(--dur-1) var(--ease-out);
}
.skip-link:focus { top: 0; }

.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;
}

/* ---------- layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section-y); }

/* ---------- reduced motion: kill it all, politely ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
