/* Kurmavatar reading pages: the story, the beings and treasures, the mythology. */
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --ink: #07111d; --ink2: #0e1d2e; --line: rgba(232, 206, 150, .26); --line2: rgba(244, 238, 225, .14);
  --gold: #e3c88e; --ivory: #f4eee1; --sage: #c2cdca; --muted: #93a1a8;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(18px, 4.4vw, 56px); --measure: 44rem;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { background: var(--ink); background-image: radial-gradient(1200px 600px at 78% -10%, rgba(30, 86, 110, .34), transparent 70%), linear-gradient(180deg, #0a1826 0, var(--ink) 520px); background-repeat: no-repeat; color: var(--sage); font-family: var(--sans); font-size: 1.06rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(227, 200, 142, .4); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ivory); text-decoration-color: currentColor; }
a:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #151b22; padding: 10px 16px; z-index: 20; }
.skip:focus { left: 12px; top: 12px; }

/* header */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px 32px; flex-wrap: wrap; padding: max(14px, env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) 12px max(var(--pad), env(safe-area-inset-left)); background: rgba(7, 17, 29, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line2); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--gold); text-decoration: none; margin-right: auto; }
.brand span { font-family: var(--serif); font-size: 1.08rem; letter-spacing: .26em; color: var(--ivory); line-height: 1.15; }
.brand small { display: block; white-space: nowrap; font-family: var(--sans); font-size: .6rem; font-weight: 500; letter-spacing: .3em; color: var(--muted); margin-top: 4px; }
.mark { width: 40px; height: 40px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.mark .thin { stroke-width: 1.15; }
.bar nav { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; }
.bar nav a { color: var(--sage); text-decoration: none; font-size: .92rem; padding: 10px 0; white-space: nowrap; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ivory); }
.bar nav a[aria-current] { box-shadow: 0 1px 0 var(--gold); }
.bar nav a.play { color: #151b22; background: linear-gradient(90deg, #f1dfb3, #d4ae6d); padding: 9px 18px; border-radius: 4px; font-weight: 600; order: 9; }
.bar nav a.play:hover { filter: brightness(1.07); color: #151b22; }

/* page */
main { padding: clamp(22px, 5vw, 56px) max(var(--pad), env(safe-area-inset-right)) clamp(40px, 7vw, 90px) max(var(--pad), env(safe-area-inset-left)); max-width: calc(var(--measure) + 2 * var(--pad) + 360px); margin: 0 auto; }
article { max-width: var(--measure); margin: 0 auto; }
article.hub { max-width: 68rem; }
.crumbs { max-width: var(--measure); margin: 0 auto 26px; font-size: .78rem; letter-spacing: .04em; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs a { color: var(--muted); text-decoration: none; padding: 6px 0; } .crumbs a:hover { color: var(--ivory); }
main > .crumbs:has(+ .hub) { max-width: 68rem; }
.kicker { font-size: .7rem; font-weight: 600; letter-spacing: .36em; text-transform: uppercase; color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ivory); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.3rem); line-height: 1.08; margin-top: 14px; font-variation-settings: 'opsz' 144; font-weight: 380; text-wrap: balance; }
.deva { color: var(--gold); opacity: .85; font-size: 1.15rem; margin-top: 10px; }
.lead { font-size: clamp(1.12rem, 2.2vw, 1.3rem); line-height: 1.6; color: var(--ivory); margin-top: 22px; }
.head { padding-bottom: 28px; border-bottom: 1px solid var(--line2); }
.prose { margin-top: 8px; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.2; margin: 44px 0 12px; }
.prose h3 { font-size: 1.2rem; margin: 30px 0 8px; }
.prose p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0 0 1.3em; }
.prose li { margin-top: 8px; padding-left: 4px; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--ivory); font-weight: 600; }
.source { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line2); font-size: .9rem; color: var(--muted); }
.source span, .where { font-size: .7rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-right: 12px; }
.where { letter-spacing: 0; text-transform: none; font-weight: 400; font-size: .95rem; color: var(--sage); margin: 14px 0 0; }

/* a being's picture */
.figure { float: right; width: min(42%, 260px); margin: 0 0 18px 28px; shape-outside: circle(50%); }
.figure img { display: block; width: 100%; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .5)); }
.being .head { min-height: 200px; }

