/* ==========================================================================
   Aanyor Publications: shared stylesheet
   Quiet, literary design. Warm ivory, near-black text, fine grey rules,
   antique gold used sparingly. Fonts are bundled in /assets/fonts.
   ========================================================================== */

/* ---- Fonts (self-hosted; Cormorant Garamond and EB Garamond, SIL OFL) ---- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Cormorant Garamond";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Cormorant Garamond";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/eb-garamond-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "EB Garamond";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("assets/fonts/eb-garamond-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "EB Garamond";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("assets/fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/eb-garamond-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "EB Garamond";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/eb-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Devanāgarī and Bengali (Noto Serif, SIL OFL) for Sanskrit and Bengali verses */
@font-face {
  font-family: "Noto Serif Devanagari";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/noto-serif-devanagari-devanagari-400-normal.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: "Noto Serif Devanagari";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/noto-serif-devanagari-devanagari-500-normal.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: "Noto Serif Bengali";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/noto-serif-bengali-bengali-400-normal.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Noto Serif Bengali";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/noto-serif-bengali-bengali-500-normal.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}

/* ---- Design tokens ---- */
:root {
  --bg: #faf8f3;          /* warm ivory */
  --ink: #1b1a18;         /* near-black */
  --muted: #57534b;       /* secondary text */
  --rule: #d8d3c8;        /* fine grey rules */
  --gold: #7c5f1f;        /* antique gold, text-safe on ivory */
  --gold-soft: #b79a54;   /* decorative rules only */

  --display: "Cormorant Garamond", Cormorant, Garamond, "Times New Roman", serif;
  --text: "EB Garamond", Garamond, "Palatino Linotype", Georgia, serif;

  --bn: "Noto Serif Bengali", "EB Garamond", "Kohinoor Bangla", "Nirmala UI", Vrinda, serif;
  --dev: "Noto Serif Devanagari", "EB Garamond", "Kohinoor Devanagari", "Nirmala UI", Mangal, serif;

  --wrap: 68rem;
  --measure: 38rem;
}

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

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.2rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---- Headings ---- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
h1 {
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
}
h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem);
  line-height: 1.15;
}
h3 {
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.2;
}

p { margin: 0 0 1.1em; }

.measure { max-width: var(--measure); }
.center { text-align: center; }
.center.measure { margin-left: auto; margin-right: auto; }

.lead {
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.45;
  color: var(--ink);
}

/* ---- Header and navigation ---- */
.site-header {
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.brand { display: block; width: 15rem; flex: none; }
.brand img { width: 100%; mix-blend-mode: multiply; }

.main-nav ul,
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
}
.main-nav a,
.footer-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover,
.footer-nav a:hover { border-bottom-color: var(--gold-soft); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* On the home page the large logo sits in the hero, so the header shows
   only the navigation. */
.home .brand { display: none; }
.home .header-inner { justify-content: center; }

/* ---- Hero (home) ---- */
.hero {
  text-align: center;
  padding: 3.5rem 0 4rem;
}
.hero-logo { margin: 0 auto 2.5rem; width: min(100%, 17rem); }
.hero-logo img { width: 100%; mix-blend-mode: multiply; }
.hero h1 { max-width: 14ch; margin: 0 auto; }
.hero-sub {
  margin: 1rem 0 0;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--muted);
}
.ornament {
  width: 3.5rem;
  height: 0;
  border: 0;
  border-top: 1px solid var(--gold-soft);
  margin: 2rem auto;
}
.hero .measure { margin-left: auto; margin-right: auto; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
}
.actions.left { justify-content: flex-start; }

/* ---- Buttons and links ---- */
.button {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.3;
}
.button:hover { background: transparent; color: var(--ink); }

.text-link {
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-color: var(--gold); color: var(--gold); }

