:root {
  --plum: #493444;
  --ink: #352b34;
  --muted: #6c5c69;
  --lilac: #e8dfec;
  --page: #fcfbfc;
  --ground: #f4f1f5;
  --lemon: #e4ecb4;
  --line: #d8cfd9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --reading-size: 21px;
  color-scheme: light;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ground);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: var(--plum) var(--lilac); }
body { margin: 0; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
::selection { color: var(--plum); background: var(--lemon); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: currentColor; }
button { color: inherit; font: inherit; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 400; }
svg { flex-shrink: 0; }
.icon { width: 22px; height: 22px; vertical-align: middle; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.site-header { background: var(--page); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 96px; display: flex; align-items: center; gap: 60px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 30px/1 var(--serif); letter-spacing: -.035em; }
.brand .icon { width: 30px; height: 30px; }
.header-inner nav { display: flex; align-items: center; gap: 32px; }
.header-inner nav a { padding-block: 16px; text-decoration: none; font-size: 14px; color: var(--muted); }
.header-inner nav a[aria-current] { color: var(--plum); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 9px; }
.header-inner nav a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 9px; }
.header-note { margin-left: auto; font-size: 13px; color: var(--muted); }
.intro { background: var(--lilac); padding-block: 70px; }
.intro-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 74px; align-items: center; }
.intro-copy h1 { font-size: clamp(48px, 5.2vw, 74px); line-height: 1.06; letter-spacing: -.04em; color: var(--plum); }
.intro-copy > p { margin-top: 25px; font-size: 17px; color: var(--muted); line-height: 1.7; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 25px; background: var(--plum); color: var(--page); min-height: 56px; padding: 14px 24px; text-decoration: none; margin-top: 32px; border-radius: 4px; font-size: 14px; }
.button:hover { background: #352630; }
.intro-copy .intro-foot { margin-top: 22px; font-size: 12px; }
.open-page { position: relative; padding: 38px 40px 48px; background: var(--page); border: 1px solid #d2c6d5; border-radius: 2px 10px 10px 2px; box-shadow: 9px 14px 28px #4934440d; }
.open-page::before { content: ""; position: absolute; left: 8px; top: 0; height: 100%; border-left: 1px solid #ece6ee; }
.ribbon { position: absolute; top: -1px; right: 32px; width: 31px; height: 61px; background: var(--lemon); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.page-author { font-size: 12px; display: flex; gap: 16px; color: var(--muted); padding-right: 48px; }
.open-page h2 { margin-top: 26px; font-size: clamp(28px, 2.5vw, 36px); line-height: 1.18; }
.verse-preview { margin-block: 26px; font: 17px/1.85 var(--serif); }
.text-link { display: inline-flex; gap: 18px; align-items: center; font-size: 13px; text-decoration: none; border-bottom: 1px solid currentColor; padding-block: 5px; }
.text-link:hover { gap: 24px; }
.page-folio { position: absolute; bottom: 17px; right: 27px; font: 12px var(--serif); color: var(--muted); }
.collection { padding-block: 62px 76px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading h2 { font-size: 40px; line-height: 1.2; letter-spacing: -.025em; }
.section-heading p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #e9e3ec; border-radius: 6px; width: fit-content; }
.filters button { border: 0; background: transparent; color: #655162; min-height: 40px; padding: 9px 17px; border-radius: 3px; font-size: 13px; }
.filters button[aria-pressed="true"] { background: var(--plum); color: var(--page); }
.filters button:hover:not([aria-pressed="true"]) { background: #ddd2e2; }
.work-row { display: flex; gap: 30px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.work-row:last-child { border-bottom: 1px solid var(--line); }
.cover { width: 100px; min-width: 100px; height: 134px; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 12px 10px 17px; text-decoration: none; position: relative; border-radius: 1px 4px 4px 1px; }
.cover::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7px; border-left: 1px solid currentColor; opacity: .2; }
.cover span { font-size: 8px; line-height: 1.3; }
.cover strong { font: 17px/1.1 var(--serif); overflow-wrap: anywhere; }
.cover-winter { color: #253e4b; background: #d2dfe7; }
.cover-autumn { color: #43503c; background: #dce3c8; }
.cover-joy { color: #583b46; background: #e6cdd4; }
.work-info { flex: 1; min-width: 0; }
.author { font-size: 13px; color: var(--muted); }
.work-info h3 { margin-top: 3px; font-size: 29px; line-height: 1.25; }
.work-info h3 a { text-decoration: none; }
.work-info h3 a:hover { text-decoration: underline; }
.work-info > p:not(.author) { color: var(--muted); font-size: 14px; max-width: 65ch; margin-top: 8px; }
.work-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.work-info .work-meta { margin-top: 13px; }
.work-meta span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-right: 16px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.read-link { display: inline-flex; gap: 18px; align-items: center; padding: 14px 0 14px 18px; font-size: 14px; text-decoration: none; }
.read-link:hover { text-decoration: underline; }
.quote-band { background: var(--plum); color: var(--page); padding-block: 56px; }
.quote-band :focus-visible { outline-color: var(--lemon); }
.quote-band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.quote-band h2 { font-size: 31px; line-height: 1.3; }
.quote-band .text-link { color: var(--lemon); margin-top: 22px; }
.quote-band blockquote { margin: 0; font: 40px/1.3 var(--serif); color: var(--lemon); }
.quote-band figcaption { font-size: 12px; color: #d2c4d0; margin-top: 18px; }
.site-footer { padding-block: 42px 25px; color: var(--muted); font-size: 12px; }
.footer-top { display: flex; align-items: center; gap: 28px; margin-bottom: 30px; }
.footer-top .brand { font-size: 25px; color: var(--plum); }
.footer-top .brand .icon { width: 25px; height: 25px; }
.footer-top > a:last-child { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; padding: 12px 0; }
.footer-top > a:last-child svg { transform: rotate(-90deg); width: 17px; }
details { border-block: 1px solid var(--line); padding-block: 13px; }
summary { cursor: pointer; width: fit-content; padding-block: 5px; }
details p { max-width: 80ch; margin-block: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 23px; font-size: 12px; }
.reader { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 36px 64px; }
.reader-sidebar { position: sticky; top: 28px; }
.back-link { font-size: 13px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding-block: 10px; }
.back-link svg { transform: rotate(180deg); width: 18px; }
.contents { display: flex; flex-direction: column; margin-top: 27px; gap: 8px; }
.contents a { display: flex; flex-direction: column; gap: 4px; padding: 17px 19px; text-decoration: none; border-radius: 3px; }
.contents a[aria-current] { background: var(--lilac); }
.contents a:hover { background: #ece6ee; }
.contents span { font-size: 12px; color: var(--muted); }
.contents strong { font: 18px/1.25 var(--serif); }
.contents small { font-size: 12px; color: var(--muted); margin-top: 4px; }
.sidebar-note { font: 18px/1.5 var(--serif); color: var(--muted); margin: 38px 19px; }
.reader-column { min-width: 0; }
.reader-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; margin-bottom: 20px; font-size: 12px; }
.font-controls { display: flex; align-items: center; gap: 12px; }
.font-controls button { border: 1px solid var(--line); width: 38px; height: 38px; background: var(--page); border-radius: 3px; font-family: var(--serif); font-size: 15px; }
.bookmark-button { border: 0; background: transparent; min-height: 44px; padding: 8px 10px; font-size: 12px; border-radius: 3px; }
.bookmark-button[aria-pressed="true"] { background: var(--lemon); }
.reading-sheet { background: var(--page); padding: 48px clamp(24px, 4vw, 60px); border: 1px solid var(--line); border-radius: 3px; margin-bottom: 24px; scroll-margin-top: 24px; }
.reading-title h1 { font-size: clamp(34px, 3.4vw, 49px); line-height: 1.12; margin-block: 16px 19px; letter-spacing: -.025em; }
.reading-title .author span { display: inline-block; margin-left: 10px; font-size: 12px; }
.literature { margin-top: 42px; font: var(--reading-size)/1.85 var(--serif); overflow-wrap: anywhere; }
.literature p + p { margin-top: 1.4em; }
.verse-line { display: block; padding-left: 1.1em; text-indent: -1.1em; }
.literature.prose { max-width: 68ch; }
.source-note { border-top: 1px solid var(--line); margin-top: 45px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: 12px; color: var(--muted); }
.source-note a { display: inline-flex; align-items: center; gap: 6px; }
.source-note svg { width: 13px; height: 13px; transform: rotate(-35deg); }
.next-work { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; }
.next-work > span { color: var(--muted); font-size: 12px; }
.next-work a { display: flex; align-items: center; justify-content: space-between; gap: 20px; font: 23px/1.35 var(--serif); text-decoration: none; }
.next-work a:hover { text-decoration: underline; }
.quotes-intro { display: flex; justify-content: space-between; align-items: end; gap: 50px; padding-block: 68px 44px; }
.quotes-intro h1 { font-size: clamp(44px, 5vw, 68px); line-height: 1.05; letter-spacing: -.035em; max-width: 5em; }
.quotes-intro p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.quotes-section { padding-bottom: 60px; }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.quote-entry { padding: 36px; display: flex; flex-direction: column; min-height: 320px; border-radius: 3px; }
.quote-0 { background: var(--lilac); }
.quote-1 { background: #e1e7d4; }
.quote-2 { background: #eee1e5; }
.quote-entry blockquote { margin: 0 0 30px; font: 27px/1.45 var(--serif); }
.quote-entry figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.quote-entry figcaption strong { font-weight: 500; color: var(--ink); font-size: 12px; }
.quote-entry figcaption a { text-decoration: none; }
.quote-entry figcaption a:hover { text-decoration: underline; }
.quote-entry figcaption svg { width: 14px; height: 14px; margin-left: 4px; }
.copy-button { display: inline-flex; align-items: center; gap: 9px; border: 0; border-top: 1px solid #49344430; background: transparent; padding: 14px 0 0; margin-top: 23px; align-self: start; font-size: 12px; min-height: 38px; }
.copy-button .icon { width: 16px; height: 16px; }
.copy-button:hover span { text-decoration: underline; text-underline-offset: 3px; }
.quotes-note { max-width: 75ch; margin-top: 28px; font-size: 12px; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--plum); color: var(--page); padding: 12px 20px; border-radius: 4px; max-width: calc(100% - 32px); width: max-content; font-size: 13px; z-index: 10; box-shadow: 0 6px 20px #352b3426; }
.toast:empty { display: none; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 12px 18px; background: var(--lemon); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.noscript-note { font-size: 13px; margin-block: 20px; color: var(--muted); }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .header-inner { gap: 35px; }
  .header-note { display: none; }
  .header-inner nav { margin-left: auto; }
  .intro-grid { gap: 32px; }
  .intro-copy h1 { font-size: clamp(42px, 5.2vw, 62px); }
  .open-page { padding-inline: 28px; }
  .verse-preview { font-size: 15px; }
  .reader { grid-template-columns: 190px minmax(0, 1fr); gap: 25px; }
  .reading-sheet { padding-inline: 32px; }
  .quote-entry { padding: 28px; }
  .quote-entry blockquote { font-size: 24px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 78px; gap: 18px; flex-wrap: wrap; padding-block: 20px 0; }
  .header-inner .brand { font-size: 27px; }
  .header-inner nav { margin-left: 0; width: 100%; justify-content: space-between; gap: 12px; }
  .header-inner nav a { padding-block: 12px 18px; }
  .header-inner nav a[aria-current] { text-underline-offset: 7px; }
  .intro { padding-block: 38px; }
  .intro-grid { grid-template-columns: 1fr; gap: 35px; }
  .intro-copy h1 { font-size: clamp(42px, 11.5vw, 65px); letter-spacing: -.035em; }
  .intro-copy > p { font-size: 15px; margin-top: 20px; }
  .desktop-break { display: none; }
  .button { margin-top: 25px; min-height: 52px; font-size: 13px; padding-inline: 20px; }
  .intro-copy .intro-foot { font-size: 12px; margin-top: 17px; }
  .open-page { padding: 27px 26px 35px; }
  .open-page h2 { font-size: 30px; margin-top: 23px; }
  .verse-preview { font-size: clamp(14px, 4vw, 18px); line-height: 1.8; margin-block: 23px; }
  .page-author { font-size: 12px; }
  .ribbon { right: 24px; width: 25px; height: 52px; }
  .collection { padding-block: 38px 48px; }
  .section-heading { align-items: start; flex-direction: column; gap: 22px; margin-bottom: 25px; }
  .section-heading h2 { font-size: 34px; }
  .section-heading p { font-size: 13px; max-width: 28ch; }
  .work-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px 20px; padding-block: 24px; align-items: start; }
  .cover { width: 74px; min-width: 74px; height: 108px; padding: 10px 8px 10px 13px; }
  .cover strong { font-size: 14px; }
  .cover span { font-size: 7px; }
  .work-info h3 { font-size: 25px; margin-top: 6px; }
  .author { font-size: 12px; }
  .work-info > p:not(.author) { font-size: 12px; }
  .work-meta { font-size: 12px; gap: 10px; }
  .work-meta span + span::before { margin-right: 10px; }
  .read-link { grid-column: 2; justify-self: start; padding: 3px 0; font-size: 12px; gap: 10px; }
  .read-link .icon { width: 18px; }
  .quote-band { padding-block: 36px; }
  .quote-band-inner { grid-template-columns: 1fr; gap: 35px; }
  .quote-band h2 { font-size: 28px; }
  .quote-band blockquote { font-size: 36px; }
  .site-footer { padding-block: 32px 20px; }
  .footer-top { gap: 20px; flex-wrap: wrap; }
  .footer-top > p { order: 3; width: 100%; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .reader { display: block; padding-top: 20px; }
  .reader-sidebar { position: static; }
  .contents { flex-direction: row; overflow-x: auto; gap: 6px; margin-block: 15px 25px; padding-bottom: 8px; scrollbar-width: thin; }
  .contents a { min-width: 155px; width: 155px; flex-shrink: 0; padding: 12px; }
  .contents strong { font-size: 16px; }
  .contents span { font-size: 12px; }
  .contents small, .sidebar-note { display: none; }
  .reader-tools { margin-bottom: 16px; gap: 6px; }
  .font-controls { gap: 5px; }
  .font-controls > span { display: none; }
  .bookmark-button { font-size: 12px; padding-inline: 6px; }
  .reading-sheet { padding: 28px 18px; }
  .reading-title h1 { font-size: 33px; }
  .reading-title .author span { margin-left: 4px; font-size: 12px; }
  .literature { font-size: calc(var(--reading-size) - 3px); margin-top: 30px; line-height: 1.85; }
  .literature.poetry { font-size: calc(var(--reading-size) - 5px); }
  .next-work a { font-size: 21px; }
  .quotes-intro { display: block; padding-block: 38px 28px; }
  .quotes-intro h1 { font-size: 50px; max-width: 5em; }
  .quotes-intro p { margin-block: 23px; font-size: 13px; }
  .filters button { padding-inline: 12px; font-size: 12px; }
  .quote-grid { grid-template-columns: 1fr; gap: 16px; }
  .quote-entry { min-height: 290px; padding: 28px 25px; }
  .quote-entry blockquote { font-size: 25px; overflow-wrap: anywhere; }
  .quotes-section { padding-bottom: 35px; }
}
@media (prefers-reduced-motion: no-preference) {
  .text-link { transition: gap 180ms cubic-bezier(.16, 1, .3, 1); }
  .ribbon { transform-origin: top center; }
  .open-page:hover .ribbon { animation: bookmark-sway 600ms cubic-bezier(.16, 1, .3, 1); }
  @keyframes bookmark-sway { 25% { transform: rotate(-8deg); } 65% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root { --reading-size: 12pt !important; background: white; color: black; }
  .site-header, .site-footer, .reader-sidebar, .reader-tools, .toast, .next-work, .copy-button { display: none !important; }
  .wrap { width: 100%; }
  .reader { display: block; padding: 0; }
  .reading-sheet { padding: 0; border: 0; }
  .literature p { break-inside: avoid; }
  .quote-entry { break-inside: avoid; }
}
