/* Durgasutra. The page is an aged print sheet: paper ground, old-press type, vermilion ink. */
:root {
  --paper: #E9DCC0; --field: #FBF5E6; --ink: #2B1D12; --ink-2: #3D2C1C; --muted: #5A4632;
  --red: #A3271C; --rule: #8A6A3A; --line: #8A7353; --ochre: #7A4E12; --cream: #FFF6E4;
  --display: 'IM Fell English', Georgia, serif;
  --text: 'EB Garamond', Georgia, serif;
  --deva: 'Eczar', 'Noto Serif Devanagari', serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--text); font-size: 20px; line-height: 1.5;
  background: var(--paper) url(paper.jpg) 0 0 / 820px 820px;
}
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::placeholder { color: #75614A; opacity: 1; }
h1, h2, h3, p, figure, ol, ul, fieldset { margin: 0; }
h1, h2, .h-display { font-family: var(--display); font-weight: 400; }
[lang="sa"], [lang="hi"] { font-family: var(--deva); }
.price { font-family: var(--text), var(--deva); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.kicker { font-size: 19px; font-variant-caps: all-small-caps; letter-spacing: 0.12em; color: var(--ochre); }
.muted { color: var(--muted); }
.note { font-size: 17px; line-height: 1.35; color: var(--muted); }

/* Header */
.top { max-width: 1160px; margin: 0 auto; padding: 16px 28px 0; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 54px; height: 54px; flex: none; display: block; }
.brand span { font-family: var(--display); font-size: 31px; line-height: 1; color: var(--ink); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 19px; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--display); font-size: 23px; line-height: 1.1; text-align: center; text-decoration: none;
  padding: 14px 26px; min-height: 56px; background: var(--red); color: var(--cream); border: 0; border-radius: 2px; cursor: pointer;
  box-shadow: inset 0 0 0 4px var(--red), inset 0 0 0 5px rgba(255, 240, 212, 0.6);
}
.btn:hover { color: var(--cream); background: #8E2017; box-shadow: inset 0 0 0 4px #8E2017, inset 0 0 0 5px rgba(255, 240, 212, 0.6); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-pay { width: 100%; font-size: 25px; padding: 15px 20px; min-height: 60px; }

/* Hero: the print and the form */
.hero { max-width: 1160px; margin: 0 auto; padding: 18px 28px 56px; display: flex; align-items: flex-start; justify-content: center; gap: 28px 48px; }
.plate { flex: 1 1 420px; min-width: 0; max-width: 560px; position: sticky; top: 20px; }
.plate img { display: block; width: 100%; height: auto; box-shadow: 0 0 0 1px rgba(43, 29, 18, 0.28), 0 18px 28px -22px rgba(43, 29, 18, 0.7); }
.plate .darshan { display: none; }
.order { flex: 1 1 420px; min-width: 0; max-width: 500px; display: flex; flex-direction: column; gap: 17px; }
.verse { font-family: var(--deva); font-size: 20px; line-height: 1.4; color: var(--red); }
.order h1 { font-size: 62px; line-height: 0.98; margin-top: 7px; }
.lede { font-size: 21px; line-height: 1.4; color: var(--ink-2); margin-top: 11px; }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > label, legend { font-size: 18px; font-weight: 600; color: var(--ink-2); padding: 0; }
input[type="text"], input[type="tel"], textarea {
  font: inherit; line-height: 1.35; width: 100%; padding: 9px 13px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--field); color: var(--ink);
}
textarea { resize: vertical; }
[aria-invalid="true"] { border-color: var(--red) !important; box-shadow: 0 0 0 1px var(--red); }
.err { font-size: 17px; line-height: 1.3; color: var(--red); font-weight: 600; }
.err:empty { display: none; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.row > .field { flex: 1 1 180px; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 7px; }

.plans { display: flex; gap: 10px; }
.plan { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 10px 13px 9px; border: 1px solid var(--line); background: rgba(251, 245, 230, 0.5); cursor: pointer; }
.plan:has(input:checked) { padding: 9px 12px 8px; border: 2px solid var(--red); background: var(--field); }
.plan .name { display: flex; align-items: center; gap: 7px; font-size: 18px; font-weight: 600; white-space: nowrap; }
.plan .price { font-weight: 500; font-size: 33px; line-height: 1.15; }
.plan:has(input:checked) .price { color: var(--red); }
.plan s { font-size: 17px; line-height: 1.2; color: var(--muted); }
input[type="radio"] { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--red); }
.offer { font-size: 17px; font-style: italic; color: var(--muted); margin-top: 7px; }

#questions { display: flex; flex-direction: column; gap: 18px; }
.qblock { display: flex; flex-direction: column; gap: 14px; }
.qblock + .qblock { border-top: 1px solid var(--line); padding-top: 16px; }
.time { display: flex; gap: 6px; align-items: stretch; }
.time input[type="text"] { flex: 1 1 0; min-width: 0; }
.ampm { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 10px; min-height: 46px; border: 1px solid var(--line); border-radius: 2px; background: rgba(251, 245, 230, 0.5); font-size: 18px; font-weight: 600; cursor: pointer; }
.ampm:has(input:checked) { border: 2px solid var(--red); padding: 0 9px; background: var(--field); }
.pay { display: flex; flex-direction: column; gap: 8px; margin-top: 3px; }
.done { display: flex; flex-direction: column; gap: 14px; border: 2px solid var(--red); background: var(--field); padding: 22px 22px 24px; }
.done h2 { font-size: 36px; line-height: 1.05; }
.paybar { display: none; }
[hidden] { display: none !important; }

/* Sections below the hero */
.band { border-top: 4px double var(--rule); padding: 60px 0 64px; }
.band h2 { font-size: 44px; line-height: 1.08; }
.center { text-align: center; }
.parts { list-style: none; padding: 0; margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 30px 36px; }
.parts li { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--rule); padding-top: 12px; }
.num { font-family: var(--display); font-style: italic; font-size: 30px; line-height: 1.1; color: var(--red); }
.parts h3 { font-size: 24px; font-weight: 600; line-height: 1.2; }
.parts p { color: var(--ink-2); }
.sample-link { margin-top: 34px; font-size: 21px; font-style: italic; }
.sample-link a { color: var(--red); }
.split { display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: center; justify-content: center; }
.split.rev { flex-wrap: wrap-reverse; }
.split .copy { flex: 1 1 400px; min-width: 0; max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.split ul { padding-left: 1.1em; display: flex; flex-direction: column; gap: 4px; }
.vignette { flex: 0 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.vignette.wide { flex-basis: 400px; }
.vignette img { display: block; width: 100%; max-width: 290px; height: auto; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%); }
.vignette.wide img { max-width: 400px; }
.vignette figcaption { font-size: 17px; font-style: italic; color: var(--muted); text-align: center; }
.soon { font-size: 17px; font-style: italic; color: var(--muted); }

.foot { border-top: 4px double var(--rule); padding: 30px 0 48px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.foot .crest { display: block; width: 170px; height: auto; }
.foot .name { font-family: var(--display); font-size: 30px; line-height: 1; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: center; font-size: 19px; }

/* Sample report */
.report { max-width: 800px; margin: 0 auto; padding: 34px 28px 0; display: flex; flex-direction: column; gap: 46px; }
.report .title { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.report .title h1 { font-size: 58px; line-height: 1; }
.report .title p:last-child { max-width: 560px; font-style: italic; color: var(--muted); }
.report section { border-top: 4px double var(--rule); padding-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.asked { font-family: var(--display); font-style: italic; font-size: 30px; line-height: 1.2; }
.part { display: flex; align-items: baseline; gap: 14px; }
.part .num { font-size: 34px; line-height: 1; }
.part h2 { font-size: 40px; line-height: 1.08; }
.answer h3 { font-size: 22px; font-weight: 600; line-height: 1.25; color: var(--red); }
.answer p { font-size: 23px; line-height: 1.4; margin-top: 4px; }
.report h3.sub { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; margin-top: 8px; }
.report h3.small { font-size: 22px; font-weight: 600; line-height: 1.25; margin-top: 8px; }
.mantra { font-family: var(--deva); font-weight: 500; font-size: 26px; line-height: 1.4; color: var(--red); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; line-height: 1.35; }
th { text-align: left; padding: 8px 14px 8px 0; border-bottom: 2px solid var(--ink); font-weight: 600; font-variant-caps: all-small-caps; letter-spacing: 0.08em; color: var(--muted); }
td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th:last-child, td:last-child { padding-right: 0; white-space: nowrap; }
td.when { white-space: nowrap; font-weight: 600; }
td.sure { font-weight: 600; color: var(--red); }
.dates { min-width: 520px; }
.agree { min-width: 680px; font-size: 18px; }
.agree td:first-child { font-weight: 600; }
.steps { padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.forty { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; max-width: 540px; }
.forty span { aspect-ratio: 1 / 1; border: 1px solid var(--line); background: rgba(251, 245, 230, 0.6); padding: 2px 5px; font-size: 15px; line-height: 1.2; color: var(--muted); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 26px 36px; }
.charts figure { display: flex; flex-direction: column; gap: 6px; }
.charts img { display: block; width: 100%; height: auto; }
.charts figcaption { font-size: 17px; line-height: 1.35; color: var(--ink-2); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 22px 36px; }
.cols ul { list-style: none; padding: 0; margin-top: 8px; display: flex; flex-direction: column; gap: 7px; font-size: 18px; line-height: 1.35; }
.cols h3 { font-size: 22px; font-weight: 600; line-height: 1.25; }
.fine { font-size: 18px; line-height: 1.45; }
.ending { border-top: 4px double var(--rule); padding: 34px 0 56px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.ending img { display: block; width: 150px; height: auto; }
.ending .h-display { font-size: 34px; line-height: 1.1; }

/* Phones */
@media (max-width: 860px) {
  body { font-size: 19px; }
  .top { padding: 10px 16px 0; }
  .brand img { width: 46px; height: 46px; }
  .brand span { font-size: 27px; }
  .top nav { font-size: 17px; gap: 2px 18px; }
  .hero { flex-direction: column; align-items: stretch; padding: 10px 0 40px; gap: 4px; }
  .plate { position: static; max-width: none; flex: none; }
  .plate .sheet { display: none; }
  .plate .darshan { display: block; height: 62vw; max-height: 340px; object-fit: cover; object-position: 50% 12%; box-shadow: none; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
  .order { max-width: none; flex: none; padding: 0 16px; gap: 15px; }
  .verse { font-size: 16px; }
  .order h1 { font-size: 42px; margin-top: 3px; }
  .lede { font-size: 19px; }
  .plans { flex-direction: column; gap: 6px; }
  .plan, .plan:has(input:checked) { flex-direction: row; align-items: center; gap: 10px; min-height: 48px; padding-top: 3px; padding-bottom: 3px; }
  .plan .name { flex-grow: 1; }
  .plan .price { font-size: 26px; line-height: 1; order: 3; }
  .plan s { font-size: 16px; order: 2; }
  .wrap { padding: 0 16px; }
  .band { padding: 44px 0 48px; }
  .band h2, .part h2 { font-size: 34px; }
  .report { padding: 22px 16px 0; gap: 36px; }
  .report .title h1 { font-size: 42px; }
  .asked { font-size: 25px; }
  .answer p { font-size: 21px; }
  /* The Pay bar stays at the foot of the screen until the form's own button comes into view. */
  .paybar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 11px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 4px double var(--rule); background: var(--paper) url(paper.jpg) 0 0 / 820px 820px; }
  .paybar .btn { width: 100%; font-size: 22px; padding: 13px 14px; }
  .paybar.away { display: none; }
  body.has-paybar { padding-bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
