:root { color-scheme: light; --paper: #fbfaf7; --panel: #f1f0e9; --ink: #293e43; --muted: #687779; --line: #dcded6; --accent: #356573; --active: #e0e9e7; --serif: "David", "Noto Serif Hebrew", "Times New Roman", serif; --sans: Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; inset-block-start: -100px; inset-inline-start: 20px; padding: 12px; background: var(--ink); color: white; }
.skip-link:focus { inset-block-start: 10px; }
.contents { position: fixed; inset-block: 0; inset-inline-start: 0; width: 310px; display: flex; flex-direction: column; padding: 30px 24px 0; background: var(--panel); border-inline-end: 1px solid var(--line); z-index: 3; }
.identity { position: relative; padding: 0 12px 25px; }
.brand { display: block; width: fit-content; }
.brand svg { display: block; width: 72px; height: 46px; margin-block-end: 12px; color: var(--accent); }
.brand span { font: 31px/1.25 var(--serif); }
.identity p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.intro-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; margin-bottom: 22px; font-size: 15px; border-block: 1px solid var(--line); }
.intro-link span { color: var(--muted); }
.intro-link[aria-current] { color: var(--accent); font-weight: bold; }
.search-box { display: flex; gap: 9px; align-items: center; padding: 10px 12px; border: 1px solid #cdd3cd; border-radius: 4px; background: var(--paper); }
.search-box svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--muted); stroke-width: 1.4; }
.search-box input { width: 100%; min-width: 0; border: none; background: transparent; outline: none; color: var(--ink); font-size: 14px; line-height: 1.6; }
.search-box:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.list-heading { display: flex; justify-content: space-between; margin: 25px 10px 12px; color: var(--muted); font-size: 11px; }
.poem-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c2cbc6 transparent; margin-inline: -8px; padding-inline: 8px; }
.poem-list ol { margin: 0; padding: 0; list-style: none; }
.poem-list a { display: flex; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 3px; font-size: 16px; line-height: 1.6; }
.poem-number { font-size: 10px; color: #6e7c7d; font-variant-numeric: tabular-nums; min-width: 15px; }
.poem-list a:hover { background: #e8ebe3; }
.poem-list a[aria-current] { background: var(--active); color: #244e58; box-shadow: inset -2px 0 var(--accent); }
.poem-list a:focus-visible { outline-offset: -2px; }
.no-results { padding: 20px 12px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.contents-footer { padding: 17px 10px; margin-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.contents-footer span { margin-inline: 4px; }
main { margin-inline-start: 310px; min-height: 100dvh; padding: 0 56px; }
main:focus { outline: none; }
.reading-wrap { max-width: 710px; margin-inline: auto; }
.reading-top { height: 107px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.small-bird svg { width: 44px; height: 30px; color: #91a4a3; }
.article-header { padding-block: 50px 30px; }
h1 { font: normal clamp(36px, 3.8vw, 55px)/1.35 var(--serif); margin: 0; overflow-wrap: anywhere; }
#byline { font-size: 13px; color: var(--muted); margin: 17px 0 0; }
.poem-content { font: 25px/1.95 var(--serif); overflow-wrap: break-word; }
.poem-content pre { white-space: pre-wrap; font: inherit; margin: 0; tab-size: 4; }
.poem-content p { margin: 0 0 1.2em; }
.poem-content:not(.introduction) > p { font-size: 20px; color: var(--muted); line-height: 1.7; }
.poem-content.introduction { font-size: 23px; line-height: 1.85; }
.reading-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 65px; padding-top: 26px; border-top: 1px solid var(--line); }
.reading-nav a { max-width: 48%; }
.reading-nav a:hover strong { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.reading-nav a > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.reading-nav strong { font: normal 21px/1.5 var(--serif); }
#next { margin-inline-start: auto; text-align: end; }
.reading-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 65px; padding-block: 24px; font-size: 11px; color: var(--muted); }
.reading-footer a:hover { text-decoration: underline; }
.mobile-header, .close-contents, .backdrop { display: none; }
@media (min-width: 1450px) { main { padding-inline: 100px; } .reading-wrap { max-width: 760px; } }
@media (max-width: 800px) {
 .mobile-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 66px; padding-inline: 22px; background: var(--paper); border-bottom: 1px solid var(--line); }
 .mobile-header > a { font: 23px/1.3 var(--serif); }
 .mobile-header button { border: 1px solid var(--line); border-radius: 4px; padding: 9px 11px; background: transparent; font-size: 12px; white-space: nowrap; }
 .mobile-header button span { margin-inline-start: 6px; }
 .contents { visibility: hidden; width: min(340px, 90vw); padding-top: 22px; }
 body.contents-open { overflow: hidden; }
 body.contents-open .contents { visibility: visible; }
 .backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 3; border: 0; background: #1f353d66; cursor: default; }
 .contents { z-index: 4; }
 .close-contents { display: block; position: absolute; inset-inline-end: 0; top: 0; width: 40px; height: 40px; border: 0; background: transparent; font-size: 28px; }
 .identity { padding-bottom: 18px; }
 .brand svg { width: 54px; height: 36px; margin-bottom: 8px; }
 main { margin-inline-start: 0; padding-inline: 25px; }
 .reading-top { height: 68px; }
 .article-header { padding-block: 30px 27px; }
 h1 { font-size: 38px; }
 .poem-content { font-size: 23px; line-height: 1.95; }
 .poem-content.introduction { font-size: 22px; }
 .reading-nav { margin-top: 45px; }
 .reading-footer { margin-top: 45px; }
}
@media (max-width: 360px) { main { padding-inline: 20px; } .mobile-header { padding-inline: 16px; } .mobile-header > a { font-size: 21px; } }
@media print { .contents, .mobile-header, .reading-nav, .reading-footer, .reading-top { display: none; } main { margin: 0; padding: 0; } body { background: white; color: black; } .article-header { padding-top: 0; } }

/* Reading and links remain available when JavaScript is disabled. */
.no-js .search-box, .no-js #open-contents { display: none; }
@media (max-width: 800px) {
 .no-js .contents { position: static; visibility: visible; width: 100%; }
 .no-js .poem-list { max-height: 300px; }
 .no-js .close-contents { display: none; }
}
