:root {
  --vanilla: #fff6ea;
  --chocolate: #2a1712;
  --raspberry: #7a1f1b;
  --strawberry: #e9b8a6;
  --almond: #f6d7c3;
  --caramel: #c9a13a;
  --pistachio: #6a8f3a;
  --cream: #fffbf4;
  --shadow: 0 22px 50px rgba(42, 23, 18, 0.13);
  --soft-shadow: 0 14px 34px rgba(42, 23, 18, 0.09);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--vanilla);
  color: var(--chocolate);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  min-height: 74px;
  padding: 16px max(24px, calc((100vw - var(--container)) / 2));
  color: var(--cream);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 246, 234, 0.94);
  color: var(--chocolate);
  box-shadow: 0 12px 30px rgba(42, 23, 18, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.86rem;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.icon-button,
.header-order,
.button,
.add-button,
.sticky-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  cursor: pointer;
}

.icon-button svg,
.header-order svg,
.button svg,
.add-button svg,
.sticky-order svg,
.gift-options svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 251, 244, 0.62);
  background: rgba(42, 23, 18, 0.34);
  color: currentColor;
}

.menu-bars {
  display: grid;
  gap: 4px;
}

.menu-bars span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

body.icons-ready .menu-bars {
  display: none;
}

.site-header.is-scrolled .menu-toggle,
.site-header.is-open .menu-toggle {
  border-color: rgba(42, 23, 18, 0.16);
  background: rgba(42, 23, 18, 0.08);
}

.header-order {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: url("./assets/hero-strawberry-tart.jpg") center center / cover no-repeat;
}

.hero-overlay,
.final-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 23, 18, 0.38);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 170px 0 110px;
  color: var(--cream);
}

.script-note {
  margin: 0 0 4px;
  color: var(--strawberry);
  font-family: "Great Vibes", cursive;
  font-size: 2.1rem;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--raspberry);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.final-cta .script-note {
  color: var(--almond);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: 5.4rem;
}

h2 {
  font-size: 3.25rem;
}

h3 {
  font-size: 1.45rem;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 1.17rem;
  color: rgba(255, 251, 244, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.add-button:hover,
.header-order:hover,
.sticky-order:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--raspberry);
  color: var(--cream);
  box-shadow: 0 18px 36px rgba(122, 31, 27, 0.28);
}

.button-ghost {
  border: 1px solid rgba(255, 251, 244, 0.75);
  color: var(--cream);
  background: rgba(255, 251, 244, 0.08);
  backdrop-filter: blur(10px);
}

.hero-facts {
  position: absolute;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 34px;
  z-index: 2;
  display: flex;
  gap: 10px;
  color: var(--cream);
}

.hero-facts span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 251, 244, 0.38);
  border-radius: 999px;
  background: rgba(42, 23, 18, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.section {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

#delivery {
  scroll-margin-top: 96px;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 32px 0 74px;
}

.intro-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(42, 23, 18, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 251, 244, 0.72);
}

.intro-item p {
  margin: 0;
  font-weight: 600;
}

.intro-number {
  color: var(--caramel);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 750;
}

.section-heading {
  display: grid;
  gap: 16px;
  max-width: 680px;
  margin-bottom: 38px;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: rgba(42, 23, 18, 0.72);
  font-size: 1.03rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card,
.collection-card,
.review-card {
  overflow: hidden;
  border: 1px solid rgba(42, 23, 18, 0.09);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--soft-shadow);
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--almond);
}

.product-card:nth-child(2) .product-media,
.collection-card:nth-child(2) {
  aspect-ratio: auto;
}

.product-card:nth-child(2) .product-media img {
  object-position: center 45%;
}

.product-card:nth-child(3) .product-media img {
  object-position: center 68%;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.86);
  color: var(--raspberry);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.macro-strip {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(42, 23, 18, 0.08);
  background: #fff1e2;
  color: rgba(42, 23, 18, 0.72);
  font-size: 0.79rem;
  font-weight: 700;
}

.macro-strip img {
  width: 64px;
  height: 54px;
  border-radius: 6px;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
}

.product-body p {
  margin: 10px 0 0;
  color: rgba(42, 23, 18, 0.72);
  font-size: 0.94rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--raspberry);
  font-weight: 900;
  white-space: nowrap;
}

.add-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--chocolate);
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

.add-button:hover {
  background: var(--raspberry);
}

.sensory {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: center;
}

.sensory-photo {
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sensory-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
}

.sensory-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.sensory-list article {
  min-height: 168px;
  padding: 22px;
  border: 1px solid rgba(42, 23, 18, 0.08);
  border-radius: var(--radius);
  background: var(--almond);
}

.sensory-list span {
  color: var(--raspberry);
  font-weight: 900;
  text-transform: uppercase;
}

.sensory-list p {
  margin: 12px 0 0;
  color: rgba(42, 23, 18, 0.74);
}

