/* GhoomoAI public site.
   Plain CSS: no external resources, no web fonts, no JavaScript required.
   Palette: sandstone (surfaces), Jodhpur indigo (brand/text), marigold (accent). */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --bg: #fbf5ea;
  --bg-band: #f4e8d3;
  --surface: #fffdf8;
  --text: #221d30;
  --muted: #574d66;
  --line: #e4d3b7;
  --line-strong: #c9ae84;

  --brand: #25307a;
  --on-brand: #fbf5ea;
  --brand-soft: #e7e8f4;
  --accent: #e7a11e;
  --accent-text: #845000;
  --link: #25307a;

  --ok: #245e34;
  --ok-bg: #e1eedd;
  --warn: #7a4900;
  --warn-bg: #fbe8bf;
  --stale: #9a3325;
  --stale-bg: #f7e0d8;
  --stamp: #a3303d;

  --arch-top: #efdcbc;
  --arch-bottom: #e6cda3;
  --pattern: rgb(37 48 122 / 0.12);
  --callout-bg: #25307a;
  --callout-text: #fbf5ea;
  --callout-muted: #d9dcf0;
  --mark-bg: #25307a;
  --mark-arch: #f4e8d3;
  --mark-dot: #e7a11e;

  --focus: #25307a;
  --shadow: 0 1px 2px rgb(34 29 48 / 0.06), 0 18px 40px -20px rgb(34 29 48 / 0.35);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, "Noto Serif Devanagari", "Nirmala UI", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", Mangal, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-deva: "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", Mangal, system-ui, sans-serif;
  --font-deva-display: "Noto Serif Devanagari", "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", Mangal, serif;

  --radius: 14px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11122a;
    --bg-band: #171934;
    --surface: #1d2042;
    --text: #f3eadb;
    --muted: #c7bba7;
    --line: #2f3363;
    --line-strong: #4a4f8a;

    --brand: #f2b441;
    --on-brand: #1a1530;
    --brand-soft: #2a2e5c;
    --accent: #f2b441;
    --accent-text: #f2b441;
    --link: #f5c666;

    --ok: #93d6a0;
    --ok-bg: #173424;
    --warn: #f4c46a;
    --warn-bg: #3a2c10;
    --stale: #f59d90;
    --stale-bg: #3f1d1d;
    --stamp: #f59d90;

    --arch-top: #1c1f44;
    --arch-bottom: #151734;
    --pattern: rgb(242 180 65 / 0.11);
    --callout-bg: #232756;
    --callout-text: #f3eadb;
    --callout-muted: #cdc3b2;
    --mark-bg: #2c388f;
    --mark-arch: #f4e8d3;
    --mark-dot: #f2b441;

    --focus: #f2b441;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 20px 44px -20px rgb(0 0 0 / 0.7);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-wrap: break-word;
}
html:lang(hi) body { font-family: var(--font-deva); line-height: 1.8; }

img, svg { display: block; max-width: 100%; }
p, ul, ol, dl, figure { margin: 0; }
p + p { margin-top: 1em; }
p { text-wrap: pretty; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.35rem + 4.3vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.2vw, 2.85rem); }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.005em; }
html:lang(hi) h1, html:lang(hi) h2, html:lang(hi) h3 {
  font-family: var(--font-deva-display);
  letter-spacing: 0;
  line-height: 1.4;
}
html:lang(hi) h1 { font-size: clamp(2.1rem, 1.3rem + 3.3vw, 3.6rem); }
html:lang(hi) h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.4rem); }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--surface); color: var(--text); font-weight: 600;
  padding: 0.6rem 1rem; border-radius: 8px; border: 2px solid var(--focus);
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.prose { max-width: 42rem; }

/* ---------- Brand mark ---------- */
.mark-bg { fill: var(--mark-bg); }
.mark-arch { fill: var(--mark-arch); }
.mark-dot { fill: var(--mark-dot); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.35rem 1.5rem; padding-block: 0.8rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--text); text-decoration: none;
  font: 700 1.35rem/1 var(--font-display); letter-spacing: -0.01em;
}
.brand svg { width: 2.1rem; height: 2.1rem; flex: none; }
.brand b { color: var(--accent-text); font-weight: 700; }
/* DOM order is brand → lang → nav at every width, so the tab order matches what is drawn:
   narrow screens show brand + lang on row 1 and the section nav on row 2; wide screens show
   brand + lang on the left and the nav on the right. No `order` re-shuffling. */
