/* Your Dasha, Narrated: shared styles for index.html and thanks.html.
   Palette: warm paper and ink with one rubric red, the red ink that marks headings in
   hand-copied Sanskrit almanacs. Calm, editorial, and not the usual navy-and-gold. */
:root {
  color-scheme: light dark;
  --paper: #f7f2e8;
  --surface: #fffcf6;
  --ink: #1f1b16;
  --muted: #5c5348;
  --rule: #ddd3c2;
  --field: #fffcf6;
  --field-border: #857868;
  --accent: #8a2f1f;
  --accent-hover: #6f2417;
  --on-accent: #fffaf2;
  --err: #a31d14;
  --focus: #8a2f1f;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17140f;
    --surface: #211d17;
    --ink: #eee7da;
    --muted: #b3a895;
    --rule: #3a332a;
    --field: #1c1813;
    --field-border: #8a7e6c;
    --accent: #e8a084;
    --accent-hover: #f2b79f;
    --on-accent: #1d120c;
    --err: #ff9c8c;
    --focus: #e8a084;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
}
main { max-width: 640px; margin: 0 auto; padding: 0 16px 64px; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 8vw, 50px); line-height: 1.08; margin: 0 0 16px; }
h2 { font-size: 26px; line-height: 1.2; margin: 0 0 12px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.lede { font-size: 19px; margin: 0 0 20px; }
.muted { color: var(--muted); font-size: 15px; }
section { padding: 40px 0; border-top: 1px solid var(--rule); }

.masthead { padding: 20px 0; font-family: var(--serif); font-size: 17px; }
.hero { padding: 24px 0 40px; border-top: 0; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 4px; font-size: 16px; }
.facts b { font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 24px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--on-accent);
  font: 600 17px/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-block { width: 100%; }

.sample { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 20px; margin: 0; }
.sample p { margin: 0 0 12px; }
.sample p:last-child { margin: 12px 0 0; }
audio { width: 100%; display: block; min-height: 44px; }

.steps, .eps { padding: 0; margin: 0; list-style: none; counter-reset: n; }
.steps li, .eps li { counter-increment: n; position: relative; padding: 0 0 16px 40px; }
.steps li::before, .eps li::before {
  content: counter(n); position: absolute; left: 0; top: 0;
  font: 600 20px/1.3 var(--serif); color: var(--accent);
}
.eps li b { font-weight: 600; }

/* Order form */
form { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 20px; }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field > label, legend { display: block; font-weight: 600; font-size: 17px; margin: 0 0 6px; padding: 0; }
.sub { display: block; font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.hint { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.row { display: grid; gap: 8px; }
.row-date { grid-template-columns: 1.6fr 1fr 1.2fr; }
.row-time { grid-template-columns: 0.9fr 0.9fr 1.2fr; }
.row > div { min-width: 0; }
input[type=text], select {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--field-border); border-radius: 10px;
  background-color: var(--field); color: var(--ink);
  font: 17px/1.3 var(--sans);
}
select {
  -webkit-appearance: none; appearance: none; padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.field-err { color: var(--err); font-size: 15px; font-weight: 600; margin: 6px 0 0; }
.field-err:empty { display: none; }

#places { list-style: none; padding: 0; margin: 6px 0 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
#places:empty { display: none; }
#places li + li { border-top: 1px solid var(--rule); }
#places button {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 0; text-align: left;
  background: var(--field); color: var(--ink); font: 16px/1.3 var(--sans); cursor: pointer;
}
#places button:hover { background: var(--paper); }
#picked { font-size: 15px; margin: 6px 0 0; }
#picked:empty { display: none; }

.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); }
.check label { font-weight: 600; cursor: pointer; }
.check .why { display: block; font-weight: 400; font-size: 15px; color: var(--muted); margin-top: 4px; }
.check-wrap { padding: 14px; border: 1px solid var(--rule); border-radius: 10px; margin: 0 0 22px; }
/* Make the whole row a comfortable tap target without enlarging the native box. */
.check label { min-height: 44px; }

/* Narration voice: radio cards, each with a preview button beside its label */
.voices { display: grid; gap: 8px; margin-top: 10px; }
.voice {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 4px 8px 4px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--field);
}
.voice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.voice input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.voice label { display: block; min-height: 44px; padding: 8px 0; cursor: pointer; }
.vname { display: block; font-weight: 600; }
.vblurb { display: block; font-size: 15px; color: var(--muted); }
.preview {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--field-border); border-radius: 50%; background: var(--paper); color: var(--accent); cursor: pointer;
}
.preview[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.preview[hidden] { display: none; }
.preview svg { width: 18px; height: 18px; fill: currentColor; }

#err { color: var(--err); font-weight: 600; font-size: 15px; margin: 12px 0 0; }
#err:empty { display: none; }
.fine { font-size: 15px; color: var(--muted); margin: 16px 0 0; }

footer { border-top: 1px solid var(--rule); padding-top: 24px; color: var(--muted); font-size: 15px; }
footer p { margin: 0 0 8px; }

@media (min-width: 720px) {
  main { padding-bottom: 96px; }
  .hero { padding: 56px 0 56px; }
  form { padding: 28px; }
}
