/* Mami Matcha by Ghim Ghim — clean storefront layout */
@font-face { font-family: "Super Dream"; src: url("/fonts/super-dream.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #ffffff;
  --cream: #f8f2ec;
  --soft: #f4f1ea;
  --sage: #a8b99a;
  --sage-2: #8a9b76;
  --olive: #6e7f5c;
  --deep: #5e6e4c;
  --card: #e2e7d3;
  --ink: #3f4b34;
  --muted: #6f7765;
  --line: #e6e3da;
  --radius: 14px;
  --display: "Super Dream", "Montserrat", system-ui, sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.display { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: .01em; margin: 0; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border: 1.5px solid var(--deep); border-radius: 999px; background: var(--deep); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--deep); }
.btn--ghost:hover { background: var(--deep); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--deep); }
.btn--light:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; font-size: .85rem; color: var(--muted); }

/* announcement + header */
.announce { background: var(--deep); color: #fff; text-align: center; font-size: .78rem; font-weight: 500; letter-spacing: .08em; padding: 9px 16px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; }
.nav-left, .nav-right { display: flex; gap: 28px; align-items: center; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a { text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav-left a:hover, .nav-left a[aria-current="page"] { border-color: var(--ink); }
.logo { font-family: var(--display); display: inline-flex; flex-direction: column; align-items: center; line-height: .82; font-size: 1.6rem; color: var(--deep); text-decoration: none; }
.logo small { font-family: var(--body); font-size: .56rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; margin-top: 6px; color: var(--olive); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 0; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--deep); color: #fff; font-size: .72rem; letter-spacing: 0; }
.menu-btn { display: none; background: none; border: 0; padding: 8px 0; font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px 20px 18px; }
.mobile-nav a { display: block; padding: 12px 0; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav.open { display: block; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--sage-2) repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 34px, transparent 34px 68px); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px; min-height: min(78vh, 640px); padding-block: 48px; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
.hero p { font-size: 1.1rem; max-width: 36ch; margin: 18px 0 30px; opacity: .95; }
.hero .eyebrow { color: var(--cream); margin-bottom: 16px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .disc { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; background: var(--cream); }
.hero-art img { position: relative; width: 82%; mix-blend-mode: multiply; }
.hero-art .badge { position: absolute; right: 4%; top: 8%; width: 120px; aspect-ratio: 1; display: grid; place-items: center; text-align: center; background: var(--deep); color: #fff; border-radius: 50%; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; transform: rotate(8deg); }
.hero-art .badge b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: 0; text-transform: none; }

/* photo hero */
.hero--photo { background: var(--deep); }
.hero--photo .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(47,58,38,.72) 0%, rgba(47,58,38,.38) 40%, rgba(47,58,38,0) 66%); }
.hero--photo .wrap { position: relative; z-index: 1; grid-template-columns: 1fr; min-height: min(82vh, 680px); }
.hero-copy { max-width: 520px; }
.mosaic .m1--photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }

/* sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--soft { background: var(--soft); }
.section--cream { background: var(--cream); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center p { margin: 0; }

/* featured product */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-media { background: var(--soft); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; position: relative; text-decoration: none; }
.feature-media img { width: 86%; mix-blend-mode: multiply; }
.feature h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 12px 0 8px; }
.feature p { margin: 16px 0; }
.notes { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; padding: 0; list-style: none; }
.notes li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 500; }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 24px; }
.grid--few { grid-template-columns: repeat(auto-fill, minmax(280px, 380px)); }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; }
.card-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .35s; }
.card-media .alt { inset: 0; }
.card-media .alt { position: absolute; opacity: 0; }
.card:hover .card-media .alt { opacity: 1; }
.card:hover .card-media .main:not(:only-child) { opacity: 0; }
.card:hover .card-media .main:only-child { transform: scale(1.04); }
.badges { position: absolute; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.pill-badge { display: inline-block; background: #fff; color: var(--deep); border-radius: 999px; padding: 4px 12px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pill-badge--dark { background: var(--deep); color: #fff; }
.card-name { font-weight: 700; text-decoration: none; font-size: 1rem; }
.card-name:hover { text-decoration: underline; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-weight: 700; }
.compare { color: var(--muted); text-decoration: line-through; font-size: .92em; }
.stock-note { color: #a0522d; font-size: .85rem; font-weight: 500; }
.error { color: #a33a2b; font-size: .88rem; margin: 6px 0 0; }
.reason { color: var(--muted); font-size: .88rem; }

/* founder message */
.founder { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.founder h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin: 14px 0 20px; }
.founder .sign { font-family: var(--display); font-size: 1.5rem; color: var(--olive); margin: 22px 0 28px; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mosaic > div { border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; text-align: center; }
.mosaic .m1 { background: var(--soft); grid-row: span 2; aspect-ratio: auto; }
.mosaic .m1 img { width: 92%; mix-blend-mode: multiply; }
.mosaic .m2 { background: var(--sage); color: #fff; }
.mosaic .m2 .logo { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.mosaic .m3 { background: var(--deep); color: var(--cream); padding: 16px; }
.mosaic .m3 b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; margin-bottom: 6px; }
.mosaic .m3 span { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* value row */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.value .icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-family: var(--display); font-size: 1.4rem; color: var(--deep); }
.value h3 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; }
.value p { margin: 0; font-size: .9rem; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; border-radius: var(--radius); padding: 28px; }
.step .num { font-family: var(--display); font-size: 2.4rem; color: var(--sage); line-height: 1; }
.step h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* early access */
.signup-band { background: var(--deep) repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 34px, transparent 34px 68px); color: #fff; text-align: center; }
.signup-band .eyebrow { color: var(--card); }
.signup-band h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 12px 0 14px; }
.signup-band p { max-width: 48ch; margin: 0 auto 28px; opacity: .92; }

/* instagram */
.follow { text-align: center; }
.follow h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0 8px; }
.follow a.handle { font-weight: 700; }

/* footer */
.site-footer { background: var(--cream); padding: 64px 0 28px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { margin: 0 0 14px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer .cols a { display: block; text-decoration: none; padding: 4px 0; }
.site-footer .cols a:hover { text-decoration: underline; }
.site-footer .cols a.btn { display: inline-flex; padding: 0 24px; text-decoration: none; }
.site-footer .logo { font-size: 2rem; align-items: flex-start; margin-bottom: 14px; }
.site-footer .fine { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; color: var(--muted); font-size: .8rem; }

/* page head */
.page-head { padding: 56px 0 28px; text-align: center; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-head p { margin: 10px 0 0; }
.breadcrumb { font-size: .8rem; color: var(--muted); padding: 22px 0; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.toolbar { display: flex; justify-content: space-between; align-items: center; border-block: 1px solid var(--line); padding: 14px 0; margin-bottom: 32px; font-size: .85rem; color: var(--muted); }

/* product page */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: 72px; }
.pdp-gallery { display: grid; grid-template-columns: 84px 1fr; gap: 16px; position: sticky; top: 100px; }
.pdp-main { position: relative; background: var(--soft); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumbs button { padding: 0; border: 1.5px solid transparent; border-radius: 10px; background: var(--soft); aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; }
.thumbs button[aria-pressed="true"] { border-color: var(--deep); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 10px 0 14px; }
.pdp-info .price-row { font-size: 1.25rem; }
.pdp-info .badges { position: static; margin: 16px 0 0; }
.pdp-info .badges .pill-badge { background: var(--card); }
.ship-note { font-size: .85rem; color: var(--muted); margin: 6px 0 22px; }
.buy-row { display: flex; gap: 12px; margin: 8px 0 10px; }
.buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; min-height: 48px; }
.qty button { width: 42px; height: 46px; background: none; border: 0; font-size: 1.1rem; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty span { min-width: 26px; text-align: center; font-weight: 700; }
.opt-group { border: 0; padding: 0; margin: 0 0 18px; }
.opt-group legend, .opt-group strong { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.opt-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 500; }
.pill[aria-pressed="true"] { border-color: var(--deep); background: var(--deep); color: #fff; }
.pill:disabled { opacity: .4; text-decoration: line-through; }
.opt-group select, .opt-group input[type=text] { width: 100%; min-height: 46px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; }
.notify { display: flex; gap: 8px; margin-top: 10px; }
.notify input { flex: 1; min-height: 48px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 18px; font: inherit; }
.desc { margin: 28px 0 8px; }
.desc p { margin: 0 0 12px; }
.tasting { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.tasting div { background: var(--soft); border-radius: 12px; padding: 14px; text-align: center; }
.tasting small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); }
.tasting b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; }
.info { border-top: 1px solid var(--line); margin-top: 20px; }
.info details, .faq details { border-bottom: 1px solid var(--line); }
.info summary, .faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.info summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.info summary::after, .faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; }
.info details[open] summary::after, .faq details[open] summary::after { content: "–"; }
.info .body { padding: 0 0 18px; color: var(--muted); }
.info .body p { margin: 0 0 10px; }

/* faq + about */
.faq { max-width: 780px; margin-inline: auto; }
.faq summary { text-transform: none; letter-spacing: 0; font-size: 1.02rem; }
.faq details p { margin: 0 0 20px; color: var(--muted); }
.prose { max-width: 680px; margin-inline: auto; font-size: 1.05rem; }
.prose h2 { font-size: 2rem; margin: 40px 0 12px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 36px 0; }
.facts div { background: var(--soft); border-radius: var(--radius); padding: 20px; text-align: center; }
.facts small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.facts b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }

/* skeleton + empty */
.skeleton { background: linear-gradient(90deg, var(--soft), #faf8f4, var(--soft)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 40px 10px; display: grid; justify-items: center; gap: 6px; }
.empty .pack-img { width: 150px; mix-blend-mode: multiply; }
.empty p { margin: 0; }

/* cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(40,48,32,.4); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: #fff; z-index: 41; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); transform: translateX(100%); transition: transform .3s; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; }
.icon-btn { background: none; border: 0; font-size: 1.1rem; padding: 6px; }
.drawer-body { overflow: auto; padding: 8px 22px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-img { background: var(--soft); border-radius: 10px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.line-img img { width: 90%; mix-blend-mode: multiply; }
.line-name { font-weight: 700; text-decoration: none; }
.line-meta { font-size: .82rem; color: var(--muted); }
.line-actions { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 6px; }
.line .qty { min-height: 38px; }
.line .qty button { height: 36px; width: 34px; }
.sum-row { display: flex; justify-content: space-between; font-size: .92rem; }
.sum-row.total { font-weight: 700; font-size: 1.05rem; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; min-height: 44px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; font: inherit; }
.coupon .btn { flex: none; min-height: 44px; padding: 0 18px; }


/* mami in the wild photo grid */
.wild-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0 12px; }
.wild-grid img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 700px) { .wild-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* responsive */
@media (max-width: 900px) {
  .nav-left a { display: none; }
  .menu-btn { display: inline-block; }
  .hero .wrap, .feature, .founder, .pdp { grid-template-columns: 1fr; }
  .hero .wrap { text-align: center; padding-block: 40px 24px; }
  .hero p { margin-inline: auto; }
  .hero--photo .wrap { align-items: end; min-height: 600px; padding-bottom: 48px; }
  .hero--photo .hero-bg { object-position: 62% center; }
  .hero--photo::after { background: linear-gradient(0deg, rgba(47,58,38,.82) 0%, rgba(47,58,38,.45) 45%, rgba(47,58,38,0) 75%); }
  .hero-copy { margin-inline: auto; }
  .hero-art { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-art .badge { width: 92px; font-size: .62rem; }
  .hero-art .badge b { font-size: 1.3rem; }
  .values { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > :first-child { grid-column: 1 / -1; }
  .pdp-gallery { position: static; grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; }
  .thumbs button { width: 72px; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .nav-right .hide-sm { display: none; }
  .logo { font-size: 1.35rem; }
  .grid--few { grid-template-columns: 1fr; }
  .tasting { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}