@view-transition { navigation: auto; }

:root {
  --bg: #fff9ef;
  --bg-soft: #fbdede;
  --ink: #2f2430;
  --muted: #6c5b6e;
  --line: rgba(47, 36, 48, 0.12);
  --accent: #eb749a;
  --accent-2: #f48a3c;
  --accent-3: #fff7b5;
  --accent-4: #769fcc;
  --card: rgba(255, 249, 239, 0.82);
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(84, 38, 70, 0.14);
  --radius: 28px;
  --pill: 999px;
  --container: 1180px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --font-display: "Sofia Sans Extra Condensed", sans-serif;
  --font-text: "Manrope", sans-serif;
  --fs-hero: clamp(4.3rem, 18vw, 10.8rem);
  --fs-h2: clamp(2rem, 1.1rem + 3.4vw, 3.8rem);
  --fs-h3: clamp(1.45rem, 1rem + 1.2vw, 2rem);
  --fs-body: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 90px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(235, 116, 154, 0.12), transparent 24%),
    linear-gradient(180deg, #fff9ef 0%, #fff6ef 100%);
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a,
button,
input,
textarea {
  transition: all .2s var(--ease);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

main,
footer {
  overflow: clip;
}

section {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1rem var(--gutter) 0;
  pointer-events: none;
}

.site-header.scrolled .header-pill {
  box-shadow: 0 12px 32px rgba(47, 36, 48, 0.12);
  background: rgba(255, 249, 239, 0.9);
}

.header-pill {
  pointer-events: auto;
  width: min(100%, 980px);
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1rem .7rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--pill);
  background: rgba(255, 249, 239, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.6vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: .9;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  font-size: 0.98rem;
  color: var(--ink);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.2rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: currentColor;
  transition: transform .2s var(--ease);
}

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

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  padding: 0;
  place-items: center;
  box-shadow: 0 8px 20px rgba(47, 36, 48, 0.1);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  padding: calc(2rem + var(--header-h)) var(--gutter) 1rem;
  min-height: 100svh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(235, 116, 154, 0.92) 0%, rgba(235, 116, 154, 0.84) 64%, rgba(255, 249, 239, 1) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px),
    radial-gradient(circle at 72% 16%, rgba(255, 255, 255, 0.1) 0 1.5px, transparent 1.5px),
    radial-gradient(circle at 48% 48%, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px);
  background-size: 140px 140px, 200px 200px, 180px 180px;
  opacity: .55;
  pointer-events: none;
}

.hero-inner,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-inner {
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.hero-kicker {
  margin: 0 0 .65rem;
  color: rgba(255, 249, 239, 0.92);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .82rem;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: .82;
  letter-spacing: -.04em;
  color: #fff7ef;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-ribbon {
  position: relative;
  z-index: 2;
  margin: -1.2rem 0 -2rem;
  height: clamp(110px, 16vw, 180px);
}

.hero-ribbon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ribbon-fill {
  fill: #f5c27a;
}

.ribbon-text {
  fill: var(--accent-2);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 42rem;
  margin-top: -1rem;
}

.hero-lead,
.hero-trust {
  margin: 0;
  color: #fff8f8;
}

.hero-lead {
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.25rem);
  max-width: 34rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin: 1.5rem 0 .85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .9rem 1.5rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-weight: 700;
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-3);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(47, 36, 48, 0.14);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #fff29d;
}

.btn-secondary {
  background: transparent;
  color: #fffaf3;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.hero-visual {
  width: min(var(--container), 100%);
  margin: 1rem auto 0;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 26px 26px 0 0;
  box-shadow: var(--shadow);
}

