/* Fuego Lento: tokens, type, buttons, the shop header, the phone menu and the footer. Shared by every page. */
:root {
  --paper: #f5e9d9;
  --paper-2: #ecdcc6;
  --ink: #1e0d0b;
  --ink-soft: #57372f;
  --night: #160807;
  --maroon: #4a0e14;
  --roast: #b4281c;
  --orange: #e07a1f;
  --saffron: #f2b53c;
  --marigold: #f3a712;
  --display: "Ultra", "Rockwell", Georgia, serif;
  --text: "Chivo", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 4.5vw, 64px);
  --head-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  font-feature-settings: "tnum" 0;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: .95; letter-spacing: -.005em; }
p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }
[hidden] { display: none !important; }
.no-js .js-only, .js .no-js-only { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--marigold); color: var(--ink); font-weight: 800; }
.skip:focus { top: 12px; }

/* Price figures and small labels use tabular figures so they line up. */
.num { font-variant-numeric: tabular-nums; }
.kicker { font: 800 .8125rem/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; }

/* Buttons: a painted-sign block with a hard offset shadow. Press moves it into its shadow. */
.btn {
  --bg: var(--ink); --fg: var(--paper); --shadow: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 1.3em;
  border: 2px solid var(--shadow); border-radius: 0;
  background: var(--bg); color: var(--fg);
  font: 800 1rem/1 var(--text); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { --bg: var(--roast); --fg: var(--paper); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shadow); }
.btn--hot { --bg: var(--marigold); --fg: var(--ink); }
.btn--hot:hover { --bg: var(--paper); --fg: var(--ink); }
.btn--paper { --bg: var(--paper); --fg: var(--ink); }
.btn--paper:hover { --bg: var(--marigold); --fg: var(--ink); }
.btn[data-done] { --bg: var(--paper); --fg: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px;
  font-weight: 700; text-decoration: underline; text-decoration-color: currentColor;
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
.link-arrow::after { content: "\2192"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Chile marks: one drawn chile used as a mask, filled by colour. */
.chiles { display: inline-flex; gap: 2px; vertical-align: -3px; }
.chile { width: 18px; height: 18px; background: currentColor; opacity: .28; -webkit-mask: url(../assets/chile.svg) center / contain no-repeat; mask: url(../assets/chile.svg) center / contain no-repeat; }
.chile.on { opacity: 1; }

/* ---------- Header ---------- */
.head {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  height: var(--head-h); padding: 0 var(--gutter);
  background: var(--night); color: var(--paper);
  border-bottom: 3px solid var(--marigold);
}
.head__brand {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--marigold); font: 400 1.6rem/1 var(--display); text-decoration: none; white-space: nowrap;
  transition: color .2s var(--ease);
}
.head__brand:hover { color: var(--paper); }
.head__nav { display: flex; gap: 2px; margin-left: auto; }
.head__nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-weight: 600; text-decoration: none; color: var(--paper);
  text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 9px;
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
.head__nav a:hover { text-decoration-color: rgba(245, 233, 217, .5); }
.head__nav a[aria-current="page"] { text-decoration-color: var(--marigold); }
.head__tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 2px solid rgba(245, 233, 217, .4); }
.lang button {
  width: 46px; min-height: 40px; border: 0; background: transparent; color: var(--paper);
  font: 800 .875rem/1 var(--text); letter-spacing: .08em;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang button:hover { background: rgba(245, 233, 217, .14); }
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--night); }
.head__bag {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 14px;
  border: 0; background: var(--marigold); color: var(--ink); font-weight: 800;
  transition: background-color .2s var(--ease);
}
.head__bag:hover { background: var(--paper); }
.head__bag-icon { width: 20px; height: 20px; background: currentColor; -webkit-mask: url(../assets/bag.svg) center / contain no-repeat; mask: url(../assets/bag.svg) center / contain no-repeat; }
.head__count {
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px;
  display: inline-grid; place-items: center; background: var(--ink); color: var(--marigold);
  font: 800 .875rem/1 var(--text); font-variant-numeric: tabular-nums;
}
.head__count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } }
.head__menu { display: none; }

/* No scripts: the language switch and bag cannot work, so they step aside and the links stay. */
.no-js .lang, .no-js .head__bag, .no-js .head__menu, .no-js [data-add], .no-js .qty, .no-js .shelf__jar,
.no-js .finder__stage, .no-js .scale, .no-js .hero__jar { display: none !important; }

