/* Juicy Jeev's landing page.
   Palette and type follow the brand's visual direction (D-14): kulhad cream
   base, near-black ink, one flat saturated colour per flavour sampled from the
   real drink, Anek (Ek Type, OFL) as the type family. */

@font-face {
  font-family: "Anek Latin";
  src: url("/fonts/anek-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --cream: #f2e9d8;
  --ink: #1b1c20;
  --ink-soft: color-mix(in srgb, var(--ink) 78%, var(--cream));
  --rule: color-mix(in srgb, var(--ink) 16%, var(--cream));

  /* Flavour colours: Masala Lime, Rose Petal, Green Mango, Guava Masala, Black Plum. */
  --lime: #d7d52e;
  --rose: #c01e4a;
  --mango: #9fa83c;
  --guava: #ec8469;
  --plum: #3a1c4e;

  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Anek Latin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p {
  margin: 0;
}

.top,
.hero,
.foot,
.drinks {
  padding-inline: var(--gutter);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill {
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 0.4em 0.95em 0.3em;
  white-space: nowrap;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2rem, 6vh, 5rem);
}

.wordmark {
  margin: 0 0 clamp(1.5rem, 4vh, 3rem) -0.04em;
  font-size: clamp(3.75rem, 15vw, 13rem);
  font-weight: 800;
  font-stretch: 100%;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tagline {
  max-width: 24ch;
  margin-bottom: 0.75rem;
  font-size: clamp(1.375rem, 2.6vw, 2.125rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lede {
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Five flavour colours standing in a row, like stick packs on a shelf. */
.drinks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(4px, 0.8vw, 10px);
  height: clamp(88px, 22vh, 200px);
}

.drinks span {
  display: block;
  border-radius: 12px 12px 0 0;
}

/* Classes rather than inline styles: the CSP in _headers has no 'unsafe-inline'. */
.drinks .lime  { background: var(--lime); }
.drinks .rose  { background: var(--rose); }
.drinks .mango { background: var(--mango); }
.drinks .guava { background: var(--guava); }
.drinks .plum  { background: var(--plum); }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.foot a {
  color: inherit;
}

@media (max-width: 480px) {
  .top {
    font-size: 0.7rem;
  }
}
