/* ------------------------------------------------------------------ *
 * Sanatana Vedika — static info page.
 * Editorial rather than promotional: serif display, generous rhythm,
 * one accent colour used sparingly. No JavaScript, no web fonts.
 * ------------------------------------------------------------------ */
:root {
  --paper:   #fbf8f3;
  --raised:  #ffffff;
  --tint:    #fdf2e6;
  --rule:    #e9ded0;
  --rule-2:  #f2e7d8;
  --brand:   #c2410c;
  --brand-d: #9a3208;
  --ink:     #2a1a0e;
  --body:    #574434;
  --muted:   #94795f;

  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1080px;
  --prose: 68ch;

  /* Tells the browser not to auto-darken scrollbars and controls on a
     dark-preferring OS — without it the chrome fights the cream page. */
  color-scheme: light;
}
/* Deliberately LIGHT ONLY. The app itself has no dark mode — all 17 screens
   are the same cream paper (#faf7f2) and nothing reads `useColorScheme`. The
   warm paper IS the identity, so this page must not flip to near-black for
   visitors whose OS happens to prefer dark. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.prose { max-width: var(--prose); }
/* The opening section runs the full width of the shell rather than sitting in
   the 68ch measure. Size is stepped up a little so the longer line still
   reads as a standfirst rather than as cramped body copy. */
.lead-full { max-width: none; }
.lead-full p { font-size: 1.06rem; line-height: 1.72; }

h1, h2, h3, .display { font-family: var(--serif); color: var(--ink); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.22; letter-spacing: -0.015em; margin: 0 0 0.5rem; }
h3 { font-size: 1.06rem; line-height: 1.35; margin: 0 0 0.4rem; letter-spacing: -0.005em; }
p { margin: 0.85rem 0; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--ink); font-weight: 650; }
em { color: var(--ink); }
code {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--tint); color: var(--brand-d);
  padding: 0.14em 0.42em; border-radius: 5px;
}

/* eyebrow ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 0.7rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

section { padding: 4.5rem 0 0; }
section:first-of-type { padding-top: 3.6rem; }

/* masthead ----------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper); /* fallback where color-mix is unsupported */
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.masthead .shell { display: flex; align-items: center; gap: 10px; height: 58px; }
.masthead img { width: 30px; height: 30px; }
.masthead b { font-family: var(--serif); font-size: 1rem; color: var(--ink); font-weight: 600; letter-spacing: 0.01em; }
.masthead nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.masthead nav a {
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
  text-decoration: none; letter-spacing: 0.02em;
}
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--brand); }
.masthead nav .native { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; }

/* hero --------------------------------------------------------------- */
.hero {
  text-align: center; padding: 68px 28px 60px;
  background:
    radial-gradient(120% 100% at 50% -10%, var(--tint) 0%, transparent 62%),
    var(--paper);
  border-bottom: 1px solid var(--rule);
}
.hero .crest {
  width: clamp(190px, 20vw, 250px);
  height: auto; display: block; margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.4rem, 1.8rem + 3vw, 3.6rem);
  letter-spacing: -0.03em; line-height: 1.04;
  margin: 22px 0 0; color: var(--ink);
}
.hero .native { font-family: var(--serif); font-size: 1.12rem; color: var(--brand); margin: 10px 0 0; letter-spacing: 0.01em; }
.hero .standfirst {
  max-width: 40rem; margin: 20px auto 0; font-size: 1.1rem; line-height: 1.62; color: var(--body);
}
/* About page: no crest, so the header is tightened up. */
.hero-compact { padding: 54px 28px 48px; }
.hero-compact h1 { margin-top: 0; font-size: clamp(2rem, 1.5rem + 2.4vw, 2.9rem); }
.eyebrow-center { justify-content: center; max-width: 320px; margin: 0 auto 14px; }
.eyebrow-center::after { display: none; }

