/* ============ Container ============ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 5rem);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 5rem);
}

/* ============ Typography ============ */
/* Questrial is single-weight (400). H1 is the editorial italic serif moment. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
}

/* H1 = editorial italic serif (signature design moment) */
h1 {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.75rem, 8.5vw, 7rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.025em; line-height: 1.05; }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.02em; line-height: 1.1; }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.2; }

/* Body — Questrial reads slightly larger than Inter, no bump needed */
p { letter-spacing: -0.005em; }

p { color: var(--fg-muted); font-size: var(--fs-18); max-width: 60ch; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--fg); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* Post-it style accent : handwritten + marker highlight */
.italic-accent {
  font-family: var(--font-handwritten);
  font-style: normal;
  font-weight: 600;
  color: var(--fg);
  position: relative;
  display: inline-block;
  z-index: 0;
  padding: 0 0.12em;
  line-height: inherit;
  transform: rotate(-1.5deg);
  letter-spacing: 0.005em;
}
.italic-accent::before {
  content: '';
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  bottom: 0.08em;
  height: 0.55em;
  background: linear-gradient(95deg,
    color-mix(in srgb, var(--accent) 65%, transparent) 0%,
    color-mix(in srgb, var(--accent-soft) 70%, transparent) 50%,
    color-mix(in srgb, var(--accent) 55%, transparent) 100%);
  border-radius: 6px 18px 8px 14px;
  z-index: -1;
  transform: skew(-3deg) scaleX(0);
  transform-origin: left center;
  transition: transform 0.75s 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.italic-accent.is-marked::before {
  transform: skew(-3deg) scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .italic-accent::before { transform: skew(-3deg) scaleX(1); }
}

/* Handwritten font reads slightly larger — bump headline-level usage */
h1 .italic-accent,
h2 .italic-accent { font-size: 1.08em; }

/* ============ Section spacing ============ */
section { padding: clamp(4rem, 10vw, 8rem) 0; }
section.compact { padding: clamp(3rem, 6vw, 5rem) 0; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

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