/* Reset + base typography */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  background: var(--color-white);
  color: var(--color-nearblack);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  line-height: inherit;
}

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

/* iOS Safari force-zooms the whole page when a focused field's text is
   under 16px, and never zooms back out — so every field must clear 16px
   on phones, whatever the body scale is. */
@media (max-width: 768px) {
  input,
  textarea,
  select {
    font-size: 16px;
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--color-orange);
  color: var(--color-white);
}

::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--color-ivory);
}
::-webkit-scrollbar-thumb {
  background: var(--color-ink-45);
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-ivory);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-nearblack);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Shared micro-label used across every section */
.eyebrow {
  display: block;
  font-size: var(--text-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-wider);
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

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

/* Thin rule used as a section accent */
.rule {
  width: 48px;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--color-gold),
    color-mix(in srgb, var(--color-gold) 30%, transparent)
  );
  border: 0;
  margin: var(--space-4) 0;
}

.rule--center {
  background: var(--color-gold);
}

.rule--center {
  margin-inline: auto;
}