@media (max-width: 899px) {
  :root { --head-h: 60px; }
  .head { gap: 8px; }
  .head__nav { display: none; }
  .no-js .head { flex-wrap: wrap; height: auto; padding-block: 6px; }
  .no-js .head__nav { display: flex; width: 100%; overflow-x: auto; margin-left: -14px; }
  .no-js .head__nav a { white-space: nowrap; }
  .head__brand { font-size: 1.15rem; line-height: .86; white-space: normal; width: 5.2em; margin-right: auto; }
  .head__bag-word { display: none; }
  .head__bag { padding: 0 10px; }
  .lang button { width: 44px; min-height: 44px; }
  .head__menu {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 2px solid rgba(245, 233, 217, .4); background: transparent; color: var(--paper);
  }
  .head__menu-bars, .head__menu-bars::before, .head__menu-bars::after {
    content: ""; display: block; width: 18px; height: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s;
  }
  .head__menu-bars { position: relative; }
  .head__menu-bars::before { position: absolute; top: -6px; }
  .head__menu-bars::after { position: absolute; top: 6px; }
  .head__menu[aria-expanded="true"] .head__menu-bars { background: transparent; }
  .head__menu[aria-expanded="true"] .head__menu-bars::before { transform: translateY(6px) rotate(45deg); }
  .head__menu[aria-expanded="true"] .head__menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 379px) {
  .head__tools { gap: 6px; }
  .head__bag { padding: 0 8px; }
}

/* ---------- Phone menu: the pages, then the four jars as doors ---------- */
.menu {
  position: fixed; inset: var(--menu-top, var(--head-h)) 0 auto 0; z-index: 39;
  max-height: calc(100svh - var(--menu-top, var(--head-h))); overflow-y: auto;
  padding: 20px var(--gutter) 28px; background: var(--night); color: var(--paper);
  border-bottom: 3px solid var(--marigold);
}
.menu__pages a {
  display: flex; align-items: center; min-height: 56px;
  font: 400 2rem/1 var(--display); text-decoration: none; color: var(--paper);
  border-bottom: 1px solid rgba(245, 233, 217, .18);
}
.menu__pages a[aria-current="page"] { color: var(--marigold); }
.menu__jars-title { margin: 22px 0 10px; color: rgba(245, 233, 217, .8); }
.menu__jars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.menu__jars a { display: grid; gap: 6px; justify-items: center; text-align: center; font-weight: 700; font-size: .875rem; line-height: 1.2; text-decoration: none; color: var(--paper); }
.menu__jars .jar { width: min(72px, 100%); }
@media (min-width: 900px) { .menu { display: none !important; } }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: var(--paper); padding: clamp(56px, 8vw, 96px) var(--gutter) 0; overflow: hidden; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot__h { font: 800 .8125rem/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--marigold); margin-bottom: 12px; }
.foot__cols a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--paper); transition: color .2s var(--ease); }
.foot__cols a:hover { color: var(--marigold); text-decoration: underline; }
.foot__cols p { color: rgba(245, 233, 217, .86); max-width: 30ch; }
.foot__cols p + p { margin-top: 8px; }
.foot__concept { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(245, 233, 217, .2); color: rgba(245, 233, 217, .8); font-size: 1rem; max-width: 70ch; }
.foot__mark {
  margin: 28px 0 -.16em; color: var(--marigold);
  font: 400 calc((100vw - 2 * var(--gutter)) / 7.75) / .86 var(--display); white-space: nowrap; text-align: center;
}
@media (max-width: 899px) {
  .foot__cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reveals: sections rise once. Reduced motion, no script: already there. ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

/* The film toggle used wherever film plays. */
.film-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 2px solid currentColor; background: rgba(22, 8, 7, .55); color: var(--paper);
  font: 700 .875rem/1 var(--text);
  transition: background-color .2s var(--ease);
}
.film-toggle:hover { background: rgba(22, 8, 7, .85); }
.film-toggle::before { content: ""; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.film-toggle[aria-pressed="true"]::before { width: 0; height: 0; border: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.motion-off .film-toggle, .no-js .film-toggle { display: none; }

/* Days from today, ship days marked: worked out from the visitor's date. */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 3px solid var(--ink); background: var(--paper); }
.week li { display: grid; justify-items: center; gap: 6px; padding: 14px 4px 16px; border-left: 2px solid rgba(30, 13, 11, .18); text-align: center; }
.week li:first-child { border-left: 0; }
.week__day { font-weight: 700; font-size: .9375rem; text-transform: capitalize; }
.week__date { font: 400 1.9rem/1 var(--display); }
.week__ship { min-height: 1.3em; font-weight: 800; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.week li.ships { background: var(--ink); color: var(--marigold); }
.week li.today .week__day { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 899px) {
  .week li { padding: 10px 2px 12px; }
  .week__date { font-size: 1.35rem; }
  .week__day { font-size: .8125rem; }
  .week__ship { font-size: .6875rem; letter-spacing: .02em; }
}
