/* The "bahi khata" (old ledger book) look for the site's other pages (22 Nov 2026), loaded after site.css so the pages keep
   their markup: a red-brown cover round the page, the content on aged paper with a red margin line, ink-ruled cards, red
   stamps for buttons. The home page has its own bahi.css. Fonts from /site/fonts; no inline styles (security policy).
   To go back to the earlier look, remove the ledger.css (and fonts.css) link from each page. */
:root {
  --cover: #8C3F35; --cover2: #6A2E27; --paper: #ECD9AE; --cream: #F1DDB4; --red: #8E3A2F; --ink2: #3E3A58; --green: #3F6B3A;
  --yatra: "Yatra One", "Mukta", serif; --hand: "Kalam", "Mukta", cursive; --body: "Mukta", system-ui, sans-serif;
  /* site.css colours, turned into ink and paper */
  --blue: #8E3A2F; --blue-2: #8E3A2F; --sky: #D9B77A; --ink: #2E2A47; --muted: #5A4E3A; --line: rgba(62,58,88,.32);
  --bg: var(--paper); --soft: rgba(161,71,59,.05); --card: rgba(250,240,212,.6);
}
body { font-family: var(--body); font-size: 17px; color: var(--ink);
  background-color: var(--cover);
  background-image: radial-gradient(ellipse at 30% 20%, rgba(255,220,180,.10), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(0,0,0,.22), transparent 60%),
    repeating-linear-gradient(45deg, rgba(0,0,0,.07) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(255,240,220,.05) 0 2px, transparent 2px 6px); }
a { color: var(--red); }

/* header on the cover */
.top { background: rgba(106,46,39,.94); border-bottom: 0; color: var(--cream); }
.brand { color: var(--cream); font-family: var(--yatra); font-weight: 400; font-size: 23px; }
.brand img { border-radius: 9px; border: 2px solid var(--cream); background: var(--cream); padding: 2px; }
.brand small { color: var(--cream); opacity: .92; font-family: var(--body); letter-spacing: .14em; text-transform: uppercase; font-size: 10px; }
.top-links a { color: var(--cream); opacity: .92; }
.top-links a:hover, .top-links a[aria-current="page"] { color: var(--cream); opacity: 1; }
.menu-btn { background: transparent; color: var(--cream); border-color: rgba(241,221,180,.55); }
.top .btn.primary { background: transparent; color: var(--cream); border: 2px solid var(--cream); }
.top .btn.primary:hover { background: rgba(246,231,195,.12); }
.top .btn.ghost { background: transparent; color: var(--cream); border-color: rgba(241,221,180,.55); }
@media (max-width: 959px) {
  .top.open .top-links { border-top-color: rgba(241,221,180,.3); }
  .top.open .top-links a + a { border-top-color: rgba(241,221,180,.2); }
  .top.open .menu-btn { border-color: var(--cream); color: var(--cream); }
}
@media (min-width: 960px) { .top-links a[aria-current="page"] { box-shadow: 0 2px 0 var(--cream); } }

/* the page: paper in a book, with a spine on the left and the red double margin line */
main { position: relative; max-width: 1200px; margin: 8px auto 0; background-color: var(--paper);
  background-image: url(/site/img/paper-noise.svg);
  border-left: 16px solid var(--cover2); border-radius: 4px 14px 10px 4px; overflow: hidden; padding-left: 14px;
  box-shadow: 0 24px 50px rgba(30,10,5,.45), inset 0 0 0 1px rgba(90,60,20,.25), inset 0 0 90px rgba(140,90,30,.35); }
main::before { content: ""; position: absolute; top: 0; bottom: 0; left: 8px; width: 4px; border-left: 1px solid var(--red);
  border-right: 1px solid var(--red); opacity: .5; pointer-events: none; }
main.legal { max-width: 1000px; padding: 28px 22px 36px 36px; }
@media (min-width: 900px) {
  main { border-left-width: 40px; padding-left: 48px; }
  main::before { left: 30px; width: 6px; }
  main.legal { padding: 44px 48px 48px 80px; }
}

