/* ==========================================================================
   More Juice — site styles
   One stylesheet for the whole site. Edit colours and type in :root below;
   everything else reads from these values.
   ========================================================================== */

:root{
  /* Brand constants — these appear on every page */
  --kraft:        #E5CC9A;  /* page background everywhere */
  --ink:          #27261D;  /* display type, rules, borders */
  --brick:        #9C5A3C;  /* italic tagline only */
  --cocoa:        #5C2C0E;  /* small uppercase labels, marquee */
  --shadow-cream: #F0DCAD;  /* the offset shadow behind MORE */
  --green:        #16301E;  /* label green — reversed panels */
  --label-cream:  #F3E3BE;  /* type reversed on green */

  --rule: rgba(39, 38, 29, .18);

  /* Flavour stage — overridden per SKU by assets/js/flavors.js */
  --stage:  #E5CC9A;
  --accent: #E8452B;

  --swap: .4s;      /* flavour cross-fade */
  --mq-gap: 24px;   /* marquee spacing — keep uniform */
  --measure: 66ch;  /* reading width for body copy */
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  background: var(--kraft);
  color: var(--ink);
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }

/* Printed-paper texture. Sits above everything, catches no clicks. */
.texture{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background-image: repeating-linear-gradient(
    rgba(0,0,0,.024) 0px, rgba(0,0,0,.024) 1px,
    rgba(0,0,0,0)   1px, rgba(0,0,0,0)   4px);
}

/* --------------------------------------------------------------------------
   Masthead — identical markup on every page. Change it here, change it in
   all five HTML files.
   -------------------------------------------------------------------------- */

.masthead{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 26px 44px 20px;
  gap: 20px;
}

.nav{
  display: flex;
  gap: 30px;
  align-items: center;
  padding-top: 16px;
  flex-wrap: wrap;
  font-family: 'Oswald', sans-serif;
}
.nav.right{ justify-content: flex-end; }

.nav a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: clamp(13px, 1.2vw, 17px);
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease;
}
.nav a:hover,
.nav a:focus-visible{ border-bottom-color: var(--accent); }
.nav a.here{ font-weight: 600; border-bottom-color: var(--accent); }

.nav .pin{
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--accent);
  transition: color var(--swap) ease;
}

/* Wordmark lockup, taken from the top panel of the bottle label */
.lockup{
  text-align: center;
  text-decoration: none;
  color: var(--green);
  display: block;
}
.lockup .mark{
  display: block;
  font-weight: 900;
  font-size: clamp(40px, 4.8vw, 62px);
  line-height: .88;
  letter-spacing: .01em;
  text-shadow: .05em .07em 0 var(--shadow-cream);
}
.lockup .sub{
  display: block;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(15px, 1.6vw, 21px);
  margin-top: 9px;
}

/* --------------------------------------------------------------------------
   Home — flavour stage and selector
   -------------------------------------------------------------------------- */

.home{
  position: relative;
  z-index: 1;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.stage{
  min-height: 0;
  background: var(--stage);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  position: relative;
  overflow: hidden;
  transition: background var(--swap) ease;
}

.stage img{
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: calc(100% - 48px);
  max-height: calc(100% - 52px);
  width: auto;
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 24px rgba(22,48,30,.26));
  animation: rise var(--swap) ease;
}
@keyframes rise{
  from{ opacity: 0; transform: translateY(14px) scale(.99); }
  to  { opacity: 1; transform: none; }
}

.selector{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(26px, 5vw, 72px);
  padding: 22px 20px 20px;
  flex-wrap: wrap;
}

.selector button{
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 0 4px 8px;
  border-bottom: 3px solid transparent;
  opacity: .42;
  transition: opacity .18s ease, border-color .18s ease;
}
.selector button:hover{ opacity: .74; }
.selector button[aria-pressed="true"]{ opacity: 1; border-bottom-color: var(--accent); }
.selector button:focus-visible{ outline: 3px solid var(--ink); outline-offset: 6px; }

.fruits{ display: flex; align-items: flex-end; gap: 6px; }
.fruits svg{
  width: clamp(30px, 3.1vw, 42px);
  height: clamp(30px, 3.1vw, 42px);
  display: block;
}