.email-address a {
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* ---- Page heads (inner pages) ---- */
.page-head { padding: 4rem 0 3rem; }
.page-head .lead { margin: 1.25rem 0 1.1em; }
.page-head .measure { margin-top: 1.5rem; }

/* ---- Sections ---- */
.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--rule);
}
.section > .wrap > h2 { margin-bottom: 1.5rem; }
.section .lead { margin-bottom: 1.25rem; }
.section-intro { color: var(--muted); font-style: italic; }

/* Text panels: simple ruled columns, not cards */
.panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.panel { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.panel h3 { margin-bottom: 0.75rem; }
.panel p { margin: 0; }

.statement {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.4rem);
  line-height: 1.3;
  max-width: 30ch;
  margin: 0;
}

/* Email block */
.email-block {
  max-width: var(--measure);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 0 2rem;
  margin: 2rem 0 1rem;
}
.email-label {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.email-address {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.3rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

/* ---- The name, in three scripts ---- */
.bn, .dev { font-style: normal; font-weight: 400; line-height: 1.9; }
.bn { font-family: var(--bn); }
.dev { font-family: var(--dev); }

.name-forms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2.5rem 0 0;
  padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.name-form .script {
  display: block;
  font-size: clamp(2.4rem, 1.5rem + 3.2vw, 3.5rem);
  line-height: 1.3;
}
.name-form .script.latin { font-family: var(--display); font-weight: 500; }
.name-form .label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Verses ---- */
.verse {
  max-width: var(--measure);
  margin: 2rem 0 1.5rem;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 1px solid var(--gold-soft);
}
.verse .script-line { margin: 0; font-size: 1.4rem; }
.verse .iast {
  margin: 0.75rem 0 0;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
}
.verse .iast:first-child { margin-top: 0; font-size: 1.2rem; color: var(--ink); }
.verse .iast.main { font-size: 1.2rem; color: var(--ink); }
.verse .ref {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.in-our-words {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.sources {
  margin-top: 2.5rem;
  font-size: 0.98rem;
  color: var(--muted);
}

/* ---- Footer ---- */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
  padding: 3rem 0 3.5rem;
  text-align: center;
}
.footer-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.2;
}
.footer-tagline {
  margin: 0.25rem 0 1.5rem;
  font-style: italic;
  color: var(--muted);
}
.footer-nav ul { justify-content: center; }
.copyright {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---- Wider screens ---- */
@media (min-width: 48em) {
  body { font-size: 1.25rem; }

  .brand { width: 17rem; }

  .hero { padding: 4.5rem 0 5rem; }
  .hero-logo { width: min(100%, 40rem); }

  .panels { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .name-forms { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .name-form + .name-form { border-left: 1px solid var(--rule); }
  .panels.two { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; }

  .section { padding: 4.5rem 0; }
  .page-head { padding: 5rem 0 3.5rem; }
}

/* ---- Narrow screens ---- */
@media (max-width: 47.99em) {
  .header-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .brand { width: 13rem; }
  .main-nav ul { justify-content: center; gap: 0.25rem 1.5rem; }
  .actions { flex-direction: column; }
  .actions .button { text-align: center; }
}

@media print {
  .skip-link, .main-nav, .actions { display: none; }
  body { background: #fff; }
}

/* ==========================================================================
   Additions: Sanskrit Edition, forms, learning pages. Same tokens as above.
   ========================================================================== */

.main-nav a[aria-current] { border-bottom-color: var(--gold); }
.copyright a { text-underline-offset: 0.25em; }

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.measure.wide { max-width: 46rem; }
.small { font-size: 1rem; color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* ---- Scripts ---- */
.dev-inline { font-family: var(--dev); font-style: normal; font-weight: 400; line-height: 1.8; }
.iast { font-style: italic; }
.dev-big {
  font-family: var(--dev); font-size: clamp(1.7rem, 1.2rem + 2vw, 2.3rem);
  line-height: 1.9; margin: 0;
}

/* ---- Cover rows: side by side on desktop, stacked on mobile ---- */
.cover-row {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  justify-items: center; margin: 2.5rem 0 0; padding: 0; list-style: none;
}
.cover { margin: 0; width: min(100%, 19rem); }
.cover a.cover-img { display: block; border: 1px solid var(--rule); background: #fff; }
.cover img { width: 100%; height: auto; aspect-ratio: 1775 / 2552; object-fit: cover; }
.cover figcaption { margin-top: 0.9rem; font-size: 1.05rem; line-height: 1.45; text-align: center; }
.cover figcaption strong {
  display: block; font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.25;
}
.cover figcaption .tag {
  display: block; margin-bottom: 0.2rem; font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
}
.cover figcaption .sub { display: block; color: var(--muted); }
.cover-row.two { grid-template-columns: 1fr; }
@media (min-width: 48em) {
  .cover-row { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .cover-row.two { grid-template-columns: repeat(2, 1fr); max-width: 44rem; margin-left: auto; margin-right: auto; }
}

/* ---- Featured title (home) ---- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
.feature-covers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 26rem; }
.feature-covers img { border: 1px solid var(--rule); background: #fff; aspect-ratio: 1775 / 2552; object-fit: cover; }
@media (min-width: 48em) {
  .feature-grid { grid-template-columns: minmax(0, 22rem) 1fr; gap: 3.5rem; }
}
.button.outline { background: transparent; color: var(--ink); }
.button.outline:hover { background: var(--ink); color: var(--bg); }
.feature .actions { justify-content: flex-start; margin-top: 1.5rem; }
.learn-link {
  display: block; margin-top: 1.75rem; padding: 1rem 1.25rem; max-width: var(--measure);
  border-left: 2px solid var(--gold); background: rgba(183, 154, 84, 0.1);
  text-decoration: none;
}
.learn-link strong { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.learn-link span { color: var(--muted); }
.learn-link:hover strong { color: var(--gold); text-decoration: underline; text-underline-offset: 0.2em; }

/* ---- Interest form ---- */
.interest {
  margin-top: 3rem; padding: 2rem 0 2.25rem; max-width: 42rem;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.interest h3 { font-size: 2rem; margin-bottom: 1.25rem; }
.field { margin-bottom: 1.4rem; }
.field label { display: block; margin-bottom: 0.3rem; font-weight: 500; }
.field .hint { margin: 0 0 0.4rem; font-size: 1rem; color: var(--muted); }
.field input, .field textarea, .field select {
  display: block; width: 100%; padding: 0.7rem 0.8rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--muted); border-radius: 0;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input[type="number"] { max-width: 8rem; }
.field select { appearance: auto; min-height: 2.9rem; max-width: 100%; }
.field select[name="quantity"], .field select[name="qty1"], .field select[name="qty2"] { max-width: 12rem; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border: 2px solid #8a1c1c; }
.phone-row { display: grid; grid-template-columns: minmax(11rem, 17rem) minmax(0, 1fr); gap: 0.6rem; }
.phone-row select, .phone-row input { width: 100%; min-width: 0; }
@media (max-width: 34rem) { .phone-row { grid-template-columns: 1fr; } }
.optional { margin: 0 0 1.4rem; padding: 1rem 1.2rem 0.2rem; border: 1px dashed var(--muted); }
.optional-h { margin: 0 0 1rem; font-weight: 500; color: var(--muted); }
.field-error { margin: 0.4rem 0 0; color: #8a1c1c; font-size: 1.05rem; }
.form-errors {
  margin: 0 0 1.5rem; padding: 1rem 1.2rem; border: 2px solid #8a1c1c; color: #5f1212; background: #fff;
}
.form-errors:focus { outline: 3px solid var(--gold); outline-offset: 3px; }
.form-errors p { margin: 0 0 0.4rem; font-weight: 500; }
.form-errors ul { margin: 0; padding-left: 1.3rem; }
.form-errors a { color: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.interest button[type="submit"] {
  font: inherit; font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  padding: 1rem 2rem; background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
}
.interest button[type="submit"]:hover:not(:disabled) { background: transparent; color: var(--ink); }
.interest button[type="submit"]:disabled { opacity: 0.55; cursor: not-allowed; }
.interest .form-note { margin: 1.1rem 0 0; font-size: 1.05rem; color: var(--ink); }
.interest .privacy-note { margin: 1.1rem 0 0; font-size: 0.98rem; color: var(--muted); }
.turnstile-slot { min-height: 0; margin: 0 0 1.4rem; }
.success-box, .closed-box, .preview-banner {
  margin-top: 3rem; padding: 1.5rem 1.5rem 1.6rem; max-width: 42rem; border: 1px solid var(--ink); background: #fff;
}
.success-box:focus { outline: 3px solid var(--gold); outline-offset: 3px; }
.success-box p, .closed-box p { margin: 0 0 0.6rem; }
.success-box .lead, .closed-box .lead { font-size: 1.4rem; }
.preview-banner {
  margin: 0 0 1.5rem; padding: 0.8rem 1rem; border-color: var(--gold); font-size: 1rem; background: #fff8e6;
}

/* ---- External publisher box (visually distinct from the booking form) ---- */
.external-box {
  max-width: 42rem; margin-top: 2rem; padding: 1.75rem 1.5rem 1.6rem;
  border: 1px dashed var(--muted); background: #fff;
}
.external-box .tag { margin: 0 0 0.5rem; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.button.external::after { content: " \2197"; }
.shipping-note { margin: 1rem 0 0; font-size: 1.05rem; color: var(--muted); }

/* ---- Lists with reasoning ---- */
.audience-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; }
.audience-list li { padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.audience-list li:first-child { border-top: 1px solid var(--ink); }
.audience-list h3 { font-size: 1.55rem; margin-bottom: 0.5rem; }
.audience-list p { margin: 0 0 0.6rem; max-width: 46rem; }
.audience-list .why { color: var(--muted); }
.audience-list .why strong { color: var(--ink); font-weight: 500; font-style: normal; }

/* ---- Prose blocks (translator's note, steps) ---- */
.prose p { max-width: var(--measure); }
.prose .pull {
  margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 1px solid var(--gold-soft); max-width: var(--measure);
}
.prose .pull p { margin: 0 0 0.3rem; }
.prose .verse-lines p { margin: 0; font-style: italic; }

details.note { max-width: 46rem; margin-top: 1.75rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
details.note > summary {
  list-style: none; cursor: pointer; padding: 1.1rem 0; display: flex; gap: 0.75rem; align-items: center;
  font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase;
}
details.note > summary::-webkit-details-marker { display: none; }
details.note > summary::before { content: "+"; font-size: 1.4rem; line-height: 1; width: 1.2rem; text-align: center; color: var(--gold); }
details.note[open] > summary::before { content: "\2212"; }
details.note > summary:hover { color: var(--gold); }
details.note .note-body { padding: 0.5rem 0 2rem; }
details.note .note-body p { max-width: var(--measure); }
.note-credit { margin-top: 1.5rem; font-size: 1rem; color: var(--muted); font-style: italic; }

/* ---- Numbered steps ---- */
ol.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; max-width: 46rem; }
ol.steps li {
  counter-increment: step; position: relative; padding: 1.15rem 0 1.15rem 3.6rem; border-top: 1px solid var(--rule);
}
ol.steps li:first-child { border-top: 1px solid var(--ink); }
ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.95rem; width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%;
  font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--gold);
}
ol.steps li strong { font-weight: 500; }
ol.steps li p { margin: 0; }

/* ---- Prerequisites ---- */
ol.prereq { margin: 1.5rem 0 0; padding-left: 1.5rem; max-width: var(--measure); }
ol.prereq li { padding-left: 0.4rem; margin-bottom: 0.6rem; }

/* ---- Reference anatomy ---- */
.ref-demo {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.25rem; margin: 1.5rem 0 0; padding: 0;
  list-style: none;
}
.ref-chip {
  font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem);
  padding: 0.25rem 1rem; border: 1px solid var(--ink); background: #fff;
}
.ref-parts { display: grid; grid-template-columns: 1fr; gap: 0.5rem; margin: 1.25rem 0 0; max-width: 40rem; }
.ref-parts div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--rule); }
.ref-parts dt { font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--gold); }
.ref-parts dd { margin: 0; }

/* ---- Worked example ---- */
.worked { margin-top: 2.5rem; max-width: 52rem; }
.side-by-side { display: grid; grid-template-columns: 1fr; border: 1px solid var(--ink); background: #fff; }
.side-by-side > div { padding: 1.25rem 1.4rem 1.4rem; }
.side-by-side > div + div { border-top: 1px solid var(--ink); }
@media (min-width: 40em) {
  .side-by-side { grid-template-columns: 1fr 1fr; }
  .side-by-side > div + div { border-top: 0; border-left: 1px solid var(--ink); }
}
.sbs-label { margin: 0 0 0.6rem; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.glossary-box { margin-top: -1px; padding: 1.25rem 1.4rem 1.4rem; border: 1px solid var(--ink); background: #f1eee6; }
.glossary-entry { margin: 0.2rem 0 0.4rem; font-size: 1.35rem; }
.glossary-entry .dev-inline { font-size: 1.8rem; margin-right: 0.5rem; }
.glossary-entry .ref { white-space: nowrap; }
.worked h3 { margin: 2.5rem 0 0.9rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0 0; -webkit-overflow-scrolling: touch; }
table.parse { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 1.1rem; }
table.parse caption { text-align: left; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-bottom: 0.5rem; }
table.parse th, table.parse td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem 0.7rem 0; border-bottom: 1px solid var(--rule); }
table.parse thead th { border-bottom: 1px solid var(--ink); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.parse td.w { font-family: var(--dev); font-size: 1.4rem; line-height: 1.6; white-space: nowrap; }
table.parse tr.key td, table.parse tr.key th { background: rgba(183, 154, 84, 0.14); }
.callout { margin: 1.5rem 0 0; padding: 1.1rem 1.3rem; border-left: 2px solid var(--gold); background: rgba(183, 154, 84, 0.1); max-width: 46rem; }
.callout p:last-child { margin-bottom: 0; }
.contrast { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 40em) { .contrast { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.contrast .panel p { margin: 0 0 0.5rem; }
.contrast .subject { font-weight: 500; }

/* ---- Info pairs ---- */
.credits { max-width: var(--measure); font-size: 1.05rem; color: var(--muted); }
.credits p { margin: 0 0 0.5rem; }
.panel .panel-label { margin: 0 0 0.3rem; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

@media (max-width: 40em) {
  .interest { padding-left: 0; padding-right: 0; }
  ol.steps li { padding-left: 3.2rem; }
}
@media print { .interest, .external-box, details.note > summary::before { display: none; } }

/* ---- Step-by-step walk ---- */
dl.walk { margin: 1rem 0 0; padding: 0; max-width: 46rem; }
dl.walk > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--rule); }
dl.walk > div:first-child { border-top: 1px solid var(--ink); }
dl.walk dt { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--gold); }
dl.walk dt span { font-family: var(--text); font-weight: 400; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
dl.walk dd { margin: 0; }
@media (max-width: 30em) { dl.walk > div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* Lining figures so references such as 4.1 ¶1 and "Step 2" read clearly in the display face */
h1, h2, h3, .ref-chip, .ref-parts dt, dl.walk dt, ol.steps li::before { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
table.parse th[scope="row"] { font-weight: 400; }
.qty-more { margin-top: 0.5rem; max-width: 12rem; }
.qty-more[hidden] { display: none; }

/* ---- Devanagari lines inside the notes ---- */
.prose .dev-block { font-family: var(--dev); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); line-height: 2; margin: 0 0 0.6rem; }
.prose .pull .iast { font-style: italic; }
.prose .note-quote { margin: 1.2rem 0 1.4rem; padding: 0 0 0 1.2rem; border-left: 3px solid var(--gold); }
.prose .note-quote p { margin: 0; }

/* ---- A paragraph worked through: full paragraph, then sentence-by-sentence working ---- */
table.parse th.w { font-family: var(--dev); font-size: 1.4rem; line-height: 1.6; font-weight: 400; color: var(--ink); text-transform: none; letter-spacing: 0; white-space: normal; }
table.parse tbody th.w { border-bottom: 1px solid var(--rule); }
.paragraph-box { margin: 0 0 1.5rem; padding: 1.25rem 1.4rem; border: 1px solid var(--ink); max-width: 52rem; }
.paragraph-box p { margin: 0 0 0.8rem; }
.paragraph-box p:last-child { margin-bottom: 0; }
.sanskrit-box { background: #f1eee6; }
.dev-par { font-family: var(--dev); font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.55rem); line-height: 2.1; }
.snum { font-family: var(--text); font-size: 0.8em; font-weight: 600; color: var(--gold); }
.smcp { font-variant-caps: all-small-caps; letter-spacing: 0.06em; }
.paragraph-box .source { font-size: 0.95rem; color: var(--muted); }
.note-small { max-width: 52rem; color: var(--muted); font-size: 1rem; }
.sentences { margin-top: 1rem; max-width: 56rem; }
details.sentence { border-top: 1px solid var(--rule); }
details.sentence:last-child { border-bottom: 1px solid var(--rule); }
details.sentence > summary { list-style: none; cursor: pointer; display: grid; gap: 0.2rem; padding: 0.9rem 0.2rem 0.9rem 2rem; position: relative; }
details.sentence > summary::-webkit-details-marker { display: none; }
details.sentence > summary::before { content: "+"; position: absolute; left: 0.4rem; top: 0.85rem; font-size: 1.4rem; line-height: 1.2; color: var(--gold); width: 1.2rem; text-align: center; }
details.sentence[open] > summary::before { content: "\2212"; }
details.sentence > summary:hover .s-n { color: var(--gold); }
details.sentence > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.s-n { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.s-sk { font-size: 1.25rem; line-height: 1.8; font-family: var(--dev); }
.sentence-body { padding: 0 0 1.8rem 2rem; }
.sentence-body dl.walk dd p { margin: 0 0 0.4rem; }
.sentence-body dl.walk dd p:last-child { margin-bottom: 0; }
.recap { margin: 1rem 0 0.6rem; }
.sentence-tools button { font: inherit; padding: 0.45rem 0.9rem; border: 1px solid var(--ink); background: transparent; cursor: pointer; margin-right: 0.5rem; }
.sentence-tools button:hover { background: var(--ink); color: var(--bg); }
.step10 { max-width: 46rem; padding-left: 1.2rem; }
.step10 li { margin-bottom: 0.5rem; }
@media (max-width: 40em) {
  .sentence-body { padding-left: 0; }
  details.sentence > summary { padding-left: 1.8rem; }
  table.parse.stack { min-width: 0; }
  table.parse.stack thead { position: absolute; left: -9999px; }
  table.parse.stack tr { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
  table.parse.stack tr.key { background: rgba(183, 154, 84, 0.14); }
  table.parse.stack th, table.parse.stack td { display: block; border: 0; padding: 0.1rem 0.4rem; background: transparent !important; }
  table.parse.stack td::before { content: attr(data-label) ": "; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
}
.prose .pull .dev-block { font-style: normal; }

.quick-links { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.quick-links a { text-decoration: underline; text-underline-offset: 0.2em; }
