:root {
  --cream: #fff9f2;
  --ink: #26342f;
  --muted: #6e7771;
  --accent: #d96c45;
  --green: #365b4a;
  --soft: #f3e9dd;
  --white: #ffffff;
  --story-text: #dde7e1;
  --content-width: 1200px;
  --page-gutter: max(44px, calc((100vw - var(--content-width)) / 2));
  color-scheme: light;
  font-family: "Manrope", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--cream);
}

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

button {
  color: inherit;
  font: inherit;
}

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

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--cream);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 var(--page-gutter);
  background: rgb(255 249 242 / 92%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  color: var(--white);
  background: rgb(54 91 74 / 96%);
  box-shadow: 0 10px 30px rgb(38 52 47 / 18%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand__mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--white);
  background: var(--accent);
  border-radius: 50%;
  font-size: 9px;
  letter-spacing: 0.2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 600;
}

.main-nav > a {
  position: relative;
}

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

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

.nav-order,
.text-link,
.add-button,
.button,
.menu-toggle {
  border: 0;
  cursor: pointer;
}

.nav-order {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--green);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 160ms ease, background-color 220ms ease;
}

.site-header.is-scrolled .nav-order {
  background: var(--accent);
}

.site-header.is-scrolled .cart-count {
  color: var(--green);
  background: var(--cream);
  border-color: var(--green);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -5px;
  display: none;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  place-items: center;
  color: var(--white);
  background: var(--accent);
  border: 2px solid var(--cream);
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
}

.cart-count.is-visible {
  display: grid;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.site-header.is-scrolled .menu-toggle span:not(.sr-only) {
  background: var(--white);
}

.hero {
  display: flex;
  align-items: center;
  gap: clamp(34px, 6vw, 92px);
  min-height: clamp(474px, 43vw, 620px);
  padding: 34px var(--page-gutter) 46px;
  background: var(--cream);
}

.hero__copy {
  flex: 1 1 0;
}

.hero h1,
.section-heading h2,
.story h2,
.order-cta h2,
.product-card h3,
.cart-dialog h2,
.cart-item h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
}

.hero h1 {
  max-width: 570px;
  font-size: clamp(48px, 4.25vw, 64px);
  line-height: 1.02;
}

.hero__copy > p {
  max-width: 520px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 160ms ease, background-color 160ms ease;
}

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

.button--accent {
  color: var(--white);
  background: var(--accent);
}

.button--accent:hover {
  background: #c95f3a;
}

.button svg,
.add-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.text-link {
  padding: 10px 0;
  color: var(--green);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.hero__photo {
  flex: 0 1 clamp(312px, 38vw, 500px);
  width: clamp(312px, 38vw, 500px);
  height: clamp(380px, 38vw, 500px);
  overflow: hidden;
  border-radius: 90px 12px 90px 12px;
  background: #ead5c3;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products {
  padding: clamp(42px, 5vw, 72px) var(--page-gutter);
  background: var(--white);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.section-heading h2 {
  margin-top: 6px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.1;
}

.section-heading > a {
  padding-block: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: 30px;
}

.product-card > img {
  width: 100%;
  height: clamp(190px, 22vw, 310px);
  border-radius: 10px;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}

.product-card:hover > img {
  filter: saturate(1.06);
  transform: translateY(-3px);
}

.product-card__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.product-card h3 {
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.25;
}

.product-card p {
  margin-top: 3px;
  color: var(--accent);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 700;
}

.add-button {
  position: relative;
  display: grid;
  flex: 0 0 clamp(30px, 3vw, 40px);
  width: clamp(30px, 3vw, 40px);
  height: clamp(30px, 3vw, 40px);
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  transition: transform 160ms ease, background-color 160ms ease;
}

.add-button::before {
  position: absolute;
  inset: -7px;
  content: "";
}

.add-button.is-added {
  background: var(--accent);
}

.story {
  display: flex;
  align-items: center;
  gap: clamp(44px, 6vw, 88px);
  min-height: clamp(300px, 30vw, 420px);
  padding: 44px var(--page-gutter);
  color: var(--white);
  background: var(--green);
}

.story__highlight {
  display: flex;
  flex: 0 0 clamp(250px, 26vw, 340px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(250px, 26vw, 340px);
  height: clamp(212px, 22vw, 280px);
  color: var(--ink);
  background: #f3e1d5;
  border-radius: 70px 8px 70px 8px;
}

.story__highlight strong {
  color: var(--accent);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(62px, 6vw, 82px);
  font-weight: 400;
  line-height: 1;
}

.story__highlight span {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
}

.story__copy {
  flex: 1 1 0;
}

.story .eyebrow {
  color: #f0b59d;
}

.story h2 {
  max-width: 470px;
  margin-top: 14px;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.05;
}

.story__copy > p:last-child {
  max-width: 520px;
  margin-top: 14px;
  color: var(--story-text);
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.55;
}

.order-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(180px, 18vw, 260px);
  padding: 34px var(--page-gutter);
  text-align: center;
  background: var(--soft);
}

.order-cta h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.1;
}

.order-cta > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.order-cta .button {
  margin-top: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--page-gutter);
  color: var(--white);
  background: var(--ink);
}

.site-footer strong {
  font-size: 13px;
  letter-spacing: 0.5px;
}

.site-footer span {
  color: #b8c1bc;
  font-size: 10px;
}

html.is-cart-open,
.is-cart-open body {
  overflow: hidden;
}