.selector .nm{
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(12px, 1.15vw, 16px);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Marquee — bottom of every page
   -------------------------------------------------------------------------- */

.marquee{
  position: relative;
  z-index: 1;
  border-top: 1.5px solid var(--ink);
  overflow: hidden;
  padding: 13px 0;
}
.marquee-track{
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}
.mq-half{
  display: flex;
  align-items: center;
  gap: var(--mq-gap);
  padding-right: var(--mq-gap);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 1.35vw, 19px);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cocoa);
  white-space: nowrap;
}
.mq-half .d{
  color: var(--accent);
  font-size: .62em;
  letter-spacing: 0;
  line-height: 1;
  transition: color var(--swap) ease;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Interior pages
   -------------------------------------------------------------------------- */

.page{
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 28px 70px;
}

.page-head{
  border-bottom: 2px solid var(--ink);
  padding-bottom: 26px;
  margin-bottom: 40px;
}
.eyebrow{
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cocoa);
}
h1{
  font-weight: 900;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 12px 0 10px;
  text-shadow: .05em .07em 0 var(--shadow-cream);
  text-wrap: balance;
}
.standfirst{
  font-size: 18px;
  max-width: var(--measure);
  margin: 0;
}

section{ margin-bottom: 44px; }

h2{
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cocoa);
  margin: 0 0 6px;
}
h3{
  font-weight: 900;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.2;
  margin: 0 0 16px;
  text-wrap: balance;
}
p{ max-width: var(--measure); margin: 0 0 16px; }
strong{ font-weight: 900; }
em{ font-style: italic; }

/* Halftone divider, lifted from the bars printed on the label */
.rule{
  width: min(520px, 70vw);
  height: 9px;
  margin: 34px 0;
  color: var(--accent);
  background-image: radial-gradient(currentColor 1.05px, transparent 1.35px);
  background-size: 5px 5px;
  transition: color var(--swap) ease;
}

/* Spec / store tables */
.tbl-wrap{ overflow-x: auto; margin: 0 0 24px; }
table{ border-collapse: collapse; width: 100%; min-width: 460px; font-size: 15px; }
th, td{
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th{
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cocoa);
  white-space: nowrap;
}
thead th{ border-bottom: 1.5px solid var(--ink); }
td.num{ font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Store list */
.stores{ list-style: none; margin: 0 0 30px; padding: 0; }
.stores li{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.stores .name{ font-weight: 900; }
.stores .addr{
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--cocoa);
}

/* Callout */
.callout{
  border-left: 4px solid var(--brick);
  background: rgba(243, 227, 190, .55);
  padding: 16px 20px;
  margin: 0 0 24px;
  max-width: var(--measure);
}
.callout p:last-child{ margin-bottom: 0; }
.callout .tag{
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 5px;
}

/* Buttons and form fields */
.btn{
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--label-cream);
  text-decoration: none;
  padding: 13px 26px;
  border: 0;
  cursor: pointer;
  transition: opacity .18s ease;
}
.btn:hover{ opacity: .88; }

form{ max-width: 520px; }
label{
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cocoa);
  margin: 18px 0 6px;
}
input, textarea{
  width: 100%;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--label-cream);
  border: 1.5px solid var(--ink);
  padding: 11px 13px;
}
input:focus, textarea:focus{ outline: 3px solid var(--accent); outline-offset: 2px; }
textarea{ min-height: 130px; resize: vertical; }
form .btn{ margin-top: 24px; }

/* Footer on interior pages */
.foot{
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--rule);
  padding: 20px 44px 30px;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cocoa);
}
.foot a{ text-decoration: none; border-bottom: 1px solid transparent; }
.foot a:hover{ border-bottom-color: var(--accent); }
.foot .spacer{ flex: 1; }

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 760px){
  .masthead{ padding: 18px 14px 14px; gap: 8px; }
  .nav{ gap: 12px; padding-top: 8px; }
  .nav a{ font-size: 11px; letter-spacing: .06em; }
  .nav .pin{ width: 12px; height: 12px; }
  .lockup .mark{ font-size: 34px; }
  .lockup .sub{ font-size: 14px; margin-top: 6px; }

  .stage img{ max-width: calc(100% - 28px); max-height: calc(100% - 32px); }
  .selector{ gap: 20px; padding: 16px 12px 14px; }
  .fruits{ gap: 4px; }
  .fruits svg{ width: 26px; height: 26px; }
  .selector .nm{ font-size: 10px; letter-spacing: .07em; }

  .page{ padding: 6px 18px 50px; }
  .foot{ padding: 18px 18px 26px; gap: 14px; }
  .stores li{ flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}
