/* ==========================================================================
   Prom 2027 - base layer: reset, page shell, typography, utilities
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ivory);
  background-color: var(--navy-900);
  background-image:
    radial-gradient(120% 75% at 50% -10%, rgba(212, 175, 55, 0.1), transparent 58%),
    radial-gradient(85% 55% at 100% 105%, rgba(212, 175, 55, 0.055), transparent 62%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-850) 55%, var(--navy-900) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--ivory);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

p,
ul,
ol,
dl,
table {
  margin: 0 0 var(--space-md);
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: var(--space-3xs);
}

strong {
  font-weight: 600;
  color: var(--ivory);
}

a {
  color: var(--gold-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--gold-hairline);
  transition: color var(--dur-1) var(--ease), text-decoration-color var(--dur-1) var(--ease);
}

a:hover {
  color: var(--ivory);
  text-decoration-color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection {
  background: var(--gold);
  color: var(--navy-900);
}

hr {
  border: 0;
  border-top: 1px solid var(--gold-hairline-soft);
  margin: var(--space-lg) 0;
}

blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--ivory-muted);
}

/* --- Layout shells -------------------------------------------------------- */

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2.5rem, var(--container-narrow));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-2xl);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

@media (min-width: 64rem) {
  .section {
    padding-block: var(--space-3xl);
  }
}

.section--tight {
  padding-block: var(--space-xl);
}

.section--hairline-top {
  border-top: 1px solid var(--gold-hairline-soft);
}

.section__head {
  max-width: 40rem;
  margin-bottom: var(--space-lg);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

/* --- Type utilities ------------------------------------------------------- */

.eyebrow {
  display: block;
  margin: 0 0 var(--space-xs);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--ivory-muted);
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 0.9;
}

.gold {
  color: var(--gold);
}

.measure {
  max-width: var(--measure);
}

.text-center {
  text-align: center;
}

.visually-hidden,
.sr-only {
  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-link {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  transform: translate(-50%, -160%);
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-2) var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: var(--navy-900);
}

/* --- Lists ---------------------------------------------------------------- */

.list-plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-plain li + li {
  margin-top: 0;
}

/* --- Prose (policy, privacy) ---------------------------------------------- */

.prose {
  max-width: var(--measure);
  color: var(--ivory-muted);
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--ivory);
}

.prose h2 {
  margin-top: var(--space-xl);
}

.prose h3 {
  margin-top: var(--space-lg);
}

.prose a {
  color: var(--gold-light);
}

.prose ul,
.prose ol {
  padding-left: 1.1rem;
}

.prose li::marker {
  color: var(--gold);
}

/* --- Reveal on scroll (enhanced by main.js) -------------------------------- */

[data-reveal] {
  opacity: 1;
}

html.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
}

html.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --- Motion preferences ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html.has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

