/* Pippali Spices: the export-sack world.
   Jute ground, solid condensed sack lettering, violet rubber stamps, manila grading tags.
   Export red fills only the call-to-order action.
   No inline styles anywhere: the Content-Security-Policy blocks them. */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: 'Display';
  font-weight: 600 900;
  font-display: swap;
  src: url(fonts/display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  /* latin-ext carries the rupee sign (U+20B9) */
  font-family: 'Display';
  font-weight: 600 900;
  font-display: swap;
  src: url(fonts/display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Anek Malayalam';
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(fonts/anek-malayalam-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Anek Malayalam';
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(fonts/anek-malayalam-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --jute: #C99A5B;
  --jute-light: #D6AB6E;
  --jute-deep: #A8783F;
  --ink: #1A140E;
  --ink-soft: #3E2A17;
  --red: #C62A1D;          /* reserved: call-to-order fill only */
  --red-dark: #A3200F;
  --red-ink: #741208;      /* origin stencil on jute (large text only) */
  --whatsapp: #14783F;       /* WhatsApp buttons only; white text 5.5:1 */
  --whatsapp-dark: #0E6B3A;
  --violet: #3F2580;       /* rubber-stamp ink */
  --manila: #EFC75E;
  --manila-edge: #D9AE3F;
  --white: #FFFFFF;

  --display: 'Display', 'Arial Narrow', sans-serif;
  --body: 'Anek Malayalam', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-press: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sack: 0 2px 3px rgba(40, 24, 8, 0.18), 0 14px 30px rgba(40, 24, 8, 0.22);
  --shadow-tag: 0 2px 2px rgba(40, 24, 8, 0.25), 0 8px 16px rgba(40, 24, 8, 0.18);
  --header-h: 60px;
  --nav-row-h: 36px; /* second header row on phones and tablets */
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--nav-row-h) + 8px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--jute-deep) var(--ink);
  /* no rubber-band past the footer on iPhone, where the ink ground made the
     page look like it carried on */
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--violet); color: var(--manila); }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; font-weight: 900; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 2px;
}
.direct :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--manila); }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 30;
  background: var(--manila);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Materials ---------- */
/* Jute: one grey weave tile blended over each jute colour */
.jute,
.sack,
.order {
  background-image: url(images/jute-weave.png);
  background-size: 240px 240px;
  background-blend-mode: soft-light;
}
.jute { background-color: var(--jute); }

/* Sack stitching: only ever marks the top edge of a sack */
.seam { position: relative; }
.seam::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  border-top: 4px dashed var(--jute-deep);
  opacity: 0.9;
}

.stencil-text,
.section-title {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: var(--jute-light);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 24px;
  min-height: var(--header-h);
}
/* keeps the top row at --header-h even when the links wrap below it */
.header-inner > .wordmark,
.header-inner > .btn { margin-block: 10px; }

.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--jute-light);
  text-decoration: none;
  margin-right: auto;
}

/* Phones and tablets: the links sit on their own row under the wordmark */
.site-nav { order: 3; flex-basis: 100%; }
.nav-links {
  display: flex;
  align-items: center;
  min-height: var(--nav-row-h);
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  gap: 28px;
}
/* smallest phones: keep the wordmark and order button on one row */
@media (max-width: 379px) {
  .header-inner { column-gap: 12px; }
  .wordmark { font-size: 1.35rem; }
  .header-inner > .btn-small { padding: 8px 10px; font-size: 1rem; }
  .nav-links { gap: 16px; }
  .nav-links a, .nav-more { font-size: 1.05rem; }
}
.nav-links a,
.nav-more {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--jute-light);
  transition: color 0.2s var(--ease-out);
}
.nav-links a:hover,
.nav-more:hover { color: var(--manila); }
.nav-more { background: none; border: 0; padding: 0; cursor: pointer; line-height: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 3px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.btn-order {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 2px 3px rgba(26, 20, 14, 0.25), 0 8px 18px rgba(26, 20, 14, 0.22);
}
.btn-order:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-order:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(26, 20, 14, 0.3); }
/* WhatsApp: a deep WhatsApp green (the brand's bright #25D366 is too pale
   for white text); red stays reserved for Call */
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 2px 3px rgba(26, 20, 14, 0.25), 0 8px 18px rgba(26, 20, 14, 0.22);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }
.btn-whatsapp:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(26, 20, 14, 0.3); }
.icon .icon-thin { stroke-width: 1.5; }
.btn-ink {
  background: transparent;
  color: var(--ink);
  border: 3px solid var(--ink);
  text-transform: none;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0;
}
.btn-ink:hover { background: var(--ink); color: var(--manila); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 1.1rem; }