.nav { display: flex; flex-wrap: wrap; gap: 0 0.9rem; width: 100%; }
.nav a {
  display: inline-block; padding-block: 0.4rem;
  color: var(--muted); text-decoration: none; font-size: 0.875rem;
}
.nav a:hover { color: var(--text); text-decoration: underline; }
.lang {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; min-height: 2.25rem;
  padding: 0.25rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.lang:hover { border-color: var(--text); }
.lang:lang(hi) { font-family: var(--font-deva); }
@media (min-width: 54rem) {
  .nav { width: auto; margin-inline-start: auto; gap: 0 1.25rem; }
  .nav a { font-size: 0.95rem; }
  .lang:not(:last-child) { margin-inline-start: 0; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.25rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); }
.hero__grid { display: grid; gap: 2.75rem; align-items: center; }
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 4rem; }
}
.pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-bottom: 1.4rem; padding: 0.35rem 0.9rem 0.35rem 0.75rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.9rem; font-weight: 600;
}
.pill::before {
  content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--warn-bg);
}
h1 em {
  font-style: italic;
  background: linear-gradient(transparent 70%, rgb(231 161 30 / 0.45) 70% 92%, transparent 92%);
  padding-inline: 0.05em;
}
html:lang(hi) h1 em { font-style: normal; }
.lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); color: var(--muted); max-width: 38rem; }
.lead strong { color: var(--text); font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0.65rem 1.3rem;
  border: 1.5px solid var(--brand); border-radius: 999px;
  font-weight: 650; text-decoration: none; line-height: 1.2;
}
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--ghost { color: var(--link); }
.btn:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.hero__note {
  margin-top: 1.75rem; max-width: 36rem; padding-left: 0.9rem;
  border-left: 3px solid var(--accent); color: var(--muted); font-size: 0.95rem;
}

/* Arch (jharokha window) framing the example card */
.arch {
  position: relative; isolation: isolate;
  width: min(100%, 27rem); margin-inline: auto;
  padding: 27% 7% 7%;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: linear-gradient(180deg, var(--arch-top), var(--arch-bottom));
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 0 0 7px var(--bg-band), inset 0 0 0 8px var(--line);
}
.arch::before {
  content: ""; position: absolute; inset: 8px; z-index: -1;
  border-radius: inherit;
  background: var(--pattern);
  -webkit-mask: url("/assets/jaali.svg") center top / 44px 44px repeat;
  mask: url("/assets/jaali.svg") center top / 44px 44px repeat;
}
.arch::after {
  content: ""; position: absolute; top: 1.4rem; left: 50%;
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--arch-top);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); scroll-margin-top: 0.5rem; }
.section--band { background: var(--bg-band); border-block: 1px solid var(--line); }
.section__head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.kicker {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem;
  font: 600 0.8rem/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text);
}
.kicker::before {
  content: ""; width: 2.4rem; height: 8px; flex: none;
  background: radial-gradient(circle at 4px 4px, var(--accent) 2.2px, transparent 2.8px) 0 0 / 10px 8px repeat-x;
}
html:lang(hi) .kicker { font-family: var(--font-deva); letter-spacing: 0; text-transform: none; font-size: 0.95rem; }

