/* Yogasvi holding page. DRAFT, 27 Oct 2026.
   The old yogasvi.org look (Sameer Aasht's choice, 11 Oct 2026): blush lilac
   fields, the logo's plum for type and action, the gold of the sun mark as a
   small accent that never carries text on a light ground. Tokens and values
   follow yogasvi-web/src/app/globals.css. No external requests: the two
   typefaces are self-hosted (SIL OFL 1.1, licences beside the files). */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
  --cream: #fdf8fc;      /* ground */
  --lilac: #f4e7f2;      /* field: the old banners' blush */
  --camel: #e5d0e1;      /* deeper field */
  --plum: #511144;       /* ink and action: the logo plum, 13:1 on cream */
  --plum-deep: #3d0c33;  /* pressed action */
  --ink-soft: #6e3a6a;   /* secondary notes, 7.3:1 on lilac */
  --gold: #ffc60e;       /* the sun: decoration, or text on plum only */
  --lavender: #b768b7;   /* the pending underline */
  --paper: #fffdfe;      /* the label */

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);
  --step-3: clamp(2.25rem, 1.7rem + 2.4vw, 3.6rem);
  --step-5: clamp(2.45rem, 1.5rem + 4.4vw, 5.4rem);
  --small: 0.9375rem;

  --gutter: clamp(1rem, 4.5vw, 3rem);
  --section: clamp(4.5rem, 10vw, 9.5rem);
  --wide: 84rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }
ol, ul, dl, dd { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 2px; }
.on-plum :focus-visible { outline-color: var(--gold); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--plum); color: var(--cream); padding: 0.75rem 1.25rem; border-radius: 999px;
}
.skip:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.frame { width: min(100% - var(--gutter) * 2, var(--wide)); margin-inline: auto; }

/* ---------- Buttons: one action colour, pill, flat ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  border-radius: 999px; border: 2px solid var(--plum);
  font: 600 1rem/1.2 var(--text); text-decoration: none;
  transition: transform 140ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease);
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--plum); color: var(--cream); }
.btn-primary:hover { background: var(--plum-deep); border-color: var(--plum-deep); }
.btn-ghost { background: transparent; color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: var(--cream); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header: a plain bar ---------- */
.bar { background: var(--cream); }
.bar .frame {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 5.5rem; padding-block: 0.75rem;
}
.bar .logo img { width: auto; height: 3.6rem; }
.bar nav ul { display: flex; gap: 2rem; list-style: none; }
.bar nav a { text-decoration: none; font-weight: 500; font-size: 1rem; padding-block: 0.75rem; }
.bar nav a:hover { text-decoration: underline; }
.bar .btn { min-height: 2.75rem; padding: 0.6rem 1.25rem; }
@media (max-width: 52rem) {
  .bar nav { display: none; }
  .bar .logo img { height: 3rem; }
}

/* ---------- Hero: the bottle on the blush field ---------- */
.hero { background: var(--lilac); overflow: clip; }
.hero .frame {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  min-height: min(52rem, calc(100dvh - 5.5rem));
  padding-block: clamp(3rem, 6vw, 5rem);
}
.hero h1 { font-size: var(--step-5); max-width: 16ch; }
.hero h1 .nw { white-space: nowrap; }
.hero .lede { margin-top: 2rem; max-width: 34rem; font-size: var(--step-1); line-height: 1.5; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 2.25rem; }
.hero .note { margin-top: 2rem; max-width: 34rem; color: var(--ink-soft); font-size: var(--small); }
.hero figure { margin: 0; justify-self: center; }
.hero .bottle { width: min(100%, 23rem); height: auto; } /* studio white pre-multiplied onto the lilac */
@media (max-width: 44rem) {
  .hero .frame { grid-template-columns: 1fr; min-height: 0; padding-block: 2.5rem 0; gap: 1rem; }
  .hero .bottle { width: 13rem; }
}