.stencil-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.25em;
}
.stencil-link .icon { transition: transform 0.25s var(--ease-out); }
.stencil-link:hover .icon { transform: translateY(3px); }

/* ---------- Rubber stamps ---------- */
.stamp { overflow: visible; color: var(--violet); }
.stamp-line { fill: none; stroke: currentColor; stroke-width: 5; }
.stamp-line.thin { stroke-width: 2.5; }
.stamp-ring-text,
.stamp-center {
  fill: currentColor;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
}
.stamp-ring-text { font-size: 19px; letter-spacing: 0.04em; }
.stamp-center { font-size: 30px; letter-spacing: 0.03em; }
.stamp-center.small { font-size: 19px; letter-spacing: 0.12em; }
.stamp-center.pair { font-size: 26px; letter-spacing: 0.04em; } /* two stacked centre words */

/* ---------- Hero: the sack face ---------- */
.hero { padding: 56px 0 64px; overflow-x: clip; } /* the stamp starts enlarged for its press-in; never let it widen the page */

.hero-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-copy { min-width: 0; container-type: inline-size; } /* lets the column shrink; sizes the origin line */

/* Below 960px the hero is one column: show the photo straight after the
   wordmark, so it reads name, spices, story, then the actions. The copy's
   children join the hero grid, which takes over as the sizing container. */
@media (max-width: 959.98px) {
  .hero-inner { gap: 0; container-type: inline-size; }
  .hero-copy { display: contents; }
  .hero-inner > .sample { order: 1; margin: 30px auto 4px; width: 100%; max-width: 560px; }
  .hero-line, .hero-lead, .hero-actions { order: 2; }
  .hero-inner > .sample img { aspect-ratio: 1 / 1; object-position: 50% 37%; }
}

.hero-title {
  --brand-size: clamp(2.45rem, 11.7vw, 4rem); /* PIPPALI SPICES fits beside the stamp on phones */
  --stamp: 108px;
  position: relative;
  display: block; /* full width on phones so the one-line origin fits */
  /* room for the stamp, which rises above the wordmark */
  margin-top: max(0px, calc(var(--stamp) - var(--brand-size) * 0.88 - 40px));
}

.hero h1 {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.88;
}
.h1-brand { display: block; font-size: var(--brand-size); letter-spacing: 0.01em; white-space: nowrap; }
.h1-origin {
  display: block;
  margin-top: 16px;
  font-size: clamp(1.05rem, 5.2vw, 1.9rem);
  font-size: min(1.9rem, 100cqi / 14.5); /* one line that always fits the column (the text is 14.01em) */
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--red-ink);
  white-space: nowrap; /* one line; may run under the stamp's padding on phones */
}

/* The stamp bites the end of PIPPALI SPICES at every width: the words are 5.63em
   wide in the display face, and the ring overlaps its last letter by a
   sliver. Its bottom sits on the word's line, so it rises above the word and
   never covers the origin line. On narrow phones it stops at the column edge. */
.hero-stamp {
  position: absolute;
  top: calc(var(--brand-size) * 0.88 - var(--stamp));
  left: min(calc(var(--brand-size) * 5.63 - var(--stamp) * 0.085), calc(100% - var(--stamp) + 4px));
  width: var(--stamp);
  height: var(--stamp);
  transform: rotate(-12deg);
}
.hero-stamp .stamp-ring-text { font-size: 16px; letter-spacing: 0.02em; }

