/* Slow Tide - rebuild of the Aroma Framer template's layout + motion.
   Every number below is measured off the live template at 1440 / 390 (see PARTS.md). */
:root {
  --cream: #F4EAD3;
  --card: #EEDFBD;
  --green: #1D3A2C;
  --green-deep: #16291F;
  --orange: #D9531C;
  --ink: #20180F;
  --ink-80: rgba(32, 24, 15, .8);
  --ease: cubic-bezier(.44, 0, .56, 1); /* Framer [0.44,0,0.56,1] */
  --pad: 80px;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--cream); color: var(--ink); font: 400 16px/24px Archivo, system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
h1, h2, h3, h4 { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; }
em { font-style: normal; color: var(--orange); }

/* ---------- motion: on-load appear (hero) + in-view reveal that replays ---------- */
.js [data-a], .js [data-r] {
  opacity: 0;
  transform: translateY(var(--y, 30px));
  transition: opacity .6s var(--ease) var(--d, 0s), transform .6s var(--ease) var(--d, 0s);
}
.js [data-a].in, .js [data-r].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-a], .js [data-r] { opacity: 1; transform: none; transition: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 49px; padding: 14px 28px; border-radius: 999px;
  background: var(--orange); color: var(--cream);
  font: 700 14px/21px Archivo, sans-serif; text-transform: uppercase; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.btn { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 44px; padding: 12px 16px; color: #fff; }
.btn-sm2 { padding: 14px 16px; }
.btn-ghost { background: var(--cream); color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-green { height: 53px; padding: 16px 28px; background: var(--green); box-shadow: 6px 6px 0 var(--ink); }
.btn-green:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(2px, 2px); }
.mob { display: none; }

/* ---------- nav (88px) ---------- */
.nav {
  position: relative; z-index: 20; height: 88px; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav-l, .nav-r { display: flex; align-items: center; gap: 28px; font: 600 14px/22px Archivo, sans-serif; }
.nav-r { justify-content: flex-end; }
.nav-l a:not(.btn), .nav-r > a:not(.btn) { position: relative; }
.nav-l a:not(.btn)::after, .nav-r > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-l a:not(.btn):hover::after, .nav-r > a:not(.btn):hover::after { transform: scaleX(1); }
.logo { display: block; width: 145px; height: 48px; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.burger { display: none; width: 32px; height: 32px; position: relative; justify-self: end; }
.burger span { position: absolute; left: 4px; right: 4px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span:first-child { top: 11px; } .burger span:last-child { top: 19px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu {
  position: fixed; inset: 88px 0 auto; z-index: 19; background: var(--cream); padding: 16px 24px 32px;
  display: flex; flex-direction: column; gap: 24px; border-bottom: 2px solid var(--green);
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a { font: 400 36px/46px Anton, sans-serif; text-transform: uppercase; color: var(--green); }

/* ---------- hero (886px at 1440; scales with the viewport below that) ---------- */
.hero { position: relative; height: min(886px, 61.53vw); margin: 0 40px; overflow: clip; }
.pill {
  position: absolute; top: min(51px, 3.54vw); left: 0; right: 0; margin: 0 auto; width: max-content;
  display: flex; align-items: center; gap: 8px; height: 35px; padding: 6px 14px; border-radius: 999px;
  background: var(--green); color: var(--cream);
  font: 700 12px/18px Archivo, sans-serif; text-transform: uppercase; letter-spacing: 1px;
}
.pill .spark { width: 12px; height: 12px; color: var(--orange); }
.hero-h span {
  position: absolute; left: 0; right: 0; text-align: center; white-space: nowrap;
  font-size: min(202px, 14.03vw); line-height: 1.0516;
}
.h-1 { top: min(114px, 7.92vw); color: var(--green); }
.h-2 { top: min(337px, 23.4vw); color: var(--orange); }
.cup { position: absolute; z-index: 2; top: min(164px, 11.39vw); left: 50%; margin-left: max(-304.5px, -21.15vw); width: min(609px, 42.29vw); }
.cup-par { will-change: transform; transform-origin: 72% 100%; }
.cup img { display: block; width: 100%; height: auto; }

/* ---------- marquee (78px, 50px/s leftward loop) ---------- */
.marquee { position: relative; z-index: 5; height: 78px; padding: 24px 0; background: var(--green); overflow: hidden; }
.track { display: flex; gap: 16px; list-style: none; width: max-content; will-change: transform; }
.track li { display: flex; align-items: center; gap: 16px; font: 400 20px/30px Anton, sans-serif; text-transform: uppercase; color: var(--cream); white-space: nowrap; }
.track .spark { width: 18px; height: 18px; color: var(--orange); }

/* ---------- our story (1039px) ---------- */
.story {
  padding: var(--pad); display: flex; flex-direction: column; gap: 80px;
  background: radial-gradient(120% 90% at 30% 20%, #F8F0DE 0%, var(--cream) 60%, #EFE3C8 100%);
}
.story-head { display: flex; gap: 80px; }
.story-text, .story-img { flex: 1 1 0; min-width: 0; }
.story-text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.story-text h2 { font-size: 76px; line-height: 84px; color: var(--green); margin-bottom: 18px; }
.story-text p { font-size: 18px; line-height: 26px; color: var(--ink-80); margin-top: -18px; }
.story-text .btn { margin-top: 16px; }
.story-img { display: flex; justify-content: center; align-items: flex-end; height: 461px; }
.story-img img { display: block; height: 100%; width: auto; filter: drop-shadow(0 22px 24px rgba(32, 24, 15, .22)); }
.feats { display: flex; gap: 56px; }
.feat { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.feat img { display: block; width: auto; height: 216px; }
.feat-text { display: flex; flex-direction: column; gap: 12px; }
.feat h3 { font-size: 24px; line-height: 34px; color: var(--green); }
.feat p { font-size: 18px; line-height: 26px; color: var(--ink-80); }

/* ---------- checker ornament ---------- */
.checker {
  position: absolute; left: 0; right: 0;
  background: repeating-conic-gradient(var(--green) 0 25%, var(--cream) 0 50%) 25px 0 / 80px 80px;
}
.checker-top { top: 0; height: 70px; background-size: 70px 70px; background-position: 25px 0; }
.checker-bot { bottom: 0; height: 79px; background-size: 79px 79px; background-position: 25px 0; }

/* ---------- product sections ---------- */
.best, .blends, .journal { position: relative; display: flex; flex-direction: column; gap: 56px; padding: var(--pad); }
.best { background: var(--green); padding: 186px var(--pad) 185px; }
.blends { background: var(--cream); }
.journal { background: var(--green); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.sec-head h2 { font-size: 52px; line-height: 64px; color: var(--green); }
.best .sec-head h2, .journal .sec-head h2 { color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.prod { display: flex; flex-direction: column; gap: 16px; }
.prod[hidden] { display: none; }
.prod-img { height: 415px; border-radius: 11px; background: var(--card); display: grid; place-items: center; overflow: hidden; }
.prod-img svg { width: 300px; height: 300px; transition: transform .5s var(--ease); }
.prod-img img { display: block; height: 300px; width: auto; transition: transform .5s var(--ease); filter: drop-shadow(0 14px 16px rgba(32, 24, 15, .2)); }
.prod:hover .prod-img svg, .prod:hover .prod-img img { transform: translateY(-6px) rotate(-2deg); }
.prod-info { display: flex; flex-direction: column; gap: 8px; }
.prod h3 { font-size: 24px; line-height: 34px; letter-spacing: 1.6px; color: var(--green); }
.attrs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 16px; line-height: 25px; color: var(--ink); }
.price { font: 400 18px/27px Anton, sans-serif; color: var(--green); }
.on-dark h3, .on-dark .price { color: #fff; }
.on-dark .attrs { color: var(--cream); }
.center { display: flex; justify-content: center; }
.tabs { display: flex; gap: 16px; }
.tab {
  width: 175px; height: 47px; padding: 12px 16px; border-radius: 999px; border: 2px solid var(--green);
  font: 700 14px/19px Archivo, sans-serif; text-transform: uppercase; color: var(--green);
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.tab.on { background: var(--orange); color: #fff; border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }

/* ---------- journal (841px) ---------- */
.posts { display: flex; gap: 24px; }
.post { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: 12px; background: var(--cream); }
.post-img { height: 338px; border-radius: 12px; overflow: hidden; }
.post-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post-img img { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; gap: 16px; }
.read { font: 500 14px/23px Archivo, sans-serif; }
.post h3 { font-size: 24px; line-height: 34px; color: var(--green); }
.post-body p:last-child { font-size: 16px; line-height: 26px; color: var(--ink-80); }

/* ---------- reviews: scattered pile (1008px) ---------- */
.reviews { display: flex; flex-direction: column; gap: 56px; padding: 100px var(--pad); }
.rev-head { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.rev-head h2 { font-size: 52px; line-height: 60px; color: var(--green); }
.rev-head p { margin: 0 auto; font-size: 18px; line-height: 26px; }
.pile { position: relative; width: 1040px; max-width: 100%; height: 624px; margin: 0 auto; }
.rev {
  position: absolute; left: var(--cx); top: var(--cy); width: 310px;
  transform: translate(-50%, -50%) rotate(var(--rot));
  display: flex; flex-direction: column; gap: 24px; padding: 16px; border-radius: 12px;
  background: var(--cream); border: 2px solid var(--green); box-shadow: 6px 6px 0 var(--green);
  font-family: Sora, sans-serif; font-weight: 600; color: #111;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
/* a finger nudging a card on the table: slides and turns a hair, never jumps a layer */
.rev:hover { transform: translate(-50%, -50%) translate(3px, 2px) rotate(calc(var(--rot) + var(--nudge))); }
.rev blockquote { font-size: 18px; line-height: 26px; }
.rev figcaption { font-size: 12px; line-height: 16px; }

/* ---------- CTA (632px) ---------- */
.cta {
  position: relative; overflow: hidden; height: 632px; background: var(--orange); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 56px; text-align: center;
}
.cta-in { position: relative; z-index: 2; width: 802px; max-width: calc(100% - 32px); }
.script { font: 500 28px/29px Caveat, cursive; margin-bottom: 12px; }
.cta h2 { font-size: 64px; line-height: 77px; }
.cta-p { max-width: 100%; margin: 24px auto 0; font-size: 16px; line-height: 24px; }
.cta > div[data-r] { position: relative; z-index: 2; }
.deco { position: absolute; z-index: 1; }
.deco img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(32, 24, 15, .22)); }
.d-mug { left: .42%; top: 43px; width: 158px; height: 215px; }
.d-burst { left: 20.76%; top: 35px; width: 72px; height: 72px; }
.d-roundel { left: 77.36%; top: 26px; width: 179px; height: 171px; transform: rotate(11deg); }
.d-scallop { left: 74.51%; top: 293px; width: 171px; height: 174px; }
.d-bean { left: 76.8%; top: 470px; width: 145px; height: 145px; transform: rotate(70deg); }
.d-word { left: 2.29%; top: 431px; width: 389px; height: 201px; }

/* ---------- footer (1022 + 72) ---------- */
.foot { background: var(--green); color: var(--cream); }
.foot-main { display: flex; flex-direction: column; gap: 56px; padding: 80px 40px 0; }
.foot-top { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.foot-top h2 { font-size: 80px; line-height: 94px; }
.foot-top p { max-width: 420px; font-size: 18px; line-height: 26px; }
.foot-links { display: flex; gap: 40px; min-height: 220px; }
.fcol { flex: 1 1 0; display: flex; flex-direction: column; gap: 16px; font-size: 14px; line-height: 21px; }
.fcol h4 { font-size: 24px; line-height: 32px; }
.fcol a { opacity: .85; width: max-content; transition: opacity .2s; }
.fcol a:hover { opacity: 1; }
.info p { line-height: 22px; }
.foot-mark { margin: 80px 40px 20px; }
.foot-mark img { display: block; width: 100%; height: auto; }
.foot-bar { height: 72px; padding: 16px 40px; background: var(--green-deep); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.foot-bar p { font-size: 12px; line-height: 18px; }
.socials { display: flex; gap: 12px; }
.soc { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(244, 234, 211, .5); display: grid; place-items: center; transition: background-color .2s; }
.soc:hover { background: rgba(244, 234, 211, .12); }
.soc svg { width: 18px; height: 18px; }

/* ---------- tablet ---------- */
@media (max-width: 1199px) {
  :root { --pad: 48px; }
  .nav-l, .nav-r { gap: 20px; }
  .grid { gap: 24px; }
  .story-text h2 { font-size: 60px; line-height: 66px; }
  .feats, .story-head { gap: 32px; }
  .pile { zoom: .74; }
  /* right-hand stickers hug the edge so they clear the headline */
  .d-roundel { left: auto; right: 3%; }
  .d-scallop { left: auto; right: 1%; width: 150px; height: 153px; }
  .d-bean { left: auto; right: 5%; width: 124px; height: 124px; }
  .tab { width: auto; }
}

/* ---------- phone (Framer breakpoint 810) ---------- */
@media (max-width: 809px) {
  :root { --pad: 16px; }
  .nav { padding: 20px 24px; grid-template-columns: 1fr auto auto; gap: 14px; }
  .nav-l { display: none; }
  .nav-r .btn { height: 38px; padding: 8px 14px; font-size: 12px; line-height: 16px; }
  .logo { width: 120px; height: 40px; }
  .burger { display: block; }

  .hero { height: 660px; margin: 0; }
  .pill { top: 24px; padding: 6px 12px; font-size: 10px; line-height: 14px; letter-spacing: .6px; height: 35px; }
  .hero-h span { font-size: min(64px, 16.4vw); line-height: 68px; }
  .h-1 { top: 86px; } .h-2 { top: 162px; }
  .cup { top: 215px; width: 388px; margin-left: -194px; }
    
  .marquee { height: 66px; padding: 18px 0; }
  .story { padding: 40px 16px; gap: 80px; }
  .story-img { display: none; }
  .story-head { flex-direction: column; gap: 32px; }
  .story-text h2 { font-size: 40px; line-height: 46px; margin-bottom: 0; }
  .story-text p { margin-top: 0; font-size: 16px; line-height: 24px; }
  .story-text .btn { margin-top: 0; }
  .feats { flex-direction: column; gap: 24px; }
  .feat p { font-size: 16px; line-height: 24px; }

  .best, .blends, .journal { gap: 56px; padding: 40px 16px; }
  .best .mob { margin-top: -24px; }
  .best { padding: 144px 16px; }
  .checker-top { height: 19px; background-size: 40px 40px; background-position: 12px 0; }
  .checker-bot { height: 79px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; min-height: 42px; }
  .sec-head h2 { font-size: 36px; line-height: 42px; }
  .desk { display: none; }
  .mob { display: inline-flex; width: 100%; }
  .blends .center .btn { width: 100%; }
  .grid { grid-template-columns: 1fr; gap: 24px; }
  .prod-img { height: 371px; }
  .tabs { gap: 10px; width: 100%; }
  .tab { flex: 1 1 auto; width: auto; height: 48px; padding: 12px 10px; font-size: 12px; line-height: 16px; }
  .tab.on { box-shadow: 4px 4px 0 var(--ink); }
  .posts { flex-direction: column; gap: 24px; }
  .post-img { height: 322px; }

  .reviews { padding: 40px 16px; gap: 32px; }
  .rev-head h2 { font-size: 36px; line-height: 42px; }
  .rev-head p { font-size: 16px; line-height: 24px; }
  .pile { zoom: 1; width: auto; height: auto; display: flex; flex-direction: column; gap: 18px; }
  .rev { position: static; width: auto; transform: none; padding: 24px 16px; }
  .rev:hover { transform: none; }
  .rev:nth-child(n+5) { display: none; }

  .cta { height: auto; min-height: 398px; padding: 40px 16px; gap: 32px; }
  .cta h2 { font-size: 40px; line-height: 46px; }
  .deco { display: none; }

  .foot-main { padding: 48px 24px 0; gap: 48px; }
  .foot-top h2 { font-size: 48px; line-height: 56px; }
  .foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-main { padding-bottom: 24px; }
  .socials { display: none; }
  .foot-mark { margin: 0 24px 24px; }
  .foot-bar { height: 50px; padding: 16px 24px; }
}
