/* ==========================================================================
   Made With Love in India — design tokens & primitives
   Positioning: "Beautiful Indian rituals, made for modern British homes."

   Palette is drawn from the materials the products are actually made of —
   madder-dyed cloth, brass, turmeric, indigo, unbleached paper — rather than
   from the saturated "ethnic shop" register the old site sat in.
   ========================================================================== */

:root {
  /* --- ink & paper ---
     Palette 1: near-monochrome plus a single accent. The product photography is
     already extremely colourful — marigold, brass, printed cloth — so the
     interface stays out of its way. There is one surface, one quiet alternate,
     and red is spent sparingly rather than spread across every section. */
  --paper:        #FAF7F2;  /* the page — one surface, used almost everywhere */
  --paper-warm:   #F2ECE3;  /* the only alternate tone, for a change of pace */
  --paper-deep:   #EFE9E0;  /* marginally deeper, for insets and media wells */
  --ink:          #1C1917;  /* near-black */
  --ink-soft:     #57504A;  /* body copy */
  --ink-faint:    #8C8078;  /* captions, meta, eyebrows */
  --line:         #E5DED4;  /* hairlines */

  /* --- brand ---
     Variable names are kept so nothing downstream has to change, but the values
     are now neutrals. --madder is the one true accent; --brass and --marigold
     are quiet greys that used to be gold, kept for eyebrows and dark bands. */
  --madder:       #B4342B;  /* the single accent */
  --madder-deep:  #8E251E;  /* hover / depth */
  --madder-wash:  #F6E7E4;  /* tinted backgrounds, used rarely */
  --marigold:     #D8CBB9;  /* light warm neutral, for text on the dark band */
  --brass:        #8C8078;  /* eyebrows and meta — no longer gold */
  --indigo:       #2A2622;  /* deep counterpoint, now just a warm charcoal */
  --henna:        #4A6B4F;  /* in-stock, positive */

  /* --- type --- */
  --display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --body:    'DM Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --deva:    'Noto Serif Devanagari', var(--display);

  /* Fluid scale, deliberately restrained. An earlier pass ran to 6.5rem headlines
     and read as shouty — the display face has enough character that it does not
     need the size as well. Top end is now roughly 40% smaller. */
  --t-hero:  clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
  --t-xl:    clamp(1.65rem, 1.35rem + 1.25vw, 2.35rem);
  --t-lg:    clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --t-md:    clamp(1.08rem, 1.02rem + 0.28vw, 1.22rem);
  --t-body:  1rem;
  --t-sm:    0.9rem;
  --t-xs:    0.8rem;
  --t-eyebrow: 0.68rem;

  /* --- space & shape --- */
  --gutter: clamp(1.15rem, 0.6rem + 2.4vw, 3.5rem);
  /* Section rhythm. Cut back from a 7.5rem maximum: once the type scale came
     down, that left ~240px between sections and the page read as half-empty. */
  --bleed:  clamp(2.75rem, 1.8rem + 3vw, 4.75rem);
  --maxw:   1320px;
  --maxw-text: 68ch;
  --r-sm: 3px;
  --r-md: 6px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(36,26,23,.05), 0 12px 34px -18px rgba(36,26,23,.28);
  --shadow-lift: 0 2px 6px rgba(36,26,23,.07), 0 26px 56px -22px rgba(36,26,23,.35);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.65;
  font-feature-settings: 'kern' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -.015em; font-family: var(--display); font-variation-settings: 'opsz' 120, 'WONK' 1; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
:focus-visible { outline: 2px solid var(--madder); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--marigold); color: var(--ink); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 900px; }
.section { padding-block: var(--bleed); }
.section-tight { padding-block: calc(var(--bleed) * .6); }
.band-warm { background: var(--paper-warm); }
.band-deep { background: var(--paper-deep); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink h1, .band-ink h2, .band-ink h3 { color: var(--paper); }
.band-ink .eyebrow { color: var(--marigold); }
.band-ink p { color: #D9CBBD; }

.grid { display: grid; gap: clamp(1.25rem, .6rem + 1.8vw, 2.25rem); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } .g-4.keep-2, .g-3.keep-2, .g-2.keep-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- type primitives ---------- */
.eyebrow {
  font-family: var(--body);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before {
  content: ''; width: 1.6rem; height: 1px; background: currentColor; flex: none; opacity: .55;
}
.eyebrow.center { justify-content: center; }
.eyebrow.plain::before { display: none; }

.h-hero { font-size: var(--t-hero); line-height: .96; letter-spacing: -.03em; }
.h-xl   { font-size: var(--t-xl); }
.h-lg   { font-size: var(--t-lg); }
.h-md   { font-size: var(--t-md); line-height: 1.24; letter-spacing: -.01em; }
.lede   { font-size: clamp(1.05rem, .98rem + .45vw, 1.28rem); line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.prose  { color: var(--ink-soft); max-width: var(--maxw-text); }
.prose p + p { margin-top: 0; }
.muted  { color: var(--ink-faint); }
.small  { font-size: var(--t-sm); }
.xs     { font-size: var(--t-xs); }
.deva   { font-family: var(--deva); font-weight: 400; }
.center { text-align: center; }
.center .lede, .center .prose { margin-inline: auto; }
.ital   { font-style: italic; font-variation-settings: 'opsz' 14, 'WONK' 1; }

/* an accent word set in the display face, italic, madder — used sparingly */
.accent { color: var(--madder); font-style: italic; font-variation-settings: 'opsz' 14, 'SOFT' 40, 'WONK' 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--body); font-size: var(--t-sm); font-weight: 500;
  letter-spacing: .04em;
  padding: .95em 1.85em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--madder); color: var(--paper); }
.btn-primary:hover { background: var(--madder-deep); }
.btn-ghost { border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.band-ink .btn-ghost { color: var(--paper); }
.band-ink .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--marigold); }
.btn-sm { padding: .7em 1.35em; font-size: var(--t-xs); }

/* underlined text link with a rule that grows */
.link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--t-sm); font-weight: 500; letter-spacing: .02em;
  padding-bottom: .25rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease), color .25s var(--ease);
}
.link:hover { background-size: 0% 1px; color: var(--madder); }
.link::after { content: '→'; transition: transform .3s var(--ease); }
.link:hover::after { transform: translateX(4px); }
.link.plain::after { content: none; }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--t-xs); font-weight: 500; letter-spacing: .03em;
  padding: .45em 1em; border-radius: var(--r-pill);
  border: 1px solid var(--line); color: var(--ink-soft);
  background: var(--paper);
  transition: all .22s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.badge {
  position: absolute; top: .85rem; left: .85rem; z-index: 2;
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .4em .85em; border-radius: var(--r-pill);
  background: var(--ink); color: var(--paper);
}
.badge.sale { background: var(--madder); }
.badge.out  { background: rgba(36,26,23,.55); }

/* ---------- ornament: a block-print rule ---------- */
.rule-print {
  height: 14px; width: 100%;
  background-image: radial-gradient(circle at 50% 50%, var(--brass) 1.6px, transparent 1.7px);
  background-size: 16px 14px; opacity: .5;
}
.divider { display: flex; align-items: center; gap: 1.25rem; color: var(--brass); }
.divider::before, .divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; translate: -50% -120%; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .7rem 1.2rem; border-radius: 0 0 var(--r-md) var(--r-md);
  transition: translate .2s var(--ease);
}
.skip-link:focus { translate: -50% 0; }
