:root {
  --sindoor: #c0561a;
  --maroon: #7a2410;
  --marigold: #e8901c;
  --soft: #fff0dc;
  --ground: #fffaf4;
  --surface: #ffffff;
  --ink: #221a2e;
  --ink2: #5e5468;
  --line: #f0e1cf;
  --leaf: #2f6b4f;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #14111b;
    --surface: #1f1b28;
    --ink: #f2ece3;
    --ink2: #b9afc4;
    --line: #352f42;
    --soft: #2a2433;
    --sindoor: #f5a05a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--sindoor); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.display, h1, h2 { font-family: 'Yatra One', 'Mukta', serif; font-weight: 400; line-height: 1.2; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { font-family: 'Yatra One', serif; font-size: 22px; color: var(--sindoor); }
.top nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--ink2); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--sindoor); }

/* Hero */
.hero { background: linear-gradient(135deg, #f39a2b, #c0561a 55%, #8e2f12); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); margin: 0 0 6px; }
.hero .hi { font-size: 22px; opacity: .9; margin: 0 0 16px; font-family: 'Yatra One', serif; }
.hero p.lead { font-size: 19px; max-width: 34em; margin: 0 0 26px; opacity: .95; }
.hero .icon { justify-self: center; width: min(260px, 70vw); border-radius: 56px; box-shadow: 0 24px 60px rgba(60, 10, 0, .35); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; font-size: 16px; }
.btn.light { background: #fff; color: var(--maroon); }
.btn.ghost { border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.btn[aria-disabled="true"] { cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 14px; opacity: .85; margin-top: 12px; }

/* Sections */
section { padding: 56px 0; }
section h2 { font-size: 32px; margin: 0 0 8px; }
.sub { color: var(--ink2); margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 10px 0 4px; font-size: 19px; }
.card p { margin: 0; color: var(--ink2); font-size: 15.5px; }
.ic { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; color: var(--sindoor); }
.ic svg { width: 24px; height: 24px; }
.band { background: var(--soft); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; text-align: center; }
.stats b { display: block; font-family: 'Yatra One', serif; font-size: 36px; color: var(--sindoor); font-weight: 400; }
.stats span { color: var(--ink2); }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }
.doc h1 { font-size: 38px; margin: 0 0 4px; color: var(--sindoor); }
.doc h2 { font-size: 23px; margin: 34px 0 8px; }
.doc .meta { color: var(--ink2); margin: 0 0 24px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink2); font-weight: 700; }
.box { background: var(--soft); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin: 14px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--sindoor); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink2); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--ink2); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; text-align: left; }
  .hero .icon { order: -1; width: 120px; border-radius: 28px; justify-self: start; }
  .top nav { display: none; }
  section { padding: 40px 0; }
}

/* Temples by state / deity */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 12px 0 26px; }
.tile { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.tile:hover { border-color: var(--sindoor); color: var(--sindoor); }
.tile b { font-family: 'Yatra One', serif; font-weight: 400; color: var(--sindoor); font-size: 18px; }
h3.group { font-size: 20px; margin: 8px 0 0; }
.tlist { list-style: none; padding: 0; margin: 12px 0; }
.tlist li { padding: 12px 2px; border-bottom: 1px solid var(--line); }
.t-name { font-weight: 700; }
.t-local { font-weight: 600; color: var(--ink2); margin-left: 6px; }
.t-star { color: var(--sindoor); font-size: 13px; margin-left: 6px; white-space: nowrap; }
.t-meta { color: var(--ink2); font-size: 15px; }
.t-links a { font-size: 14px; margin-right: 14px; }
.filter { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; margin: 8px 0 4px; }
.crumbs { font-size: 15px; margin: 0 0 6px; }
.crumbs a { text-decoration: none; }