/* sections are pages of the book, ruled off in ink */
section { background: transparent; }
section + section { border-top: 2px solid var(--ink2); }
.soft, .features, .security { background: var(--soft); }
.hero, .page-hero { background: none; }
.page-hero .lead { color: var(--muted); }

h1, h2 { font-family: var(--yatra); font-weight: 400; color: var(--ink); letter-spacing: 0; }
h1 { font-size: clamp(34px, 6vw, 58px); }
h3 { font-family: var(--hand); font-weight: 700; font-size: 21px; }
.legal h2, .faq.all h2 { font-size: 24px; }
.eyebrow { background: none; padding: 0; border-radius: 0; font-family: var(--hand); color: var(--red); font-size: 18px; font-weight: 400;
  border-bottom: 1px solid var(--red); }
.section-lead, .lead { color: var(--muted); }
.more { color: var(--red); border-bottom: 1px solid var(--red); }
.more:hover { text-decoration: none; }

/* cards as ruled ledger boxes */
.grid article, .steps li, .checks li, .callout, .faq details, .trust-card, .legal-summary, .chat, .soft .callout {
  background: rgba(250,240,212,.6); border: 2px solid var(--ink2); border-radius: 0; box-shadow: 4px 4px 0 rgba(80,55,25,.18); }
.grid p, .steps p, .rlist li, .checks li, .callout, .faq details p { color: var(--muted); }
.ic { background: none; border: 1.5px solid var(--red); border-radius: 50%; color: var(--red); }
.n { background: none; border: 2px solid var(--red); color: var(--red); font-family: var(--hand); font-size: 19px; }
.checks li::before { background: none; color: var(--green); border: 1.5px solid var(--green); }
.chips li { background: rgba(250,240,212,.6); border: 1.5px solid var(--ink2); border-radius: 4px; }
.faq summary { font-family: var(--hand); font-size: 19px; font-weight: 700; }
.callout strong, .rlist strong, .checks li strong { color: var(--ink); }

/* buttons: red ink stamps */
.btn { border-radius: 6px; font-family: var(--yatra); font-weight: 400; letter-spacing: .03em; }
.btn.primary { background: rgba(161,71,59,.06); color: var(--red); border: 2.5px solid var(--red); }
.btn.primary:hover { background: rgba(161,71,59,.14); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink2); }
.btn.ghost:hover { color: var(--red); border-color: var(--red); }

/* the closing call: a slip of the cover colour */
.final-box { border-radius: 4px; background: var(--cover2); color: var(--cream); box-shadow: 5px 5px 0 rgba(80,55,25,.25); }
.final-box h2 { color: var(--cream); }
.btn.light { background: var(--cream); color: var(--cover2); }
.btn.outline-light { border-color: var(--cream); color: var(--cream); }

