/* Peace Library
   Deep monsoon green at dusk, a warm gold taken from the kasavu border,
   a characterful grotesque for the interface and a bookish serif for the stories. */
:root {
  --bg: #F2F4EF;
  --surface: #FFFFFF;
  --sunk: #F7F8F4;
  --ink: #0E1F1B;
  --ink-2: #34463F;
  --muted: #64766E;
  --line: rgba(14, 31, 27, .11);
  --forest: #0E2620;
  --forest-2: #18392F;
  --leaf: #2F7A5A;
  --gold: #E0B04A;
  --gold-ink: #8A630E;
  --danger: #A33A2C;

  --display: 'Bricolage Grotesque', 'Noto Sans Malayalam', 'Noto Sans Devanagari', 'Noto Sans Tamil', 'Noto Naskh Arabic', system-ui, sans-serif;
  --read: 'Literata', Georgia, serif;
  --r-xl: 28px; --r-lg: 20px; --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 31, 27, .06), 0 18px 40px -18px rgba(14, 31, 27, .28);
  --wrap: 76rem;
}
:lang(ml) { font-family: 'Noto Sans Malayalam', var(--display); }
:lang(hi) { font-family: 'Noto Sans Devanagari', var(--display); }
:lang(ta) { font-family: 'Noto Sans Tamil', var(--display); }
:lang(ar), :lang(ur) { font-family: 'Noto Naskh Arabic', var(--display); }
:lang(en), :lang(fr), :lang(es) { font-family: var(--display); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font-family: var(--display); font-size: 1.02rem; line-height: 1.55; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--leaf); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: .5rem; transform: translateY(-160%); background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 999px; z-index: 99; }
.skip:focus { transform: none; }
[hidden] { display: none !important; }