/* ---------- The sun divider (the old site's device, redrawn) ---------- */
.sun { display: flex; align-items: center; gap: 0.75rem; color: var(--plum); }
.sun svg { width: 3.25rem; height: 0.9rem; }
.sun img { width: 1.9rem; height: auto; }

/* ---------- What is in the bottle ---------- */
.oil { padding-block: var(--section); }
.oil .frame {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.oil figure { margin: 0; }
.oil figure img { width: 100%; }
.oil figcaption { margin-top: 1rem; color: var(--ink-soft); font-size: var(--small); max-width: 30rem; }
.oil h2 { font-size: var(--step-3); }
.oil .sun { margin-top: 1.5rem; }
.oil .copy p { margin-top: 1.5rem; max-width: 36rem; }
.sizes {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 2.5rem;
  margin-top: 2.5rem; list-style: none;
}
.sizes li { font-family: var(--display); font-size: var(--step-3); line-height: 1.1; }
.sizes small { font-size: 0.5em; margin-left: 0.15em; }
@media (max-width: 52rem) {
  .oil .frame { grid-template-columns: 1fr; }
  .oil figure { order: 2; }
}

/* ---------- From the label: the back label, set large ---------- */
.label-sec { background: var(--lilac); padding-block: var(--section); }
.label-sec .head { max-width: 46rem; }
.label-sec h2 { font-size: var(--step-3); }
.label-sec .head p { margin-top: 1.5rem; }
.label-sec .grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem);
}
.label-sec .detail { margin: 0; position: sticky; top: 2rem; }
.label-sec .detail img { width: 100%; max-width: 30rem; }
.label-sec .detail figcaption { margin-top: 1rem; color: var(--ink-soft); font-size: var(--small); }

.label { background: var(--paper); }
.label .band {
  background: var(--plum); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem 1rem 1.25rem;
}
.label .band img { height: 5.25rem; width: auto; }
.label dl { padding: clamp(1.25rem, 4vw, 2.5rem); }
.label .row { padding-block: 0.9rem; }
.label .row + .row { margin-top: 0.15rem; }
.label dt { font-weight: 600; font-size: 1rem; }
.label dd { margin-top: 0.2rem; }
.label .stamp { background: var(--lilac); margin: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem); padding: 1.25rem 1.5rem; }
.label .stamp p + p { margin-top: 0.5rem; }

