:root {
  --ivory: #fffaf0;
  --cream: #f6eddb;
  --mustard: #f4b91f;
  --mustard-deep: #d89205;
  --sage: #aeb982;
  --sage-light: #dce2c1;
  --cocoa: #9a5d3d;
  --cocoa-dark: #6f3d29;
  --espresso: #341e18;
  --peach: #e9955f;
  --white: #fffdf8;
  --shadow: 0 18px 45px rgba(52, 30, 24, .12);
  --radius-lg: 34px;
  --radius-md: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--espresso);
  background: var(--ivory);
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.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;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -4rem;
  padding: .8rem 1rem;
  background: var(--espresso);
  color: white;
  border-radius: 10px;
}
.skip-link:focus { top: 1rem; }

.announcement {
  padding: .62rem 1rem;
  background: var(--mustard);
  color: var(--espresso);
  text-align: center;
  font-weight: 700;
  letter-spacing: .04em;
  font-size: .88rem;
}
.announcement span { margin-left: .5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 86px;
  padding: .8rem clamp(1.2rem, 5vw, 5rem);
  background: rgba(255, 250, 240, .93);
  border-bottom: 1px solid rgba(52, 30, 24, .11);
  backdrop-filter: blur(15px);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  text-decoration: none;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1;
}
.brand-the { color: var(--mustard-deep); }
.brand small {
  color: var(--sage);
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .62rem;
}
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.site-nav a, .cart-button {
  text-decoration: none;
  font-weight: 700;
  font-size: .94rem;
}
.site-nav a { position: relative; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.25rem;
  height: 3px;
  border-radius: 10px;
  background: var(--mustard);
  transition: right .2s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.cart-button {
  border: 0;
  border-radius: 999px;
  padding: .7rem .9rem .7rem 1rem;
  background: var(--espresso);
  color: white;
  cursor: pointer;
}
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.7rem;
  height: 1.7rem;
  margin-left: .45rem;
  border-radius: 50%;
  background: var(--mustard);
  color: var(--espresso);
}
.menu-button { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  min-height: calc(100vh - 126px);
  padding: clamp(3rem, 8vw, 7.5rem) clamp(1.2rem, 6vw, 7rem);
  background:
    radial-gradient(circle at 8% 18%, rgba(244,185,31,.24) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 80%, rgba(174,185,130,.35) 0 3px, transparent 4px),
    linear-gradient(135deg, #fffaf0 25%, #f6eddb 100%);
  background-size: 35px 35px, 44px 44px, auto;
}
.hero::before {
  content: "";
  position: absolute;
  left: -7vw;
  top: 16%;
  width: 18vw;
  aspect-ratio: 1;
  border: 3px solid var(--sage);
  border-radius: 42% 58% 63% 37%;
  transform: rotate(20deg);
  opacity: .6;
}
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--cocoa-dark);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; font-family: "Fredoka", sans-serif; line-height: 1.05; }
h1 {
  max-width: 760px;
  margin-bottom: 1.4rem;
  font-size: clamp(3.2rem, 7vw, 7.25rem);
  letter-spacing: -.045em;
}
h1 em {
  color: var(--cocoa);
  font-style: normal;
  text-shadow: 0 4px 0 rgba(244,185,31,.75);
}
.hero-intro { max-width: 625px; margin: 0 0 2rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .85rem 1.35rem;
  border: 2px solid var(--espresso);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(52,30,24,.13); }
.button-primary { background: var(--mustard); color: var(--espresso); }
.button-secondary { background: var(--white); color: var(--espresso); }
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .88rem;
  font-weight: 700;
}
.hero-notes li::before { content: "✦"; margin-right: .5rem; color: var(--mustard-deep); }
.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 720px);
  filter: drop-shadow(0 30px 25px rgba(52,30,24,.16));
}
.hero-art img { width: 100%; }
.side-eye-note {
  position: absolute;
  right: -1rem;
  top: 18%;
  padding: .75rem 1rem;
  border: 2px solid var(--espresso);
  border-radius: 999px;
  background: var(--white);
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  transform: rotate(7deg);
  box-shadow: 5px 5px 0 var(--mustard);
}
.spark { position: absolute; z-index: 2; color: var(--mustard); font-size: clamp(2rem, 4vw, 4rem); }
.spark-one { left: 5%; top: 8%; }
.spark-two { right: 4%; bottom: 12%; color: var(--sage); }