/* chats keep their bubbles; ours in ink */
.chat li.you { background: var(--ink2); }
.chat li.sakha { background: #FFF8E6; }
.chat li.sakha::before { color: var(--red); }
.chat li.speaking { box-shadow: 0 0 0 3px var(--sky); }
.wa-phone { box-shadow: 5px 5px 0 rgba(80,55,25,.22); }

/* screenshots pasted in the book */
.shots img, .phone img { border: 8px solid #FFF8E6; border-radius: 4px; box-shadow: 3px 4px 0 rgba(80,55,25,.25); }
.desk-shots img { border: 8px solid #FFF8E6; border-radius: 2px; box-shadow: 3px 4px 0 rgba(80,55,25,.22); }
.shots figcaption, .desk-shots figcaption, .phone figcaption, .video figcaption { font-family: var(--hand); color: var(--muted); }
.video video { border-radius: 2px; border: 6px solid #2a1612; box-shadow: 5px 5px 0 rgba(80,55,25,.2); }
.qr img { background: #FFF8E6; border: 0; border-radius: 0; box-shadow: 3px 4px 0 rgba(80,55,25,.22); }

/* legal pages */
.legal p, .legal li { color: var(--ink); }
.legal-meta { font-family: var(--hand); color: var(--red); }

/* footer on the cover */
.foot { border-top: 0; color: #E9D3A6; }
.foot a, .foot-cols a { color: #E9D3A6; }
.foot a:hover { color: #F6E7C3; }
.foot-cols strong { color: #F6E7C3; font-family: var(--yatra); font-weight: 400; font-size: 17px; }

/* videos in an old wooden TV, as on the home page (bahi.css): rabbit-ear aerial, curved screen. .video.tv resets the plain video frame */
.video.tv video{border:0;border-radius:22px / 30px;box-shadow:0 0 0 3px #1a1a1a}
.tv{position:relative;max-width:920px;margin:64px auto 0}
.tv:before,.tv:after{content:"";position:absolute;top:-58px;left:calc(50% - 5px);width:10px;height:66px;transform-origin:50% 100%;
 background:radial-gradient(circle at 5px 5px,#2b2b2b 4px,transparent 4.5px),linear-gradient(90deg,transparent 3.5px,#5d5d5d 3.5px,#5d5d5d 6.5px,transparent 6.5px)}
.tv:before{transform:rotate(-30deg)}
.tv:after{transform:rotate(26deg)}
.tv-set{position:relative;display:grid;padding:22px;border-radius:28px;border:2px solid #3b2210;
 background:linear-gradient(180deg,rgba(255,225,180,.16),transparent 30%,rgba(0,0,0,.18)),repeating-linear-gradient(92deg,#7a4a26 0 6px,#6b3f1f 6px 9px,#84532d 9px 15px,#74451f 15px 19px);
 box-shadow:inset 0 2px 0 rgba(255,230,190,.25),inset 0 -4px 0 rgba(0,0,0,.25),6px 8px 0 rgba(60,35,15,.28)}
.tv-set:before{content:"";position:absolute;top:-16px;left:calc(50% - 30px);width:60px;height:16px;border-radius:30px 30px 0 0;background:#2f2f2f}
.tv-screen{position:relative;padding:12px;border-radius:26px;background:linear-gradient(#d8c59a,#a8925f);box-shadow:inset 0 0 0 2px rgba(60,35,15,.4)}
.tv-screen video{display:block;width:100%;height:auto;border-radius:22px / 30px;background:#111;box-shadow:0 0 0 3px #1a1a1a}
.tv-screen:after{content:"";position:absolute;inset:12px;border-radius:22px / 30px;pointer-events:none;
 background:radial-gradient(ellipse at 28% 18%,rgba(255,255,255,.14),transparent 45%),repeating-linear-gradient(rgba(0,0,0,.07) 0 1px,transparent 1px 3px);
 box-shadow:inset 0 0 40px rgba(0,0,0,.55)}
.tv-legs{display:flex;justify-content:space-between;width:66%;height:26px;margin:0 auto}
.tv-legs:before,.tv-legs:after{content:"";width:16px;height:26px;border-radius:0 0 5px 5px;background:#3b2210}
.tv-legs:before{transform:skewX(14deg)}
.tv-legs:after{transform:skewX(-14deg)}
.tv figcaption{font-family:var(--hand);font-size:15px;color:var(--muted);text-align:center;line-height:24px;margin-top:6px}
@media(max-width:900px){
 .tv{margin-top:48px}
 .tv:before,.tv:after{top:-44px;height:52px}
 .tv-set{padding:12px;border-radius:20px}
 .tv-screen{padding:8px;border-radius:18px}
 .tv-screen video,.tv-screen:after{border-radius:14px / 20px}
 .tv-screen:after{inset:8px}
 .tv-legs{height:18px}.tv-legs:before,.tv-legs:after{height:18px;width:12px}
}
