:root {
  --toffee: #a6572d;
  --toffee-dark: #834222;
  --espresso: #5b241b;
  --camel: #c29068;
  --linen: #eee7db;
  --paper: #f7f3ec;
  --ash: #777c76;
  --onyx: #171717;
  --white: #fffdf9;
  --line: rgba(23, 23, 23, 0.14);
  --shadow: 0 18px 60px rgba(91, 36, 27, 0.12);
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 36px;
  --container: min(1248px, calc(100vw - 32px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --step--1: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.563rem, 1.4rem + 0.8vw, 2rem);
  --step-3: clamp(1.953rem, 1.7rem + 1.2vw, 2.75rem);
  --step-4: clamp(2.441rem, 2rem + 2vw, 3.75rem);
  --step-5: clamp(3rem, 2.2rem + 3.7vw, 6.2rem);
  --step-6: clamp(4.1rem, 3rem + 6vw, 9.4rem);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--toffee) var(--linen);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--onyx);
  background: var(--paper);
  font-family: "Hanken Grotesk", "Avenir Next", sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

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

img {
  height: auto;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Chivo", sans-serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h1 {
  font-size: var(--step-5);
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-size: var(--step-2);
}

p,
li {
  overflow-wrap: anywhere;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 3px solid var(--camel);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  transform: translateY(-150%);
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--onyx);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(80px, 10vw, 152px);
}

.section-tight {
  padding-block: clamp(56px, 7vw, 96px);
}

.section-dark {
  color: var(--white);
  background: var(--onyx);
}

.section-toffee {
  color: var(--white);
  background: var(--toffee);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--toffee);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 2px;
  content: "";
  background: currentColor;
}

.section-dark .eyebrow,
.section-toffee .eyebrow {
  color: var(--camel);
}

.display {
  font-size: var(--step-6);
}

.lead {
  max-width: 63ch;
  color: rgba(23, 23, 23, 0.72);
  font-size: var(--step-1);
  line-height: 1.55;
}

.section-dark .lead,
.section-toffee .lead {
  color: rgba(255, 253, 249, 0.76);
}

.kicker-script {
  font-family: "Caveat", cursive;
  font-size: clamp(1.75rem, 2vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

@media (min-width: 768px) {
  :root {
    --container: min(1248px, calc(100vw - 64px));
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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