.hero-line {
  margin-top: 26px;
  max-width: 20ch;
  font-size: clamp(1.55rem, 5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-lead {
  margin-top: 16px;
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 28px;
}

/* Sample photo with its grading tag */
.sample {
  position: relative;
  margin: 0 0 28px;
  transform: rotate(1.5deg);
}
.sample img {
  width: 100%;
  aspect-ratio: 4 / 5; /* portrait: the tray of bowls */
  object-fit: cover;
  object-position: 50% 38%;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sack);
}

/* ---------- Manila grading tag ---------- */
.tag {
  position: relative;
  background: var(--manila);
  color: var(--ink);
  border-radius: 4px;
  box-shadow: var(--shadow-tag);
  padding: 16px 18px 16px 44px;
}
.tag-eyelet {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--manila-edge);
}


/* ---------- Farm to kitchen shelf ---------- */
.direct {
  background: var(--ink);
  color: var(--jute-light);
  padding: 80px 0;
  overflow-x: clip; /* the clothesline runs to the screen edge on phones */
}
.direct .section-title {
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  color: var(--jute);
}

.direct-story {
  margin-top: 28px;
  max-width: 40em;
  display: grid;
  gap: 14px;
  font-size: 1.15rem;
  color: var(--jute-light);
}
.direct-lede { font-size: clamp(1.4rem, 4.4vw, 1.8rem); font-weight: 700; line-height: 1.25; color: var(--manila); }
.direct-acronym { margin-top: 6px; font-size: 1.05rem; }
.direct-acronym strong { color: var(--manila); font-weight: 700; }

/* Both timelines hang like washing: each entry is a manila tile pegged to a
   thread that dips under its weight, and the free bottom edge drifts in a
   slow breeze (skewed from the top, where the pegs hold it). */
.route,
.ledger {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 32px var(--line-gap);
  --line-gap: 24px;
  --line-reach: 20px; /* single column: the thread runs to the screen edge */
}
.route-step,
.ledger-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 7px;
}
/* in front of the tiles, so it visibly runs across their tops */
.thread {
  position: absolute;
  z-index: 2;
  top: 0;
  left: calc(var(--line-reach) * -1);
  width: calc(100% + var(--line-reach) * 2);
  height: 16px;
  overflow: visible;
}
.thread path {
  fill: none;
  stroke: var(--jute-deep);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.peg {
  position: absolute;
  z-index: 3;
  top: -6px;
  left: 16%;
  width: 10px;
  height: 26px;
  border-radius: 2px 2px 3px 3px;
  background: linear-gradient(to bottom, var(--jute-light) 0 10px, var(--ink-soft) 10px 12px, var(--jute) 12px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
}
.peg + .peg { left: auto; right: 16%; }
.cloth {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 22px 18px;
  transform-origin: 50% 0;
}
/* the eyelet sits beside the heading, like the cooking tag */
.cloth > :first-child { display: flex; }
.cloth > :first-child::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin: calc(0.5em - 6px) 14px 0 4px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--manila-edge);
}
.cloth > p:last-child { margin-top: 10px; color: var(--ink-soft); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .cloth { animation: breeze 6s ease-in-out infinite alternate; }
  li:nth-child(2) > .cloth { animation-duration: 7.4s; animation-delay: -2.6s; }
  li:nth-child(3) > .cloth { animation-duration: 6.6s; animation-delay: -4.8s; }
  li:nth-child(4) > .cloth { animation-duration: 8s; animation-delay: -1.2s; }
  li:nth-child(5) > .cloth { animation-duration: 7s; animation-delay: -5.5s; }
}
@keyframes breeze {
  from { transform: skewX(-1.3deg); }
  to { transform: skewX(1.3deg); }
}

.route-step h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
}
.route-step p { font-size: 1.1rem; }

/* ---------- The spice trade: a dated ledger on ink ---------- */
/* Opens the ink band that the farm story below continues, so no bottom padding */
.history {
  background: var(--ink);
  color: var(--jute-light);
  padding: 80px 0 0;
  overflow-x: clip;
}
.history .section-title { font-size: clamp(2.6rem, 9vw, 4.5rem); color: var(--jute); }
.history .section-note { max-width: 40em; color: var(--jute-light); }

