:root {
  color-scheme: light;
  --espresso: #241511;
  --walnut: #38211b;
  --cream: #fff5e8;
  --ivory: #fbf4e9;
  --rose: #f3e3dd;
  --ink: #2d1b16;
  --rust: #a13724;
  --rule: #c5a392;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--ivory);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-inline-size: 100%; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2 { line-height: 1.08; text-wrap: balance; }
p, li { line-height: 1.6; }
.wrap { width: min(70rem, calc(100% - 2 * clamp(1rem, 4vw, 2rem))); margin-inline: auto; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-height: clamp(46rem, 64vw, 58rem);
  background: var(--espresso);
  color: var(--cream);
}
.hero-scene { position: absolute; inset: 0; z-index: -1; }
.hero-scene img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 33%, rgba(36, 21, 17, .78) 58%, var(--espresso) 99%);
}
.hero-header {
  position: absolute;
  inset: 1.25rem 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
}
.brand { display: block; width: clamp(9rem, 17vw, 14rem); }
.brand img { width: 100%; height: auto; }
.hero-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .875rem;
  margin-left: auto;
  font-size: .875rem;
  font-weight: 650;
}
.hero-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--cream);
  text-decoration: none;
}
.hero-header nav a { position: relative; }
.hero-header nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 .2rem;
  height: 2px;
  background: #f5a286;
  transform: scaleX(0);
  transform-origin: left;
}
.hero-header nav a:is(:hover, :focus-visible) { color: #ffd1bb; }
.hero-header nav a:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.purchase:hover { box-shadow: 0 0 0 3px #f5a286; }
.hero-header a:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 2px; }
.hero-copy {
  padding-block: 2rem clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}
h1 { max-width: 24ch; font-size: clamp(2rem, 4.6vw, 4rem); letter-spacing: -.04em; }
.hero-copy > p:not(.audience) { max-width: 64ch; font-size: clamp(1rem, 1.55vw, 1.1875rem); }
.audience { font-size: .875rem; }
.purchase {
  min-height: 3rem;
  max-width: 100%;
  padding: .75rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--espresso);
  font: inherit;
  font-weight: 750;
  opacity: 1;
}
.section { padding-block: clamp(3rem, 7vw, 6.5rem); }
.section-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 1.5rem clamp(2rem, 7vw, 6.5rem); }
.section h2 { max-width: 24ch; font-size: clamp(1.75rem, 4vw, 3rem); letter-spacing: -.035em; }
.section-content { display: grid; align-content: start; gap: 1rem; max-width: 62ch; font-size: clamp(1rem, 1.6vw, 1.1875rem); }
.dark { background: var(--walnut); color: var(--cream); }
.deliverables ul { display: grid; padding: 0; list-style: none; border-top: 1px solid #9a7566; }
.deliverables li { padding: .75rem 0; border-bottom: 1px solid #9a7566; }
.scope, .materials, .fit { background: var(--rose); }
.process .section-content, .review .section-content { border-inline-start: 2px solid var(--rust); padding-inline-start: 1.25rem; }
.faq .section-content { gap: 0; border-top: 1px solid var(--rule); }
.faq h3 { font-size: 1em; font-weight: 650; padding-block: .8rem; border-bottom: 1px solid var(--rule); }
.closing { background: var(--espresso); text-align: center; }
.closing .section-layout { grid-template-columns: 1fr; justify-items: center; }
.closing .section-content { justify-items: center; }

@media (max-width: 700px) {
  .hero { min-height: auto; }
  .hero-header { position: relative; inset: auto; grid-row: 1; padding-block: .875rem .5rem; }
  .hero-header nav { margin-left: 0; gap: 0 .75rem; }
  .hero-scene { position: relative; height: clamp(15rem, 71vw, 23rem); }
  .hero-scene img { object-position: 50% 25%; }
  .hero-scene::after { background: linear-gradient(180deg, transparent 60%, var(--espresso)); }
  .hero-copy { padding-top: 0; }
  .section-layout { grid-template-columns: 1fr; }
}
@media (min-width: 701px) {
  .hero-scene img { height: 80%; object-position: center 72%; }
  h1 { max-width: 33ch; font-size: clamp(2.25rem, 4.3vw, 4rem); }
}
.intro {
  padding-top: 0;
  background: #e6a19a;
}

.intro-transition { background: var(--espresso); }

.intro-stage {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-inline-end: clamp(0rem, 5vw, 4rem);
}

.intro-patches {
  width: clamp(12rem, 38vw, 30rem);
  height: auto;
  align-self: flex-end;
  margin-block-end: calc(-.11 * clamp(12rem, 38vw, 30rem));
}

.intro .section-layout {
  padding-block-start: clamp(4rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 4vw, 4rem);
}

.intro h2 {
  align-self: start;
  max-width: none;
  padding-bottom: clamp(1rem, 3vw, 2.5rem);
  border-bottom: 2px solid var(--rust);
  text-wrap: wrap;
}

@media (max-width: 700px) {
  .intro-stage { justify-content: center; padding-inline-end: 0; }
  .intro .section-layout { grid-template-columns: minmax(0, 1fr); }
}
.purchase { font-size: 1rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .intro-patches { transition: translate .18s ease-out; }
  .hero-header nav a {
    transition: transform .2s ease-out, color .2s ease-out;
  }
  .hero-header nav a::after { transition: transform .22s ease-out; }
  .hero-header nav a:is(:hover, :focus-visible) { transform: translateY(-2px); }
  .purchase { transition: transform .22s ease-out, box-shadow .22s ease-out; }
  .purchase:hover { transform: translateY(-3px) scale(1.025); }
}

.menu-toggle { display: none; }

@media (max-width: 700px) {
  .hero-header { justify-content: space-between; }
  .menu-toggle:not([hidden]) {
    display: grid;
    place-content: center;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #a37e71;
    border-radius: 8px;
    background: var(--espresso);
    color: var(--cream);
    cursor: pointer;
  }
  .menu-toggle span { width: 20px; height: 2px; background: currentColor; }
  .menu-toggle:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { visibility: hidden; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .menu-toggle:not([hidden]) + nav {
    flex: 0 0 100%;
    flex-direction: column;
    border-top: 1px solid #a37e71;
  }
  .menu-toggle[aria-expanded="false"]:not([hidden]) + nav { display: none; }
  .menu-toggle:not([hidden]) + nav a { min-height: 44px; }
}

.checkout-page { background: var(--espresso); color: var(--cream); }
.checkout-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}
.checkout-header > a { color: inherit; text-underline-offset: .25em; }
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2rem, 9vw, 8rem);
}
.checkout-kicker { color: #f5a286; margin-block-end: .75rem; }
.checkout-price { font-weight: 750; font-size: 1.5rem; margin-block: 1rem .5rem; }
.checkout-payment {
  color: var(--ink);
  background: var(--ivory);
  border-radius: 12px;
  padding: clamp(1rem, 4vw, 2rem);
}
.checkout-payment h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.checkout-payment > p { margin-top: .75rem; }
#checkout-status:empty { display: none; }
#checkout-form:not([hidden]) { display: grid; gap: .75rem; margin-top: 1rem; }
.checkout-name-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.checkout-field { display: grid; gap: .5rem; }
#checkout-form input {
  width: 100%;
  padding: .75rem;
  border: 1px solid #a37e71;
  border-radius: 8px;
  background: #fffaf3;
  color: var(--ink);
  font: inherit;
}
#checkout-form .purchase { background: var(--espresso); color: var(--cream); }
#checkout-form .purchase:disabled { opacity: .65; }
.payment-error {
  padding: .875rem 1rem;
  border: 1px solid #ab4e42;
  border-inline-start-width: 4px;
  border-radius: 8px;
  background: #fbe3df;
  color: #74251d;
}
.payment-error strong { display: block; font-size: 1.0625rem; }
.payment-error p { margin-top: .25rem; }
.payment-error:focus { outline: 2px solid #74251d; outline-offset: 2px; }
a.purchase { display: inline-grid; place-items: center; text-decoration: none; }
.thank-you-layout {
  display: grid;
  justify-items: center;
  max-width: 42rem;
  padding-block: clamp(1.5rem, 6vw, 4rem) 4rem;
  text-align: center;
}
.thank-you-patches {
  z-index: 1;
  width: min(65%, 22rem);
  height: auto;
  margin-bottom: max(-2.4rem, -6vw);
}
.thank-you-card {
  width: 100%;
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1rem, 5vw, 4rem) 2rem;
  border-radius: 12px;
  background: #e6a19a;
  color: var(--ink);
}
.thank-you-card h1 { margin: 0 auto .75rem; }
.thank-you-card .purchase, .thank-you-back { margin-top: 1.25rem; }
.thank-you-back { display: inline-block; color: inherit; text-underline-offset: .2em; }
@media (max-width: 700px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr); }
}
