:root {
  --cream: #F0E4D3;
  --cream-light: #FFF8EE;
  --orange: #C1440C;
  --orange-dark: #9C3A0F;
  --espresso: #2E1F16;
  --slate: #3E4550;
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { max-width: 38em; }

a { color: inherit; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--cream-light);
  padding: 15px 30px;
  border: 0;
  border-radius: 4px;
  font: 500 16px 'Work Sans', system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--orange-dark); }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--cream-light);
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url(images/fallback-hero.svg) center / cover no-repeat, var(--orange-dark);
}
/* The sun sits above the legibility overlay so it stays bright. It uses the same sizing as the background, so the two always line up. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url(images/sun.svg) center / cover no-repeat;
}
.hero > .wrap { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .hero-bg,
  .hero::before { background-position: 86% center; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
    rgba(46, 31, 22, 0.9) 0%,
    rgba(46, 31, 22, 0.62) 40%,
    rgba(46, 31, 22, 0) 75%);
}
.hero :focus-visible { outline-color: var(--cream-light); }

.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg { width: 38px; height: 38px; }

.hero-copy { padding-bottom: clamp(48px, 10vh, 104px); }
.hero h1 {
  font-size: clamp(46px, 7.4vw, 100px);
  max-width: 11em;
  margin-bottom: 24px;
}
.lede {
  font-size: clamp(18px, 2vw, 21px);
  max-width: 30em;
  margin-bottom: 32px;
}
.hero-note { font-size: 14px; margin-top: 18px; opacity: 0.9; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.24s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Intro ---------- */
.intro { padding-block: clamp(72px, 11vw, 140px); }
.intro .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.intro h2 { font-size: clamp(32px, 4.4vw, 56px); }
.intro p { color: var(--slate); font-size: 19px; }

/* ---------- Split (photo + text) ---------- */
.split { padding-bottom: clamp(72px, 11vw, 140px); }
.split .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.photo {
  width: 100%;
  border-radius: 4px;
  background-color: var(--orange-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.photo-rocks {
  aspect-ratio: 4 / 5;
  background-image: url(images/red-rocks.jpg), url(images/fallback-rocks.svg);
}
.photo-case {
  aspect-ratio: 4 / 3;
  background-image: url(images/product-case.jpg), url(images/fallback-case.svg);
}
.photo-box {
  aspect-ratio: 4 / 3;
  background-image: url(images/product-box.jpg), url(images/fallback-box.svg);
}
.split h2 { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 22px; }
.split p { color: var(--slate); margin-bottom: 16px; }

/* ---------- Steps ---------- */
.steps-section { padding-bottom: clamp(72px, 11vw, 140px); }
.steps-section h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  margin-bottom: clamp(36px, 5vw, 64px);
  max-width: 14em;
}
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 5vw, 64px);
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 52px;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 16px;
}
.steps h3 { font-size: 22px; margin-bottom: 10px; }
.steps p { color: var(--slate); font-size: 16px; }

/* ---------- Product ---------- */
.product {
  background: rgba(46, 31, 22, 0.06);
  padding-block: clamp(72px, 11vw, 140px);
}
.product-head { margin-bottom: clamp(32px, 5vw, 56px); }
.product-head h2 { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 18px; }
.product-head p { color: var(--slate); }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 32px);
}
.caption { font-size: 14px; color: var(--slate); margin-top: 12px; }

/* ---------- Pricing ---------- */
.pricing { padding-block: clamp(72px, 11vw, 140px); }
.pricing h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  margin-bottom: clamp(32px, 5vw, 56px);
  max-width: 14em;
}
.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 5vw, 64px);
}
.points h3 { font-size: 22px; margin-bottom: 10px; }
.points p { color: var(--slate); font-size: 16px; }

/* ---------- Quote ---------- */
.quote {
  background: var(--espresso);
  color: var(--cream);
  padding-block: clamp(72px, 11vw, 140px);
}
.quote blockquote {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 24em;
}

/* ---------- Waitlist ---------- */
.waitlist { padding-block: clamp(72px, 11vw, 140px); }
.waitlist .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.waitlist h2 { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 18px; }
.waitlist .intro-copy p { color: var(--slate); }
form { display: grid; gap: 20px; }
label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
label span { font-weight: 400; color: var(--slate); }
input, textarea {
  width: 100%;
  font: inherit;
  color: var(--espresso);
  background: var(--cream-light);
  border: 1px solid rgba(46, 31, 22, 0.5);
  border-radius: 4px;
  padding: 13px 14px;
}
textarea { min-height: 120px; resize: vertical; }
.form-help { font-size: 14px; color: var(--slate); }
.form-status { min-height: 1.6em; font-size: 15px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
footer {
  background: var(--espresso);
  color: var(--cream);
  padding-block: 48px;
  font-size: 14px;
}
footer .wrap {
  display: grid;
  gap: 20px;
}
footer .row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
footer p { max-width: 46em; opacity: 0.85; }
footer a { text-underline-offset: 3px; }
footer :focus-visible { outline-color: var(--cream-light); }

/* ---------- Legal page ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 56px var(--gutter) 96px; }
.legal .brand { color: var(--espresso); margin-bottom: 48px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--slate); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .intro .wrap,
  .split .wrap,
  .waitlist .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .photo-rocks { aspect-ratio: 4 / 3; }
}