.cart-preview {
  position: fixed;
  z-index: 60;
  right: var(--page-gutter);
  bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 52px;
  padding: 12px 20px;
  color: var(--white);
  background: var(--green);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgb(38 52 47 / 20%);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cart-preview[hidden],
.cart-empty[hidden] {
  display: none;
}

.cart-preview > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cart-preview__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-preview__count {
  display: inline-block;
  min-width: 24px;
  padding: 2px 6px;
  color: var(--green);
  background: var(--cream);
  border-radius: 999px;
  text-align: center;
}

.cart-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(460px, 100%);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--cream);
  border: 0;
  box-shadow: -16px 0 48px rgb(38 52 47 / 15%);
}

.cart-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: cart-slide-in 220ms ease-out;
}

.cart-dialog::backdrop {
  background: rgb(26 37 31 / 48%);
}

.cart-dialog__header,
.cart-dialog__footer {
  flex: 0 0 auto;
  padding: 24px;
}

.cart-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--soft);
}

.cart-dialog h2 {
  margin-top: 6px;
  font-size: 32px;
  line-height: 1.15;
}

.cart-close,
.cart-quantity button,
.cart-remove {
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  color: var(--green);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.cart-close {
  flex: 0 0 44px;
  font-size: 30px;
  line-height: 1;
}

.cart-close:hover,
.cart-quantity button:hover,
.cart-remove:hover {
  background: var(--soft);
}

.cart-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 24px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cart-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-item {
  padding-block: 20px;
  border-bottom: 1px solid #e4d9cc;
}

.cart-item__heading,
.cart-item__details,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-item__heading > div {
  min-width: 0;
}

.cart-item h3 {
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cart-item__price {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.cart-remove {
  flex-shrink: 0;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-item__details {
  flex-wrap: wrap;
  margin-top: 14px;
}

.cart-quantity {
  display: flex;
  align-items: center;
  border: 1px solid #d4d9d1;
  border-radius: 8px;
}

.cart-quantity button {
  font-size: 20px;
}

.cart-item__quantity {
  min-width: 30px;
  padding-inline: 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cart-item__subtotal,
.cart-total strong {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.cart-empty {
  padding-block: 32px 12px;
  font-size: 16px;
  line-height: 1.6;
}

.cart-empty p + p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.cart-browse {
  min-height: 44px;
  margin-top: 12px;
  text-align: left;
}

.cart-dialog__footer {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--soft);
}

.cart-total {
  flex-wrap: wrap;
  font-size: 14px;
}

.cart-dialog__footer > p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.cart-checkout {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
}

.cart-checkout:disabled {
  color: var(--muted);
  background: var(--soft);
  cursor: default;
  transform: none;
}

@keyframes cart-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes cart-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgb(0 0 0 / 22%);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgb(217 108 69 / 40%);
  outline-offset: 3px;
}

@media (min-width: 681px) {
  .nav-order {
    min-height: 44px;
    font-size: 14px;
  }

  .cart-preview {
    display: none;
  }
}

@media (max-width: 680px) {
  body.has-cart-items {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .has-cart-items .toast {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .cart-preview {
    right: 16px;
    left: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 12px;
    padding-inline: 16px;
  }

  .cart-dialog {
    inset: auto 0 0;
    width: 100%;
    height: 85vh;
    height: 85dvh;
    max-height: 100%;
    border-radius: 22px 22px 0 0;
  }

  .cart-dialog[open] {
    animation-name: cart-slide-up;
  }

  .cart-dialog__header,
  .cart-dialog__footer {
    padding: 20px;
  }

  .cart-dialog__footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .cart-dialog__body {
    padding-inline: 20px;
  }

  :root {
    --page-gutter: 24px;
  }

  html {
    scroll-padding-top: 80px;
  }

  .site-shell {
    box-shadow: none;
  }

  .site-header {
    height: 68px;
  }

  .brand {
    font-size: 16px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: 60px;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 4px;
    padding: 12px;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid rgb(38 52 47 / 10%);
    border-radius: 10px;
    box-shadow: 0 18px 50px rgb(38 52 47 / 18%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav > a,
  .nav-order {
    width: 100%;
    padding: 12px;
    text-align: left;
  }

  .nav-order {
    margin-top: 4px;
    text-align: center;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 30px;
    padding-top: 54px;
    padding-bottom: 42px;
  }

  .hero h1 {
    max-width: 540px;
    font-size: clamp(42px, 12vw, 54px);
  }

  .hero__copy > p {
    max-width: 520px;
  }

  .hero__photo {
    width: 100%;
    height: min(110vw, 430px);
    flex-basis: auto;
    border-radius: 90px 12px 90px 12px;
  }

  .products {
    height: auto;
    padding-block: 42px 50px;
  }

  .section-heading {
    align-items: end;
    gap: 20px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-card > img {
    height: min(62vw, 310px);
  }

  .product-card h3 {
    font-size: 16px;
  }

  .add-button {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .story {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 34px;
    padding: 46px var(--page-gutter) 50px;
  }

  .story__highlight {
    width: 100%;
    height: 220px;
    flex-basis: auto;
    border-radius: 70px 8px 70px 8px;
  }

  .story h2,
  .story__copy > p:last-child {
    max-width: 520px;
  }

  .order-cta {
    height: auto;
    min-height: 230px;
    padding-block: 42px;
  }

  .site-footer {
    flex-direction: column;
    justify-content: center;
    height: 84px;
    gap: 7px;
  }
}

@media (max-width: 400px) {
  :root {
    --page-gutter: 20px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .text-link {
    text-align: left;
  }

  .section-heading > a {
    max-width: 92px;
    text-align: right;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
