/* Purpose: Element reset, global typography, the ambient gold-dust wash and shared text
   utilities (eyebrow, kicker, lead, section head, gold rule). Mobile first. */

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

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

body {
  margin: 0;
  padding-bottom: 80px; /* clears the sticky mobile dock */
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient gold-dust wash over the whole page. A theme UI texture, not content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-base);
  pointer-events: none;
  background: url("../images/gold-dust.webp") center / cover no-repeat;
  opacity: var(--opacity-dust);
  mix-blend-mode: screen;
}

body > * {
  position: relative;
  z-index: var(--z-raised);
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  margin: 0;
  color: var(--color-ink);
}

h4 {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  margin: 0;
  color: var(--color-ink);
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-hero);
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--leading-h2);
  letter-spacing: var(--tracking-h2);
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--leading-h3);
}

h4 {
  font-size: var(--fs-19);
  line-height: var(--leading-h4);
  letter-spacing: var(--tracking-snug);
}

p {
  margin: 0 0 var(--space-18);
  /* Avoids a lone word on the last line of body copy. */
  text-wrap: pretty;
}

/* Inline highlight helpers — editors may type these into heading fields.
   .hl = gold words, .hl-u = foil underline. */
.hl {
  display: inline-block;
  padding: 0 0.04em;
  color: var(--color-gold-300);
  text-shadow: var(--text-glow-hl);
}

.hl-u {
  position: relative;
  display: inline-block;
  padding-bottom: 0.06em;
  color: var(--color-ink);
}

.hl-u::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--foil-soft);
  box-shadow: var(--shadow-underline);
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-gold-300);
  margin: 0 0 var(--space-20);
}

.eyebrow .hl {
  letter-spacing: var(--tracking-eyebrow);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-10);
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
  font-size: var(--fs-11-5);
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  color: var(--color-gold-300);
  margin: 0 0 var(--space-18);
  border: 1px solid var(--color-line-2);
  border-radius: var(--radius-full);
  padding: var(--space-8) var(--space-18);
  background: var(--card-kicker);
  box-shadow: var(--shadow-inset-top);
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  transform: rotate(45deg);
  background: var(--foil-soft);
  box-shadow: var(--shadow-dot);
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--leading-lead);
  color: var(--color-ink-3);
  font-weight: var(--weight-regular);
}

.center {
  text-align: center;
}

.section-head {
  max-width: 840px;
  margin: 0 auto var(--space-60);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-head h2 {
  margin-bottom: var(--space-16);
}

.section-head .lead {
  margin: 0;
  /* Even line lengths — no single word stranded on the last line. */
  text-wrap: balance;
}

/* Gold hairline divider with a lozenge — stands in for the kicker on heads without one. */
.goldrule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  width: 100%;
  max-width: 260px;
  margin: 0 0 var(--space-26);
}

.goldrule::before,
.goldrule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-gold);
}

.goldrule__gem {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  transform: rotate(45deg);
  background: var(--foil-soft);
  box-shadow: var(--shadow-lozenge);
}

/* Round gold check badge shared by the checklist, audience grid and bullet lists. */
.tick {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  margin-top: var(--space-3);
  border-radius: 50%;
  background: var(--foil-soft);
  color: var(--color-dark-ink);
  display: grid;
  place-items: center;
  font-weight: var(--weight-black);
  font-size: var(--fs-13);
  box-shadow: var(--shadow-tick);
  transition: transform var(--duration-med) var(--ease-spring);
}

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

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

.skip-link {
  position: absolute;
  top: var(--space-8);
  left: var(--space-8);
  z-index: var(--z-dock);
  padding: var(--space-8) var(--space-16);
  background: var(--foil);
  color: var(--color-dark-ink);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-xs);
  transform: translateY(-200%);
  transition: transform var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  transform: translateY(0);
}

@media (min-width: 561px) {
  body {
    padding-bottom: 0;
    font-size: var(--fs-17);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