.rule-om {
  margin: 30px auto 0; display: flex; align-items: center; justify-content: center;
  gap: 14px; color: var(--muted); font-size: 0.95rem; max-width: 300px;
}
.rule-om::before, .rule-om::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* stat band ---------------------------------------------------------- */
.band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border: 1px solid var(--rule); border-radius: 14px; overflow: hidden;
  background: var(--raised); margin-top: 2rem;
}
.band > div { padding: 22px 18px; text-align: center; border-right: 1px solid var(--rule-2); }
.band > div:last-child { border-right: 0; }
.band b {
  display: block; font-family: var(--serif); font-size: 1.95rem; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; font-weight: 600;
}
.band span {
  display: block; margin-top: 8px; font-size: 0.72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.11em; font-weight: 700;
}

/* feature grid ------------------------------------------------------- */
.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; margin-top: 1.6rem; }
@media (min-width: 700px) { .grid.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.cell { background: var(--raised); padding: 26px 24px; }
.cell .num {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--brand); display: block; margin-bottom: 12px;
}
.cell p { margin: 0; font-size: 0.94rem; line-height: 1.62; }

/* table -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--raised); margin-top: 1.6rem; }
table { border-collapse: collapse; width: 100%; min-width: 480px; }
caption { caption-side: bottom; padding: 14px 22px; font-size: 0.8rem; color: var(--muted); text-align: left; }
th, td { padding: 12px 22px; text-align: left; border-bottom: 1px solid var(--rule-2); }
thead th {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
td { font-size: 0.94rem; }
td:first-child { color: var(--ink); font-weight: 550; }
.n { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tr.pending td, tr.pending td:first-child { color: var(--muted); font-weight: 400; }

/* note --------------------------------------------------------------- */
.note {
  margin-top: 1.6rem; padding: 22px 24px;
  background: var(--tint); border: 1px solid var(--rule);
  border-left: 3px solid var(--brand); border-radius: 4px 14px 14px 4px;
}
.note p { margin: 0; font-size: 0.94rem; }
.note .h { display: block; font-family: var(--serif); font-size: 1.02rem; color: var(--ink); margin-bottom: 6px; font-weight: 600; }

/* spec list ---------------------------------------------------------- */
.spec { margin: 1.6rem 0 0; border: 1px solid var(--rule); border-radius: 14px; background: var(--raised); overflow: hidden; }
.spec div { display: grid; grid-template-columns: 190px 1fr; border-bottom: 1px solid var(--rule-2); }
.spec div:last-child { border-bottom: 0; }
.spec dt {
  padding: 13px 22px; font-size: 0.74rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.11em; border-right: 1px solid var(--rule-2);
}
.spec dd { margin: 0; padding: 13px 22px; font-size: 0.94rem; color: var(--ink); }
@media (max-width: 560px) {
  .spec div { grid-template-columns: 1fr; }
  .spec dt { border-right: 0; padding-bottom: 0; }
  .spec dd { padding-top: 4px; }
}

/* footer ------------------------------------------------------------- */
/* Footer: text left, crest right at a size where the chakra, the standards and
   the vedika are all actually legible — at 40px centred they were mush. */
footer {
  margin-top: 5rem; padding: 40px 0 52px;
  border-top: 1px solid var(--rule);
  color: var(--muted); font-size: 0.88rem; background: var(--raised);
}
footer .shell { display: flex; align-items: center; gap: 36px; }
footer .fine { flex: 1; }
footer p { margin: 0; line-height: 1.65; max-width: 46rem; }
footer p + p { margin-top: 10px; }
footer .brand-line { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin-bottom: 8px; }
footer .crest-mark { width: 96px; height: auto; flex: none; }
@media (max-width: 640px) {
  footer .shell { flex-direction: column-reverse; align-items: flex-start; gap: 22px; }
  footer .crest-mark { width: 76px; }
}

@media print {
  .masthead { display: none; }
  body { background: #fff; font-size: 11pt; }
  .grid, .band, .table-wrap, .spec { break-inside: avoid; }
}