.marquee { overflow: hidden; padding: 1rem 0; background: var(--espresso); color: white; transform: rotate(-1deg) scale(1.02); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 1.4rem; font-family: "Fredoka", sans-serif; font-weight: 700; letter-spacing: .06em; animation: scroll 26s linear infinite; }
.marquee-track i { color: var(--mustard); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

.section { padding: clamp(4rem, 9vw, 8rem) clamp(1.2rem, 6vw, 7rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 2.5rem; }
.section-heading h2, .custom h2, .story h2, .newsletter h2, .girlies h2 { margin-bottom: 0; font-size: clamp(2.5rem, 5vw, 5.25rem); letter-spacing: -.04em; }
.section-heading > p { max-width: 500px; margin: 0; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.product-card {
  overflow: hidden;
  border: 2px solid var(--espresso);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(52,30,24,.1);
  transition: transform .2s ease;
}
.product-card:hover { transform: translateY(-7px) rotate(-.4deg); }
.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
}
.product-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: radial-gradient(circle, var(--espresso) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.cocoa-card .product-visual { background: #b97651; }
.sage-card .product-visual { background: var(--sage-light); }
.mustard-card .product-visual { background: #f7ca4d; }
.pill {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: .42rem .72rem;
  border-radius: 999px;
  background: var(--white);
  font-size: .75rem;
  font-weight: 800;
}
.product-type {
  position: absolute;
  right: 1rem;
  top: .65rem;
  color: rgba(52,30,24,.28);
  font-family: "Fredoka", sans-serif;
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 700;
  transform: rotate(90deg) translateX(90%);
  transform-origin: right top;
}
.tiny-copy, .patch-shape, .tote-shape { position: relative; z-index: 2; font-family: "Fredoka", sans-serif; font-weight: 700; text-align: center; line-height: 1.05; }
.tiny-copy { color: white; font-size: clamp(2.2rem, 4vw, 4rem); text-shadow: 4px 4px 0 var(--espresso); transform: rotate(-4deg); }
.patch-shape {
  display: grid;
  place-items: center;
  width: 220px;
  aspect-ratio: 1;
  padding: 1rem;
  border: 8px double var(--espresso);
  border-radius: 50% 43% 48% 42%;
  background: var(--cocoa);
  color: white;
  font-size: 2rem;
  transform: rotate(5deg);
}
.tote-shape {
  display: grid;
  place-items: center;
  width: 225px;
  min-height: 210px;
  padding: 2rem 1rem 1rem;
  border: 3px solid var(--espresso);
  background: var(--cream);
  font-size: 2rem;
  box-shadow: inset 0 14px 0 var(--white), 8px 8px 0 rgba(52,30,24,.16);
  transform: rotate(-3deg);
}
.product-info { display: flex; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.3rem .85rem; }
.product-info h3 { margin-bottom: .25rem; font-size: 1.25rem; }
.product-info p { margin: 0; color: #72594f; font-size: .9rem; }
.product-info strong { white-space: nowrap; font-size: 1.1rem; }
.add-button {
  width: calc(100% - 2.6rem);
  margin: 0 1.3rem 1.3rem;
  padding: .8rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--espresso);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
.add-button:hover, .add-button:focus-visible { background: var(--cocoa-dark); }

.girlies { background: var(--sage); }
.girlies-card {
  max-width: 1250px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 5rem);
  border: 3px solid var(--espresso);
  border-radius: 50px;
  background: var(--ivory);
  box-shadow: 12px 12px 0 var(--espresso);
}
.phrase-cloud { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.5rem; }
.phrase-cloud span { padding: .75rem 1.1rem; border: 2px solid var(--espresso); border-radius: 999px; background: white; font-weight: 700; transform: rotate(var(--tilt, -1deg)); }
.phrase-cloud span:nth-child(2n) { --tilt: 2deg; background: var(--mustard); }
.phrase-cloud span:nth-child(3n) { --tilt: -2deg; background: var(--sage-light); }

.custom { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; background: var(--cocoa-dark); color: white; }
.custom-copy { position: sticky; top: 130px; }
.custom .eyebrow { color: var(--mustard); }
.custom-copy p:last-child { max-width: 550px; }
.custom-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: var(--radius-lg); background: var(--ivory); color: var(--espresso); box-shadow: 10px 10px 0 var(--mustard); }
label { display: grid; gap: .45rem; font-weight: 800; }
input, textarea {
  width: 100%;
  border: 2px solid rgba(52,30,24,.35);
  border-radius: 14px;
  padding: .85rem 1rem;
  background: white;
  color: var(--espresso);
}
input:focus, textarea:focus { outline: 3px solid rgba(244,185,31,.48); border-color: var(--espresso); }
.full { grid-column: 1 / -1; }
.form-status { min-height: 1.5rem; margin: 0; font-weight: 700; }

.story { display: grid; grid-template-columns: minmax(220px, .45fr) 1fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.story-mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 400px;
  border: 4px solid var(--espresso);
  border-radius: 42% 58% 53% 47%;
  background: var(--mustard);
  font-family: "Fredoka", sans-serif;
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  box-shadow: 15px 15px 0 var(--sage);
  transform: rotate(-5deg);
}
.story p:last-child { max-width: 800px; font-size: 1.12rem; }

.newsletter { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 3rem; background: var(--mustard); }
.newsletter h2 { font-size: clamp(2.2rem, 4.5vw, 4.7rem); }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: .65rem; }
.newsletter-form input { min-height: 58px; border-color: var(--espresso); border-radius: 999px; }
.newsletter-form button { min-height: 58px; padding: .8rem 1.4rem; border: 2px solid var(--espresso); border-radius: 999px; background: var(--espresso); color: white; font-weight: 800; cursor: pointer; }
.newsletter-form .form-status { grid-column: 1 / -1; }

footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; padding: 2.5rem clamp(1.2rem, 6vw, 7rem); background: var(--espresso); color: white; }
.footer-brand { font-family: "Fredoka", sans-serif; font-size: 1.25rem; }
.footer-brand span { margin-left: .4rem; color: var(--mustard); font-family: "DM Sans", sans-serif; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; }
footer p { margin: 0; color: #e7d8ce; }
footer a { font-weight: 700; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(30,15,12,.48); backdrop-filter: blur(3px); }
.cart-drawer {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(92vw, 450px);
  height: 100dvh;
  padding: 1.4rem;
  background: var(--ivory);
  box-shadow: -20px 0 60px rgba(0,0,0,.18);
  transform: translateX(105%);
  transition: transform .28s ease;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--espresso); }
.cart-header h2 { margin: 0 0 1rem; font-size: 2rem; }
.cart-close { border: 0; background: transparent; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.cart-items { overflow: auto; padding: 1rem 0; }
.cart-item { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid rgba(52,30,24,.15); }
.cart-item button { border: 0; background: transparent; text-decoration: underline; cursor: pointer; }
.empty-cart { display: grid; place-items: center; flex: 1; padding: 2rem; text-align: center; }
.empty-cart span { font-size: 4rem; color: var(--sage); }
.cart-footer { margin-top: auto; padding-top: 1rem; border-top: 2px solid var(--espresso); }
.cart-footer > div { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 1.15rem; }
.checkout-button { width: 100%; padding: .9rem; border: 0; border-radius: 999px; background: var(--sage); color: var(--espresso); font-weight: 800; }
.cart-footer small { display: block; margin-top: .7rem; text-align: center; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr 1fr; padding-inline: 2rem; }
  .hero h1 { font-size: clamp(3.2rem, 8vw, 5.5rem); }
  .section-heading { align-items: start; flex-direction: column; gap: 1rem; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-card:last-child { grid-column: 1 / -1; max-width: calc(50% - .5rem); }
  .custom { grid-template-columns: 1fr; }
  .custom-copy { position: static; }
  .newsletter { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { min-height: 74px; }
  .brand small { display: none; }
  .menu-button { display: grid; gap: 4px; padding: .7rem; border: 0; background: transparent; cursor: pointer; }
  .menu-button span:not(.sr-only) { display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--espresso); }
  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + .5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .7rem;
    border: 2px solid var(--espresso);
    border-radius: 18px;
    background: var(--ivory);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem; }
  .site-nav a::after { display: none; }
  .cart-button { margin-top: .35rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 4rem 1.2rem 2rem; text-align: center; }
  .hero::before { display: none; }
  .hero-copy { display: grid; justify-items: center; }
  .hero h1 { font-size: clamp(3rem, 16vw, 5.4rem); }
  .hero-art { width: min(100%, 520px); margin-top: 1rem; }
  .side-eye-note { right: .5rem; top: 12%; font-size: .8rem; }
  .hero-notes { justify-content: center; }
  .section { padding: 4.5rem 1.2rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card:last-child { grid-column: auto; max-width: none; }
  .product-visual { min-height: 320px; }
  .custom-form { grid-template-columns: 1fr; }
  .custom-form > * { grid-column: 1; }
  .story { grid-template-columns: 1fr; }
  .story-mark { width: min(70vw, 320px); justify-self: center; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form .form-status { grid-column: 1; }
  footer { grid-template-columns: 1fr; text-align: center; }
}

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