.kasavu { height: 7px; background: linear-gradient(to bottom, var(--gold) 0 3px, transparent 3px 5px, var(--gold) 5px 6px, transparent 6px); }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot .kasavu { width: 7rem; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .3; } }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 2.9rem; padding: .7em 1.35em; border: 1px solid transparent; border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s, transform .18s, box-shadow .18s; box-shadow: inset 0 0 0 1px var(--line); }
.btn:hover { color: var(--ink); background: var(--sunk); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); color: #fff; box-shadow: none; }
.btn.primary:hover { background: var(--leaf); color: #fff; }
.btn.light { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); }
.btn.light:hover { background: var(--gold); }
.btn.glass { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn.glass:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: rgba(14, 31, 27, .06); }
.btn.small { min-height: 2.35rem; padding: .45em 1em; font-size: .88rem; }
.btn.wide { width: 100%; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn.busy { opacity: .6; pointer-events: none; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* ---------- header */
.site-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem clamp(1.25rem, 3vw, 2.25rem); background: rgba(242, 244, 239, .82); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1.08rem; letter-spacing: -.02em; text-decoration: none; color: inherit; }
.mark { width: 1.35rem; height: 1.35rem; border-radius: 50%; background: radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px), radial-gradient(circle, transparent 0 6px, var(--gold) 6.5px 7.5px, transparent 8px); box-shadow: inset 0 0 0 1.5px var(--gold); }
.head-nav { display: flex; align-items: center; gap: .25rem; font-size: .93rem; font-weight: 500; }
.head-nav a, .head-nav .linkish { color: inherit; text-decoration: none; padding: .5rem .85rem; border-radius: 999px; }
.head-nav a:hover, .head-nav .linkish:hover { background: rgba(14, 31, 27, .06); }
.head-nav .nav-cta { background: var(--ink); color: #fff; margin-inline-start: .35rem; }
.head-nav .nav-cta:hover { background: var(--leaf); }
.site-head.overlay { position: relative; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; color: #fff; }
.site-head.overlay .head-nav a:hover, .site-head.overlay .linkish:hover { background: rgba(255, 255, 255, .14); }
.site-head.overlay .nav-cta { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); backdrop-filter: blur(12px); }
.site-head.overlay .nav-cta:hover { background: #fff; color: var(--ink); }

.lang-toggle { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; margin-inline-end: .5rem; background: rgba(14, 31, 27, .06); }
.lang-toggle button { font: inherit; font-size: .9rem; font-weight: 500; border: 0; background: transparent; color: inherit; padding: .4rem .85rem; min-height: 2.25rem; border-radius: 999px; cursor: pointer; }
.lang-toggle button:hover { background: rgba(14, 31, 27, .08); }
.lang-toggle button[aria-pressed=true] { background: var(--ink); color: #fff; }
.overlay .lang-toggle { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.overlay .lang-toggle button:hover { background: rgba(255, 255, 255, .16); }
.overlay .lang-toggle button[aria-pressed=true] { background: #fff; color: var(--ink); }
.hero h1:lang(ml), .hero h1:lang(hi) { font-size: clamp(2.1rem, 1.2rem + 3.8vw, 4.6rem); letter-spacing: 0; line-height: 1.25; max-width: 18ch; }
.statement:lang(ml), .statement:lang(hi) { font-size: clamp(1.25rem, .95rem + 1.1vw, 1.8rem); line-height: 1.7; letter-spacing: 0; }
.peace-line:lang(ml), .peace-line:lang(hi) { font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3.2rem); letter-spacing: 0; line-height: 1.3; }
.peace-text:lang(ml), .peace-text:lang(hi), .portrait figcaption span:lang(ml), .portrait figcaption span:lang(hi) { line-height: 1.85; }
.demo-banner { position: fixed; z-index: 60; bottom: 12px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); background: rgba(14, 31, 27, .92); color: #CFE0D8; font-size: .78rem; line-height: 1.45; padding: .5rem 1rem; border-radius: 999px; text-align: center; backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.menu-btn, .aa-btn { display: none; }
.banner-x { float: right; margin: -.2rem -.4rem 0 .6rem; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-size: 1rem; line-height: 1; cursor: pointer; }
.demo-banner b { color: #fff; font-weight: 600; }

/* ---------- landing: hero */
.landing { padding-top: 12px; }
.hero { position: relative; margin: 0 12px; min-height: min(calc(100svh - 24px), 62rem); border-radius: var(--r-xl); overflow: hidden; background: var(--forest); color: #fff; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; grid-template-areas: "head head" ". ." "body langs"; }
.hero-art, .hero-shade { position: absolute; inset: 0; z-index: -1; }
.hero-art > img, .hero-art > svg { width: 100%; height: 100%; object-fit: cover; }
.hero-art > svg { animation: drift 30s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes drift { to { transform: scale(1.06); } }
.hero-shade { background: linear-gradient(180deg, rgba(8, 22, 18, .5) 0%, rgba(8, 22, 18, 0) 22%, rgba(8, 22, 18, 0) 48%, rgba(8, 22, 18, .78) 100%); }
.hero .site-head { grid-area: head; }
.hero-body { grid-area: body; padding: 0 clamp(1.25rem, 4.5vw, 4rem) clamp(1.75rem, 5vw, 4rem); }
.chip { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .7rem; margin-bottom: 1.4rem; border-radius: 999px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: .9rem; font-weight: 500; }
.chip::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(224, 176, 74, .25); }
.hero h1 { font-size: clamp(2.8rem, 1.4rem + 5.6vw, 6.6rem); font-weight: 500; letter-spacing: -.045em; line-height: .96; max-width: 14ch; margin-bottom: 2rem; text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.lang-card { grid-area: langs; align-self: end; margin: 0 clamp(1.25rem, 3vw, 2.5rem) clamp(1.75rem, 5vw, 4rem) 0; width: 17.5rem; padding: 1.1rem 1.2rem 1.2rem; border-radius: var(--r-lg); background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.lang-card p { font-size: .88rem; margin-bottom: .8rem; opacity: .9; }
.lang-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.lang-card li { padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .95rem; }
.hero h1, .hero .chip, .hero .actions, .lang-card { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 { animation-delay: .08s; } .hero .actions { animation-delay: .18s; } .lang-card { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- landing: sections */
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 600; letter-spacing: 0; color: var(--gold-ink); margin-bottom: 1.3rem; }
.kicker::before { content: ''; width: 1.6rem; height: 2px; background: currentColor; border-radius: 2px; }
.reading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; padding-block: clamp(5rem, 11vw, 9rem); }
.statement { font-size: clamp(1.55rem, 1.05rem + 1.7vw, 2.55rem); line-height: 1.28; letter-spacing: -.025em; font-weight: 400; color: var(--ink); margin: 0; text-wrap: pretty; }
.portrait { position: relative; margin: 0 0 2rem; }
.portrait-img { aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.portrait-img > img, .portrait-img > svg { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { position: absolute; inset-inline-start: -2rem; bottom: -2rem; max-width: 21rem; padding: 1rem 1.15rem; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); font-size: .9rem; line-height: 1.5; color: var(--ink-2); display: grid; gap: .25rem; }
.portrait figcaption strong { color: var(--ink); font-size: .95rem; }
.statement p { margin: 0 0 .75em; } .statement p:last-child { margin-bottom: 0; }
.peace-text p { margin: 0 0 1em; } .peace-text p:last-child { margin-bottom: 0; }
.about p { margin: 0 0 .6em; } .about p:last-child { margin-bottom: 0; }

.peace-card { position: relative; overflow: hidden; border-radius: var(--r-xl); background: radial-gradient(120% 90% at 85% 50%, var(--forest-2) 0%, var(--forest) 60%); color: #DCE8E2; padding: clamp(3.5rem, 9vw, 7.5rem) clamp(1.5rem, 6vw, 6rem); isolation: isolate; }
.peace-ripples { position: absolute; z-index: -1; width: min(60rem, 120%); right: -18%; top: 50%; transform: translateY(-50%); color: var(--gold); opacity: .8; }
.peace-body { max-width: 40rem; }
.peace .kicker { color: var(--gold); }
.peace-line { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4.4rem); font-weight: 500; line-height: 1.02; letter-spacing: -.04em; color: #fff; margin-bottom: 1.6rem; text-wrap: balance; }
.peace-text { font-size: 1.08rem; line-height: 1.7; color: #B9CCC3; max-width: 34em; margin: 0; }
.ripples circle { transform-origin: 500px 500px; }
@media (prefers-reduced-motion: no-preference) {
  .ripples circle:not(:first-child) { animation: ripple 8s ease-in-out infinite; }
  .ripples circle:nth-child(3n) { animation-delay: -2.6s; } .ripples circle:nth-child(3n+1) { animation-delay: -5.2s; }
}
@keyframes ripple { 50% { transform: scale(1.04); opacity: .2; } }

.places { padding-top: clamp(4rem, 9vw, 7rem); }
.places .kicker { display: flex; }
.strip { display: flex; gap: 1rem; overflow-x: auto; padding: 0 max(1.25rem, (100vw - var(--wrap)) / 2) 1rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip img { height: clamp(15rem, 34vw, 26rem); width: auto; flex: none; border-radius: var(--r-lg); scroll-snap-align: start; object-fit: cover; }

.join { text-align: center; display: grid; justify-items: center; padding-block: clamp(5rem, 10vw, 8rem); }
.join h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); font-weight: 500; letter-spacing: -.04em; }
.join p { font-size: 1.15rem; color: var(--ink-2); max-width: 32em; margin-bottom: 1.8rem; text-wrap: balance; }
.join .actions { justify-content: center; }

.site-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.6rem 4.5rem; border-top: 1px solid var(--line); font-size: .88rem; }
.site-foot p { margin: 0; }

/* ---------- auth */
.auth { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr; isolation: isolate; color: #fff; }
.auth-bg, .auth-shade { position: absolute; inset: 0; z-index: -1; }
.auth-bg > img, .auth-bg > svg { width: 100%; height: 100%; object-fit: cover; }
.auth-shade { background: linear-gradient(180deg, rgba(8, 22, 18, .55), rgba(8, 22, 18, .25) 40%, rgba(8, 22, 18, .6)); }
.auth-card { align-self: center; justify-self: center; width: min(100% - 2rem, 27rem); margin-block: 1.5rem 5rem; padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: var(--r-xl); background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.auth-card h1 { font-size: 2rem; letter-spacing: -.035em; margin-bottom: .35rem; }
.sub { color: var(--muted); margin-bottom: 1.5rem; }
.pending-mark { width: 4.5rem; color: var(--gold); margin-bottom: 1rem; }
form { display: grid; gap: .95rem; }
label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 500; color: var(--ink-2); }
input, textarea, select { font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .7em .9em; min-height: 3rem; width: 100%; transition: border-color .15s, box-shadow .15s, background-color .15s; }
input:hover, textarea:hover, select:hover { border-color: rgba(14, 31, 27, .22); }
input:focus, textarea:focus, select:focus { outline: none; background: #fff; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(47, 122, 90, .16); }
textarea { line-height: 1.75; resize: vertical; }
input.code { letter-spacing: .5em; font-size: 1.3rem; font-weight: 600; text-align: center; }
.hint { font-size: .85rem; color: var(--muted); margin: -.35rem 0 0; font-weight: 400; }
.hint.pad { padding: .8rem 1rem 0; margin: 0; }
.form-alert { color: var(--danger); font-size: .88rem; min-height: 1.2em; margin: 0; }
.form-alert.ok { color: var(--leaf); }
.notice-ok { display: flex; flex-direction: column; gap: .2rem; margin: 0 0 1.4rem; padding: .85rem 1rem; border-radius: .7rem; background: color-mix(in srgb, var(--leaf) 12%, transparent); border: 1px solid color-mix(in srgb, var(--leaf) 35%, transparent); color: var(--ink); font-size: .92rem; }
.notice-ok strong { color: var(--leaf); font-weight: 600; }
.alt { font-size: .9rem; margin: 1.2rem 0 0; text-align: center; }
.alt.split { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; text-align: start; }
.auth-card .linkish { color: var(--leaf); text-decoration: underline; text-underline-offset: .2em; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

/* ---------- library */
.page { padding-block: clamp(2rem, 5vw, 3.5rem) 5rem; min-height: 70vh; }
.lib-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.hello { color: var(--muted); margin: 0 0 .25rem; font-weight: 500; }
.lib-head h1 { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.8rem); letter-spacing: -.045em; font-weight: 500; margin: 0; }
.read-in { display: grid; gap: .5rem; }
.read-in > span { font-size: .85rem; font-weight: 500; color: var(--muted); }
.switch { display: inline-flex; align-items: center; gap: .6rem; margin-top: .35rem; font-size: .88rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 2.4rem; height: 1.4rem; border-radius: 999px; background: #C9D3CE; position: relative; transition: background-color .2s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: calc(1.4rem - 6px); height: calc(1.4rem - 6px); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .track { background: var(--leaf); }
.switch input:checked + .track::after { transform: translateX(1rem); }
.switch input:focus-visible + .track { outline: 2px solid var(--gold); outline-offset: 2px; }
.check.big { font-size: .92rem; font-weight: 500; }
.panel.announce { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; max-width: 46rem; }
.panel.announce p { margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pills button { font: inherit; font-size: .95rem; padding: .45rem .95rem; min-height: 2.5rem; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background-color .15s, color .15s; }
.pills button:hover { background: var(--sunk); }
.pills button[aria-pressed=true] { background: var(--ink); color: #fff; box-shadow: none; }

.continue { display: flex; gap: 1.25rem; align-items: center; padding: 1rem 1.4rem 1rem 1rem; margin: 0 0 3rem; max-width: 40rem; background: radial-gradient(120% 140% at 0% 0%, var(--forest-2), var(--forest)); border-radius: var(--r-lg); text-decoration: none; color: #fff; box-shadow: var(--shadow); transition: transform .2s; }
.continue:hover { color: #fff; transform: translateY(-2px); }
.continue-text { display: grid; gap: .15rem; flex: 1; min-width: 0; }
.eyebrow { font-size: .82rem; font-weight: 600; color: var(--gold); }
.continue-text strong { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.continue .from { color: #A9C1B6; font-size: .92rem; }
.bar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); margin-top: .7rem; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.continue-go { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-size: 1.5rem; flex: none; }
[dir=rtl] .continue-go { transform: scaleX(-1); }

.shelf { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 2.5rem 1.75rem; }
.shelf a { display: grid; gap: .35rem; text-decoration: none; color: var(--ink); }
.shelf a:hover .cover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 30px 50px -22px rgba(14, 31, 27, .5); }
.book-title { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; margin-top: .65rem; line-height: 1.3; }
.book-meta { color: var(--muted); font-size: .88rem; }
.empty { color: var(--muted); font-size: 1.1rem; max-width: 30em; padding: 2rem; border: 1.5px dashed var(--line); border-radius: var(--r-lg); }

.cover { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--r); background: var(--forest); box-shadow: 0 1px 2px rgba(14, 31, 27, .12), 0 22px 40px -22px rgba(14, 31, 27, .55); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.cover::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6%; z-index: 2; background: linear-gradient(90deg, rgba(0, 0, 0, .22), rgba(255, 255, 255, .08) 60%, transparent); }
.cover > img, .cover > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.gen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 22, 18, .1) 30%, rgba(8, 22, 18, .75)); }
.cover > .kasavu { position: absolute; z-index: 2; inset: auto 12% 7%; }
.cover-title { position: absolute; z-index: 2; inset: auto 12% 13%; color: #fff; font-weight: 600; font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
.cover.sm { width: 4.2rem; flex: none; border-radius: 8px; }
.cover.xs { width: 3rem; flex: none; border-radius: 6px; }
.cover.sm .cover-title, .cover.xs .cover-title, .cover.sm .kasavu, .cover.xs .kasavu { display: none; }
.cover.lg { width: min(17rem, 42vw); flex: none; border-radius: var(--r-lg); }
.cover.lg .cover-title { font-size: 1.5rem; }

.crumb { font-size: .9rem; margin-bottom: 1.25rem; }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.book-head { display: flex; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; margin-bottom: 3.5rem; flex-wrap: wrap; }
.book-info { flex: 1; min-width: 17rem; display: grid; gap: 1.25rem; justify-items: start; }
.book-info h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; margin: 0; }
.blurb { font-size: 1.15rem; color: var(--ink-2); max-width: 32em; margin: 0; line-height: 1.6; }
.book-sub { font-size: 1.2rem; color: var(--ink-2); margin: -.2rem 0 0; font-family: 'Noto Serif Malayalam', var(--read); }
.blurb p { margin: 0 0 .7em; }
.blurb p:last-child { margin-bottom: 0; }
.panel.notice { background: #FFF8E6; box-shadow: inset 0 0 0 1px #EBD7A2; margin: 0 0 1.5rem; display: grid; gap: .8rem; justify-items: start; max-width: 46rem; }
.panel.notice p { margin: 0; color: var(--ink-2); }
.toc { padding: 0; margin: 0; max-width: 46rem; list-style: none; display: grid; gap: .55rem; }
.toc a { display: flex; gap: 1.1rem; align-items: center; padding: 1.05rem 1.25rem; background: var(--surface); border-radius: var(--r); text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, transform .15s; }
.toc a:hover { box-shadow: inset 0 0 0 1px var(--leaf), var(--shadow); transform: translateX(3px); }
.toc-no { font-size: .85rem; font-weight: 600; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.toc-title { flex: 1; font-size: 1.12rem; font-weight: 500; }
.toc-meta { display: flex; gap: .6rem; align-items: center; font-size: .85rem; color: var(--muted); }
.tag { font-size: .78rem; padding: .15rem .55rem; border-radius: 999px; background: var(--bg); color: var(--ink-2); }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(224, 176, 74, .2); }

/* ---------- reader */
body.reading-mode { --rbg: #FBFBF8; --rfg: #1A2824; --rsoft: #66776F; --rrule: rgba(26, 40, 36, .12); background: var(--rbg); color: var(--rfg); transition: background-color .35s, color .35s; }
body.theme-dusk { --rbg: #F0E9DC; --rfg: #2C2A22; --rsoft: #75705F; --rrule: rgba(44, 42, 34, .14); }
body.theme-night { --rbg: #0F1B18; --rfg: #D5DFDA; --rsoft: #8EA39A; --rrule: rgba(213, 223, 218, .14); }
.progress-line { position: fixed; inset: 0 0 auto; height: 3px; z-index: 40; }
.progress-line i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 0 3px 3px 0; }
.read-bar { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: .75rem 1rem; padding: .65rem clamp(1rem, 3vw, 2rem); background: color-mix(in srgb, var(--rbg) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rrule); flex-wrap: wrap; font-size: .9rem; }
.read-back { color: var(--rsoft); text-decoration: none; font-weight: 500; padding: .4rem .7rem; border-radius: 999px; }
.read-back:hover { color: var(--rfg); background: var(--rrule); }
.read-tools { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.lang-select select { min-height: 2.35rem; padding: .3rem 2rem .3rem .9rem; border-radius: 999px; background-color: transparent; color: var(--rfg); border: 1px solid var(--rrule); font-size: .88rem; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.lang-select select option { color: #000; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rrule); }
.seg button { background: transparent; color: var(--rfg); border: 0; border-radius: 999px; font: inherit; font-size: .85rem; padding: .3em .8em; min-height: 2rem; cursor: pointer; }
.seg button:hover { background: var(--rrule); }
.seg button[aria-pressed=true] { background: var(--rfg); color: var(--rbg); }
.reader { --read-scale: 1; width: min(100% - 2.5rem, 38rem); margin: 0 auto; padding: clamp(2.5rem, 7vw, 5rem) 0 5rem; }
.reader article { font-size: calc(1.15rem * var(--read-scale)); }
.chapter-no { display: flex; gap: 1.25rem; color: var(--rsoft); font-size: .78em; font-weight: 500; margin-bottom: 1.25rem; }
.reader h1 { font-size: 2.3em; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; margin-bottom: .8em; text-wrap: balance; }
.reader h1:lang(ml), .reader h1:lang(ta), .reader h1:lang(hi) { letter-spacing: 0; line-height: 1.35; font-size: 2em; }
.read-note { font-size: .78em; color: var(--rsoft); background: var(--rrule); padding: .7em 1em; border-radius: var(--r-sm); margin-bottom: 2.2em; }
.story { font-family: var(--read); line-height: 1.8; }
.story:lang(ml) { font-family: 'Noto Serif Malayalam', var(--read); line-height: 2; font-size: .95em; }
.story:lang(hi) { font-family: 'Noto Serif Devanagari', var(--read); line-height: 1.95; }
.story:lang(ta) { font-family: 'Noto Serif Tamil', var(--read); line-height: 2; font-size: .95em; }
.story:lang(ar), .story:lang(ur) { font-family: 'Noto Naskh Arabic', var(--read); line-height: 2; }
.story p { margin: 0 0 1.15em; text-wrap: wrap; overflow-wrap: break-word; }
.story h2, .story h3 { font-family: var(--display); font-size: 1.15em; font-weight: 600; letter-spacing: -.01em; margin: 2em 0 .8em; }
.story .center { text-align: center; text-indent: 0; }
.story blockquote p { text-indent: 0 !important; }
/* Book style: indented first lines, no gaps (a new section starts flush) */
.story.style-book p { margin: 0; text-indent: 1.5em; }
.story.style-book > p:first-child, .story.style-book hr + p, .story.style-book h2 + p, .story.style-book h3 + p,
.story.style-book blockquote + p, .story.style-book .center + p:not(.center) { text-indent: 0; }
.story.style-book blockquote, .story.style-book .center { margin-block: .9em; }
.story.style-book p:last-child { margin-bottom: 1em; }
.story blockquote { margin: 1.5em 0; padding-inline-start: 1.2em; border-inline-start: 2px solid var(--gold); color: var(--rsoft); font-style: italic; }
.story hr { border: 0; height: 1.5em; margin: 2em auto; width: 4.8em; background: radial-gradient(circle, var(--gold) 2px, transparent 2.5px) center / 1.6em 100% repeat-x; }
.the-end { text-align: center; color: var(--rsoft); margin: 3.5rem 0 0; font-size: .9rem; }
.the-end::before { content: ''; display: block; width: 3.5rem; margin: 0 auto 1rem; height: 6px; background: linear-gradient(to bottom, var(--gold) 0 3px, transparent 3px 4px, var(--gold) 4px 5px, transparent 5px); }
.read-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 3rem; }
.read-nav a { display: grid; gap: .2rem; text-decoration: none; color: var(--rfg); padding: 1rem 1.2rem; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--rrule); font-weight: 500; transition: background-color .15s; }
.read-nav a:hover { background: var(--rrule); }
.read-nav .next { text-align: end; grid-column: 2; }
.read-nav .muted { color: var(--rsoft); font-size: .82rem; font-weight: 400; }

/* ---------- page view */
body.paged-mode { overflow: hidden; height: 100svh; }
.reader.paged { width: min(100% - 2rem, 76rem); padding: 14px 0 0; }
.pager { position: relative; overflow: hidden; touch-action: pan-y; cursor: default; }
.pages { transition: transform .55s cubic-bezier(.25, .8, .25, 1); will-change: transform; column-fill: auto; }
.pages article { orphans: 2; widows: 2; }
.pages h1 { break-after: avoid; }
.pages .read-note, .pages .chapter-no { break-inside: avoid; }
.pages .read-nav { break-inside: avoid; margin-top: 2rem; }
.pages .story p { break-inside: auto; }
.pages .story h2, .pages .story h3 { break-after: avoid; }
/* An open book: a soft fold down the middle on wide screens */
.pager.spread::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 9%; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .045) 42%, rgba(0, 0, 0, .09) 50%, rgba(0, 0, 0, .045) 58%, transparent); }
body.theme-night .pager.spread::after { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .25) 50%, transparent); }
/* A shadow passes over the page as it turns */
.pager::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; }
.pager.turn-next::before { animation: sweep-next .55s ease-out; }
.pager.turn-prev::before { animation: sweep-prev .55s ease-out; }
@keyframes sweep-next { 0% { opacity: .9; background: linear-gradient(270deg, rgba(0,0,0,.12), transparent 35%); } 100% { opacity: 0; } }
@keyframes sweep-prev { 0% { opacity: .9; background: linear-gradient(90deg, rgba(0,0,0,.12), transparent 35%); } 100% { opacity: 0; } }
.page-nav { display: flex; align-items: center; justify-content: center; gap: 1.25rem; padding: .7rem 0 .9rem; }
.page-no { font-size: .85rem; color: var(--rsoft); min-width: 9rem; text-align: center; font-variant-numeric: tabular-nums; }
.turn { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: transparent; color: var(--rfg); box-shadow: inset 0 0 0 1px var(--rrule); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.turn:hover:not(:disabled) { background: var(--rrule); }
.turn:disabled { opacity: .3; cursor: default; }
@media (prefers-reduced-motion: reduce) { .pager::before { display: none; } }

/* ---------- author desk */
.desk-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.desk-top h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem); font-weight: 500; letter-spacing: -.04em; margin: 0; }
.desk h2 { font-size: 1.3rem; margin-top: 2.5rem; display: flex; align-items: center; gap: .6rem; }
.desk h3 { font-size: 1.1rem; margin-top: 2rem; }
.count { font-size: .8rem; background: var(--gold); color: var(--ink); border-radius: 999px; padding: .1rem .55rem; }
.tabs { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tabs a { padding: .5rem 1.05rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .92rem; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { background: var(--ink); color: #fff; }
.desk-head { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.desk-head p { margin: 0; max-width: 40em; }
.desk-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.desk-list li { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; background: var(--surface); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.desk-list li > div { flex: 1; display: grid; min-width: 0; }
.desk-list .muted { font-size: .86rem; overflow-wrap: anywhere; }
.desk-list .order { display: flex; gap: .3rem; }
.desk-list .order .btn { min-width: 2.6rem; padding-inline: .6rem; }
.avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--leaf), var(--forest)); color: #fff; font-weight: 600; flex: none; }
.panel { background: var(--surface); border-radius: var(--r-lg); padding: 1.4rem; box-shadow: inset 0 0 0 1px var(--line); }
.panel.words { display: grid; gap: 1rem; }
.book-edit { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2.5rem; margin-bottom: 2rem; }
.cover-edit { display: grid; gap: .75rem; align-content: start; }
.cover-edit .cover { width: 100%; }
.hue input { padding: 0; min-height: 0; border: 0; background: none; accent-color: var(--leaf); box-shadow: none; }
.book-fields { display: grid; gap: 1.2rem; align-content: start; }
.narrow { max-width: 22rem; }
.chapter-list { padding: 0; list-style: none; margin: 0 0 1.25rem; display: grid; gap: .45rem; counter-reset: c; }
.chapter-list li { counter-increment: c; display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; background: var(--surface); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); flex-wrap: wrap; }
.chapter-list li::before { content: counter(c, decimal-leading-zero); color: var(--gold-ink); font-weight: 600; font-size: .85rem; }
.ch-title { flex: 1; min-width: 10rem; font-weight: 500; }
.langs { display: flex; gap: .3rem; }
.langs abbr { text-decoration: none; font-size: .7rem; font-weight: 600; padding: .15em .5em; border-radius: 999px; background: var(--bg); color: #AAB6B0; }
.langs abbr.on { background: rgba(47, 122, 90, .14); color: var(--leaf); }
.actions .icon, .icon { background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; min-width: 2.25rem; min-height: 2.25rem; cursor: pointer; font: inherit; color: var(--ink); }
.icon:disabled { opacity: .3; cursor: default; }
.save-row { position: sticky; bottom: 0; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: 2rem; padding: 1rem 0; background: linear-gradient(transparent, var(--bg) 30%); }

.langed { border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.langed-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .6rem; background: var(--sunk); border-bottom: 1px solid var(--line); }
.langed-tabs { display: flex; gap: .25rem; flex-wrap: wrap; }
.langed-tabs button { display: grid; text-align: start; background: transparent; border: 0; border-radius: var(--r-sm); padding: .4rem .8rem; font: inherit; color: var(--ink); cursor: pointer; min-height: 2.9rem; }
.langed-tabs button:hover { background: rgba(14, 31, 27, .05); }
.langed-tabs button[aria-selected=true] { background: var(--surface); box-shadow: 0 1px 2px rgba(14, 31, 27, .1), inset 0 0 0 1px var(--line); }
.langed-tabs small { font-size: .7rem; font-weight: 500; color: var(--muted); font-family: var(--display); }
.langed-tabs .st-original { color: var(--gold-ink); }
.langed-tabs .st-machine { color: #A05F0A; }
.langed-tabs .st-done { color: var(--leaf); }
.tr-box { display: grid; gap: .3rem; justify-items: end; }
.check { display: flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 400; }
.check input { width: auto; min-height: 0; }
.langed-pane { padding: 1rem; display: grid; gap: 1rem; }
.fmt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; padding: .35rem; margin-top: .2rem; background: var(--sunk); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.fmt-bar button { font: inherit; font-size: .84rem; font-weight: 500; color: var(--ink); background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 8px; padding: .35rem .65rem; min-height: 2.1rem; cursor: pointer; }
.fmt-bar button:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--leaf); }
.fmt-bar button[aria-pressed=true] { background: var(--ink); color: #fff; box-shadow: none; }
.fmt-bar .sep { width: 1px; height: 1.4rem; background: var(--line); margin: 0 .2rem; }
.fmt-bar .grow { flex: 1; }
.fmt-bar + textarea { border-top-left-radius: 0; border-top-right-radius: 0; }
.fmt-preview { border: 1px solid var(--line); border-radius: var(--r-sm); background: #FBFBF8; padding: 1.5rem clamp(1rem, 4vw, 2.5rem); max-height: 34rem; overflow: auto; color: #1A2824; font-size: 1.08rem; font-weight: 400; --gold: #E0B04A; --rsoft: #66776F; }
.fmt-preview .story { max-width: 38rem; margin: 0 auto; }
.story-opts { display: grid; gap: .9rem; margin-bottom: 1.2rem; }
.style-pick { border: 0; padding: 0; margin: 0; display: flex; gap: .75rem; flex-wrap: wrap; }
.style-pick legend { font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-bottom: .45rem; padding: 0; }
.style-pick label { display: flex; gap: .6rem; align-items: flex-start; flex: 1 1 15rem; padding: .75rem .9rem; background: var(--surface); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-weight: 400; }
.style-pick label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--leaf); }
.style-pick input { width: auto; min-height: 0; margin-top: .25rem; accent-color: var(--leaf); }
.style-pick strong { display: block; color: var(--ink); }
kbd { font: inherit; font-size: .85em; padding: .05em .4em; border-radius: 5px; background: var(--surface); box-shadow: inset 0 -1px 0 var(--line), inset 0 0 0 1px var(--line); }
.langed-pane textarea:lang(ml) { font-family: 'Noto Serif Malayalam', var(--read); }

.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.photo-slot { display: grid; gap: .6rem; align-content: start; justify-items: start; }
.photo-slot.wide { grid-column: 1 / -1; }
.photo-slot h3 { margin: 0; font-size: 1rem; }
.photo-slot p { margin: 0; font-size: .88rem; }
.thumb { margin: 0; display: grid; gap: .3rem; }
.thumb img, .thumb .ph { width: 13rem; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); background: var(--sunk); display: grid; place-items: center; color: var(--muted); font-size: .88rem; border: 1.5px dashed var(--line); }
.thumb img { border: 0; }
.thumbs { display: flex; gap: 1rem; flex-wrap: wrap; }
.thumbs .thumb img { width: 9.5rem; }

#toast { position: fixed; inset: auto auto 4.2rem 50%; transform: translate(-50%, 10px); background: var(--ink); color: #fff; padding: .75rem 1.2rem; border-radius: 999px; font-size: .9rem; max-width: calc(100% - 2rem); width: max-content; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 70; box-shadow: var(--shadow); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "head" "." "body" "langs"; }
  .lang-card { margin: 0 1.25rem 1.25rem; width: auto; }
  .reading { grid-template-columns: 1fr; }
  .portrait { max-width: 26rem; }
  .portrait figcaption { inset-inline-start: 1rem; bottom: -1.5rem; }
  .peace-ripples { width: 46rem; right: -60%; top: 30%; opacity: .35; }
  .book-edit, .photos { grid-template-columns: 1fr; }
  .cover-edit .cover { width: 10rem; }
}
@media (max-width: 34rem) {
  .landing { padding-top: 8px; }
  .lang-toggle button { padding: .35rem .65rem; font-size: .85rem; }
  .hero { margin: 0 8px; border-radius: 22px; min-height: calc(100svh - 16px); }
  .site-head { padding-inline: 1rem; }
  .wordmark { font-size: .98rem; }
  .head-nav { font-size: .88rem; }
  .head-nav a, .head-nav .linkish { padding: .45rem .6rem; }
  .peace.wrap, .join.wrap { width: calc(100% - 16px); }
  .peace-card { border-radius: 22px; }
  .page-nav { padding: .3rem 0 .5rem; }
  .continue { padding: .9rem; gap: .9rem; }
  .continue-text strong { font-size: 1.15rem; }
  .demo-banner { font-size: .68rem; border-radius: 14px; bottom: 8px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .toc a { padding: .9rem 1rem; gap: .8rem; }
  .toc-meta span:last-child { display: none; }
}
/* ---------- phones */
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 2rem); }
  /* top bar: one row, links tucked into a menu */
  .site-head { flex-wrap: nowrap; padding: .7rem 1rem; }
  .wordmark { font-size: 1rem; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .site-head.has-menu .menu-btn { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-size: .9rem; font-weight: 500; color: inherit; background: rgba(14,31,27,.06); border: 0; border-radius: 999px; padding: .5rem .9rem; min-height: 2.6rem; cursor: pointer; flex: none; }
  .overlay.has-menu .menu-btn { background: rgba(255,255,255,.16); }
  .bars, .bars::before, .bars::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
  .bars::before, .bars::after { content: ''; position: absolute; left: 0; }
  .bars::before { top: -5px; } .bars::after { top: 5px; }
  .menu-open .bars { background: transparent; } .menu-open .bars::before { top: 0; transform: rotate(45deg); } .menu-open .bars::after { top: 0; transform: rotate(-45deg); }
  .site-head.has-menu .head-nav { display: none; position: absolute; top: calc(100% + 6px); right: 1rem; left: auto; z-index: 50; flex-direction: column; align-items: stretch; gap: 2px; min-width: 13rem; padding: .4rem; background: var(--surface); color: var(--ink); border-radius: var(--r); box-shadow: 0 20px 50px -12px rgba(14,31,27,.4), inset 0 0 0 1px var(--line); }
  .site-head.has-menu.menu-open .head-nav { display: flex; }
  .site-head.has-menu .head-nav a, .site-head.has-menu .head-nav .linkish { color: var(--ink); padding: .8rem 1rem; border-radius: var(--r-sm); font-size: 1rem; text-align: start; }
  .site-head.has-menu .head-nav a:hover, .site-head.has-menu .head-nav .linkish:hover { background: var(--sunk); }
  .site-head.overlay { position: relative; }
  .head-nav .nav-cta { padding: .5rem 1rem; }

  /* home page */
  .hero-body { padding: 0 1.25rem 2rem; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); margin-bottom: 1.5rem; }
  .actions .btn { flex: 1 1 auto; }
  .reading { padding-block: 3.5rem 4rem; gap: 2.5rem; }
  .statement { font-size: 1.4rem; }
  .portrait { max-width: none; margin-bottom: 0; }
  .portrait-img { aspect-ratio: 4 / 3.4; }
  .portrait figcaption { position: relative; inset: auto; margin: -2.5rem 1rem 0; max-width: none; }
  .peace-card { padding: 3rem 1.4rem; }
  .peace-line { font-size: 2rem; }
  .join { padding-block: 4rem 3rem; }
  .join h2 { font-size: 2.2rem; }
  .site-foot { padding-bottom: 2rem; }

  /* sign-in and sign-up */
  .auth-card { width: calc(100% - 1.5rem); padding: 1.6rem 1.3rem; border-radius: 22px; margin-block: 1rem 2rem; }
  .auth-card h1 { font-size: 1.75rem; }
  .alt.split { flex-direction: column; gap: .8rem; }

  /* library and book page */
  .page { padding-block: 1.5rem 3rem; }
  .lib-head { margin-bottom: 1.5rem; }
  .lib-head h1 { font-size: 2.4rem; }
  .continue { max-width: none; margin-bottom: 2rem; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .book-title { font-size: 1rem; }
  .cover-title { font-size: 1rem; inset: auto 10% 14%; overflow-wrap: anywhere; }
  .book-head { flex-direction: column; align-items: flex-start; gap: 1.5rem; margin-bottom: 2.5rem; }
  .cover.lg { width: 52vw; max-width: 15rem; }
  .cover.lg .cover-title { font-size: 1.15rem; }
  .book-info { min-width: 0; width: 100%; gap: 1rem; }
  .book-info h1 { font-size: 2.1rem; }
  .book-info h1:lang(ml) { font-size: 1.8rem; line-height: 1.35; }
  .book-info .btn.primary { width: 100%; }
  .toc a { padding: .9rem 1rem; gap: .8rem; }
  .toc-title { font-size: 1.02rem; }

  /* reader: one slim bar, settings behind "Aa" */
  .read-bar { flex-wrap: nowrap; justify-content: space-between; padding: .45rem .6rem; gap: .5rem; position: sticky; }
  .read-back { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; padding: .45rem .5rem; }
  .aa-btn { display: inline-grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: transparent; color: var(--rfg); box-shadow: inset 0 0 0 1px var(--rrule); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
  .read-bar.open .aa-btn { background: var(--rfg); color: var(--rbg); }
  .read-tools { display: none; position: absolute; top: calc(100% + 6px); right: .6rem; z-index: 40; flex-direction: column; align-items: stretch; gap: .6rem; padding: .8rem; border-radius: var(--r); background: var(--rbg); box-shadow: 0 20px 50px -12px rgba(0,0,0,.35), inset 0 0 0 1px var(--rrule); }
  .read-bar.open .read-tools { display: flex; }
  .read-tools .seg { display: flex; }
  .read-tools .seg button { flex: 1; min-height: 2.6rem; font-size: .9rem; }
  .reader { width: calc(100% - 2.2rem); padding-top: 1.8rem; }
  .reader.paged { width: calc(100% - 2.2rem); padding-top: 10px; }
  .reader article { font-size: calc(1.08rem * var(--read-scale)); }
  .reader h1 { font-size: 1.9em; }
  .read-nav { grid-template-columns: 1fr; }
  .read-nav .next { grid-column: 1; }
  .read-nav span:empty { display: none; }
  .turn { width: 3rem; height: 3rem; }

  /* author desk */
  .desk-top { margin-bottom: 1.25rem; }
  .desk-top h1 { font-size: 2rem; }
  .tabs { width: 100%; }
  .tabs a { flex: 1; text-align: center; padding: .55rem .5rem; font-size: .88rem; }
  .desk-head { flex-direction: column; align-items: stretch; }
  .desk-list li { flex-wrap: wrap; }
  .desk-list li > div { flex: 1 1 calc(100% - 4rem); }
  .people li > .btn { margin-inline-start: 3.5rem; }
  .desk-list .muted { overflow-wrap: normal; word-break: normal; }
  .chapter-list li { gap: .6rem; }
  .actions { margin-inline-start: auto; }
  .langed-bar { align-items: stretch; }
  .tr-box { justify-items: stretch; }
  .langed-pane { padding: .75rem; }
  .fmt-bar button { padding: .45rem .6rem; min-height: 2.5rem; }
  .fmt-bar .grow { display: none; }
  .save-row { position: static; background: none; }
  .save-row .btn.primary { flex: 1 1 100%; }
  .photos { padding: 1rem; }
  .thumb img, .thumb .ph { width: 100%; max-width: 20rem; }
  .thumbs .thumb { width: calc(50% - .5rem); } .thumbs .thumb img { width: 100%; }
  .panel { padding: 1rem; }
  .demo-banner { font-size: .68rem; border-radius: 14px; bottom: 8px; text-align: left; }
}

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

/* =====================================================================
   Reading app: full-screen pages, menus that step aside, a settings sheet
   ===================================================================== */
body.reading-mode { overscroll-behavior: none; }
.rbar { position: fixed; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: .5rem; color: var(--rfg);
  background: color-mix(in srgb, var(--rbg) 90%, transparent); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
  transition: transform .3s ease, opacity .3s ease; }
.rtop { top: 0; padding: calc(env(safe-area-inset-top) + .45rem) max(.75rem, env(safe-area-inset-right)) .45rem max(.75rem, env(safe-area-inset-left)); border-bottom: 1px solid var(--rrule); }
.rbottom { bottom: 0; padding: .45rem max(.75rem, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + .45rem) max(.75rem, env(safe-area-inset-left)); border-top: 1px solid var(--rrule); }
body.chrome-hidden .rtop { transform: translateY(-100%); opacity: 0; pointer-events: none; }
body.chrome-hidden .rbottom { transform: translateY(100%); opacity: 0; pointer-events: none; }
.r-back { flex: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; font-size: 2rem; line-height: 1; color: var(--rfg); text-decoration: none; border-radius: 50%; }
.r-back:hover { background: var(--rrule); color: var(--rfg); }
.r-title { flex: 1; min-width: 0; text-align: center; display: grid; line-height: 1.3; }
.r-title span, .r-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-title span { font-size: .74rem; color: var(--rsoft); }
.r-title strong { font-size: .95rem; font-weight: 600; }
.r-aa { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: transparent; color: var(--rfg); box-shadow: inset 0 0 0 1px var(--rrule); font: inherit; font-weight: 600; cursor: pointer; }
.r-aa[aria-expanded=true] { background: var(--rfg); color: var(--rbg); }

/* scroll view */
body.scroll-mode main.reader { padding-top: calc(env(safe-area-inset-top) + 5rem); padding-bottom: calc(env(safe-area-inset-bottom) + 4rem); }
body.scroll-mode .progress-line { top: 0; z-index: 35; }

/* page view: the story fills the screen */
body.paged-mode { overflow: hidden; position: fixed; inset: 0; width: 100%; height: 100%; }
body.paged-mode .progress-line { display: none; }
main.reader.paged { position: fixed; inset: 0; width: auto; max-width: none; margin: 0;
  padding: calc(env(safe-area-inset-top) + 4.6rem) max(2rem, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 5rem) max(2rem, env(safe-area-inset-left)); }
main.reader.paged .pager { max-width: 76rem; margin: 0 auto; touch-action: pan-y; user-select: text; }
.page-mark { position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + .85rem); text-align: center; font-size: .78rem; color: var(--rsoft); pointer-events: none; font-variant-numeric: tabular-nums; transition: opacity .3s; display: none; }
.rbottom { justify-content: center; gap: 1rem; }
.scrub { flex: 1; max-width: 34rem; display: grid; gap: .15rem; justify-items: center; }
.scrub input[type=range] { width: 100%; min-height: 1.8rem; padding: 0; border: 0; background: none; box-shadow: none; accent-color: var(--gold); }
.scrub .page-no { min-width: 0; font-size: .78rem; }
.rbottom .turn { flex: none; }

/* reading typography */
main.reader article { font-size: calc(1.15rem * var(--read-scale)); }
main.reader.font-sans .story, main.reader.font-sans .story:lang(ml) { font-family: 'Noto Sans Malayalam', var(--display); }
main.reader.font-sans .story:lang(hi) { font-family: 'Noto Sans Devanagari', var(--display); }

/* settings sheet */
.sheet-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .28); }
.sheet { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 30rem; display: grid; gap: 1.15rem;
  padding: .6rem 1.25rem calc(env(safe-area-inset-bottom) + 1.3rem); background: var(--rbg); color: var(--rfg);
  border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px -10px rgba(0, 0, 0, .35); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.sheet.in { transform: none; }
.sheet-grab { width: 2.6rem; height: 4px; border-radius: 4px; background: var(--rrule); margin: .15rem auto 0; }
.set-row { display: grid; gap: .5rem; }
.set-label { font-size: .78rem; font-weight: 600; color: var(--rsoft); }
.size-ctl { display: flex; align-items: center; gap: .75rem; }
.size-ctl button { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: transparent; color: var(--rfg); box-shadow: inset 0 0 0 1px var(--rrule); font: inherit; font-size: .85rem; cursor: pointer; }
.size-ctl .big { font-size: 1.3rem; }
.size-ctl input { flex: 1; min-height: 2rem; padding: 0; border: 0; background: none; box-shadow: none; accent-color: var(--gold); }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.swatches button { display: grid; justify-items: center; gap: .35rem; padding: .65rem .3rem; border-radius: 14px; border: 0; background: transparent; color: var(--rfg); box-shadow: inset 0 0 0 1px var(--rrule); font: inherit; font-size: .82rem; cursor: pointer; }
.swatches .sw { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--sw-bg); color: var(--sw-fg); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); font-family: var(--read); font-weight: 600; }
.swatches button[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--gold); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rrule); }
.seg2 button { border: 0; background: transparent; color: var(--rfg); font: inherit; font-size: .92rem; padding: .55rem; min-height: 2.6rem; border-radius: 999px; cursor: pointer; }
.seg2 button[aria-pressed=true] { background: var(--rfg); color: var(--rbg); }
.f-serif { font-family: 'Noto Serif Malayalam', var(--read); }
.f-sans { font-family: 'Noto Sans Malayalam', var(--display); }

/* phones and tablets: menus overlay the page and hide while you read */
@media (max-width: 900px) {
  main.reader.paged { padding: calc(env(safe-area-inset-top) + 2.4rem) max(1.15rem, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 2.6rem) max(1.15rem, env(safe-area-inset-left)); }
  .page-mark { display: block; }
  body:not(.chrome-hidden) .page-mark { opacity: 0; }
  .rbottom .turn { width: 2.6rem; height: 2.6rem; }
  body.scroll-mode main.reader { width: calc(100% - 2.3rem); padding-top: calc(env(safe-area-inset-top) + 4.5rem); }
  main.reader article { font-size: calc(1.1rem * var(--read-scale)); }
  main.reader .story:lang(ml) { line-height: 1.95; }
  main.reader h1 { font-size: 1.75em; margin-bottom: .7em; }
  main.reader .chapter-no { margin-bottom: .9rem; }
  .read-nav { grid-template-columns: 1fr; }
  .read-nav .next { grid-column: 1; }
  .read-nav span:empty { display: none; }
}
/* wide screens: the settings open as a small panel under the Aa button */
@media (min-width: 901px) {
  .sheet-backdrop { background: transparent; }
  .sheet { left: auto; right: 1rem; bottom: auto; top: calc(env(safe-area-inset-top) + 4rem); width: 21rem; margin: 0; border-radius: 18px; padding: 1rem 1.2rem 1.2rem; transform: translateY(-6px); opacity: 0; transition: transform .2s, opacity .2s; box-shadow: 0 20px 60px -12px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--rrule); }
  .sheet.in { transform: none; opacity: 1; }
  .sheet-grab { display: none; }
}

/* Justified text (reader setting) */
main.reader.align-justify .story p:not(.center) { text-align: justify; text-justify: inter-word; }
/* Phones: a shallower indent suits the narrow page */
@media (max-width: 900px) {
  main.reader .story.style-book p { text-indent: 1.1em; }
  main.reader .story.style-spaced p { margin-bottom: .9em; }
}

/* =====================================================================
   Preface and comments
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the preface sits above the shelf like a folded letter */
.preface-card { position: relative; display: flex; align-items: center; gap: 1.5rem; max-width: 46rem; margin: 0 0 3rem; padding: 1.5rem 1.6rem 1.5rem 2.1rem;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .2s; }
.preface-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 9px;
  background: linear-gradient(to right, var(--gold) 0 3px, transparent 3px 5px, var(--gold) 5px 6px, transparent 6px); }
.preface-card:hover { color: var(--ink); transform: translateY(-2px); }
.preface-text { flex: 1; min-width: 0; display: grid; gap: .45rem; }
.preface-text strong { font-family: 'Noto Serif Malayalam', var(--read); font-size: 1.25rem; font-weight: 600; line-height: 1.5; }
.preface-start { color: var(--ink-2); font-size: .98rem; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.preface-go { flex: none; align-self: end; font-weight: 600; font-size: .92rem; padding: .55rem 1.1rem; border-radius: 999px; background: var(--ink); color: #fff; }
.preface-sign { text-align: end; margin-top: 2.5rem; font-style: italic; color: var(--rsoft); }
.preface-next { text-align: center; margin-top: 3rem; }
.r-space { flex: none; width: 2.75rem; }

/* comment entry at the end of a story */
.talk { margin-top: 2.5rem; text-align: center; break-inside: avoid; }
.talk-btn { display: inline-flex; align-items: center; gap: .55rem; font: inherit; font-size: .95rem; font-weight: 600; color: var(--rfg); background: transparent;
  border: 0; border-radius: 999px; padding: .75rem 1.3rem; min-height: 3rem; box-shadow: inset 0 0 0 1.5px var(--rrule); cursor: pointer; transition: background-color .15s; }
.talk-btn:hover { background: var(--rrule); }
.r-talk { position: relative; display: grid; place-items: center; }
.talk-count { position: absolute; top: -2px; right: -3px; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: var(--gold); color: #1A2824; font-size: .68rem; font-weight: 700; line-height: 1.15rem; text-align: center; }

/* comments sheet: same family as the settings sheet, taller, with a list that scrolls */
.csheet { max-width: 36rem; max-height: min(86dvh, 46rem); grid-template-rows: auto auto minmax(0, 1fr) auto; gap: .8rem; padding-bottom: calc(env(safe-area-inset-bottom) + 1rem); }
.csheet-head { display: flex; align-items: center; justify-content: space-between; }
.csheet-head h2 { font-size: 1.15rem; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.csheet-x { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: transparent; color: var(--rfg); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.csheet-x:hover { background: var(--rrule); }
.clist { list-style: none; margin: 0 -1.25rem; padding: 0 1.25rem; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 1.1rem; align-content: start; min-height: 6rem; }
.c { display: grid; gap: .3rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rrule); }
.c:last-child { border-bottom: 0; }
.c-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; font-size: .88rem; }
.c-meta strong { font-weight: 600; }
.c-meta time { color: var(--rsoft); font-size: .8rem; }
.c-badge { font-size: .72rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: var(--gold); color: #1A2824; }
.by-writer { padding: .9rem 1rem; border: 0; border-radius: var(--r); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.c-text { margin: 0; line-height: 1.65; overflow-wrap: anywhere; }
.c-text:lang(ml) { line-height: 1.9; }
.c-del { justify-self: start; font-size: .8rem; color: var(--rsoft); padding: 0; min-height: 0; }
.c-empty { color: var(--rsoft); text-align: center; padding: 1.5rem 0; }
.cform { display: grid; gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--rrule); }
.cform textarea { min-height: 4.5rem; max-height: 10rem; resize: vertical; background: color-mix(in srgb, var(--rfg) 5%, var(--rbg)); color: var(--rfg); border-color: var(--rrule); }
.cform textarea::placeholder { color: var(--rsoft); }
.cform-row { display: flex; align-items: center; gap: .75rem; justify-content: space-between; }
.cform-row .form-alert { flex: 1; }

@media (max-width: 40rem) {
  .preface-card { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.25rem 1.25rem 1.25rem 1.7rem; margin-bottom: 2.25rem; }
  .preface-text strong { font-size: 1.12rem; }
  .preface-go { align-self: start; }
}

/* =====================================================================
   Ratings and stats
   ===================================================================== */
.rating { display: grid; gap: .5rem; margin-top: 1.6rem; }
.rating-sum { margin: 0; color: var(--ink-2); font-size: .95rem; display: flex; align-items: center; gap: .4rem; }
.star-avg { display: inline-flex; align-items: center; gap: .25rem; font-weight: 700; color: var(--ink); }
.star-avg svg { width: 1.05rem; height: 1.05rem; fill: var(--gold); }
.rate-me { display: grid; gap: .35rem; }
.rate-label { font-size: .88rem; color: var(--muted); }
.stars { display: flex; gap: .15rem; margin-left: -.35rem; }
.stars button { border: 0; background: transparent; padding: .35rem; min-width: 2.75rem; min-height: 2.75rem; display: grid; place-items: center; cursor: pointer; border-radius: 50%; color: inherit; }
.stars svg { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; transition: transform .15s, fill .15s; }
.stars button[aria-pressed="true"] svg { fill: var(--gold); }
.stars button:hover svg { transform: scale(1.12); }
@media (hover: hover) {
  .stars:hover button svg { fill: var(--gold); }
  .stars button:hover ~ button svg { fill: none; }
}
/* inside the reader the rating sits under "the end", centred, in the reading colours */
.reader .rating { justify-items: center; text-align: center; margin: 2rem 0 .5rem; break-inside: avoid; font-family: 'Bricolage Grotesque', system-ui, sans-serif; }
.reader .rating-sum, .reader .rate-label { color: var(--rsoft); }
.reader .star-avg { color: var(--rfg); }
.reader .stars { margin-left: 0; }

.stats-intro { max-width: 46rem; margin: 0 0 2rem; }
.stat-book { background: var(--surface); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.stat-head { display: flex; gap: 1rem; align-items: center; }
.stat-head h2 { margin: 0 0 .25rem; font-size: 1.2rem; font-weight: 600; }
.stat-line { margin: 0; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.stat-line strong { color: var(--ink); }
.stat-rate { color: var(--ink); font-weight: 600; }
.stat-book h3 { font-size: .95rem; font-weight: 600; margin: 1.4rem 0 .5rem; }
.stat-table { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: .93rem; }
.stat-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .82rem; padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
.stat-table td { padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
.stat-table th:not(:first-child), .stat-table td:not(:first-child) { text-align: right; width: 6rem; font-variant-numeric: tabular-nums; }
.stat-table tr:last-child td { border-bottom: 0; }
.who { list-style: none; margin: 0; padding: 0; display: grid; }
.who li { display: flex; align-items: baseline; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.who li:last-child { border-bottom: 0; }
.who li span { color: var(--ink-2); }
.who time { margin-left: auto; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.mini-stars { color: var(--gold); letter-spacing: .05em; }
.mini-stars span { color: var(--line); }
.muted.small { font-size: .9rem; margin: 1rem 0 0; }
.who .mini-stars { color: var(--gold); }
.who .mini-stars span { color: rgba(14, 31, 27, .15); }
.desk .tabs { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.desk .tabs a { white-space: nowrap; flex: none; }
