* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--floral);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--espresso);
  font-family: var(--serif);
  line-height: 1.12;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

h1 em {
  color: var(--cinnamon);
  font-weight: 500;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 10px;
  font-size: 25px;
}

p {
  margin: 0 0 16px;
}

/*
  Anchor positioning is handled by scroll-padding-top on html.
  Keeping section scroll-margin at 0 avoids applying the
  sticky-header offset twice.
*/
section[id] {
  scroll-margin-top: 0;
}

:focus-visible {
  outline: 3px solid rgba(173, 109, 73, .48);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
  }

  html {
    scroll-padding-top: var(--header-height);
  }

  section[id] {
    scroll-margin-top: 0;
  }

  body {
    font-size: 16px;
    line-height: 1.6;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(38px, 10.5vw, 48px);
    line-height: 1.06;
  }

  h2 {
    margin-bottom: 14px;
    font-size: clamp(31px, 8.2vw, 40px);
    line-height: 1.1;
  }

  h3 {
    margin-bottom: 8px;
    font-size: 22px;
  }

  p {
    margin-bottom: 13px;
  }
}

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