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

* {
  margin: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

svg {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: var(--amber);
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

a:hover {
  color: var(--amber-deep);
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

/* Typography scale — fluid via clamp() so type scales smoothly between
   mobile and desktop without hard jumps at the 768px breakpoint.
   Min values target a 360–375px phone; max values target 1280px+ desktop. */
.h1 {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(34px, 6.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.body-l {
  font-size: clamp(15.5px, 1.4vw, 19px);
  line-height: 1.55;
}

.body {
  font-size: 15px;
  line-height: 1.55;
}

.caption {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.muted {
  color: var(--ink-muted);
}

/* Body & eyebrow scale — body grows slightly on desktop for comfortable
   reading; eyebrow nudges +1px. Display headings are fluid via clamp() above. */
@media (min-width: 768px) {
  body {
    font-size: 16px;
  }
  .body {
    font-size: 16px;
  }
  .eyebrow {
    font-size: 12px;
  }
}

/* Layout utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: 5rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 7rem;
  }
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* Skip link — visible on keyboard focus */
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms var(--ease-out);
  z-index: 100;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--paper);
}

/* Visually-hidden helper */
.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;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}
