:root {
  --ink: #151515;
  --paper: #f4f1e9;
  --soft: #e8e3d8;
  --line: rgba(21,21,21,.16);
  --accent: #c4492d;
  --muted: #706d66;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
input { max-width: 100%; }

.announcement {
  padding: 10px 24px;
  background: var(--ink);
  color: white;
  text-align: center;
  font-size: 11px;
  letter-spacing: .18em;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 Manrope, sans-serif; letter-spacing: .16em; width: fit-content; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--ink); font-size: 15px; }
nav { display: flex; gap: 30px; font-size: 13px; }
nav a, .footer-links a { opacity: .68; transition: .2s ease; }
nav a:hover, .footer-links a:hover { opacity: 1; }
.cart-button { justify-self: end; border: 0; background: transparent; cursor: pointer; font-weight: 600; }
.snipcart-items-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 5px; border-radius: 50px; background: var(--ink); color: white; font-size: 11px; }

main { overflow: hidden; }
.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
  padding: 70px clamp(20px, 7vw, 110px) 90px;
}
.eyebrow { margin: 0 0 20px; font-size: 11px; letter-spacing: .2em; font-weight: 700; }
h1, h2, h3 { font-family: Manrope, sans-serif; margin: 0; letter-spacing: -.04em; }
h1 { max-width: 800px; font-size: clamp(64px, 9vw, 142px); line-height: .86; font-weight: 600; }
h2 { font-size: clamp(42px, 5.5vw, 78px); line-height: .96; font-weight: 600; }
h3 { font-size: 30px; font-weight: 600; }
.hero-text { max-width: 560px; margin: 34px 0 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary, .button.dark { background: var(--ink); color: white; }
.button.primary:hover, .button.dark:hover { background: transparent; color: var(--ink); }
.text-link { font-size: 13px; font-weight: 600; }

.hero-art { min-height: 540px; display: grid; place-items: center; position: relative; }
.pack-shadow { position: absolute; width: 48%; height: 45px; bottom: 5%; background: rgba(0,0,0,.15); filter: blur(28px); border-radius: 50%; transform: rotate(-4deg); }
.pack { width: min(340px, 72vw); aspect-ratio: .68; background: #f7f4ed; border: 1px solid rgba(0,0,0,.2); padding: 34px; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.12); transform: rotate(4deg); position: relative; }
.pack-logo { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--ink); font: 700 22px Manrope; }
.pack-name { margin-top: 24px; font: 700 31px Manrope; letter-spacing: .13em; }
.pack-sub { margin-top: 4px; font-size: 9px; letter-spacing: .18em; }
.pack-window { margin-top: auto; height: 150px; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; gap: 7px; overflow: hidden; padding: 18px; }
.pack-window span { width: 24px; height: 110px; background: #71351f; border-radius: 40% 25% 45% 20%; transform: rotate(var(--r, 6deg)); opacity: .92; }
.pack-window span:nth-child(2) { --r: -4deg; height: 118px; }
.pack-window span:nth-child(3) { --r: 8deg; height: 100px; }
.pack-window span:nth-child(4) { --r: -7deg; height: 114px; }
.pack-window span:nth-child(5) { --r: 2deg; height: 104px; }
.pack-meta { margin-top: 20px; font-size: 8px; letter-spacing: .16em; }

.principles { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles div { padding: 28px clamp(20px, 4vw, 55px); border-right: 1px solid var(--line); display: flex; gap: 18px; align-items: center; font-size: 13px; }
.principles div:last-child { border-right: 0; }
.principles strong { font-size: 10px; color: var(--muted); }

.shop-section { padding: 110px clamp(20px, 5vw, 72px); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; margin-bottom: 55px; }
.section-heading > p { max-width: 430px; justify-self: end; color: var(--muted); line-height: 1.6; }
.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.product-card { border: 1px solid var(--line); background: rgba(255,255,255,.2); }
.product-visual { min-height: 420px; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.product-visual.classic { background: #d8d0c0; }
.product-visual.heat { background: #9d523b; }
.product-visual.bundle { background: #272624; position: relative; overflow: hidden; }
.mini-pack { width: 180px; height: 260px; background: #f8f5ee; padding: 22px; box-shadow: 0 22px 45px rgba(0,0,0,.16); display: flex; flex-direction: column; align-items: flex-start; }
.mini-logo { display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid #151515; font-weight: 700; }
.mini-name { margin-top: 18px; font: 700 19px Manrope; letter-spacing: .13em; }
.mini-flavour { margin-top: auto; font-size: 9px; letter-spacing: .15em; }
.stack { position: absolute; width: 155px; height: 230px; background: #f8f5ee; border: 1px solid rgba(0,0,0,.25); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.pack-one { transform: translate(-55px,10px) rotate(-10deg); }
.pack-two { transform: translate(52px,8px) rotate(10deg); }
.pack-three { transform: translate(0,-8px); }
.product-info { min-height: 265px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.product-info p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.product-kicker { margin: 0 0 7px !important; color: var(--ink) !important; font-size: 10px !important; letter-spacing: .18em; font-weight: 700; }
.product-buy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font: 600 20px Manrope; }
.microcopy { margin-top: 18px; color: var(--muted); font-size: 11px; }
code { background: rgba(0,0,0,.05); padding: 2px 5px; }

.story { display: grid; grid-template-columns: .4fr 1fr; gap: 80px; padding: 120px clamp(20px, 7vw, 110px); background: var(--ink); color: white; }
.story-number { color: #8b877f; font-size: 11px; letter-spacing: .18em; }
.story-content { max-width: 820px; }
.story-content p:not(.eyebrow) { max-width: 690px; font-size: 17px; line-height: 1.7; color: #c9c5bd; }
.story-content h2 { margin-bottom: 42px; }

.nutrition-strip { display: grid; grid-template-columns: repeat(4,1fr); background: var(--accent); color: white; }
.nutrition-strip div { padding: 42px; border-right: 1px solid rgba(255,255,255,.28); }
.nutrition-strip span { display:block; font-size: 9px; letter-spacing: .18em; margin-bottom: 6px; }
.nutrition-strip strong { font: 600 22px Manrope; }

.faq { padding: 120px clamp(20px, 12vw, 190px); }
.faq h2 { margin-bottom: 45px; }
details { border-top: 1px solid var(--line); padding: 24px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font: 600 18px Manrope; list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display:none; }
summary::after { content:"+"; font-size: 22px; font-weight: 400; }
details[open] summary::after { content:"−"; }
details p { max-width: 730px; color: var(--muted); line-height: 1.65; }

.newsletter { margin: 0 clamp(20px, 5vw, 72px) 90px; padding: 55px; border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: center; }
.newsletter h2 { font-size: clamp(38px,5vw,62px); }
.newsletter form { display: flex; gap: 10px; }
.newsletter input { width: 100%; min-height: 50px; border: 1px solid var(--ink); background: transparent; padding: 0 16px; outline: none; }

footer { padding: 55px clamp(20px, 5vw, 72px) 35px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
footer p { margin: 0; color: var(--muted); font-size: 13px; }
.footer-links { justify-self: end; display: flex; gap: 22px; font-size: 12px; }
footer small { grid-column: 1 / -1; color: var(--muted); margin-top: 40px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display:none; }
  .hero { grid-template-columns: 1fr; padding-top: 75px; }
  .hero-art { min-height: 500px; }
  .principles, .nutrition-strip { grid-template-columns: repeat(2,1fr); }
  .principles div:nth-child(2) { border-right: 0; }
  .principles div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .product-grid { grid-template-columns: 1fr; }
  .section-heading, .story, .newsletter { grid-template-columns: 1fr; }
  .section-heading > p { justify-self: start; }
  .newsletter { padding: 32px 22px; }
}

@media (max-width: 560px) {
  .announcement { font-size: 9px; }
  .site-header { padding: 18px 16px; }
  .brand { font-size: 14px; }
  .hero { min-height: auto; padding: 70px 18px 60px; }
  h1 { font-size: 17vw; }
  .hero-text { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-art { min-height: 420px; }
  .pack { width: 250px; padding: 26px; }
  .pack-window { height: 120px; }
  .pack-window span { height: 82px; }
  .principles { grid-template-columns: 1fr; }
  .principles div { border-right:0; border-bottom:1px solid var(--line); }
  .shop-section, .faq { padding-left: 18px; padding-right: 18px; }
  .product-visual { min-height: 340px; }
  .story { padding: 85px 18px; gap: 35px; }
  .nutrition-strip { grid-template-columns: 1fr 1fr; }
  .nutrition-strip div { padding: 26px 18px; }
  .newsletter { margin-left: 18px; margin-right: 18px; }
  .newsletter form { flex-direction: column; }
  footer { grid-template-columns: 1fr; padding-left: 18px; padding-right: 18px; }
  .footer-links { justify-self: start; flex-wrap: wrap; }
}

/* --- Mobile-first refinements --- */
img, svg, video, canvas { max-width: 100%; height: auto; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body { min-width: 0; }

@media (max-width: 768px) {
  .announcement {
    padding: 9px 12px;
    line-height: 1.35;
    letter-spacing: .12em;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px 16px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
    font-size: 13px;
    letter-spacing: .12em;
  }

  .brand-mark { width: 26px; height: 26px; }
  .cart-button { white-space: nowrap; font-size: 13px; padding: 8px 0 8px 8px; }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 34px;
    min-height: auto;
    padding: 52px 18px 56px;
  }

  .hero-copy { width: 100%; }
  .eyebrow { margin-bottom: 14px; }
  h1 { font-size: clamp(54px, 16vw, 86px); line-height: .9; overflow-wrap: anywhere; }
  h2 { font-size: clamp(38px, 11vw, 58px); }
  h3 { font-size: 27px; }

  .hero-text {
    margin-top: 24px;
    max-width: none;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    width: 100%;
    gap: 16px;
    margin-top: 26px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 52px;
  }

  .text-link { padding: 4px 0; }

  .hero-art {
    width: 100%;
    min-height: 390px;
  }

  .pack {
    width: min(78vw, 290px);
    max-width: 100%;
    padding: 26px;
    transform: rotate(2deg);
  }

  .pack-name { font-size: 26px; }
  .pack-window { height: 125px; padding: 14px; }
  .pack-window span { width: 21px; }

  .principles {
    grid-template-columns: 1fr 1fr;
  }
  .principles div {
    min-width: 0;
    padding: 20px 16px;
    font-size: 12px;
  }

  .shop-section { padding: 76px 18px; }
  .section-heading { gap: 22px; margin-bottom: 34px; }
  .section-heading > p { margin: 0; font-size: 15px; }

  .product-grid { gap: 16px; }
  .product-card { width: 100%; min-width: 0; }
  .product-visual { min-height: 300px; }
  .mini-pack { width: 155px; height: 225px; padding: 18px; }
  .stack { width: 140px; height: 205px; }

  .product-info {
    min-height: 0;
    padding: 22px 18px 20px;
    gap: 24px;
  }

  .product-buy-row {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .product-buy-row .button {
    width: 100%;
    min-height: 52px;
  }

  .price { font-size: 22px; }

  .story {
    padding: 78px 18px;
    gap: 28px;
  }
  .story-content h2 { margin-bottom: 28px; }
  .story-content p:not(.eyebrow) { font-size: 16px; }

  .nutrition-strip {
    grid-template-columns: 1fr 1fr;
  }
  .nutrition-strip div { padding: 24px 18px; }
  .nutrition-strip strong { font-size: 19px; }

  .faq { padding: 78px 18px; }
  .faq h2 { margin-bottom: 28px; }
  details { padding: 20px 0; }
  summary { gap: 16px; font-size: 16px; line-height: 1.4; }

  .newsletter {
    margin: 0 18px 62px;
    padding: 28px 18px;
    gap: 24px;
  }
  .newsletter form { flex-direction: column; }
  .newsletter input, .newsletter .button { width: 100%; min-height: 52px; }

  footer {
    grid-template-columns: 1fr;
    padding: 38px 18px 28px;
    gap: 18px;
  }
  .footer-links { justify-self: start; gap: 16px; flex-wrap: wrap; }
  footer small { margin-top: 16px; }

  /* Keep Snipcart usable on narrow screens */
  .snipcart-modal__container,
  .snipcart-cart-header,
  .snipcart-layout,
  .snipcart-cart__content,
  .snipcart-cart-summary { max-width: 100vw !important; }
}

@media (max-width: 430px) {
  .announcement { font-size: 8px; }
  .site-header { padding: 12px 14px; }
  .brand span:last-child { letter-spacing: .1em; }
  .snipcart-items-count { min-width: 20px; height: 20px; }

  .hero { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: clamp(50px, 15.7vw, 68px); }
  .hero-art { min-height: 350px; }
  .pack { width: 235px; padding: 22px; }
  .pack-logo { width: 36px; height: 36px; }
  .pack-name { margin-top: 18px; font-size: 23px; }
  .pack-window { height: 110px; }

  .principles { grid-template-columns: 1fr; }
  .principles div { border-right: 0; }

  .shop-section, .story, .faq { padding-left: 16px; padding-right: 16px; }
  .product-visual { min-height: 270px; }
  .mini-pack { width: 145px; height: 210px; }
  .stack { width: 128px; height: 190px; }

  .nutrition-strip { grid-template-columns: 1fr; }
  .nutrition-strip div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.28); }

  .newsletter { margin-left: 16px; margin-right: 16px; }
  .footer-links { flex-direction: column; align-items: flex-start; }
}
