/* Disha, 6 Nov 2026: "engraved sky". From her refs' qualities, not their pieces: warm parchment, every section in its own hairline frame
   with a framed title bar, fine celestial line art in antique gold (a sun that is also the Vastu compass, planets on orbits, a jharokha arch),
   soft colour discs behind the drawings, one navy night card for the zodiac, a tall high-contrast serif with a light sans.
   Type (12 Nov revamp): Tiro Devanagari Hindi = titles and names, one weight, Hindi and English in one face · Mukta = facts and interface, both scripts. */
:root { font-synthesis: none; --serif: "Tiro Devanagari Hindi", Georgia, serif; --font: "Mukta", system-ui, sans-serif;
  --t-small: 16px; --t-body: clamp(18px, .15vw + 17.2px, 19px); --t-lead: clamp(20px, .3vw + 18px, 23px); --t-head: clamp(36px, 1.8vw + 22px, 52px);
  --ink: #2a2017; --ink2: #574636; --mute: #574435; --line: rgba(90,65,35,.16); --line2: rgba(90,65,35,.3); --frame: #dcc9ad; --panel: #fffdf9;
  --terra: #a8714a; --terra-d: #8a3d24; --brass: #b08a52; --gold: #c9a45f; --sand: #f1e6d4; --night: #1c2246; --night2: #262d5a;
  --disc-blue: #b9c4e0; --disc-sun: #f2cf8f; --disc-rose: #edbfb2; }
body { background: #fffbf3; color: var(--ink); font-family: var(--font); font-weight: 400; }
h1, h2, .h2, .h3, .wm { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
h1 { font-size: clamp(40px, 2.4vw + 22px, 60px); line-height: 1.02; }

/* the header: one framed bar, the name in the middle, the links on either side */
header, header.solid { background: transparent; box-shadow: none; border: 0; backdrop-filter: none; padding-top: 10px; }
header .wrap { position: relative; height: 62px; padding: 0 22px; border: 1px solid var(--frame); border-radius: 14px; background: rgba(251,246,238,.92); backdrop-filter: blur(8px); }
header .wm { position: absolute; left: 50%; transform: translateX(-50%); font-size: 30px; letter-spacing: .02em; } header .wm .mk { width: 1.1em; height: 1.1em; }
header .nav { flex: 1; display: flex; gap: 26px; } header .nav a { font: 400 var(--t-small)/1 var(--font); letter-spacing: .01em; color: var(--ink2); } header .nav a:nth-child(3) { margin-right: auto; }
header .nav a:hover, header .nav a[aria-current="page"] { color: var(--terra-d); }
@media (max-width: 1100px) { header .nav { gap: 16px; } }
@media (max-width: 860px) { header .nav { display: none; } header.open .nav { display: grid; } header .wm { position: static; transform: none; font-size: 26px; } header .wrap { padding: 0 8px 0 14px; } header.open .nav { top: 66px; left: -1px; right: -1px; border: 1px solid var(--frame); border-radius: 14px; background: var(--panel); } }

/* every section: a framed title bar above a framed body, a small gap between them, like pages of one book */
main > section, main > .strip { padding: 0; }
main > section { padding-top: 14px; } main > section:last-child { padding-bottom: 14px; }
main > section > .wrap:not(.tw) { border: 1px solid var(--frame); border-radius: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M12 2Q12 12 22 12Q12 12 12 22Q12 12 2 12Q12 12 12 2Z' fill='%23c9a45f'/%3E%3Cpath d='M30 22Q30 27 35 27Q30 27 30 32Q30 27 25 27Q30 27 30 22Z' fill='%23c9a45f' opacity='.7'/%3E%3Ccircle cx='24' cy='5' r='1.3' fill='%23c9a45f'/%3E%3C/svg%3E") no-repeat left 14px top 14px / 34px, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M12 2Q12 12 22 12Q12 12 12 22Q12 12 2 12Q12 12 12 2Z' fill='%23c9a45f'/%3E%3Cpath d='M30 22Q30 27 35 27Q30 27 30 32Q30 27 25 27Q30 27 30 22Z' fill='%23c9a45f' opacity='.7'/%3E%3Ccircle cx='24' cy='5' r='1.3' fill='%23c9a45f'/%3E%3C/svg%3E") no-repeat right 14px bottom 14px / 28px, var(--panel); padding: clamp(22px, 3.4vw, 52px); }
.tw { display: block !important; margin-bottom: 10px; } .tw .tbar { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 20px; border: 1px solid var(--frame); border-radius: 14px; background: var(--panel); }
.tbar .h2 { margin: 0 !important; text-align: center; font-size: var(--t-head); line-height: 1.1; max-width: 20em; }
.tbar::before, .tbar::after { content: ""; flex: 0 1 90px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 18'%3E%3Cpath d='M0 9H66' stroke='%23b08a52' stroke-width='1'/%3E%3Ccircle cx='70' cy='9' r='1.6' fill='%23b08a52'/%3E%3Cpath d='M81 1Q81 9 89 9Q81 9 81 17Q81 9 73 9Q81 9 81 1Z' fill='%23b08a52'/%3E%3C/svg%3E") no-repeat center / contain; }
.tbar::after { transform: scaleX(-1); }
@media (max-width: 860px) { .tbar::before, .tbar::after { flex-basis: 34px; } .tw .tbar { padding: 12px; gap: 10px; } }

/* the line art: antique gold hairlines that draw themselves in, sparkles that twinkle, planets that orbit */
.ornament .ln, .orn .ln { fill: none; stroke: var(--brass); stroke-width: 1; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ornament .fill, .orn .fill { fill: rgba(201,164,95,.28); } .ornament .sp, .orn .sp { fill: var(--brass); } .ornament .gold, .orn .gold { fill: var(--gold); } .ornament .dot, .orn .dot { fill: var(--brass); }
.ornament text { font: 500 22px var(--serif); fill: var(--brass); } .ornament text.north { fill: var(--care); }
@media (prefers-reduced-motion: no-preference) {
  .ornament .ln { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: drawln 2.6s cubic-bezier(.5,0,.2,1) forwards; } @keyframes drawln { to { stroke-dashoffset: 0; } }
  .ornament .rays { transform-origin: 0 0; animation: turn 120s linear infinite; } @keyframes turn { to { transform: rotate(360deg); } }
  .ornament .spin { animation: turn 30s linear infinite; } .ornament .tw { animation: twinkle 4s ease-in-out infinite alternate; } @keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
}
.ornament circle[stroke-dasharray] { stroke-dasharray: .004 .012 !important; stroke-dashoffset: 0 !important; animation: none !important; }

/* the hero: the plan on the left; the words inside a jharokha arch with the sun-compass at its crown */
.check .wrap { overflow: hidden; } @media (min-width: 861px) { .check .plan { width: min(calc((100svh - 260px) * 1.07), calc((100vw - 2 * var(--m) - 120px) * .55), 740px); } .check .side { width: min(100%, 34rem); } }
.check .side { position: relative; isolation: isolate; padding-top: 262px; padding-bottom: 30px; text-align: center; justify-items: center; }
.check .side .row, .check .trust { justify-content: center; } .check h1 { font-size: clamp(40px, 1.4vw + 30px, 54px); } .check .side p.sub { color: var(--ink2); }
.sky { position: absolute; z-index: -1; left: 50%; top: 0; width: 520px; height: 100%; transform: translateX(-50%); pointer-events: none; }
.sky svg { position: absolute; inset: -10px -40px 0; width: calc(100% + 80px); height: calc(100% + 10px); overflow: visible; }
.sky .disc { position: absolute; border-radius: 50%; mix-blend-mode: multiply; opacity: .55; } .sky .d1 { width: 90px; height: 90px; left: calc(50% + 50px); top: 60px; background: var(--disc-blue); } .sky .d2 { width: 120px; height: 120px; left: calc(50% - 150px); top: 108px; background: var(--disc-sun); } .sky .d3 { width: 64px; height: 64px; left: calc(50% + 92px); top: 168px; background: var(--disc-rose); }
@media (max-width: 860px) { .check .side { padding-top: 0; text-align: left; justify-items: start; } .sky { display: none; } .check .side .row, .check .trust { justify-content: flex-start; } }

/* buttons and links: a warm rose pill; secondary actions a hairline pill */
.btn { background: var(--terra-d); color: #fffaf3; font: 500 var(--t-body)/1 var(--font); letter-spacing: .01em; box-shadow: none; } .btn:hover { background: #6e2f1b; box-shadow: none; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); } .btn.line:hover { background: rgba(176,138,82,.1); color: var(--ink); }
.link { font-weight: 500; text-decoration-color: var(--brass); }

/* free tools: pastel cards, an engraved icon on a soft disc, a hairline arrow */
.tiles { gap: 14px; } .tile { position: relative; gap: 4px; padding: 22px 20px 18px; border-radius: 14px; box-shadow: none; border: 1px solid var(--frame); }
.tile:nth-child(4n+1) { background: #f6e5d3; } .tile:nth-child(4n+2) { background: #efe0e6; } .tile:nth-child(4n+3) { background: #e2e7f1; } .tile:nth-child(4n) { background: #f2ead4; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -24px rgba(90,60,30,.55); }
.tile .ic { width: 46px; height: 46px; stroke: var(--brass); stroke-width: 1.3; padding: 6px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 6px rgba(255,255,255,.25); }
.tile b { margin-top: 12px; font: 500 calc(var(--t-lead) + 4px)/1.1 var(--serif); } .tile span { color: var(--ink2); }
.tile::after { content: ""; display: block; margin-top: 12px; width: 84px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 10'%3E%3Cpath d='M0 5H82M77 1L82 5L77 9' fill='none' stroke='%23a4553b' stroke-width='1'/%3E%3C/svg%3E") no-repeat left center / contain; transition: width .3s; } .tile:hover::after { width: 100px; }

/* cards everywhere: frames, not shadows */
.sheet, .mres, .tcard, .pcard, .rcard, .paper, .times > div { box-shadow: none !important; border: 1px solid var(--frame); }
.tcard, .pcard, .rcard, .paper { border-radius: 14px; background: #fffdf8; } .tgrid > div { background: var(--panel); border: 1px solid rgba(220,201,173,.6); }
.pcard .coin { width: 92px; height: 116px; border-radius: 46px 46px 10px 10px; font: 500 var(--t-head)/1 var(--serif); color: var(--brass); background: radial-gradient(circle at 50% 30%, #fffaf0, #f1e2c6 70%); box-shadow: inset 0 0 0 1px var(--frame), inset 0 0 0 6px #fffaf0, inset 0 0 0 7px var(--frame); }
.pcard b, .rcard b { font-size: calc(var(--t-lead) + 4px); }
.rcard li::before { width: 9px; height: 9px; border: 0; transform: none; top: .35em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0Q5 5 10 5Q5 5 5 10Q5 5 0 5Q5 5 5 0Z' fill='%23b08a52'/%3E%3C/svg%3E") no-repeat center / contain; }
.wgrid li { border-top: 0; padding-top: 0; } .wgrid li::before { content: ""; display: block; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 50%; background: radial-gradient(circle, rgba(201,164,95,.25), rgba(201,164,95,0) 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='20' fill='none' stroke='%23b08a52'/%3E%3Cpath d='M22 9Q22 22 35 22Q22 22 22 35Q22 22 9 22Q22 22 22 9Z' fill='%23b08a52'/%3E%3C/svg%3E") no-repeat center / contain; }
.readings, .today3, .quiz, .reading, footer { background: transparent; }

/* the night card: your rashi on a gold zodiac wheel */
.rashi > .wrap:not(.tw) { background: radial-gradient(120% 90% at 30% 20%, var(--night2), var(--night) 70%); border-color: #3a4170; color: #efe6d6; position: relative; overflow: hidden; }
.rashi .sub, .rashi .rsay { color: #d9cdb8; } .rashi .sub .link { color: #f2d9a4; text-decoration-color: rgba(242,217,164,.5); } .rashi .rsay b { color: #fff3dc; }
.rwrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 60px); align-items: center; position: relative; z-index: 1; }
.rwheel svg { width: 100%; max-width: 460px; display: block; margin: 0 auto; overflow: visible; }
.rwheel .ln { stroke: #c9a45f; stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; } .rwheel .sp { fill: #e7c47f; } .rwheel .gold { fill: #f2d9a4; }
.rwheel .wheel { transition: transform 1.1s cubic-bezier(.45,0,.2,1); }
.zg { cursor: pointer; } .zg circle { fill: rgba(255,255,255,.03); stroke: rgba(201,164,95,.55); stroke-width: 1; transition: fill .3s; } .zg text { font: 400 28px var(--serif); fill: #e7c47f; }
.zg:hover circle, .zg:focus-visible circle { fill: rgba(231,196,127,.18); } .zg.on circle { fill: #e7c47f; stroke: #e7c47f; } .zg.on text { fill: var(--night); } .zg.moon circle { stroke: #fff3dc; stroke-dasharray: 3 3; }
.rashi .stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } .rashi .stars .dot, .rashi .stars .sp { fill: #e9dcc0; }
.rgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: var(--g3); } .rgrid button { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(201,164,95,.35); color: #efe6d6; padding: 10px 4px; border-radius: 10px; }
.rgrid .g { color: #e7c47f; font-size: 28px; } .rgrid b { font: 500 var(--t-body)/1.1 var(--serif); color: #fff3dc; } .rgrid small { color: #b9ad97; }
.rgrid button[aria-pressed="true"] { background: #e7c47f; box-shadow: none; } .rgrid button[aria-pressed="true"] b, .rgrid button[aria-pressed="true"] .g { color: var(--night); } .rgrid button[aria-pressed="true"] small { color: #5a4a2a; }
@media (max-width: 860px) { .rwrap { grid-template-columns: minmax(0, 1fr); } .rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the strip and the footer */
.strip .wrap { justify-content: center; gap: 6px 24px; min-height: 40px; font-size: var(--t-small); } .strip { padding-top: 8px; }
footer { padding: 14px 0; } footer > .wrap { border: 1px solid var(--frame); border-radius: 18px; background: var(--panel); padding: clamp(24px, 3.4vw, 48px); }
footer .wm { font-size: 32px; }

@media (max-width: 520px) { .strip .link { display: none; } .strip .wrap { text-align: center; } }
@media (max-width: 520px) { .parts thead { display: none; } .parts tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; border-top: 1px solid var(--line); padding: 10px 0; } .parts td { border-top: 0; padding: 2px 0; } .parts td:nth-child(3) { grid-column: 1 / -1; color: var(--ink2); font-size: var(--t-small); } }
.stack > *, .paper > * { min-width: 0; } .parts { width: 100%; }
@media (max-width: 520px) { .parts, .parts tbody, .parts tfoot { display: block; } }
@media (max-width: 520px) { .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; } }

/* header (6 Nov, "why is it divided into two?"): the name on the left, one row of links, the mic to ask. No split around a centred logo. */
header .wm { position: static !important; transform: none !important; }
header .nav { flex: 0 1 auto !important; margin-left: auto; gap: clamp(16px, 2vw, 28px) !important; } header .nav a:nth-child(3) { margin-right: 0 !important; }
.hask { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--terra-d); color: #fffaf3; font: 500 var(--t-small)/1 var(--font); text-decoration: none; flex: none; }
.hask svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; } .hask:hover { background: #6e2f1b; }
@media (max-width: 860px) { .hask { margin-left: auto; padding: 0 14px 0 12px; } header .btn.menu { margin-left: 8px !important; } }
@media (max-width: 860px) { header .wrap { gap: 8px !important; } header .btn.menu { margin-left: 0 !important; } }
/* round 5: the logo is one size wherever it appears */
footer .wm { font-size: 30px; } @media (max-width: 860px) { footer .wm { font-size: 26px; } }

/* v37 (9 Nov): menu text at 16px on every page, for readers 35+ */
header .nav a { font-size: 16px; }

/* v38 (9 Nov): readers 35+ on every page: the Ask pill and footer at 16px, footer text at full strength, no italics anywhere */
header .hask { font-size: 16px; }
footer, footer a, footer p, footer li, footer .small, footer h3, footer .base { font-size: 16px; }
body[data-page] footer a, body[data-page] footer .small, body[data-page] footer .base, body[data-page] footer p { color: var(--ink2); }
body[data-page] main p, body[data-page] main li { line-height: 1.6; }
body[data-page] em, body[data-page] i:not([class]), body[data-page] .who, body[data-page] .pennote { font-style: normal; }
body[data-page] .stamp span { color: #8f2f1c; } body[data-page] .g3 button .dn { color: #574435; }
body[data-page] .draft { font: 500 var(--t-body)/1.55 var(--font) !important; font-style: normal !important; }
body[data-page] td, body[data-page] .td { font-weight: 600; } body[data-page] main .h2 { font-weight: 500; }

/* wm tap target, 11 Nov: 44px tall on phones */
header .wm, footer .wm { min-height: 44px; display: inline-flex; align-items: center; }