/* boxes */
.game, .see { margin-top: 36px; padding: 24px 26px; border: 1px solid var(--line2); border-radius: 8px; background: linear-gradient(180deg, rgba(20, 40, 62, .6), rgba(10, 22, 36, .6)); clear: both; }
.game h2, .see h2 { font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.game p { margin-top: 10px; color: var(--ivory); }
.see ul { list-style: none; margin-top: 8px; }
.see li a { display: block; padding: 9px 0; }
.cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 54px; padding: 0 8px 0 22px; border-radius: 4px; color: #151b22; font-weight: 600; text-decoration: none; background: linear-gradient(90deg, #f1dfb3, #d4ae6d); box-shadow: 0 0 0 1px rgba(255, 244, 214, .5) inset, 0 14px 40px rgba(0, 0, 0, .35); }
.cta:hover { color: #151b22; filter: brightness(1.07); }
.cta i { font-style: normal; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(21, 27, 34, .28); border-radius: 3px; }
.cta.small { min-height: 46px; margin-top: 16px; } .cta.small i { width: 32px; height: 32px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.pager a { display: block; padding: 16px 18px; border: 1px solid var(--line2); border-radius: 8px; text-decoration: none; color: var(--ivory); font-family: var(--serif); font-size: 1.08rem; line-height: 1.3; }
.pager a:hover { border-color: var(--line); }
.pager a span { display: block; font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.pager a[rel=next] { text-align: right; }

/* hubs */
.hub h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 46px 0 6px; }
.hub .prose { max-width: var(--measure); }
.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 22px; }
.cards a { display: flex; gap: 16px; align-items: flex-start; height: 100%; padding: 18px; border: 1px solid var(--line2); border-radius: 8px; text-decoration: none; background: rgba(244, 238, 225, .025); transition: border-color .2s ease, background .2s ease; }
.cards a:hover { border-color: var(--line); background: rgba(244, 238, 225, .05); }
.cards img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.cards small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.cards strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.16rem; line-height: 1.25; color: var(--ivory); }
.cards em { display: block; font-style: normal; font-size: .86rem; line-height: 1.5; color: var(--muted); margin-top: 6px; }

/* questions */
.faq section { padding: 6px 0 22px; border-bottom: 1px solid var(--line2); }
.faq h2 { font-size: 1.3rem; margin-top: 24px; }

/* footer */
.foot { border-top: 1px solid var(--line2); background: rgba(5, 12, 22, .6); padding: clamp(30px, 5vw, 54px) max(var(--pad), env(safe-area-inset-right)) max(34px, env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left)); }
.foot-in { max-width: 68rem; margin: 0 auto; }
.foot p { margin-top: 16px; max-width: 34rem; font-size: .95rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 22px; }
.foot nav a { color: var(--sage); text-decoration: none; font-size: .92rem; padding: 10px 0; } .foot nav a:hover { color: var(--ivory); }
.foot .fine { font-size: .8rem; color: var(--muted); }

@media (max-width: 720px) {
  body { font-size: 1.02rem; }
  .bar { gap: 2px 18px; padding-bottom: 6px; }
  .bar nav { width: 100%; gap: 0 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } .bar nav::-webkit-scrollbar { display: none; }
  .bar nav { gap: 0 16px; } .bar nav a { padding: 12px 0; font-size: .86rem; } .bar nav a.play { order: 0; padding: 8px 14px; margin: 4px 0; }
  .mark { width: 34px; height: 34px; } .brand span { font-size: 1rem; } .brand small { letter-spacing: .2em; }
  .figure { float: none; width: 168px; margin: 0 0 18px; shape-outside: none; } .being .head { min-height: 0; }
  .pager { grid-template-columns: 1fr; } .pager a[rel=next] { text-align: left; } .pager span:empty { display: none; }
  .game, .see { padding: 20px; }
  html { scroll-padding-top: 120px; }
}
@media print { .bar, .foot, .game, .pager, .see { display: none; } body { background: #fff; color: #000; } h1, h2, h3, .lead, .prose strong { color: #000; } a { color: #000; } }
