/* Madha o Aza, the public pages. Three tones: Kitab (parchment, for the books), Madh (firoza and lapis, for a Jashn)
   and Aza (night, maroon and candle, for a Majlis). Motifs: the arch-topped frame, the eight-point star, gold rules. */
:root {
  --parch: #F6F1E7; --sheet: #FFFCF6; --ink: #1F1A14; --body: #3A332A; --muted: #6B6255; --rule: #E3D9C6; --rule2: #D9CBA9; --line: #CDBF9F;
  --gold: #A9852F; --gilt: #7E621E; --tan: #EFE7D6;
  --firoza: #0E5C5E; --lapis: #1F4E8C; --mist: #DDECE8; --mist-l: #BBD8D1; --teal-d: #08403F; --marigold: #D9822B;
  --night: #161112; --maroon: #6B1D27; --candle: #E3B865; --alam: #1F5A3A; --a-text: #EFE6DA; --a-muted: #A89C8D; --a-line: #3A2E30; --a-line2: #4A3B3D;
  --f-disp: 'Cormorant Garamond', Georgia, serif; --f-ui: Inter, system-ui, sans-serif; --f-ur: 'Noto Nastaliq Urdu', serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--parch); color: var(--ink); font: 16px/1.5 var(--f-ui); }
a { color: var(--firoza); text-decoration: none; }
a:hover { color: var(--teal-d); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--marigold); outline-offset: 2px; }
img { max-width: 100%; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.ur { font-family: var(--f-ur); direction: rtl; }
.disp { font-family: var(--f-disp); }
.eyebrow { font: 600 12px/1.3 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.gold { color: var(--candle); } .gilt { color: var(--gilt); } .teal { color: var(--firoza); }
.muted { color: var(--muted); } .muted-d { color: var(--a-muted); } .small { font-size: 13px; }
.center { text-align: center; margin-top: 28px; }
.loading { padding: 80px 40px; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* buttons and chips */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; }
.btn.sm { padding: 10px 16px; font-size: 14px; }
.btn.light { background: var(--sheet); color: var(--firoza); }
.btn.ghost-l { border-color: rgba(255,252,246,.6); color: #FFFCF6; }
.btn.ghost-d { border-color: var(--a-line2); color: var(--a-text); padding: 9px 16px; font-size: 14px; font-weight: 500; }
.btn.dark { background: var(--ink); color: var(--parch); border: 0; }
.btn.line { border-color: var(--line); color: var(--ink); background: transparent; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 14px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--parch); }
.chips.dark .chip { border-color: var(--a-line2); color: var(--a-text); }
.chips.dark .chip[aria-pressed="true"] { background: var(--candle); border-color: var(--candle); color: var(--night); }
.arrows { display: flex; gap: 10px; }
.arrow { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--sheet); display: inline-flex; align-items: center; justify-content: center; }

/* header */
.top { background: var(--sheet); border-bottom: 1px solid var(--rule); position: relative; z-index: 5; }
.top.over { position: absolute; left: 0; right: 0; top: 0; background: transparent; border: 0; color: #FFFCF6; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.top:not(.over) .brand { color: var(--ink); }
.brand .ur { font-size: 21px; line-height: 1.5; }
.brand .disp { font-size: 21px; font-weight: 600; }
.nav { display: flex; gap: 22px; }
.nav a { color: inherit; font-size: 15px; font-weight: 500; padding: 10px 2px; border-bottom: 2px solid transparent; }
.top:not(.over) .nav a { color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.top.over .nav a[aria-current="page"] { border-bottom-color: var(--candle); }
.top-act { display: flex; gap: 12px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.top.over .icon-btn { border-color: rgba(255,252,246,.4); color: #FFFCF6; }
.signin { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--parch); font-weight: 600; font-size: 14px; }
.signin:hover { color: var(--parch); background: #000; }
.top.over .signin { background: var(--candle); color: var(--ink); }
.sbar { background: var(--sheet); color: var(--ink); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0 8px; box-shadow: 0 20px 40px -30px rgba(31,26,20,.6); }
.sfield { display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 50px; border-radius: 999px; border: 1px solid var(--line); background: var(--sheet); color: var(--muted); }
.sfield input { border: 0; background: transparent; font: 16px var(--f-ui); color: var(--ink); flex: 1; outline: none; min-width: 0; }
.sfield.small { height: 46px; min-width: min(320px, 100%); flex: 1 1 280px; }
.sres { max-height: 60vh; overflow: auto; padding: 6px 0 10px; }

/* hero */
.hero { position: relative; min-height: 640px; color: #FFFCF6; overflow: hidden; display: flex; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after, .ev-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,38,40,.93) 0%, rgba(6,38,40,.74) 45%, rgba(6,38,40,.15) 100%); }
.hero.aza::after, .ev-hero.aza::after { background: linear-gradient(90deg, rgba(22,17,18,.95) 0%, rgba(22,17,18,.78) 45%, rgba(40,14,18,.2) 100%); }
.ev-hero.books::after { background: linear-gradient(90deg, rgba(31,26,20,.92) 0%, rgba(31,26,20,.7) 50%, rgba(31,26,20,.25) 100%); }
.hero-in { position: relative; z-index: 1; width: 100%; padding-top: 150px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero-when { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; }
.hero-g { font-size: 13px; color: rgba(255,252,246,.78); }
.soon { color: #FFFCF6; background: rgba(255,252,246,.14); padding: 6px 12px; border-radius: 999px; }
.hero-ur { font-size: 52px; line-height: 1.9; max-width: 680px; text-align: left; }
.hero h1, .ev-hero h1 { margin: -8px 0 0; font-size: 60px; line-height: 1.04; font-weight: 600; max-width: 680px; }
.hero-p { margin: 0; font-size: 18px; line-height: 1.6; max-width: 580px; color: rgba(255,252,246,.88); }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.moon { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,252,246,.14); flex-wrap: wrap; }
.moon button { border: 0; background: transparent; color: #FFFCF6; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.moon button[aria-pressed="true"] { background: #FFFCF6; color: var(--ink); }
.moon-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; color: rgba(255,252,246,.85); }

/* sections */
.sec { padding-top: 56px; padding-bottom: 24px; }
.sechead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--rule2); padding-bottom: 14px; margin-bottom: 24px; }
.sechead > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.sechead h2, .sechead h1 { margin: 0; font-size: 38px; line-height: 1.1; font-weight: 600; }
.sechead.dark { border-color: var(--a-line); }
.sechead-r { display: flex; gap: 16px; align-items: center; }
.more { font-weight: 600; }
.more.gold { color: var(--candle); }
.rail { display: flex; gap: 20px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }

/* couplet card */
.couplet { flex: 0 0 360px; max-width: 82vw; background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; padding: 26px 26px 20px; display: flex; flex-direction: column; gap: 14px; color: var(--ink); box-shadow: 0 1px 2px rgba(31,26,20,.05), 0 14px 30px -24px rgba(31,26,20,.45); }
.couplet:hover { color: var(--ink); border-color: var(--line); }
.couplet .cu { font-size: 22px; line-height: 2.15; text-align: center; min-height: 4.3em; }
.couplet .cr { font-size: 14px; font-style: italic; color: var(--muted); text-align: center; line-height: 1.5; }
.couplet .cby { margin-top: auto; border-top: 1px solid #E9E0CD; padding-top: 12px; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.couplet .cby span { color: var(--muted); text-align: right; }
.season-aza .couplet svg g { stroke: var(--maroon); }

/* arched event card */
.arch { flex: 0 0 176px; min-height: 250px; border-radius: 88px 88px 14px 14px; padding: 34px 14px 18px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; text-align: center; border: 1px solid; }
.arch.madh { background: var(--mist); color: var(--teal-d); border-color: var(--mist-l); }
.arch.aza { background: var(--night); color: var(--a-text); border-color: var(--night); }
.arch.big { background: var(--firoza); color: #FFFCF6; border-color: var(--firoza); }
.arch:hover { transform: translateY(-2px); color: inherit; }
.arch.madh:hover { color: var(--teal-d); } .arch.aza:hover, .arch.big:hover { color: #FFFCF6; }
.arch { transition: transform .15s; }
.arch-d { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.arch-d .disp { font-size: 46px; font-weight: 600; line-height: 1; }
.arch-d .eyebrow { font-size: 10px; opacity: .85; }
.arch-n { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.arch-n strong { font-size: 14px; line-height: 1.3; }
.arch-n span { opacity: .8; }
.pill { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(14,92,94,.12); line-height: 1.3; }
.arch.aza .pill { background: rgba(227,184,101,.18); }
.arch.big .pill { background: rgba(255,252,246,.18); }

/* the shelf */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 36px 28px; }
.book { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.book:hover { color: var(--ink); }
.book:hover .cover { transform: translateY(-3px); }
.book-t { font-size: 21px; font-weight: 600; line-height: 1.15; }
.cover { position: relative; aspect-ratio: 2 / 3; border-radius: 3px 8px 8px 3px; overflow: hidden; background: var(--tan); box-shadow: 0 2px 4px rgba(31,26,20,.18), 0 18px 30px -18px rgba(31,26,20,.6); transition: transform .15s; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .spine { position: absolute; inset: 0 auto 0 0; width: 14px; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.12) 60%, rgba(0,0,0,0)); }
.cover-type { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; text-align: center; background: linear-gradient(160deg, var(--firoza), var(--teal-d)); color: #FFFCF6; border: 6px double rgba(227,184,101,.6); }
.cover-type .ur { font-size: 22px; line-height: 1.8; }
.cover-type .disp { font-size: 22px; font-weight: 600; line-height: 1.1; }
.cover-type span:last-child { font-size: 12px; opacity: .8; }
.cover.big { flex: 0 0 260px; box-shadow: 0 3px 6px rgba(31,26,20,.2), 0 30px 50px -26px rgba(31,26,20,.7); }
.cover.big .spine { width: 18px; }

/* listen */
.listen-band { margin-top: 64px; background: var(--night); color: var(--a-text); padding: 64px 0; }
.listen-band.top-band { margin-top: 0; padding-top: 48px; min-height: 70vh; }
.listen-band h1 { font-size: 48px; }
.listen-band p { max-width: 620px; margin: 4px 0 0; }
.chan { display: flex; flex-direction: column; gap: 18px; margin-bottom: 44px; }
.ch-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mono { width: 48px; height: 48px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #FFFCF6; flex: none; }
.ch-bv { background: var(--firoza); } .ch-ma { background: var(--maroon); } .ch-aj { background: var(--alam); } .ch-mz { background: var(--lapis); }
.ch-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 280px; }
.ch-name strong { font-size: 17px; }
.ch-name span { font-size: 13px; color: var(--a-muted); }
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px 20px; }
.vid { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 0; padding: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--firoza), var(--lapis)); width: 100%; }
.yt.aza { background: linear-gradient(135deg, #3A1016, var(--maroon)); }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: relative; width: 54px; height: 54px; border-radius: 999px; background: rgba(255,252,246,.92); color: var(--night); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .15s; }
.yt:hover .yt-play { transform: scale(1.08); }
.yt-len { position: absolute; right: 10px; bottom: 10px; font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: rgba(0,0,0,.75); color: #fff; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-t { font-size: 15px; font-weight: 500; line-height: 1.4; }
.vid-by { font-size: 13px; color: var(--a-muted); }
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 8px; }
.sites h2 { grid-column: 1 / -1; margin: 0; font-size: 30px; font-weight: 600; }
.site { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 88px 88px 16px 16px; padding-top: 44px; border: 1px solid var(--a-line2); color: var(--a-text); background: linear-gradient(180deg, rgba(227,184,101,.08), transparent 60%); text-align: center; align-items: center; }
.site:hover { color: var(--a-text); border-color: var(--candle); }
.site .eyebrow { color: var(--candle); }
.site-n { font-size: 30px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.site span:not(.eyebrow):not(.site-n) { font-size: 14px; line-height: 1.55; }

/* doors to Madh and Aza */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 72px; padding-bottom: 72px; }
.door { position: relative; min-height: 300px; border-radius: 20px; overflow: hidden; color: #FFFCF6; display: flex; align-items: flex-end; }
.door:hover { color: #FFFCF6; }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.door:hover img { transform: scale(1.03); }
.door::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,38,40,.93), rgba(6,38,40,.1)); }
.door.aza::after { background: linear-gradient(0deg, rgba(22,17,18,.95), rgba(22,17,18,.1)); }
.door-in { position: relative; z-index: 1; padding: 30px; display: flex; flex-direction: column; gap: 8px; }
.door-t { display: flex; gap: 16px; align-items: baseline; }
.door-t .disp { font-size: 44px; font-weight: 600; }
.door-t .ur { font-size: 30px; line-height: 1.6; }

/* footer */
.foot { border-top: 1px solid var(--rule2); background: var(--tan); margin-top: 40px; }
.foot-in { padding-top: 36px; padding-bottom: 44px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--body); }
.foot-about { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.foot-about .disp { font-size: 22px; font-weight: 600; color: var(--ink); }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { color: var(--ink); font-weight: 600; }
.page-home .foot { margin-top: 0; }

/* poem rows (where people pick poems) */
.prow { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 90px; gap: 16px; align-items: center; padding: 10px 6px; border-bottom: 1px solid #ECE4D3; color: var(--ink); }
.prow:hover { background: var(--sheet); color: var(--ink); }
.prow .pg { font-size: 22px; font-weight: 600; color: var(--gilt); }
.pro-t { font-size: 15px; display: flex; flex-direction: column; min-width: 0; }
.pby { font-size: 12px; color: var(--muted); }
.page-book .pby { display: none; }
.pur-t { font-size: 18px; line-height: 1.9; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkind { font-size: 12px; color: var(--muted); text-align: right; }

/* book page */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); }
.bk-top { display: flex; gap: 56px; padding-top: 28px; flex-wrap: wrap; align-items: flex-start; }
.bk-info { flex: 1 1 520px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bk-title { display: flex; gap: 8px 24px; align-items: baseline; flex-wrap: wrap; }
.bk-title h1 { margin: 0; font-size: 58px; line-height: 1.02; font-weight: 600; }
.bk-title .ur { font-size: 36px; line-height: 1.8; }
.bk-poet { font-size: 18px; }
.stats { display: flex; gap: 32px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats div { display: flex; flex-direction: column; }
.stats .disp { font-size: 34px; font-weight: 600; line-height: 1.1; }
.stats span:last-child { font-size: 13px; color: var(--muted); }
.bk-act { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.callout { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--mist); color: var(--teal-d); font-size: 15px; line-height: 1.5; }
.callout.aza { background: var(--night); color: var(--a-text); }
.callout svg { flex: none; }
.callout a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.bk-body { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.facets { flex: 0 0 250px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 16px; }
.facets > div { display: flex; flex-direction: column; gap: 4px; }
.facets .eyebrow { margin-bottom: 8px; }
.facet { width: 100%; gap: 12px; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--body); background: transparent; border: 0; text-align: left; }
.facet:hover { background: var(--tan); }
.facet[aria-pressed="true"] { background: var(--ink); color: var(--parch); }
.contents { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 34px; }
.csec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--rule2); padding-bottom: 10px; }
.csec-h h2 { margin: 0; font-size: 30px; font-weight: 600; }
.csec.hl { background: var(--sheet); border: 1px solid var(--mist-l); border-radius: 16px; padding: 18px 20px 6px; }
.csec.hl h2 { color: var(--firoza); }
.csec.hl.aza { border-color: var(--maroon); } .csec.hl.aza h2 { color: var(--maroon); }
.tag { font: 600 11px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--mist); vertical-align: middle; }
.more-rows { padding: 12px 6px; font-size: 14px; color: var(--firoza); text-decoration: none; }

/* poem reader */
.rbar { background: var(--sheet); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 4; }
.rbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.rback { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.rback > span { display: flex; flex-direction: column; min-width: 0; }
.rback .disp { font-size: 19px; font-weight: 600; line-height: 1.2; }
.seg { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--tan); }
.seg button { padding: 9px 16px; border: 0; background: transparent; font-size: 14px; font-weight: 500; color: var(--body); border-radius: 999px; }
.seg button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgba(31,26,20,.15); }
.rtools { display: flex; gap: 8px; align-items: center; }
.round { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-weight: 600; font-size: 14px; }
.round.big { font-size: 17px; }
.prog { height: 3px; background: var(--rule); }
.prog span { display: block; width: 0; height: 3px; background: var(--firoza); }
.reader { display: flex; gap: 48px; padding-top: 48px; padding-bottom: 40px; flex-wrap: wrap; align-items: flex-start; }
.poem { --fs: 1; flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ptitle { margin: 0; font-size: 40px; line-height: 2; font-weight: 600; }
.pmeta { margin: 0; font-size: 15px; color: var(--muted); }
.rule { margin: 14px 0 6px; max-width: 100%; }
#verses { width: 100%; max-width: 760px; }
.vblk { padding: 16px 0; border-bottom: 1px solid #ECE4D3; display: flex; flex-direction: column; gap: 2px; }
.vblk p { margin: 0; }
.vblk .ur { font-size: calc(27px * var(--fs)); line-height: 2.1; }
.vblk .ro { font-size: calc(18px * var(--fs)); line-height: 1.7; }
.vblk .vro p { font-size: calc(16px * var(--fs)); font-style: italic; color: var(--muted); line-height: 1.6; }
.vblk .vro { margin-top: 6px; }
.vblk.tek { background: linear-gradient(90deg, transparent, rgba(169,133,47,.08), transparent); }
.vblk.tek .ur, .vblk.tek .ro { color: var(--gilt); }
.vblk.again { color: var(--gilt); font-size: 14px; padding: 8px 0; }
.pnote { margin: 28px 0 0; max-width: 620px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; max-width: 380px; }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--body); }
.card.dashed { background: transparent; border-style: dashed; border-color: var(--line); flex-direction: row; align-items: flex-start; color: var(--gilt); }
.card.dashed span { color: var(--body); }
.card .vid-t { color: var(--ink); } .card .vid-by { color: var(--muted); }
.nb { display: flex; flex-direction: column; gap: 2px; color: var(--ink); font-size: 15px; }
body.recite .rback, body.recite .side, body.recite .top, body.recite .foot, body.recite .pnote { display: none; }
body.recite .reader { padding-top: 24px; }
body.recite .poem { --fs: 1.25; }

/* calendar */
.ev-hero { position: relative; color: #FFFCF6; overflow: hidden; }
.ev-in { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ev-hero .hero-ur { font-size: 44px; }
.ev-hero h1 { font-size: 52px; }
.crumb-l { color: rgba(255,252,246,.85); display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 500; }
.crumb-l:hover { color: #FFFCF6; }
.ev-list h2 { font-size: 30px; font-weight: 600; margin: 28px 0 8px; border-bottom: 1px solid var(--rule2); padding-bottom: 10px; }
.ev-list h2:first-child { margin-top: 0; }
.month { margin-bottom: 44px; }
.month h2 { font-size: 34px; font-weight: 600; margin: 0 0 18px; display: flex; gap: 16px; align-items: baseline; border-bottom: 1px solid var(--rule2); padding-bottom: 10px; }
.month h2 .ur { font-size: 24px; line-height: 1.6; color: var(--gilt); }
.month-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.month-g .arch { flex: none; }

/* phones */
@media (max-width: 860px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { min-height: 560px; }
  .hero-in { padding-top: 150px; padding-bottom: 48px; }
  .hero-ur { font-size: 34px; }
  .hero h1, .ev-hero h1 { font-size: 40px; }
  .ev-hero .hero-ur { font-size: 32px; }
  .hero-p { font-size: 16px; }
  .sechead h2, .sechead h1, .listen-band h1 { font-size: 30px; }
  .arrows { display: none; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .book-t { font-size: 18px; }
  .doors { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .door { min-height: 240px; }
  .top-in { gap: 10px 12px; }
  .brand .ur { display: none; }
  .nav { order: 3; width: 100%; gap: 20px; }
  .nav a { padding: 6px 2px; }
  .wide { display: none; }
  .signin { padding: 10px 14px; }
  .prow { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; }
  .prow .pg { font-size: 19px; grid-row: span 2; }
  .pur-t { grid-column: 2; text-align: right; font-size: 17px; }
  .pkind { display: none; }
  .bk-top { gap: 24px; }
  .cover.big { flex-basis: 170px; }
  .bk-title h1 { font-size: 40px; }
  .stats { gap: 20px; }
  .facets { flex: 1 1 100%; position: static; flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .facets > div { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .facets .eyebrow { width: 100%; margin-bottom: 0; }
  .facet { width: auto; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; gap: 8px; }
  .reader { padding-top: 28px; gap: 32px; }
  .ptitle { font-size: 28px; }
  .vblk .ur { font-size: calc(22px * var(--fs)); }
  .seg button { padding: 8px 12px; }
  .rback .disp { font-size: 16px; }
  .side { max-width: none; }
  .listen-band { padding: 44px 0; }
}

/* poets */
.pphoto { width: 120px; height: 120px; border-radius: 999px; object-fit: cover; background: var(--tan); border: 3px solid var(--sheet); box-shadow: 0 0 0 1px var(--rule2), 0 10px 24px -16px rgba(31,26,20,.6); display: inline-flex; align-items: center; justify-content: center; font: 600 34px var(--f-disp); color: var(--gilt); flex: none; }
.pphoto.sm { width: 36px; height: 36px; font-size: 14px; border-width: 2px; }
.pphoto.big { width: 180px; height: 180px; font-size: 54px; border-width: 5px; }
.poets-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 20px; }
.poet-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 16px 20px; border-radius: 110px 110px 16px 16px; background: var(--sheet); border: 1px solid var(--rule); color: var(--ink); transition: transform .15s; }
.poet-card:hover { color: var(--ink); transform: translateY(-3px); border-color: var(--line); }
.pc-n { font-size: 24px; font-weight: 600; line-height: 1.15; margin-top: 8px; }
.pc-u { font-size: 18px; line-height: 1.8; color: var(--gilt); }
.pc-c { margin-top: 4px; padding: 4px 10px; border-radius: 999px; background: var(--tan); }
.bk-poet { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.bk-poet:hover { color: var(--firoza); }
.pt-top { display: flex; gap: 48px; padding-top: 28px; flex-wrap: wrap; align-items: flex-start; }
.pt-info { flex: 1 1 520px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bio { max-width: 720px; font-size: 17px; line-height: 1.7; color: var(--body); }
.bio p { margin: 0 0 12px; }
.pt-links { display: flex; gap: 10px; flex-wrap: wrap; }
.srcs a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.page-poet .listen-band { margin-top: 40px; }
@media (max-width: 860px) { .pt-top { gap: 20px; } .pphoto.big { width: 130px; height: 130px; } .poets-g { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } .pc-n { font-size: 19px; } .pphoto { width: 90px; height: 90px; } }
.fpoet { flex: 0 0 250px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px 18px 18px; border-radius: 125px 125px 16px 16px; background: var(--sheet); border: 1px solid var(--rule); color: var(--ink); }
.fpoet:hover { color: var(--ink); border-color: var(--line); }
.fp-n { font-size: 23px; font-weight: 600; line-height: 1.15; margin-top: 6px; }
.fp-c { font-size: 17px; line-height: 2.05; margin: 8px 0 4px; padding-top: 10px; border-top: 1px solid #E9E0CD; width: 100%; min-height: 4.2em; }
.fp-more { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--firoza); }
.page-poet .rail .couplet { flex-basis: 340px; }

/* Word meanings: a dotted line under rare words; tapping one shows its meaning. */
.poem { position: relative; }
.glbar { margin: 4px 0 0; font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.glbar .chip { padding: 5px 12px; font-size: 13px; }
.gl { text-decoration: underline dotted var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 0.35em; cursor: pointer; border-radius: 3px; }
.ur .gl { text-underline-offset: 0.5em; }
.gl.t2 { text-decoration-color: var(--line); }
.gl:hover, .gl:focus-visible { background: var(--tan); outline: none; }
.glcard { position: absolute; z-index: 5; max-width: min(320px, 100%); padding: 10px 14px; background: var(--sheet); border: 1px solid var(--rule2); border-radius: 10px; box-shadow: 0 6px 20px rgba(31, 26, 20, .12); text-align: left; font-size: 15px; line-height: 1.5; color: var(--body); display: flex; flex-direction: column; gap: 2px; }
.glcard[hidden] { display: none; }
.glw { display: flex; gap: 10px; align-items: baseline; color: var(--ink); }
.glw .ur { font-size: 18px; line-height: 1.9; }
body.recite .glbar { display: none; }
