/* Joyfully Katie redesign, forked from the JavaMania build. Light theme: warm paper, ink, the logo's sun orange.
   Radius rule: buttons are pills, tiles and cards 14px. Each blend's label color arrives as --c. */
:root {
  --bg: #f8f6f2;
  --bg-2: #f0ece5;
  --bg-3: #e7e1d7;
  --tile: #efebe4;
  --fg: #1b1712;
  --fg-1: #3a332b;
  --fg-2: #675e53;
  --fg-3: #8f857a;
  --ink: 27 23 18;
  --paper: 248 246 242;
  --shade: 18 15 11;
  --sun: 252 176 64;
  --line: rgb(var(--ink) / 0.13);
  --accent: #fcb040;
  --accent-ink: #94560a;
  --on-fg: #f8f6f2;
  --on-accent: #1b1712;
  --tile-fg: var(--fg);
  --tile-fg-2: var(--fg-2);
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --r: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  --c: #94560a;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: var(--on-fg); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }

.h2 { font-family: var(--serif); font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.h3, .footer h3 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; }
.lede { color: var(--fg-2); font-size: 1.125rem; max-width: 52ch; margin-top: 20px; text-wrap: pretty; }
.section { padding-block: clamp(96px, 13vw, 176px); }

/* split text */
.w { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; will-change: transform; }

/* buttons: every variant sets its own background */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding-inline: 26px; border-radius: 999px;
  font-weight: 500; font-size: 1rem; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--fg);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--ink, .btn--light { background: var(--fg); color: var(--on-fg); }
.btn--sun { background: var(--accent); color: var(--on-accent); }
.btn--ghost { border-color: rgb(var(--paper) / 0.5); color: #fff; background: rgb(var(--shade) / 0.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--line { border-color: rgb(var(--ink) / 0.28); color: var(--fg); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover, .btn--light:hover { background: #000; }
  .btn--sun:hover { background: #ffc061; }
  .btn--ghost:hover { border-color: #fff; background: rgb(var(--shade) / 0.4); }
  .btn--line:hover { border-color: var(--fg); background: rgb(var(--ink) / 0.05); }
}
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid rgb(var(--ink) / 0.3); padding-bottom: 2px; transition: border-color 200ms ease, gap 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover { border-color: var(--fg); gap: 12px; } }

.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-size: 21px; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn--line { border: 1px solid rgb(var(--ink) / 0.22); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: rgb(var(--ink) / 0.07); } }

