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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-walnut);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Paper grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  margin: 0;
  font-variation-settings: "SOFT" 60, "WONK" 0;
}

h2 {
  font-size: var(--text-h2);
  letter-spacing: -0.02em;
}

h2 em {
  font-style: italic;
  color: var(--color-clay);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

h2 + p {
  margin-top: 1.5rem;
}

h3 {
  font-size: var(--text-h3);
}

p {
  margin: 0 0 1em;
  max-width: 62ch;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sage-deep);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--color-gold);
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--color-walnut-soft);
}

/* Buttons */
.btn {
  --btn-bg: var(--color-clay);
  --btn-fg: var(--color-cream);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgb(143 63 31 / 0.6);
  transition: transform var(--duration-fast) ease, background var(--duration-normal) ease,
    box-shadow var(--duration-normal) ease;
}

.btn:hover {
  background: var(--color-clay-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgb(143 63 31 / 0.7);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--color-walnut);
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.btn--ghost:hover {
  background: var(--color-walnut);
  color: var(--color-cream);
  box-shadow: inset 0 0 0 1.5px var(--color-walnut);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

/* Wings + arch mark */
.mark {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--color-gold);
  flex: none;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