.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.card p { color: var(--muted); }
.icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1.1rem;
  border-radius: 12px; background: var(--brand-soft); color: var(--link);
}
.icon svg, .i { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* How it works */
.steps { list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 50rem) { .steps { grid-template-columns: 1fr 1fr; } }
.step {
  position: relative; counter-increment: step;
  padding: 1.5rem 1.5rem 1.6rem 4.6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.step::before {
  content: counter(step); position: absolute; left: 1.35rem; top: 1.05rem;
  font: 700 2.5rem/1 var(--font-display); color: var(--accent-text);
}
.step p { color: var(--muted); }
.callout {
  display: grid; gap: 0.6rem 2.5rem; margin-top: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--callout-bg); color: var(--callout-text);
  border-radius: var(--radius); border-top: 4px solid var(--accent);
}
.callout h3 { margin: 0; font-size: 1.45rem; }
.callout p { color: var(--callout-muted); }
@media (min-width: 50rem) { .callout { grid-template-columns: 13rem 1fr; } }

/* ---------- Fact cards (examples) ---------- */
.facts { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19.5rem), 1fr)); align-items: start; }
.fact {
  position: relative; display: grid; gap: 0.55rem;
  padding: 1.15rem 1.25rem 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: left;
}
.fact p + p { margin-top: 0; }
.fact__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.stamp {
  display: inline-block; transform: rotate(-3deg);
  padding: 0.28rem 0.5rem; border: 1.5px dashed currentColor; border-radius: 6px;
  font: 700 0.72rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--stamp);
}
html:lang(hi) .stamp { font-family: var(--font-deva); letter-spacing: 0; font-size: 0.8rem; line-height: 1.1; }
.fact__place { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }
.fact__name { font-weight: 650; line-height: 1.35; }
.fact__value { font: 700 2.15rem/1.1 var(--font-display); letter-spacing: -0.01em; }
.fact__value .stamp { vertical-align: middle; margin-inline-start: 0.5rem; }
.fact__withheld {
  padding: 0.6rem 0.8rem; border: 1.5px dashed var(--line-strong); border-radius: 8px;
  color: var(--muted); font-size: 0.95rem; font-weight: 600; line-height: 1.4;
}
.status {
  display: inline-flex; align-items: center; gap: 0.4rem; width: fit-content;
  padding: 0.25rem 0.7rem 0.25rem 0.5rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 650; line-height: 1.4;
}
.status .i { width: 1.05rem; height: 1.05rem; stroke-width: 2.25; }
.status--ok { color: var(--ok); background: var(--ok-bg); }
.status--warn { color: var(--warn); background: var(--warn-bg); }
.status--stale { color: var(--stale); background: var(--stale-bg); }
.meta { display: grid; gap: 0.5rem; margin-top: 0.3rem; padding-top: 0.75rem; border-top: 1px dashed var(--line-strong); }
.meta > div { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; }
.meta dt { font: 600 0.7rem/1.5 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
html:lang(hi) .meta dt { font-family: var(--font-deva); letter-spacing: 0; text-transform: none; font-size: 0.85rem; }
.meta dd { margin: 0; font-size: 0.95rem; line-height: 1.45; }
.meta dd.muted { color: var(--muted); }
@media (max-width: 24rem) {
  .meta > div { grid-template-columns: 1fr; gap: 0; }
}
.tier {
  display: inline-block; margin: 0.1rem 0 0 0.15rem; padding: 0.05rem 0.45rem; border-radius: 5px;
  background: var(--brand-soft); color: var(--link); font-size: 0.75rem; font-weight: 650; white-space: nowrap;
}
.conf { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 650; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; }
.bars span { width: 5px; border-radius: 2px; background: var(--line-strong); }
.bars span:nth-child(1) { height: 7px; }
.bars span:nth-child(2) { height: 10px; }
.bars span:nth-child(3) { height: 13px; }
.bars--3 span, .bars--2 span:nth-child(-n+2), .bars--1 span:first-child { background: currentColor; }
.conf--high { color: var(--ok); }
.conf--low { color: var(--stale); }
.fact__foot { font: 0.75rem/1.4 var(--font-mono); color: var(--muted); }
html:lang(hi) .fact__foot { font-family: var(--font-deva); font-size: 0.8rem; }
.fact__note { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.claims { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.claims li {
  display: grid; gap: 0.15rem; padding: 0.65rem 0.75rem;
  border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 8px;
}
.claims__v { font: 700 1.35rem/1.2 var(--font-display); }
.claims__src { font-size: 0.875rem; color: var(--muted); line-height: 1.45; }

.legend {
  display: grid; gap: 1rem 2rem; margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.legend dt { font-weight: 700; margin-bottom: 0.2rem; }
.legend dd { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Cities ---------- */
.cities { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .cities { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 3.5rem; } }
.map {
  container-type: inline-size;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.map svg { width: 100%; height: auto; }
.map figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.map .grat { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; fill: none; }
.map .grat-label { fill: var(--muted); font: 12px var(--font-mono); }
.map .dot { fill: var(--accent); stroke: var(--mark-bg); stroke-width: 2.5; }
.map .halo { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0.55; }
.map .label { fill: var(--text); font: 600 19px var(--font-body); paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; }
html:lang(hi) .map .label { font-family: var(--font-deva); font-size: 20px; }
.map .north { fill: var(--muted); font: 700 13px var(--font-mono); }
.map .north-arrow { stroke: var(--muted); stroke-width: 1.5; fill: none; }
/* The SVG (viewBox 620 wide) scales with the map: at 360 px it draws ~300 px wide (x0.49).
   Grow the text as the map shrinks so city labels stay >= ~13 px on screen, and drop the
   graticule labels when they would be too small to read. */
@container (width < 35rem) {
  .map .label { font-size: 24px; stroke-width: 6px; }
  html:lang(hi) .map .label { font-size: 25px; }
  .map .grat-label { font-size: 16px; }
}
@container (width < 26.25rem) {
  .map .label { font-size: 28px; }
  html:lang(hi) .map .label { font-size: 29px; }
  .map .grat-label { display: none; }
  .map .north { font-size: 22px; }
  .map .dot { r: 9px; }
}
.city-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.city-list li {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.city-list .name { font: 700 1.2rem/1.2 var(--font-display); }
html:lang(hi) .city-list .name { font-family: var(--font-deva-display); font-size: 1.25rem; line-height: 1.4; }
.city-list .alt { color: var(--muted); font-family: var(--font-body); }
.city-list .alt:lang(hi) { font-family: var(--font-deva); }
.badge {
  margin-inline-start: auto; padding: 0.15rem 0.55rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 650; white-space: nowrap;
  color: var(--muted); border: 1px solid var(--line-strong);
}
.badge--first { color: var(--on-brand); background: var(--brand); border-color: var(--brand); }

/* ---------- What's coming ---------- */
.timeline { list-style: none; padding: 0; position: relative; display: grid; gap: 1.1rem; max-width: 46rem; }
.timeline::before {
  content: ""; position: absolute; left: 0.6rem; top: 0.8rem; bottom: 0.8rem;
  border-left: 2px dashed var(--line-strong);
}
.timeline li { position: relative; padding-left: 2.6rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.45rem;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--bg-band); border: 3px solid var(--accent);
}
.timeline li:first-child::before { background: var(--accent); }
.when { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.3rem; font-size: 0.9rem; font-weight: 650; color: var(--accent-text); }
.when .badge { margin-inline-start: 0; }
.timeline h3 { margin-bottom: 0.3rem; }
.timeline p { color: var(--muted); }
.aside-note {
  display: flex; gap: 0.85rem; align-items: flex-start; margin-top: 2.5rem; max-width: 46rem;
  padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.aside-note .i { flex: none; margin-top: 0.15rem; color: var(--link); }

/* ---------- Plain pages (privacy, 404) ---------- */
.page { padding-block: clamp(2.5rem, 7vw, 5rem); }
.page h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); }
.page h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.page .prose > p, .page .prose li { color: var(--text); }
.summary {
  margin: 1.5rem 0 0.5rem; padding: 1.25rem 1.4rem;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius);
  font-size: 1.15rem;
}
.checks { list-style: none; padding: 0; display: grid; gap: 0.7rem; margin-top: 1.25rem; }
.checks li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checks .i { flex: none; margin-top: 0.2rem; color: var(--ok); stroke-width: 2.25; }
.updated { margin-top: 2.5rem; font-size: 0.9rem; color: var(--muted); }
.notfound { text-align: center; }
.notfound .wrap { max-width: 40rem; }
.notfound .big { font: 700 clamp(4rem, 3rem + 6vw, 7rem)/1 var(--font-display); color: var(--accent-text); margin-bottom: 0.5rem; }
.notfound .actions { justify-content: center; }
.notfound hr { margin: 2.5rem auto; width: 6rem; border: 0; border-top: 2px dashed var(--line-strong); }
.notfound [lang="hi"] h2 { font-family: var(--font-deva-display); letter-spacing: 0; line-height: 1.4; }
.notfound [lang="hi"] { font-family: var(--font-deva); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding-block: 2.5rem 2rem; font-size: 0.95rem; }
.site-footer::before {
  content: ""; display: block; height: 8px; margin-top: -2.5rem; margin-bottom: 2.5rem;
  background: radial-gradient(circle at 5px 4px, var(--accent) 2.2px, transparent 2.8px) 0 0 / 14px 8px repeat-x;
  opacity: 0.8;
}
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.footer-grid p { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
@media (min-width: 48rem) { .footer-links { justify-content: flex-end; } }
.footer-links a { display: inline-block; padding-block: 0.25rem; font-weight: 600; }
.footer-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.footer-meta p + p { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header .nav, .lang, .actions, .arch::before { display: none; }
  body { background: #fff; color: #000; }
}
