.poetry-page header{position:relative;background:#090807}
.poetry-page [hidden]{display:none!important}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cover-stage{
  display:grid;place-items:center;
  background:
    radial-gradient(ellipse at 28% 48%,#35403a 0,transparent 50%),
    linear-gradient(105deg,#151918 0%,#232b28 33%,#141817 58%,var(--black) 87%);
  border-block:1px solid #665033;
}
.poetry-cover{width:100%;position:relative;box-shadow:0 0 4rem #0007}
.poetry-cover img{display:block;width:100%;height:auto}
.cover-actions{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:0 1rem;padding:.35rem 5%;background:#141817;border-top:1px solid #665033;
}
.reader-tools a,.end-menu a,.index-page>a{font:1.2rem/1.3 'Cormorant Garamond',Georgia,serif}
.cover-actions a{
  display:inline-flex;align-items:center;min-height:44px;
  color:var(--cream);font:italic 500 clamp(1.45rem,2.8vw,1.9rem)/1.1 'Cormorant Garamond',Georgia,serif;
  text-decoration:underline;text-decoration-color:#c79e76;text-decoration-thickness:1px;text-underline-offset:.19em;
}
.cover-actions .browse{font-size:clamp(1.125rem,2vw,1.3rem);font-style:normal}
.cover-actions a:hover,.cover-actions a:focus-visible{text-decoration-thickness:2px}
.cover-actions a:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.poem-reader,.index-page{max-width:53rem;margin:auto;padding:clamp(1.5rem,5vw,4rem) clamp(1.25rem,5vw,3.5rem) 5rem}
.reader-tools{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #8f7750;padding-bottom:1rem}
.reader-tools a,.end-menu a,.index-page>a{color:#dfc49a;text-decoration:underline;text-underline-offset:.3em}
.poem-reader article h1{font-size:clamp(3.5rem,8vw,6rem);font-style:italic;text-transform:none;line-height:.98;letter-spacing:-.035em;margin:2.75rem 0 1rem}
.poet{font:1rem Inter,Arial,sans-serif;color:#d2b78c;margin:0 0 2.5rem}
.verse{white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4;font-size:clamp(1.2rem,2.6vw,1.5rem);line-height:1.55}
.end-menu{margin-top:3rem;padding-top:1.25rem;border-top:1px solid #736040}
#poem-menu,.index-page .directory{
  background:linear-gradient(145deg,#282215 0%,#15120e 32%,var(--black) 72%) #15120e;
  color:var(--cream);color-scheme:dark;
}
#poem-menu{position:fixed;inset:0 auto 0 0;width:min(32rem,50vw);height:100dvh;max-height:none;max-width:none;margin:0;border:0;padding:0;overflow:auto}
#poem-menu::backdrop{background:#08060399}
.drawer-open{overflow:hidden}
.directory{padding:1.5rem clamp(1.25rem,3vw,2.4rem) 2.5rem}
.drawer-heading,.mode{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.drawer-heading h2{font:italic 3rem/.95 'Cormorant Garamond',Georgia,serif;margin:.5rem 0 1.5rem}
.directory button,.directory input,.directory select,.directory label,#result-count{
  font:1.15rem/1.35 'Cormorant Garamond',Georgia,serif;color:inherit;
}
.directory button{cursor:pointer;background:none;border:0}
.directory .close-drawer{padding:.55rem}
.mode{justify-content:start;border-bottom:1px solid #64533b;margin-bottom:1.2rem}
.mode button{min-height:44px;padding:.5rem .1rem;border-bottom:2px solid transparent;font-size:1.35rem}
.mode button[aria-pressed=true]{border-color:#c6484e;font-style:italic;color:#f4d9a6}
.directory label{display:block;margin:.8rem 0 .3rem}
.directory input,.directory select{width:100%;background:#171510;border:1px solid #8a7658;padding:.6rem;border-radius:0}
.directory :is(input,select,button,a):focus-visible{outline:2px solid #e7b96f;outline-offset:2px}
#result-count{font-size:1rem;color:#d2bc95}
.poem-list{list-style:none;margin:0;padding:0}
.poem-list li{border-top:1px solid #514435}
.poem-list a{display:block;padding:.56rem .25rem;font:1.55rem/1.18 'Cormorant Garamond',Georgia,serif}
.poem-list a:hover,.poem-list a[aria-current=page]{color:#f4d9a6;text-decoration:underline;text-underline-offset:.17em}
.index-page .directory{margin-top:1.25rem}
@media(max-width:700px){#poem-menu{width:100vw}}