/* A fact still being confirmed: the placeholder text itself, dashed. */
.confirm {
  color: var(--ink-soft);
  text-decoration: underline dashed var(--lavender);
  text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.legend { margin-top: 1.5rem; color: var(--ink-soft); font-size: var(--small); max-width: 46rem; }
@media (max-width: 52rem) {
  .label-sec .grid { grid-template-columns: 1fr; }
  .label-sec .detail { position: static; }
  .label-sec .detail img { max-width: 13rem; }
}

/* ---------- How to order + the message composer ---------- */
.order { padding-block: var(--section); }
.order .frame {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.order h2 { font-size: var(--step-3); }
.order .intro { margin-top: 1.5rem; max-width: 34rem; }
.steps { margin-top: 2rem; padding-left: 1.4rem; max-width: 34rem; }
.steps li { padding-left: 0.4rem; }
.steps li + li { margin-top: 1rem; }
.steps li::marker { font-family: var(--display); font-size: 1.4em; color: var(--plum); }
.order .call { margin-top: 2rem; }

.composer { background: var(--lilac); padding: clamp(1.5rem, 4vw, 2.75rem); }
.composer h3 { font-size: var(--step-1); font-family: var(--text); font-weight: 600; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.chips label {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; min-width: 6.5rem; padding: 0.5rem 1.25rem; border-radius: 999px;
  background: var(--cream); color: var(--plum); font-weight: 600; cursor: pointer;
  transition: transform 140ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease);
}
.chips label:hover { background: var(--camel); }
.chips label:active { transform: scale(0.95); }
#size-250:checked ~ .chips label[for="size-250"],
#size-500:checked ~ .chips label[for="size-500"],
#size-1000:checked ~ .chips label[for="size-1000"] { background: var(--plum); color: var(--cream); }
#size-250:focus-visible ~ .chips label[for="size-250"],
#size-500:focus-visible ~ .chips label[for="size-500"],
#size-1000:focus-visible ~ .chips label[for="size-1000"] { outline: 2px solid var(--plum); outline-offset: 3px; }

.msg { display: none; margin-top: 1.75rem; }
#size-250:checked ~ .m-250,
#size-500:checked ~ .m-500,
#size-1000:checked ~ .m-1000 { display: block; }
.msg blockquote {
  margin: 0; background: var(--paper); padding: 1.25rem 1.5rem;
  border-radius: 0 18px 18px 18px; font-size: 1.0625rem;
}
.msg .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.composer .fine { margin-top: 1.25rem; color: var(--ink-soft); font-size: var(--small); }
@media (max-width: 52rem) {
  .order .frame { grid-template-columns: 1fr; }
  .chips label { min-width: 5.25rem; padding-inline: 1rem; }
}

/* ---------- Seller details: the plum field ---------- */
.seller { background: var(--plum); color: var(--cream); padding-block: var(--section); }
.seller a { color: var(--gold); }
.seller h2 { font-size: var(--step-3); }
.seller .head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.seller .head p { max-width: 34rem; }
.seller .facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 6vw, 6rem); margin-top: clamp(2.5rem, 5vw, 4rem);
}
.seller dt { font-weight: 600; color: var(--gold); font-size: 1rem; }
.seller dd { margin-top: 0.35rem; }
.seller .confirm { color: var(--cream); text-decoration-color: var(--gold); }
.seller .privacy {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.75rem clamp(2rem, 6vw, 6rem);
  margin-top: clamp(3.5rem, 7vw, 6rem); align-items: start;
}
.seller .privacy h3 { font-size: var(--step-3); }
.seller .privacy p { max-width: 36rem; }
@media (max-width: 52rem) {
  .seller .head, .seller .facts, .seller .privacy { grid-template-columns: 1fr; }
}

/* ---------- Close: the palms, and the name again ---------- */
.close { background: var(--lilac); }
.close .plate { overflow: clip; }
.close .plate img { width: 100%; height: clamp(16rem, 42vw, 40rem); object-fit: cover; object-position: 50% 40%; }
.close .frame { padding-block: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: auto 1fr; gap: 1rem clamp(2rem, 6vw, 6rem); align-items: end; }
.close .name { font-family: var(--display); font-size: clamp(4rem, 2rem + 9vw, 10rem); line-height: 0.85; letter-spacing: -0.03em; }
.close .meta { color: var(--plum); font-size: var(--small); display: grid; gap: 0.5rem; justify-self: end; max-width: 38rem; }
.close .meta p:first-child { font-size: var(--step-0); }
@media (max-width: 52rem) {
  .close .frame { grid-template-columns: 1fr; }
  .close .meta { justify-self: start; }
}

/* ---------- Motion: CSS only, transform and opacity ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes lift { from { opacity: 0; transform: translateY(48px) scale(0.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero .actions, .hero .note { animation: rise 800ms var(--ease) both; }
  .hero .lede { animation-delay: 90ms; }
  .hero .actions { animation-delay: 180ms; }
  .hero .note { animation-delay: 270ms; }
  .hero .bottle { animation: lift 1100ms var(--ease) 120ms both; }
  .bar .logo, .bar nav, .bar .btn { animation: rise 600ms var(--ease) both; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%; /* short blocks only: text, not the tall panels */
    }
    .close .plate img {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}
@keyframes drift { from { transform: scale(1.08) translateY(-3%); } to { transform: scale(1.08) translateY(3%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .chips label { transition: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-soft: #511144; }
  .composer, .label .stamp { outline: 2px solid var(--plum); }
}
