/* ── Brand colours — change these to restyle the whole site ── */
/* Matched to the packaging: kraft pouches, black line logo, lavender-purple labels */
:root {
  --cream: #f8f4ec;
  --paper: #fffdf8;
  --sage: #e3e9d8;
  --sage-deep: #6f8a5c;
  --forest: #4a3a6b;       /* main colour (plum) — buttons, links */
  --forest-ink: #2e2440;   /* headings, footer */
  --honey: #c9a26b;        /* kraft tan accent */
  --rose: #e7dff0;         /* soft lavender */
  --text: #2b2833;
  --muted: #6a6572;
  --line: #e6dfd2;

  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(34, 54, 42, .06), 0 8px 24px rgba(34, 54, 42, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--forest-ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--sage-deep); margin-bottom: .6em; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: .95rem;
  background: var(--forest); color: #fff; padding: .85em 1.6em; border-radius: 999px;
  border: 2px solid var(--forest); transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--forest-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #fff; }
.btn-small { padding: .55em 1.1em; font-size: .85rem; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; }

/* Announcement + header */
.announce { background: var(--forest); color: #e9f0e1; text-align: center; font-size: .82rem; padding: 8px 16px; letter-spacing: .02em; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 238, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--forest); }
.logo svg { width: 28px; height: 28px; color: var(--sage-deep); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--honey); transform: scaleX(0); transition: transform .2s; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--forest); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 30em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { position: relative; max-width: 480px; margin-inline: auto; width: 100%; }
.hero-art::before { content: ""; position: absolute; inset: 8% -6% -6% 8%; border-radius: 28px; background: var(--rose); z-index: -1; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.hero { position: relative; z-index: 0; }

/* Perks */
.perks { background: var(--paper); border-block: 1px solid var(--line); }
.perks-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 24px; }
.perk { display: flex; gap: 12px; align-items: center; }
.perk svg { width: 32px; height: 32px; flex: none; color: var(--forest); background: var(--sage); border-radius: 50%; padding: 6px; }
.perk strong { display: block; font-size: .95rem; color: var(--forest-ink); }
.perk span { font-size: .85rem; color: var(--muted); }

/* Sections */
section { scroll-margin-top: 80px; }
.shop, .brew, .faq { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { text-align: center; margin-bottom: 32px; }

/* Christmas gift banner */
.xmas { padding: clamp(40px, 6vw, 72px) 0 0; }
.xmas-inner {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center;
  background: radial-gradient(circle at 15% 20%, #5c4a82, var(--forest) 55%, var(--forest-ink));
  color: #ece6f5; border-radius: 28px; padding: clamp(28px, 5vw, 56px);
}
.xmas h2 { color: #fff; }
.xmas .eyebrow { color: var(--honey); }
.xmas-copy p { color: #d9d1e6; }
.xmas-date { font-weight: 700; color: #fff !important; }
[hidden] { display: none !important; }
.btn-light { background: #fff; color: var(--forest); border-color: #fff; margin-top: 8px; }
.btn-light:hover { background: var(--rose); color: var(--forest-ink); }
.xmas-sets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.xmas-sets a { text-decoration: none; text-align: center; }
.xmas-sets img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .25s; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.xmas-sets a:hover img { transform: translateY(-4px) rotate(-1deg); }
.xmas-sets span { display: block; margin-top: 10px; font-size: .85rem; font-weight: 700; color: #fff; }

/* Shop by mood */
.moods { padding: clamp(56px, 8vw, 88px) 0 0; }
.mood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mood { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); }
.mood img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mood:hover img { transform: scale(1.05); }
.mood::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(46, 36, 64, .88), rgba(46, 36, 64, .15) 55%, transparent); }
.mood-text { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; color: #fff; }
.mood-text strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.mood-text em { font-style: normal; font-size: .88rem; color: #e7dff0; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.chip {
  font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
  background: var(--paper); color: var(--forest); border: 1.5px solid var(--line);
  padding: .5em 1.2em; border-radius: 999px; transition: all .2s;
}
.chip:hover { border-color: var(--sage-deep); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(34,54,42,.06), 0 16px 36px rgba(34,54,42,.12); }
.card-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--sage); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff8, transparent 60%), var(--tint); }
.placeholder svg { width: 38%; color: rgba(34, 54, 42, .35); }
.badge { position: absolute; bottom: 14px; left: 14px; background: var(--forest); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .2em; }
.subtitle { font-size: .82rem; color: var(--sage-deep); font-weight: 700; margin-bottom: .6em; }
.desc { font-size: .93rem; color: var(--muted); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.badge-soft { background: rgba(255, 253, 248, .92); color: var(--sage-deep); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.price { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--forest-ink); line-height: 1.1; }
.price small { display: block; font-family: var(--sans); font-size: .75rem; font-weight: 500; color: var(--muted); margin-top: 3px; }
.empty { text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* Reviews */
.reviews { padding: 0 0 clamp(56px, 8vw, 96px); }
.stars { color: var(--honey); letter-spacing: .1em; }
.rating-summary { color: var(--muted); font-weight: 500; margin-top: -4px; }
.rating-summary .stars { margin-right: 6px; }
.review-grid { columns: 3 280px; column-gap: 24px; }
.review { break-inside: avoid; margin: 0 0 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.review blockquote { margin: 10px 0 14px; font-family: var(--serif); font-size: 1.1rem; line-height: 1.45; color: var(--forest-ink); }
.review figcaption { font-size: .88rem; font-weight: 700; color: var(--sage-deep); }
.review figcaption::before { content: "— "; }
.reviews-more { text-align: center; margin-top: 8px; }
.reviews-more a { color: var(--forest); font-weight: 700; text-decoration: none; }
.reviews-more a:hover { text-decoration: underline; }

/* Story */
.story { background: var(--sage); padding: clamp(56px, 8vw, 96px) 0; }
.story-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.story-art { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
.story-art img { width: 100%; height: 100%; object-fit: cover; }
.story-copy p:not(.eyebrow) { color: #3d4237; }
.story .eyebrow { color: var(--sage-deep); }

/* Brew steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; text-align: center; }
.step-num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sage); color: var(--forest); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { background: var(--paper); border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--forest-ink); padding: 18px 40px 18px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--sage-deep); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); padding-bottom: 12px; }

/* Footer */
.site-footer { background: var(--forest-ink); color: #cfd9c6; padding-top: 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; }
.logo-light { color: #fff; }
.logo-light svg { color: var(--sage-deep); }
.site-footer { color: #d6d0e0; }
.footer-note { margin-top: 10px; font-size: .9rem; }
.footer-note.small { font-size: .78rem; color: #a49cb3; max-width: 34em; }
.footer-base { color: #a49cb3 !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.footer-links a { text-decoration: none; font-size: .95rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 24px; font-size: .82rem; color: #9fae96; }

/* ── Mobile ── */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; text-align: center; }
  .hero-inner, .story-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; margin-inline: auto; width: 100%; }
  .hero-copy { text-align: center; }
  .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .perks-inner { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .story-art { max-width: 400px; margin-inline: auto; width: 100%; }
  .xmas-inner { grid-template-columns: 1fr; text-align: center; }
  .mood-grid { grid-template-columns: 1fr; }
  .mood { aspect-ratio: 16 / 9; }
  .hero-art { max-width: 340px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .perks-inner { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; }
  .chip { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Logo (round emblem from Etsy) */
.logo-mark { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line); }
.logo-mark-lg { width: 96px; height: 96px; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.logo-light { gap: 16px; }
.hero-stamp {
  position: absolute; left: -28px; bottom: -24px; width: 130px !important; height: 130px !important;
  aspect-ratio: 1; border-radius: 50% !important; border: 5px solid var(--cream);
  box-shadow: 0 10px 28px rgba(46, 36, 64, .25) !important;
}
@media (max-width: 860px) {
  .hero-stamp { width: 96px !important; height: 96px !important; left: -10px; bottom: -18px; }
}
@media (max-width: 560px) { .hide-sm { display: none; } }

/* Shop group headings (shown on "All") */
.group-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-top: 20px; }
.group-head:first-child { margin-top: 0; }
.group-head h3 { font-size: 1.6rem; margin: 0; }
.group-head span { color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }

/* ── Time-of-day greeting ── */
.greeting {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 22px; font-size: .9rem; color: var(--muted);
  text-decoration: none; box-shadow: 0 2px 8px rgba(46,36,64,.06); transition: border-color .2s, transform .2s;
}
.greeting strong { color: var(--forest); }
.greeting:hover { border-color: var(--sage-deep); transform: translateY(-1px); }

/* ── Quiz ── */
.quiz-cta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-weight: 500; }
.quiz {
  width: min(560px, calc(100% - 32px)); border: 0; border-radius: 24px; padding: 36px 32px 28px;
  background: var(--cream); color: var(--text); box-shadow: 0 30px 80px rgba(46,36,64,.35);
}
.quiz::backdrop { background: rgba(46, 36, 64, .55); backdrop-filter: blur(3px); }
.quiz h2 { font-size: 1.7rem; margin-bottom: 20px; }
.quiz-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.quiz-close:hover { background: var(--sage); }
.quiz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.quiz-opt {
  font: inherit; font-weight: 500; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--forest-ink);
  transition: border-color .15s, transform .15s, background .15s;
}
.quiz-opt span { font-size: 1.4rem; }
.quiz-opt:hover { border-color: var(--forest); background: #fff; transform: translateY(-2px); }
.quiz-dots { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.quiz-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.quiz-dots span.on { background: var(--forest); }
.quiz-result { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: start; }
.quiz-result img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.quiz-result h2 { margin-bottom: 4px; font-size: 1.45rem; }
.quiz-result p { font-size: .95rem; margin-bottom: .6em; }
.quiz-price { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--forest-ink); }
.quiz-price small { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-weight: 500; }
.quiz-alt { margin: 20px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.quiz-alt a { color: var(--forest); font-weight: 700; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--forest); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .quiz { padding: 32px 20px 22px; }
  .quiz-result { grid-template-columns: 1fr; }
  .quiz-result img { max-width: 180px; }
}

/* ── Brew timer ── */
.timer {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
  margin-top: 40px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 44px);
}
.timer-cup { background: radial-gradient(circle, var(--rose), transparent 70%); border-radius: 50%; padding: 10px; }
.timer-cup svg { width: 100%; height: auto; display: block; }
.timer-cup .cup { fill: none; stroke: var(--forest-ink); stroke-width: 6; stroke-linejoin: round; }
.timer-cup .saucer { fill: var(--sage); }
.timer-cup .cup-liquid { transition: fill .4s linear; }
.timer-cup .tag-string { fill: none; stroke: var(--muted); stroke-width: 2; }
.timer-cup .tag { fill: var(--honey); }
.timer-cup .steam { color: var(--sage-deep); opacity: 0; }
.timer.running .steam path, .timer.done .steam path { animation: steam 2.4s ease-in-out infinite; }
.timer.running .steam, .timer.done .steam { opacity: 1; }
.timer .steam path:nth-child(2) { animation-delay: .5s; }
.timer .steam path:nth-child(3) { animation-delay: 1s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(8px); }
  40% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-14px); }
}
.timer-controls h3 { font-size: 1.8rem; }
.timer-sub { color: var(--muted); }
.timer-teas { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.timer-teas .chip { font-size: .85rem; padding: .45em 1em; }
.timer-info { font-size: .9rem; color: var(--muted); min-height: 1.5em; }
.timer-info a { color: var(--forest); font-weight: 700; }
.timer-time { font-family: var(--serif); font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 600; color: var(--forest-ink); line-height: 1; margin: 8px 0 20px; font-variant-numeric: tabular-nums; }
.timer.done .timer-time { color: var(--sage-deep); }
.timer-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .timer { grid-template-columns: 1fr; text-align: center; }
  .timer-cup { max-width: 240px; margin-inline: auto; }
  .timer-teas, .timer-buttons { justify-content: center; }
}
