:root {
  --bg: #f7f2eb;
  --surface: #fffdf9;
  --sand: #efe7dc;
  --ink: #2b2420;
  --muted: #6b5f57;
  --line: #e2d7c9;
  --green: #3f4b3b;
  --green-ink: #eef0e8;
  --sage: #dfe5d6;
  --accent: #a9533c;
  --accent-dark: #8e432f;
  --gold: #b48a4e;
  --radius: 20px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; }
h1 em, h2 em { display: block; font-style: italic; color: var(--accent); }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }

.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.98rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.on-dark .btn-ghost:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }

.stars { color: var(--gold); letter-spacing: 0.12em; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.92rem;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
}
.skip:focus { top: 12px; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

@media (prefers-reduced-motion: no-preference) {
  .fade-in { animation: rise 0.9s ease both; }
  .fade-in + .fade-in { animation-delay: 0.15s; }

  /* Tied to scroll position, so content can never stay hidden */
  @supports (animation-timeline: view()) {
    [data-reveal] {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 240px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