.ledger { margin: 0; }
.ledger-year {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
}
.ledger-entry p + p { font-size: 1.05rem; }

.usage {
  margin-top: 56px;
  max-width: 760px;
  padding: 26px 26px 28px 60px;
  transform: rotate(-0.6deg);
}
.usage .tag-eyelet { top: 34px; margin-top: 0; }
.usage-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
}
.usage-text { margin-top: 10px; font-size: 1.1rem; font-weight: 500; color: var(--ink-soft); }

/* ---------- The sacks ---------- */
.spices { padding: 88px 0 96px; }

.section-head { margin-bottom: 44px; }
.spices .section-title { font-size: clamp(2.6rem, 9vw, 4.5rem); }
.section-note { margin-top: 16px; font-size: 1.15rem; color: var(--ink-soft); font-weight: 500; }

.sack-grid {
  display: grid;
  gap: 56px 28px;
}

.sack {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--jute-light);
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(40, 24, 8, 0.28), 0 4px 7px rgba(40, 24, 8, 0.2);
  padding: 34px 22px 0;
}
.sack::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 12px;
  border-top: 4px dashed var(--jute-deep);
}

.sack-name {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(2.2rem, 9vw, 2.75rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}
/* the everyday name people search for, under a local name: "Tamarind" */
.sack-aka {
  display: block;
  margin-top: 8px;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink-soft);
}
/* the Hindi name, in English letters and in Hindi script: "Hindi: Elaichi, इलायची" */
.sack-hindi {
  display: block;
  margin-top: 6px;
  font-family: var(--body);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink-soft);
}
.sack-aka + .sack-hindi { margin-top: 4px; }
/* the body face has no Hindi letters; pick each system's own Devanagari face */
.sack-hindi [lang="hi"] { font-family: 'Kohinoor Devanagari', 'Noto Sans Devanagari', 'Nirmala UI', var(--body); }
.sack-photo {
  margin-top: 18px;
  border: 2px solid var(--ink);
  background: var(--ink);
}
.sack-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* Tall photos: keep the bowl in the 4:3 frame rather than the centre */
.sack-photo img[src$="/kudampuli.jpg"] { object-position: 50% 27%; }
.sack-photo img[src$="/valanpuli.jpg"] { object-position: 50% 34%; }
.sack-photo img[src$="/cinnamon-sticks.jpg"] { object-position: 50% 40%; }
.sack-desc {
  margin-top: 16px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* The grading tag carries the price list */
.price-tag {
  margin: 22px -6px -26px 10px;
  transform: rotate(-1.5deg);
  transform-origin: 30px 50%;
  transition: transform 0.45s var(--ease-out);
}
.sack:hover .price-tag { transform: rotate(0.5deg); }
.price-tag .tag-eyelet { top: 28px; margin-top: 0; }
.price-tag-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
}
.price-rows { list-style: none; margin: 6px 0 0; padding: 0; }
.price-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 2px dotted rgba(26, 20, 14, 0.35);
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 1;
}
.price-row:last-child { border-bottom: 0; }
.price-size { font-weight: 800; font-size: 1.35rem; letter-spacing: 0.04em; }
.price-amount {
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums lining-nums;
}
/* The rupee sign in the body face: the condensed display face draws it too narrow to read */
.rupee {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.8em;
  margin-right: 0.08em;
  vertical-align: 0.04em;
}