.collections {
  padding-top: 64px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.collection-card {
  display: grid;
  min-height: 430px;
  grid-template-rows: 1fr auto auto;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.collection-card img {
  min-height: 260px;
}

.collection-card span {
  display: block;
  padding: 18px 18px 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.32rem;
  font-weight: 650;
}

.collection-card p {
  margin: 8px 0 0;
  padding: 0 18px 22px;
  color: rgba(42, 23, 18, 0.72);
}

.craft {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 54px;
  align-items: center;
}

.craft-copy .script-note {
  color: var(--raspberry);
}

.craft-copy p:not(.script-note):not(.eyebrow) {
  margin: 22px 0 0;
  color: rgba(42, 23, 18, 0.74);
  font-size: 1.06rem;
}

.craft-gallery {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  grid-template-rows: 260px 260px;
  gap: 16px;
}

.craft-gallery img {
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.craft-gallery img:first-child {
  grid-row: 1 / 3;
}

.gift {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: none;
  padding: 96px max(24px, calc((100vw - var(--container)) / 2));
  background: var(--almond);
}

.gift-media {
  height: 620px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gift-copy {
  max-width: 560px;
}

.gift-copy p:not(.eyebrow) {
  margin: 22px 0 0;
  color: rgba(42, 23, 18, 0.74);
  font-size: 1.05rem;
}

.gift-options {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}

.gift-options span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--raspberry);
  font-weight: 850;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review-card {
  margin: 0;
}

.review-card img {
  height: 260px;
}

.review-card blockquote {
  margin: 0;
  padding: 24px 24px 16px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.22;
}

.review-card figcaption {
  padding: 0 24px 24px;
  color: var(--raspberry);
  font-weight: 800;
}

.final-cta {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: url("./assets/mini-tarts.jpg") center center / cover no-repeat;
  color: var(--cream);
  text-align: center;
}

.final-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 48px));
}

.final-content h2 {
  margin-bottom: 30px;
}

.sticky-order {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  min-height: 54px;
  padding: 0 18px 0 20px;
  border-radius: 999px;
  background: var(--raspberry);
  color: var(--cream);
  box-shadow: 0 20px 45px rgba(122, 31, 27, 0.34);
  font-weight: 900;
  transition: transform 180ms ease;
}

.sticky-order strong {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 999px;
  background: var(--cream);
  color: var(--raspberry);
  font-size: 0.82rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--chocolate);
  color: var(--cream);
  box-shadow: var(--shadow);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav {
    gap: 16px;
    font-size: 0.86rem;
  }

  .header-order {
    display: none;
  }

  h1 {
    font-size: 4.3rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .product-grid,
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-media {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: 72px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 14px 20px;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .main-nav {
    position: fixed;
    inset: 72px 16px auto 16px;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(42, 23, 18, 0.1);
    border-radius: var(--radius);
    background: var(--cream);
    color: var(--chocolate);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    padding: 14px 12px;
    border-radius: 6px;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: var(--almond);
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    min-height: 78vh;
    background-position: center top;
  }

  .hero-content {
    width: calc(100% - 40px);
    padding: 138px 0 96px;
  }

  h1 {
    font-size: 3.28rem;
  }

  h2 {
    font-size: 2.28rem;
  }

  .hero-copy {
    max-width: 33rem;
    font-size: 1.02rem;
  }

  .hero-facts {
    left: 20px;
    right: 20px;
    bottom: 24px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .section {
    width: calc(100% - 40px);
    padding: 72px 0;
  }

  .intro-strip,
  .sensory,
  .craft,
  .gift,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .intro-strip {
    padding: 28px 0 48px;
  }

  .sensory-photo,
  .gift-media {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .craft-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .craft-gallery img,
  .craft-gallery img:first-child {
    grid-row: auto;
    height: 280px;
  }

  .gift {
    width: 100%;
    padding: 72px 20px;
  }

  .gift-copy {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-content {
    padding-bottom: 118px;
  }

  .hero-copy {
    max-width: 30ch;
    font-size: 0.98rem;
  }

  .hero-facts {
    flex-wrap: wrap;
    overflow: visible;
  }

  .hero-facts span {
    flex: 1 1 calc(50% - 8px);
    white-space: normal;
    text-align: center;
  }

  .hero-facts span:last-child {
    flex-basis: 100%;
  }

  .script-note {
    font-size: 1.8rem;
  }

  h1 {
    font-size: 2.62rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.24rem;
  }

  .hero-actions,
  .button,
  .product-footer {
    width: 100%;
  }

  .button,
  .add-button {
    justify-content: center;
  }

  .intro-item {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .collection-grid,
  .sensory-list {
    grid-template-columns: 1fr;
  }

  .product-media {
    aspect-ratio: 4 / 4.6;
  }

  .collection-card {
    min-height: 0;
  }

  .collection-card img {
    min-height: 230px;
  }

  .review-card img {
    height: 230px;
  }

  .final-cta {
    min-height: 460px;
  }

  .sticky-order {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    width: calc(100% - 32px);
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
