:root {
  --paper: #f5efe3;
  --paper-2: #ece4d3;
  --ink: #1f1b16;
  --muted: #5f564b;
  --rule: #cfc3ad;
  --sindoor: #a8261b;
  --sindoor-soft: #f0d6cc;
  --night: #1b2433;
  --night-ink: #efe8da;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --deva: "Noto Serif Devanagari", "Source Serif 4", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.np, [lang="ne"], [lang="sa"] { font-family: var(--deva); }

a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; }

:focus-visible { outline: 2px solid var(--sindoor); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  z-index: 5;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.45em;
  border: 2px solid var(--sindoor);
  transform: rotate(45deg) translateY(-0.12em);
}
.wordmark.small { font-size: 1rem; margin-right: 0.5rem; }
.site-header nav { display: flex; gap: 1.5rem; font-family: var(--sans); font-size: 0.9rem; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sindoor);
  margin: 0 0 1.25rem;
}
.eyebrow .np {
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 0.6rem;
  font-size: 0.95rem;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  margin: 0 0 1.5rem;
  font-weight: 700;
  max-width: 12ch;
}
.lead { font-size: 1.25rem; color: var(--muted); max-width: 36rem; margin: 0 0 1.25rem; }
.lead + .actions { margin-top: 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--sindoor); border-color: var(--sindoor); }
.btn-quiet:hover { background: var(--paper-2); }

/* Sections */
section { padding: 5.5rem 0; }
.hero { padding-left: 1.5rem; padding-right: 1.5rem; }
.band { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-dark { background: var(--night); color: var(--night-ink); border: 0; }
.band-dark .sec-num { color: #e9a99f; }
.band-dark .prose p { color: var(--night-ink); }

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.sec-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0; }
.sec-head.wide { margin-bottom: 3rem; max-width: 46rem; }
.sec-num {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--sindoor);
  margin: 0 0 0.9rem;
  padding-top: 0.9rem;
  border-top: 2px solid currentColor;
  width: 3rem;
}
.sec-sub { color: var(--muted); margin: 1rem 0 0; }

.prose p { margin: 0 0 1.15rem; max-width: 38rem; }
.prose p:last-child { margin-bottom: 0; }

.facts { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--rule); }
.facts li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.facts strong { display: block; }

.link {
  color: var(--sindoor);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* Product */
.tag {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2f7d4a; }
.tag-plain { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; }

.note {
  margin-top: 2.5rem;
  border-left: 3px solid var(--sindoor);
  background: var(--paper-2);
  padding: 1.5rem 1.75rem;
  max-width: 48rem;
}
.note h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.note p { margin: 0; color: var(--muted); }

/* Example answer */
.answer {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--sindoor);
  max-width: 60rem;
}
.answer-q { padding: 1.75rem 2rem; border-bottom: 1px solid var(--rule); }
.answer-q h3 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.answer-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.answer-block { padding: 1.5rem 2rem; border-bottom: 1px solid var(--rule); }
.answer-block:last-child { border-bottom: 0; }
.answer-block p { margin: 0; }
.answer-block.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.sanskrit { font-family: var(--deva); font-size: 1.35rem; line-height: 1.8; color: var(--sindoor); }
.cite { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem !important; }
.words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem 2rem; margin: 0; }
.words div { border-top: 1px solid var(--rule); padding-top: 0.5rem; }
.words dt { font-family: var(--deva); font-size: 1.15rem; }
.words dd { margin: 0; color: var(--muted); font-size: 0.95rem; }
.answer-block.caution { background: var(--sindoor-soft); }
.answer-block.caution .answer-label { color: var(--sindoor); }

/* Scale */
.scale {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}
.scale li { padding: 1.5rem 1.5rem 0 0; }
.scale li + li { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.scale strong { display: block; font-size: 2.6rem; line-height: 1; color: var(--sindoor); margin-bottom: 0.6rem; }
.scale span { color: var(--muted); }

/* Hero questions */
.questions {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.questions li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}
.questions li span {
  display: block;
  font-style: normal;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.questions li:nth-child(2) span { color: var(--sindoor); }

/* Translation layers */
.layers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}
.layers li { padding: 1.75rem 1.75rem 0.5rem; border-left: 1px solid var(--rule); position: relative; }
.layers li:first-child { padding-left: 0; border-left: 0; }
.layer-lang { font-size: 2rem; margin: 0 0 0.25rem; color: var(--sindoor); line-height: 1.3; }
.layer-lang[lang] { font-family: var(--deva); }
.layers h3 { margin: 0 0 0.5rem; font-size: 0.85rem; font-family: var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.layers p:last-child { margin: 0; }
.layers li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -7px;
  width: 12px;
  height: 12px;
  background: var(--paper);
  border: 1.5px solid var(--sindoor);
  transform: rotate(45deg);
}

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2.5rem; }
.product-card { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.product-card h3 { font-size: 1.3rem; margin: 0 0 0.6rem; }
.product-card p { margin: 0 0 0.75rem; color: var(--muted); }
.product-card p.tag { color: var(--ink); }
.product-card p.tag-plain { color: var(--muted); }
.product-card.first { border-top: 3px solid var(--sindoor); }

/* Closing */
.closing { text-align: center; padding: 6.5rem 0; }
.closing-np { font-size: 1.3rem; color: #e9a99f; margin: 0 0 1rem; }
.closing h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1rem; }
.closing p:last-child { font-size: 1.25rem; opacity: 0.85; margin: 0 auto; max-width: 32rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2rem 0; font-size: 0.9rem; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-row p { margin: 0; }
.site-footer .wordmark { color: var(--ink); }

/* Small screens */
@media (max-width: 860px) {
  .site-header nav { display: none; }
  .hero, .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding-top: 3rem; padding-bottom: 3.5rem; }
  section { padding: 3.75rem 0; }
  .answer-q, .answer-block { padding: 1.25rem; }
  .answer-block.two { grid-template-columns: 1fr; gap: 1rem; }
  .words { grid-template-columns: 1fr 1fr; gap: 0.75rem 1.25rem; }
  .scale { grid-template-columns: 1fr 1fr; }
  .scale li, .scale li + li { padding: 1.25rem 1rem 1.25rem 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .layers, .products { grid-template-columns: 1fr; }
  .layers li { border-left: 0; border-top: 1px solid var(--rule); padding: 1.5rem 0; }
  .layers li:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