/* Bulk orders: a wide grading tag under the order docket */
.bulk {
  position: relative;
  max-width: 820px;
  margin: 36px auto 0;
  display: grid;
  gap: 18px;
  align-items: center;
}
.bulk-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.bulk-text { color: var(--ink-soft); font-weight: 500; font-size: 1.1rem; max-width: 34em; margin-top: 8px; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bulk .tag-eyelet { top: 30px; margin-top: 0; }

/* More products: a short manila tag after the sacks opens the full list as a
   pop-out (HTML popover). Without popover support the list shows in place. */
.more-teaser {
  margin-top: 96px;
  max-width: 820px;
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 26px 24px 28px 60px;
  transform: rotate(-0.6deg);
}
.more-teaser .tag-eyelet { top: 36px; margin-top: 0; }
.more-teaser-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.more-teaser-text { margin-top: 8px; font-size: 1.1rem; font-weight: 500; color: var(--ink-soft); }
.more-teaser .btn { justify-self: start; }

.more-pop {
  margin: 36px auto 0;
  width: min(1080px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  padding: 34px 20px 28px 52px;
}
.more-pop .tag-eyelet { top: 42px; margin-top: 0; }
.more-pop::backdrop { background: rgba(26, 20, 14, 0.6); }
.more-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out);
}
.more-close:hover { background: rgba(26, 20, 14, 0.1); }
.more-close[hidden] { display: none; }
.more-close .icon { width: 26px; height: 26px; }
.more-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  padding-right: 40px;
}
.more-note-lead { margin-top: 12px; max-width: 36em; font-size: 1.1rem; font-weight: 500; color: var(--ink-soft); }
.more-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
}
.more-item { display: flex; flex-direction: column; gap: 3px; }
/* photo tiles framed like the sack photos; no photo yet = plain jute with the brand stencil */
.more-photo {
  display: block;
  margin-bottom: 8px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--jute) url(images/jute-weave.png) 0 0 / 240px 240px;
  background-blend-mode: soft-light;
  box-shadow: 0 1px 1px rgba(40, 24, 8, 0.25), 0 3px 6px rgba(40, 24, 8, 0.18);
}
.more-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.more-photo.is-empty { display: grid; place-items: center; padding: 8px; }
.more-photo.is-empty span {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--jute-deep);
  border: 2px solid currentColor;
  padding: 6px 8px;
  transform: rotate(-4deg);
}
.more-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.more-aka,
.more-note { font-size: 0.92rem; font-weight: 500; line-height: 1.35; color: var(--ink-soft); }
.more-foot { margin-top: 18px; font-weight: 700; color: var(--violet); }
.more-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Where popovers work: centred over a dimmed page, rising in like a tag pulled
   from the sack. The closed state is only hidden here, so the fallback stays visible. */
@supports selector(:popover-open) {
  .more-pop {
    position: fixed; /* .tag sets relative; a popover belongs to the viewport */
    inset: 0;
    margin: auto;
    height: fit-content;
    opacity: 0;
    transform: translateY(18px) rotate(-1deg);
    transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out),
      overlay 0.35s allow-discrete, display 0.35s allow-discrete;
  }
  .more-pop:popover-open { opacity: 1; transform: none; }
  @starting-style {
    .more-pop:popover-open { opacity: 0; transform: translateY(18px) rotate(-1deg); }
  }
}

/* ---------- Frequently asked questions ---------- */
.faq { padding: 80px 0 88px; }
.faq .section-title { font-size: clamp(2.6rem, 9vw, 4.5rem); }
.faq-list { margin-top: 36px; display: grid; gap: 28px 48px; }
.faq-q {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.45rem, 5vw, 1.7rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}
.faq-a { margin-top: 8px; max-width: 38em; font-size: 1.08rem; font-weight: 500; color: var(--ink-soft); }

/* ---------- Dispatch docket ---------- */
.order {
  background-color: var(--jute-deep);
  padding: 96px 0;
}

.docket {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  background: var(--manila);
  border-radius: 6px;
  box-shadow: var(--shadow-sack);
  padding: 44px 24px 40px 44px;
}
/* eyelet punched on the left, like every grading tag */
.docket-eyelet { top: 30px; margin-top: 0; }
.docket .section-title { font-size: clamp(2.4rem, 8.5vw, 3.75rem); margin-top: 14px; max-width: 18ch; }