.flavors-strip,
.categories,
.shop,
.process,
.scrapbook,
.addresses {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.flavors-strip {
  padding: 3rem 0 1rem;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr);
  gap: 1rem 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head.compact,
.section-head.left {
  grid-template-columns: 1fr;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: .92;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-head h2 span {
  color: var(--muted);
  font-size: .52em;
  font-weight: 700;
  letter-spacing: -.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
  text-wrap: pretty;
}

.flavors-row,
.snap-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  cursor: grab;
}

.flavors-row:active,
.snap-row:active {
  cursor: grabbing;
}

.flavor-chip,
.category-card {
  scroll-snap-align: start;
}

.flavor-chip {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(47, 36, 48, 0.08);
  border-radius: 20px;
}

.flavor-chip strong,
.category-card h3,
.product-card h3,
.step-card h3,
.address-card h3 {
  display: block;
  margin: 0 0 .35rem;
  font-size: 1.12rem;
}

.flavor-chip span {
  color: var(--muted);
  font-size: .96rem;
}

.categories {
  padding: clamp(4rem, 7vw, 7rem) 0 1rem;
}

.category-card {
  min-height: 240px;
  padding: 1.2rem;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2vw, 2.7rem);
  line-height: .9;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.category-label {
  margin: 0;
  font-weight: 700;
  opacity: .7;
}

.category-card p:last-child {
  margin: 0;
  max-width: 20rem;
}

.category-card.pink { background: #ffd0df; }
.category-card.yellow { background: #fff7b5; }
.category-card.peach { background: #ffc394; }
.category-card.blue { background: #dcecff; }

.shop {
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .8fr);
  gap: 2rem;
  align-items: start;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(83, 43, 74, 0.1);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card:hover img,
.product-card:focus-within img {
  transform: scale(1.03);
}

.product-body {
  padding: 1rem 1rem 1.15rem;
}

.product-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .5rem;
}

.product-top h3 {
  margin-bottom: 0;
  max-width: 15rem;
}

.price,
.cart-total strong {
  font-variant-numeric: tabular-nums;
}

.price {
  margin: 0;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.product-body p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.btn-add {
  width: 100%;
  background: var(--ink);
  color: var(--bg);
}

.btn-add:hover,
.btn-add:focus-visible {
  background: #483849;
}

.order-panel {
  position: relative;
}

.order-sticky {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.2rem;
  border-radius: 30px;
  background: rgba(255, 249, 239, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 48px rgba(47, 36, 48, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.order-top h3 {
  margin: 0 0 .35rem;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: .9;
  letter-spacing: -.03em;
}

.order-top p,
.cart-empty,
.form-note {
  margin: 0;
  color: var(--muted);
}

.cart-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .45rem .75rem;
  align-items: center;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}

.cart-item strong {
  font-size: 1rem;
}

.cart-item span {
  font-size: .92rem;
  color: var(--muted);
}

.cart-item button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  min-height: 44px;
  padding: 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 0 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.order-form {
  display: grid;
  gap: .9rem;
  margin-top: 1rem;
}

.order-form label {
  display: grid;
  gap: .35rem;
}

.order-form span {
  font-weight: 600;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid rgba(47, 36, 48, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  padding: .95rem 1rem;
  color: var(--ink);
}

.order-form textarea {
  resize: vertical;
  min-height: 120px;
}

.consent {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: .65rem;
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: .2rem;
  padding: 0;
}

.consent span {
  font-weight: 500;
  color: var(--muted);
  font-size: .95rem;
}

.consent a {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.btn-submit {
  width: 100%;
  border: 0;
}

.form-error {
  min-height: 1.3em;
  margin: 0;
  color: #a12750;
  font-size: .95rem;
}

.form-success {
  padding: 1rem;
  border-radius: 18px;
  background: #fff7b5;
}

.process {
  padding: 1rem 0 clamp(5rem, 7vw, 7rem);
}

.steps-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}

.steps-line::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 1.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}

.step-card {
  position: relative;
  padding: 2.8rem 1rem 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.step-num {
  position: absolute;
  top: .6rem;
  left: 1rem;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.photo-break {
  position: relative;
  min-height: 72vh;
}

.photo-break img {
  width: 100%;
  height: 72vh;
  object-fit: cover;
  object-position: center 35%;
}

.photo-break-caption {
  position: absolute;
  left: var(--gutter);
  bottom: 1rem;
  padding: .75rem 1rem;
  border-radius: var(--pill);
  background: rgba(255, 249, 239, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-weight: 700;
}

.scrapbook {
  padding: clamp(5rem, 9vw, 8rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr);
  gap: 2rem;
  align-items: center;
}

.scrapbook-copy p {
  margin: 0 0 1.4rem;
  max-width: 34rem;
}

.scrapbook-collage {
  position: relative;
  min-height: 520px;
}

.scrapbook-collage::before {
  content: "";
  position: absolute;
  inset: 18% 8% 12% 12%;
  border: 2px solid rgba(235, 116, 154, 0.24);
  border-radius: 46% 54% 58% 42% / 44% 38% 62% 56%;
}

.polaroid {
  position: absolute;
  width: min(270px, 54%);
  padding: .8rem .8rem 1rem;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(47, 36, 48, 0.14);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.polaroid figcaption {
  margin-top: .7rem;
  font-size: .95rem;
  color: var(--muted);
}

.polaroid-a {
  left: 2%;
  top: 4%;
  transform: rotate(-7deg);
}

.polaroid-b {
  right: 3%;
  bottom: 6%;
  transform: rotate(8deg);
}

.sticker-note {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) rotate(-4deg);
  padding: .9rem 1rem;
  background: var(--accent-3);
  border-radius: 18px;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: .9;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(47, 36, 48, 0.12);
}

.addresses {
  padding: 1rem 0 5rem;
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.address-card {
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.address-card p {
  margin: .15rem 0;
  color: var(--muted);
}

.site-footer {
  padding: 0 var(--gutter) 2rem;
}

.footer-main,
.privacy {
  width: min(var(--container), 100%);
  margin-inline: auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.footer-main a,
.footer-main p {
  display: block;
  margin: .2rem 0;
  color: var(--muted);
}

.privacy {
  padding-top: 1rem;
}

.privacy h2 {
  margin: 0 0 .65rem;
  font-size: 1.2rem;
}

.privacy p {
  max-width: 70ch;
  color: var(--muted);
}

.js .site-nav.is-open {
  display: flex;
}

@media (max-width: 900px) {
  :root {
    --header-h: 78px;
  }

  .section-head,
  .scrapbook,
  .shop-layout,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(1.5rem + var(--header-h));
  }

  .hero-ribbon {
    margin: -.5rem 0 -1rem;
  }

  .ribbon-text {
    font-size: 30px;
  }

  .hero-copy {
    margin-top: 0;
  }

  .products-grid,
  .steps-line,
  .address-grid {
    grid-template-columns: 1fr 1fr;
  }

  .order-sticky {
    position: static;
  }

  .scrapbook-collage {
    min-height: 420px;
  }

  .site-nav {
    gap: .85rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: .75rem;
  }

  .header-pill {
    padding-inline: .85rem;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + .5rem);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 249, 239, 0.96);
    box-shadow: 0 18px 48px rgba(47, 36, 48, 0.15);
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .hero-title {
    max-width: 6ch;
  }

  .hero-visual img {
    aspect-ratio: 4 / 5;
    border-radius: 24px 24px 0 0;
  }

  .products-grid,
  .steps-line,
  .address-grid {
    grid-template-columns: 1fr;
  }

  .photo-break img {
    height: 60vh;
  }

  .scrapbook-collage {
    min-height: 360px;
  }

  .polaroid {
    width: 52%;
  }

  .sticker-note {
    font-size: 1.5rem;
    padding: .7rem .8rem;
  }

  .brand {
    font-size: 1.8rem;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn,
  .btn-submit,
  .btn-add {
    width: 100%;
  }

  .hero-kicker {
    letter-spacing: .08em;
  }

  .ribbon-text {
    font-size: 24px;
  }

  .hero-ribbon {
    height: 96px;
  }

  .product-top {
    flex-direction: column;
  }
}

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

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