/* ============================================================
   Simulacra — base, typography, layout primitives
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  font-feature-settings: "ss01" on, "ss02" on, "cv11" on;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  text-decoration-skip-ink: auto;
}

button { font: inherit; cursor: pointer; }

::selection {
  background: rgba(255, 45, 117, 0.34);
  color: white;
}

/* ---------- typography ---------- */

.display-1, .display-2, h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 460;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-1);
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h3, h4, h5 {
  letter-spacing: -0.01em;
}

.display-1 {
  font-size: clamp(54px, 8.4vw, 112px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 460;
}
.display-2 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 470;
}

h1 { font-size: clamp(40px, 5.6vw, 72px); }
h2 { font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-size: clamp(20px, 1.6vw, 24px); font-family: var(--font-body); font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; }
h4 { font-size: 18px; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }

p { margin: 0; }

.lede {
  font-family: var(--font-body);
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 400;
  max-width: 64ch;
}
.lede--narrow { max-width: 52ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 460;
}

.mono { font-family: var(--font-mono); font-size: 0.9em; letter-spacing: 0.005em; }
.mono-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }

.gradient-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--narrow { max-width: var(--content-narrow); }
.container--wide { max-width: var(--content-wide); }

.section { padding-block: var(--section-y); position: relative; }
.section--lg { padding-block: var(--section-y-lg); }
.section--top { padding-top: clamp(110px, 14vh, 168px); }

.section--paper {
  background: var(--paper-50);
  color: var(--paper-ink);
}
.section--paper .eyebrow { color: rgba(21, 23, 31, 0.55); }
.section--paper .lede { color: var(--paper-ink-2); }
.section--paper h1, .section--paper h2, .section--paper h3, .section--paper h4 { color: var(--paper-ink); }

.divider {
  height: 1px;
  background: var(--line-1);
  border: 0;
  margin: 0;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 8px;
  inset-block-start: 8px;
  padding: 8px 12px;
  background: white;
  color: black;
  border-radius: var(--r-1);
  transform: translateY(-200%);
  transition: transform 200ms;
  z-index: 1000;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal]:not(.is-revealed) {
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