.docket-steps {
  list-style: none;
  counter-reset: step;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 36em;
}
.docket-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  min-height: 38px;
  padding-top: 6px;
  font-size: 1.1rem;
}
.docket-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border: 3px solid var(--violet);
  border-radius: 50%;
  color: var(--violet);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 32px;
  text-align: center;
}

.docket-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.docket-actions .btn { width: 100%; }
.docket-meta { margin-top: 22px; color: var(--ink-soft); font-weight: 500; max-width: 40em; }

.bulk-stamp {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 78px;
  height: 78px;
  transform: rotate(10deg);
}
.bulk-title { padding-right: 84px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--jute-light);
  padding: 40px 0 44px;
  font-size: 0.98rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-footer .wordmark { font-size: 2rem; color: var(--jute); }

/* Parent company, set small under a hairline */
.footer-parent {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(214, 171, 110, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  font-size: 0.9rem;
  color: var(--jute);
}
.parent-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.parent-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jute-light);
}

/* ---------- Signature motion: stencil spray, stamp press ---------- */
.js-motion .spray {
  opacity: 0.55;
  filter: blur(6px);
  transform: scale(1.015);
  transition: opacity 0.7s var(--ease-out), filter 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js-motion .spray.is-visible { opacity: 1; filter: blur(0); transform: none; }

.js-motion .stamp {
  opacity: 0;
  scale: 1.35;
  transition: opacity 0.18s ease-out, scale 0.42s var(--ease-press);
}
.js-motion .stamp.is-visible { opacity: 0.94; scale: 1; }
.js-motion .hero .stamp { transition-delay: 0.45s; }

.stamp { opacity: 0.94; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .price-tag, .stencil-link .icon { transition: none; }
  .more-pop { transition: none; transform: none; }
  .sack:hover .price-tag { transform: rotate(-1.5deg); }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .wrap { padding: 0 32px; }
  .hero-title { display: inline-block; --brand-size: clamp(4rem, 10vw, 6rem); --stamp: 150px; }
  .hero-stamp { left: calc(var(--brand-size) * 5.63 - var(--stamp) * 0.085); }
  /* one line from tablet up: scale with the viewport instead of wrapping */
  .spices .section-title,
  .faq .section-title,
  .direct .section-title,
  .history .section-title { font-size: clamp(2.4rem, 5.8vw, 4.5rem); }
  .direct .section-title { font-size: clamp(2.1rem, 5.5vw, 4.5rem); } /* the longest heading */
  .sack-grid { grid-template-columns: repeat(2, 1fr); }
  .sack-grid > .sack:first-child { grid-column: 1 / -1; }
  .route, .ledger { --line-reach: 32px; }
  .ledger { grid-template-columns: repeat(2, 1fr); --line-reach: calc(var(--line-gap) / 2); }
  .docket { padding: 52px 48px 48px 64px; }
  .docket-actions { flex-direction: row; flex-wrap: wrap; }
  .docket-actions .btn { width: auto; }
  .bulk-stamp { width: 112px; height: 112px; right: 28px; top: 24px; }
  .bulk-title { padding-right: 0; }
  .bulk { padding: 36px 48px 40px 64px; }
  .more-teaser { grid-template-columns: 1fr auto; column-gap: 32px; padding: 30px 40px 32px 64px; }
  .more-teaser .btn { justify-self: end; }
  .more-pop { padding: 44px 48px 40px 72px; }
  .more-pop .tag-eyelet { top: 54px; }
  .more-close { top: 16px; right: 16px; }
  .more-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
}

/* Featured first sack: a wide photo across the top, then the description and
   the price tag side by side (its photo is landscape, so a tall frame zoomed it) */
@media (min-width: 640px) {
  .sack-grid > .sack:first-child {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 300px);
    column-gap: 32px;
    align-items: start;
    padding: 40px 32px 0;
  }
  .sack:first-child .sack-name { grid-column: 1 / -1; font-size: clamp(2.75rem, 5vw, 3.75rem); }
  .sack:first-child .sack-photo { grid-column: 1 / -1; }
  .sack:first-child .sack-photo img { aspect-ratio: 16 / 9; }
  .sack:first-child .sack-desc { grid-column: 1; font-size: 1.15rem; }
  .sack:first-child .price-tag { grid-column: 2; grid-row: 3 / span 2; align-self: end; margin-bottom: -26px; }
}