/* announcement + nav */
.announce { position: relative; z-index: 51; display: block; text-align: center; font-size: 0.8125rem; font-weight: 500; padding: 9px 16px; background: var(--accent); color: var(--on-accent); }
.nav {
  position: fixed; top: 38px; left: 0; right: 0; z-index: 50;
  height: 72px; display: flex; align-items: center; gap: 32px; padding-inline: var(--gutter);
  background: rgb(var(--paper) / 0.86); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: transform 450ms var(--ease-out), top 300ms var(--ease-out), background-color 300ms ease, color 300ms ease;
}
.nav.is-scrolled { top: 0; box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { position: relative; display: block; width: 116px; height: 43px; }
.nav__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 300ms ease; }
.nav__logo-paper { opacity: 0; }
.nav__links { display: flex; gap: 26px; font-size: 0.9375rem; font-weight: 500; }
.nav__links a { position: relative; padding-block: 6px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease-out); }
.nav__links a[aria-current]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav__actions { margin-left: auto; display: flex; gap: 2px; }
.nav__burger { display: none; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform 300ms var(--ease-out); }
.nav__burger span:first-child { transform: translateY(-4px); }
.nav__burger span:last-child { transform: translateY(4px); }
.nav__burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
/* home: the nav sits on the dark hero photo until the page scrolls */
.home .nav:not(.is-scrolled) { background: linear-gradient(180deg, rgb(var(--shade) / 0.55), rgb(var(--shade) / 0)); backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.home .nav:not(.is-scrolled) .nav__logo-paper { opacity: 1; }
.home .nav:not(.is-scrolled) .nav__logo-ink { opacity: 0; }
.home .nav:not(.is-scrolled) .icon-btn:hover { background: rgb(var(--paper) / 0.14); }
body.menu-open .nav { color: var(--fg) !important; background: var(--bg) !important; }
body.menu-open .nav .nav__logo-ink { opacity: 1 !important; }
body.menu-open .nav .nav__logo-paper { opacity: 0 !important; }

.menu { position: fixed; inset: 0; z-index: 49; background: var(--bg); padding: 128px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a { font-family: var(--serif); font-size: clamp(2.25rem, 9vw, 3.25rem); line-height: 1.15; }
.menu__foot { display: flex; gap: 24px; color: var(--fg-2); font-size: 0.9375rem; }

/* hero */
.hero { position: relative; min-height: 100dvh; margin-top: -38px; display: flex; align-items: flex-end; overflow: clip; isolation: isolate; color: #fff; background: rgb(var(--shade)); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform-origin: 50% 60%; }
@media (max-aspect-ratio: 1/1) { .hero__media img { object-position: 66% 30%; } }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgb(var(--shade) / 0.5) 0%, rgb(var(--shade) / 0) 22%),
  linear-gradient(0deg, rgb(var(--shade) / 0.9) 0%, rgb(var(--shade) / 0.35) 42%, rgb(var(--shade) / 0) 70%); }
.hero__inner { padding-bottom: clamp(48px, 8vh, 96px); }
.hero__title { font-family: var(--serif); font-size: clamp(3.25rem, 8vw, 7rem); line-height: 0.98; letter-spacing: -0.025em; max-width: 13ch; text-wrap: balance; }
.hero__sub { margin-top: 24px; max-width: 42ch; font-size: 1.1875rem; color: #e9e5de; }
.hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badge { position: absolute; right: var(--gutter); bottom: clamp(48px, 8vh, 96px); width: 172px; height: 172px; display: grid; place-items: center; }
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: #fff; font: 500 12px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.hero__badge img { width: 54px; height: auto; filter: invert(1); }

/* marquee */
.marquee { overflow: clip; padding-block: 26px; background: var(--bg); border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__set { display: flex; align-items: center; gap: 32px; padding-right: 32px; font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; white-space: nowrap; }
.mdot { width: 0.32em; height: 0.32em; border-radius: 50%; background: var(--c); flex: none; }

/* bento */
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(4, minmax(170px, 1fr)); gap: 16px; }
.tile { position: relative; overflow: clip; border-radius: var(--r); display: flex; isolation: isolate; }
.tile h3 { font-family: var(--serif); font-size: clamp(1.75rem, 2.4vw, 2.375rem); line-height: 1.05; }
.tile p { margin-top: 6px; font-size: 0.9375rem; }
.tile--photo { grid-column: 1 / 8; grid-row: 1 / 5; align-items: flex-end; min-height: 600px; color: #fff; }
.tile__bg { position: absolute; inset: -8% 0; z-index: -2; }
.tile__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.tile--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(var(--shade) / 0.82) 0%, rgb(var(--shade) / 0.15) 55%, rgb(var(--shade) / 0) 100%); }
.tile--photo .tile__body { padding: clamp(24px, 3vw, 40px); width: 100%; }
.tile--photo h3 { font-size: clamp(2.5rem, 4.4vw, 4rem); max-width: 10ch; }
.tile--photo p { color: #ece8e1; font-size: 1.0625rem; }
.tile__go { position: absolute; right: clamp(24px, 3vw, 40px); bottom: clamp(24px, 3vw, 40px); width: 56px; height: 56px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 22px; transition: transform 400ms var(--ease-out); }
.tile--light { grid-column: 8 / 13; background: color-mix(in srgb, var(--c) 16%, var(--bg)); color: var(--fg); align-items: center; }
.tile--light .tile__body { padding: 26px; position: relative; z-index: 1; max-width: 60%; }
.tile--light p { color: var(--fg-2); }
.tile__bag { position: absolute; right: -2%; top: 50%; height: 116%; width: auto; max-width: none; transform: translateY(-50%); mix-blend-mode: multiply; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile--photo:hover .tile__bg img { transform: scale(1.04); }
  .tile--photo:hover .tile__go { transform: translateX(4px); }
  .tile--light:hover .tile__bag { transform: translateY(-53%); }
}

/* a roller for each part of the day */
.day { position: relative; background: var(--bg); }
.day__pin { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: 112px 64px; }
.day__stops { position: relative; margin-top: 44px; min-height: 250px; }
.stop { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(16px); filter: blur(6px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out), filter 500ms var(--ease-out); pointer-events: none; }
.stop.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.stop__level { display: flex; align-items: center; gap: 8px; color: var(--fg-2); font-weight: 500; font-size: 0.9375rem; }
.ricon { display: block; flex: none; }
.stop__level .ricon { width: 18px; height: 18px; }
.stop h3 { font-family: var(--serif); font-size: clamp(2.5rem, 4.2vw, 3.75rem); line-height: 1.02; margin-top: 6px; }
.stop__note { font-family: var(--serif); font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.25; margin-top: 14px; max-width: 26ch; }
.stop__note span { display: block; font-family: var(--sans); font-size: 0.875rem; color: var(--fg-2); margin-top: 8px; }
.stop .link { margin-top: 22px; }
.day__bags { position: relative; aspect-ratio: 1; border-radius: var(--r); background: rgb(255 255 255 / 0.6); overflow: clip; }
.day__bags img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; mix-blend-mode: multiply; opacity: 0; transform: translateY(14px) scale(0.97); filter: blur(8px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out), filter 600ms var(--ease-out); }
.day__bags img.is-active { opacity: 1; transform: none; filter: none; }
.dayscale { position: relative; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; border-radius: 999px; background: rgb(255 255 255 / 0.6); }
.dayscale__pt { position: relative; z-index: 1; width: 52px; height: 52px; display: grid; place-items: center; color: var(--fg-2); transition: color 400ms ease; }
.dayscale__pt .ricon { width: 22px; height: 22px; }
.dayscale__pt.is-on { color: var(--on-fg); }
.dayscale__marker { position: absolute; left: 0; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: var(--fg); will-change: transform; }

/* hover list of blends */
.flavors { position: relative; }
.flist { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.flist a { display: grid; grid-template-columns: 1fr 1fr 28px; align-items: center; gap: 24px; padding: 20px 4px; border-bottom: 1px solid var(--line); transition: padding 400ms var(--ease-out), color 300ms ease; }
.flist img { display: none; }
.flist__name { display: flex; align-items: center; gap: 18px; font-family: var(--serif); font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.1; }
.flist__name::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.flist__note { color: var(--fg-2); }
.flist i { font-size: 22px; justify-self: end; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .flist:hover a { color: var(--fg-3); }
  .flist a:hover { color: var(--fg); padding-left: 20px; }
  .flist a:hover i { transform: translate(3px, -3px); }
}
.cursor-img { position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 1; pointer-events: none; border-radius: var(--r); overflow: clip; opacity: 0; transform: scale(0.85); transition: opacity 250ms ease, transform 400ms var(--ease-out); box-shadow: 0 24px 60px rgb(var(--shade) / 0.3); }
.cursor-img img { width: 100%; height: 100%; object-fit: cover; }
.cursor-img.is-on { opacity: 1; transform: scale(1); }

/* Katie's story */
.story { background: var(--bg-2); padding-block: clamp(96px, 13vw, 176px); }
.story__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.story__read { margin-top: 36px; font-family: var(--serif); font-size: clamp(1.625rem, 2.5vw, 2.25rem); line-height: 1.25; max-width: 30ch; }
.story__read .rw { opacity: 0.2; transition: opacity 200ms linear; }
.story__by { margin-top: 18px; color: var(--fg-2); font-size: 0.9375rem; }
.story .btn { margin-top: 4px; }
.facts { width: 100%; max-width: 560px; margin: 40px 0 36px; border-collapse: collapse; font-size: 0.9375rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 14px 0; border-top: 1px solid var(--line); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 1px solid var(--line); }
.facts th { font-weight: 500; width: 110px; padding-right: 16px; }
.facts td { color: var(--fg-1); }
.story__photo { margin: 0; position: sticky; top: 120px; }
.story__frame { border-radius: var(--r); overflow: clip; aspect-ratio: 4 / 5; }
.story__frame img { width: 100%; height: 112%; object-fit: cover; }

/* product cards (home rail, collections, search) */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rail-nav { display: flex; gap: 8px; }
.rail-key { margin-top: 16px; color: var(--fg-2); font-size: 0.9375rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rail {
  margin-top: 40px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 23vw, 310px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 24px; margin-bottom: -24px; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag .ccard { pointer-events: none; }
.rail .ccard { scroll-snap-align: start; }
.ccard { display: flex; flex-direction: column; min-width: 0; }
.ccard__img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r); background: color-mix(in srgb, var(--c) 12%, var(--bg)); overflow: clip; }
.ccard__img img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; mix-blend-mode: multiply; transition: transform 600ms var(--ease-out); user-select: none; }
@media (hover: hover) and (pointer: fine) { .ccard:hover .ccard__img img { transform: translateY(-6px); } }
.ccard__kind { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.875rem; color: var(--fg-2); }
.ccard__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.ccard__name { font-family: var(--serif); font-size: 1.75rem; line-height: 1.08; margin-top: 4px; }
.ccard .sdots { margin-top: 10px; }
.ccard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.ccard__price { font-size: 0.9375rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.ccard__add { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--fg); color: var(--on-fg); font-size: 0.875rem; font-weight: 500; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.ccard__add:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .ccard__add:hover { background: #000; } }
/* safety marks: filled = listed safe, empty = not listed */
.sdots { display: inline-flex; gap: 5px; padding: 5px 7px; border-radius: 999px; background: rgb(var(--ink) / 0.06); vertical-align: middle; }
.sdots__d { width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--ink) / 0.14); }
.sdots__d.is-on { background: var(--fg); }
.sdots--key { padding: 4px 6px; }

/* reviews */
.reviews { display: grid; grid-template-columns: 0.8fr 2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.reviews__score { position: sticky; top: 120px; }
.score { font-family: var(--serif); font-size: clamp(6rem, 13vw, 11rem); line-height: 0.85; letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 14px; font-variant-numeric: tabular-nums; }
.score small { font-family: var(--sans); font-size: 1rem; letter-spacing: 0; color: var(--fg-2); }
.reviews__from { margin-top: 18px; color: var(--fg-2); }
.quotes { columns: 2; column-gap: 16px; }
.quote { break-inside: avoid; margin: 0 0 16px; padding: 28px; border-radius: var(--r); background: var(--bg-2); }
.quote:nth-child(3n+2) { background: var(--bg-3); }
.rstars { display: inline-flex; gap: 3px; color: var(--accent-ink); }
.rstars svg { width: 16px; height: 16px; }
.quote .rstars { margin-bottom: 14px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; }
.quote figcaption { margin-top: 18px; font-size: 0.9375rem; font-weight: 500; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.quote figcaption span { color: var(--fg-2); font-weight: 400; }

/* find Katie in person */
.since { position: relative; overflow: clip; padding-block: clamp(140px, 18vw, 240px); text-align: center; background: var(--bg-2); }
.since__beans img { position: absolute; left: var(--x); top: var(--y); width: calc(120px * var(--s)); will-change: transform; mix-blend-mode: multiply; opacity: 0.9; }
.since__inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.since__year { font-family: var(--serif); font-size: clamp(12rem, 34vw, 30rem); line-height: 0.8; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgb(var(--ink) / 0.16); position: absolute; top: 34%; left: 50%; translate: -50% -50%; white-space: nowrap; z-index: -1; user-select: none; }
.since .h2 { max-width: 14ch; }
.since .lede { margin-inline: auto; }
.markets { margin-top: 40px; width: min(640px, 100%); padding: 24px 28px; border-radius: var(--r); background: var(--bg); text-align: left; }
.markets h3 { font-size: 0.9375rem; font-weight: 500; color: var(--fg-2); }
.markets ol { list-style: none; margin: 10px 0 0; padding: 0; }
.markets li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.markets li:first-child { border-top: 0; }
.markets time { font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; }
.markets li.is-now time::after { content: " (on now)"; font-family: var(--sans); font-size: 0.8125rem; color: var(--accent-ink); }
.markets span { color: var(--fg-1); font-size: 0.9375rem; }
.since__ctas { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* trade */
.trade__grid { margin-top: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.trade__card { border-radius: var(--r); padding: clamp(28px, 3.5vw, 48px); background: var(--bg-2); display: flex; flex-direction: column; align-items: flex-start; }
.trade__card h3 { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.05; }
.trade__card--alt { background: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.trade__card--alt p { color: var(--fg-1); margin: 16px 0 32px; max-width: 38ch; }
.trade__card--alt .btn { margin-top: auto; }
.facts--trade { margin: 28px 0 36px; max-width: none; }
.facts--trade th { width: 120px; }

/* footer */
.footer { padding-top: clamp(72px, 9vw, 120px); overflow: clip; background: var(--fg); color: var(--on-fg); --line: rgb(var(--paper) / 0.16); }
.footer__top { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 96px); }
.signup .h3 { display: block; font-size: clamp(2rem, 3.2vw, 2.75rem); }
.signup__row { margin-top: 20px; display: flex; gap: 8px; max-width: 460px; }
.signup input { flex: 1; min-width: 0; height: 52px; border-radius: 999px; border: 1px solid rgb(var(--paper) / 0.32); background: transparent; color: var(--on-fg); padding-inline: 22px; font: inherit; font-size: 1rem; transition: border-color 200ms ease; }
.signup input::placeholder { color: rgb(var(--paper) / 0.5); }
.signup input:focus { outline: none; border-color: var(--on-fg); }
.footer .btn--light { background: var(--accent); color: var(--on-accent); }
.footer__mission { margin-top: 28px; max-width: 40ch; color: rgb(var(--paper) / 0.7); font-size: 0.9375rem; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__cols nav { display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; }
.footer__cols h3 { font-size: 1.375rem; margin-bottom: 6px; }
.footer__cols a { color: rgb(var(--paper) / 0.7); transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__cols a:hover { color: var(--on-fg); } }
.footer__fda { margin-top: clamp(48px, 6vw, 80px); color: rgb(var(--paper) / 0.6); font-size: 0.8125rem; max-width: 1360px; }
.footer__word { font-family: var(--serif); font-size: clamp(3.5rem, 15vw, 13.5rem); line-height: 0.85; padding-bottom: 0.12em; letter-spacing: -0.045em; text-align: center; margin: clamp(40px, 6vw, 80px) 0 0; white-space: nowrap; color: var(--accent); }
.footer__word .ch { display: inline-block; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; padding-block: 24px 28px; font-size: 0.8125rem; color: rgb(var(--paper) / 0.6); border-top: 1px solid var(--line); margin-top: 16px; }
.footer :focus-visible { outline-color: var(--accent); }

/* responsive */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-grid; }
}
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .tile--photo { grid-column: 1 / -1; grid-row: auto; min-height: 440px; }
  .tile--light { grid-column: auto; min-height: 220px; align-items: flex-start; }
  .tile--light .tile__body { max-width: 66%; padding: 22px; }
  .tile__bag { height: 86%; top: auto; bottom: -6%; transform: none; right: -10%; }
  .day__pin { grid-template-columns: 1fr; gap: 20px; padding-block: 96px 32px; align-content: center; }
  .day__stops { margin-top: 12px; min-height: 230px; }
  .day__text .lede { display: none; }
  .day__visual { order: -1; max-width: 300px; width: 100%; margin-inline: auto; }
  .story__grid { grid-template-columns: 1fr; }
  .story__photo { position: static; max-width: 520px; }
  .reviews { grid-template-columns: 1fr; }
  .reviews__score { position: static; }
  .trade__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .nav { height: 64px; }
  .nav__logo { width: 100px; height: 37px; }
  .hero__badge { display: none; }
  .hero__sub { font-size: 1.0625rem; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .bento { grid-template-columns: 1fr; }
  .tile--light { grid-column: auto; min-height: 190px; }
  .dayscale { padding: 8px 10px; }
  .dayscale__pt, .dayscale__marker { width: 44px; height: 44px; }
  .dayscale__marker { margin-top: -22px; }
  .dayscale__pt .ricon { width: 19px; height: 19px; }
  .flist a { grid-template-columns: 56px 1fr 22px; gap: 16px; padding: 14px 0; }
  .flist img { display: block; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; grid-row: 1 / 3; }
  .flist__name { font-size: 1.625rem; gap: 10px; }
  .flist__name::before { width: 10px; height: 10px; }
  .flist__note { grid-column: 2; font-size: 0.9375rem; margin-top: -8px; }
  .flist i { grid-column: 3; grid-row: 1 / 3; }
  .quotes { columns: 1; }
  .quote blockquote { font-size: 1.3125rem; }
  .since__beans img { width: calc(64px * var(--s)); opacity: 0.55; }
  .since__beans img:nth-child(n+5) { display: none; }
  .markets { padding: 18px 20px; }
  .markets li { grid-template-columns: 1fr; gap: 2px; }
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer__base { flex-direction: column; }
  .signup__row { flex-direction: column; }
  .signup input { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; scroll-behavior: auto !important; }
  .day__pin { min-height: 0; }
  .stop, .day__bags img { position: relative; inset: auto; opacity: 1; transform: none; filter: none; }
  .day__bags img:not(.is-active) { display: none; }
  .day__stops { display: grid; gap: 32px; min-height: 0; }
  .stop { pointer-events: auto; }
  .dayscale { display: none; }
  .story__read .rw, [data-read] .rw { opacity: 1; }
}

/* ---------- cart: nav badge, drawer, shared line items ---------- */
.cart-btn { position: relative; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.6875rem; font-weight: 600; line-height: 18px; text-align: center; }
.cdrawer { position: fixed; inset: 0; z-index: 80; color: var(--fg); }
.cdrawer__scrim { position: absolute; inset: 0; background: rgb(var(--shade) / 0.45); opacity: 0; transition: opacity 400ms ease; }
.cdrawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column; background: var(--bg); transform: translateX(100%); transition: transform 450ms cubic-bezier(0.32, 0.72, 0, 1); }
.cdrawer.is-open .cdrawer__scrim { opacity: 1; }
.cdrawer.is-open .cdrawer__panel { transform: none; }
.cdrawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--line); }
.cdrawer__head h2 { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.cdrawer__head h2 span { font-family: var(--sans); font-size: 1rem; color: var(--fg-2); }
.ship { padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.ship__track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.ship__step { height: 8px; border-radius: 999px; background: rgb(var(--ink) / 0.1); transition: background-color 400ms ease; }
.ship__step.is-on { background: var(--accent); }
.clines { list-style: none; margin: 0; padding: 8px 24px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.cline { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cline:last-child { border-bottom: 0; }
.cline__img { position: relative; flex: none; width: 84px; aspect-ratio: 1; border-radius: 10px; background: var(--tile); overflow: hidden; }
.cline__img img { position: absolute; inset: 3%; width: 94%; height: 94%; object-fit: contain; mix-blend-mode: multiply; }
.cline__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cline__name { font-family: var(--serif); font-size: 1.375rem; line-height: 1.1; }
.cline__var { color: var(--fg-2); font-size: 0.8125rem; margin-top: 2px; }
.cline__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.cline__price { font-weight: 500; font-variant-numeric: tabular-nums; }
.cline__rm { align-self: flex-start; margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--fg-2); font: inherit; font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qty { display: flex; align-items: center; height: 56px; border-radius: 999px; border: 1px solid rgb(var(--ink) / 0.2); padding: 4px; background: transparent; }
.qty__btn { width: 46px; height: 46px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; font-size: 16px; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.qty__btn:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .qty__btn:hover { background: rgb(var(--ink) / 0.07); } }
.qty__n { width: 28px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }
.qty--sm { height: 40px; padding: 2px; }
.qty--sm .qty__btn { width: 34px; height: 34px; font-size: 13px; }
.cempty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; }
.cempty p { font-family: var(--serif); font-size: 1.75rem; }
.cdrawer__foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cdrawer__sub { display: flex; justify-content: space-between; font-size: 1.0625rem; font-weight: 500; }
.cdrawer__note { color: var(--fg-2); font-size: 0.8125rem; }
.cdrawer__checkout { width: 100%; }
.cdrawer__view { justify-self: center; font-size: 0.875rem; color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
[data-add].is-added { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--on-accent) !important; }
@media (prefers-reduced-motion: reduce) { .cdrawer__panel, .cdrawer__scrim { transition: none; } }

[hidden] { display: none !important; }
.demo-ok { padding: 14px 0; }