/* Bookend: when the last row would leave one slot empty, the last sack fills
   it, laid out like the featured first sack with the photo mirrored.
   Tablet (2 columns): an even-numbered last sack. Desktop (3 columns, the first
   sack spanning two): a last sack at 4, 7, 10... */
@media (min-width: 640px) and (max-width: 959.98px) {
  .sack-grid > .sack:last-child:nth-child(even) { grid-column: 1 / -1; }
  .sack:last-child:nth-child(even) { display: grid; grid-template-columns: 1fr 1.1fr; grid-template-rows: auto auto auto 1fr; column-gap: 32px; padding: 40px 32px 0; }
  .sack:last-child:nth-child(even) .sack-photo { grid-column: 2; grid-row: 1 / span 4; margin: 0 0 32px; align-self: stretch; }
  .sack:last-child:nth-child(even) .sack-photo img { height: 100%; aspect-ratio: auto; min-height: 280px; }
  .sack:last-child:nth-child(even) .sack-name { grid-column: 1; font-size: clamp(2.75rem, 5vw, 3.75rem); }
  .sack:last-child:nth-child(even) .sack-desc { grid-column: 1; font-size: 1.15rem; }
  .sack:last-child:nth-child(even) .price-tag { grid-column: 1; align-self: end; margin-bottom: -26px; }
}

/* Three farm steps side by side once each tile has room for its heading */
@media (min-width: 760px) {
  .route { grid-template-columns: repeat(3, 1fr); --line-reach: calc(var(--line-gap) / 2); }
  .route-step h3 { font-size: clamp(1.8rem, 2.6vw, 2.05rem); }
}
/* The five dates on one line */
@media (min-width: 1100px) {
  .ledger { grid-template-columns: repeat(5, 1fr); }
  .ledger-year { font-size: 1.75rem; }
  .ledger .cloth { padding: 20px 16px; }
  .ledger-entry p + p { font-size: 1rem; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --nav-row-h: 0px; }
  .site-nav { order: 0; flex-basis: auto; }
  .nav-links { padding: 0; }

  .hero { padding: 72px 0 96px; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
  .hero-inner { grid-template-columns: 1.25fr 1fr; gap: 64px; }
  /* sized so word + stamp stay clear of the sample photo */
  .hero-title { --brand-size: clamp(4rem, 6.1vw, 5.5rem); --stamp: 160px; }
  .sample { margin: 0 0 40px; }

  .faq-list { grid-template-columns: repeat(2, 1fr); }
  .more-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  .sack-grid { grid-template-columns: repeat(3, 1fr); gap: 64px 32px; }
  .sack-grid > .sack:first-child { grid-column: 1 / span 2; }

  .sack-grid > .sack:last-child:nth-child(3n+4) {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    grid-template-rows: auto auto auto 1fr;
    column-gap: 32px;
    padding: 40px 32px 0;
  }
  .sack:last-child:nth-child(3n+4) .sack-photo { grid-column: 2; grid-row: 1 / span 4; margin: 0 0 32px; align-self: stretch; }
  .sack:last-child:nth-child(3n+4) .sack-photo img { height: 100%; aspect-ratio: auto; min-height: 280px; }
  .sack:last-child:nth-child(3n+4) .sack-name { grid-column: 1; font-size: clamp(2.75rem, 5vw, 3.75rem); }
  .sack:last-child:nth-child(3n+4) .sack-desc { grid-column: 1; font-size: 1.15rem; }
  .sack:last-child:nth-child(3n+4) .price-tag { grid-column: 1; align-self: end; margin-bottom: -26px; }

  .footer-inner { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; }
  .footer-inner p:nth-child(2) { margin-right: auto; }
  .footer-inner .footer-acronym { flex-basis: 100%; order: 3; }
  .footer-inner .footer-parent { flex-basis: 100%; order: 4; }
}
