/* Subject-led art direction: ink, vermilion, and light. */
:root {
  --paper: #efe9df;
  --paper-alt: #e3dbce;
  --ink: #19262c;
  --muted: #566363;
  --line: #c8c2b7;
  --accent: #a93523;
  --dark: #101d25;
  --light: #f5eddf;
}
html[data-theme=night] {
  --paper: #111a20;
  --paper-alt: #1c2930;
  --ink: #eee6d8;
  --muted: #b3bfc1;
  --line: #40515a;
  --accent: #fa8864;
  --dark: #0b161d;
}
::selection { background: #a93523; color: #fff2df; }
body:before { opacity: .025; }
.masthead {
  height: 96px;
  position: relative;
  isolation: isolate;
  z-index: 2;
  color: var(--light);
  border-color: #f5eddf30;
}
.masthead:before {
  content: '';
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #0a151c;
  z-index: -1;
}
.masthead .star { color: #ed7049; }
.masthead .icon-button:hover { background: #ffffff15; }
.masthead nav>a:hover { border-color: #ed7049; }
.masthead nav, .back-link { font-weight: 500; }
.back-link { font-size: 12px; }
.hero {
  width: 100%;
  max-width: none;
  min-height: 760px;
  height: calc(100svh - 96px);
  max-height: 1120px;
  margin: 0;
  padding: 62px max(56px, calc((100vw - 1280px) / 2)) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  overflow: hidden;
  isolation: isolate;
  background: #0a151c;
  color: #f5eddf;
}
.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #071219dc 0%, #0712199c 27%, #07121918 70%), linear-gradient(0deg, #071219dc 0%, transparent 35%);
}
.hero-copy { padding: 0 0 35px; width: 100%; }
.hero-copy>.eyebrow { font-size: 11px; letter-spacing: .18em; gap: 18px; color: #f0e6d6; }
.tiny-star { color: #f9865b; }
.hero h1 {
  font-size: clamp(130px, 15.2vw, 234px);
  line-height: .76;
  letter-spacing: -.055em;
  margin: 43px 0 42px;
  text-shadow: 0 4px 35px #06121925;
}
.hero h1 em { padding-left: .41em; }
.hero-subtitle { max-width: 38em; margin: 64px 0 28px 7px; color: #f0e6d6; font: 500 12px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.hero-invitation { margin-left: 7px; gap: 20px; }
.hero-invitation p { font-size: 28px; color: #e6d6bf; }
.hero-invitation .hairline { background: #ed7049; width: 36px; }
.hero-link {
  background: #bc452b;
  border: 1px solid #df775544;
  padding: 14px 21px;
  margin: 28px 0 0 63px;
  color: #fff0dd;
  gap: 44px;
}
.hero-link:hover { background: #b23d27; gap: 55px; }
.hero-plate { position: absolute; inset: 0; padding: 0; z-index: -2; }
.hero .image-mount { height: 100%; background: #0a151c; }
.hero .image-mount:after { display: none; }
.hero .image-mount img { filter: none; object-position: 60% 50%; animation: reveal-landscape 1.5s ease-out both; }
.hero .plate-mark { right: 5%; bottom: 105px; font-size: 145px; opacity: .5; }
.hero-plate figcaption { position: absolute; right: max(56px, calc((100vw - 1280px) / 2)); bottom: 93px; display: flex; gap: 45px; color: #f0e6d6; font-size: 11px; letter-spacing: .08em; }
.hero-plate figcaption>span:first-child { display: none; }
.hero-bottom { width: 100%; margin-top: auto; border-top: 1px solid #eee2ce44; border-bottom: 0; padding: 20px 0 24px; color: #decfb7; }
.hero-bottom>a { color: #f8e4c5; }
.hero-bottom { font-size: 11px; }
.hero-bottom>span:first-child { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.beginnings { padding-top: 105px; padding-bottom: 110px; }
.section-heading { margin-bottom: 38px; }
.section-heading>.eyebrow { color: var(--accent); }
h2 { font-size: clamp(48px, 5.2vw, 80px); }
.selection-grid { grid-template-columns: 1.12fr 1fr; gap: 24px; }
.lead-poem, .small-poem { overflow: hidden; isolation: isolate; position: relative; color: #f5eddf; background-size: cover; background-position: center; }
.lead-poem {
  min-height: 465px;
  padding: 38px 43px 30px;
  display: flex;
  flex-direction: column;
  background-image: linear-gradient(90deg, #07141af2, #07141ab3), url('./art/poems/the-car-door.jpg');
}
.lead-poem:hover { background-color: #101d25; }
.lead-poem:after { content: ''; position: absolute; left: 0; bottom: 0; width: 90px; height: 4px; background: #e16a43; }
.lead-poem h3 { font-size: 70px; margin-top: 26px; margin-bottom: 23px; }
.lead-poem .verse-excerpt { font-size: 25px; }
.selection-top .eyebrow, .verse-excerpt { opacity: 1; }
.selection-top .eyebrow, .selection-bottom { font-size: 11px; }
.lead-poem .selection-bottom { margin-top: auto; padding-top: 38px; }
.lead-poem .page-number { opacity: .65; font-size: 66px; }
.side-selections { border: 0; gap: 23px; }
.small-poem { border: 0; padding: 25px 30px; min-height: 220px; background-image: linear-gradient(90deg, #071721f2, #071721b3), url('./art/poems/annette.jpg'); }
.small-poem:last-child { background-image: linear-gradient(90deg, #091a1bf2, #091a1bb3), url('./art/poems/fetch.jpg'); }
.small-poem>.eyebrow { color: #dfd8c8; }
.small-poem h3 { font-size: 49px; }
.small-poem p { color: #e5decf; font-size: 24px; }
.small-poem>div { margin-top: 10px; }
.small-poem .arrow { color: #d7c5a5; }
.small-poem:hover .arrow { color: #ffac7f; }
.collection-heading .eyebrow { color: var(--accent); }
.collection-heading em { color: var(--accent); }
.collection-description { font-size: 14px; }
.filter { min-height: 44px; font-size: 12px; font-weight: 500; }
.filter span { opacity: 1; }
.search input { font-size: 14px; }
.search input::placeholder { opacity: 1; }
.filter.active { border-bottom-color: var(--accent); color: var(--accent); }
.collection-tools { border-bottom: 2px solid var(--ink); }
.index-labels { grid-template-columns: 48px 100px minmax(0, 1fr) 210px; }
.index-labels>span:nth-child(2) { grid-column: 2 / 4; }
.index-labels>span:last-child { grid-column: 4; }
.index-labels { font-size: 11px; }
.poem-row { grid-template-columns: 48px 100px minmax(0, 1fr) 210px; min-height: 121px; gap: 0; }
.row-art { width: 76px; height: 86px; object-fit: cover; transition: filter .25s; }
.row-detail { min-width: 0; padding: 15px 0; }
.row-number { color: var(--accent); font-size: 18px; padding-top: 28px; }
.row-title { font-size: 39px; font-weight: 500; margin-bottom: 8px; }
.row-excerpt { font-family: var(--sans); font-size: 13px; line-height: 1.5; }
.row-meta { font-size: 11px; }
.poem-row:hover { padding-left: 0; padding-right: 0; }
.poem-row:hover .row-title { color: var(--accent); }
.poem-row:hover .row-art { filter: brightness(1.15); }
.about-section { background: #101d25; color: #f5eddf; padding-block: 95px; }
.about-inner { grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: center; }
.about-plate { position: relative; width: 100%; max-width: 430px; }
.about-plate img { display: block; width: 100%; height: 490px; object-fit: cover; object-position: 40%; }
.about-plate:after { content: ''; position: absolute; inset: 16px; border: 1px solid #e8dcc94a; pointer-events: none; }
.about-plate figcaption { position: absolute; bottom: 30px; left: 30px; color: #efe4cd; font: italic 27px/1 var(--serif); }
.about-inner .eyebrow { color: #e18c65; }
.about-inner h2 { font-size: clamp(48px, 5vw, 76px); }
.about-inner p:not(.eyebrow) { color: #bcc8c9; font-size: 13px; }
.about-inner .text-link { color: #f5dfbd; border-color: #e18c65; }
.footer { min-height: 180px; }
.footer-title { font-size: clamp(32px, 4.3vw, 66px); }
.reader-bar { height: 92px; }
.reader-mark { color: var(--accent); }
.reading-main { width: min(1280px, calc(100% - 112px)); margin-top: 38px; }
.poem-opening { display: grid; grid-template-columns: .95fr 1.05fr; min-height: 430px; background: #0e1a22; color: #f5eddf; position: relative; isolation: isolate; overflow: hidden; }
.poem-heading { padding: 35px 42px 38px; min-width: 0; position: relative; z-index: 1; }
.poem-topline { color: #e5dfd1; }
.poem-topline .eyebrow { font-size: 11px; }
.poem-topline .icon-button:hover { background: #ffffff15; }
.poem-opening .bookmark[aria-pressed=true] svg { fill: #f5eddf; stroke: #f5eddf; }
.poem-opening #poem-title { font-size: clamp(65px, 8vw, 112px); line-height: .93; letter-spacing: -.04em; margin-top: 48px; margin-bottom: 33px; overflow-wrap: anywhere; }
.poem-opening .poem-rule { width: 52px; height: 2px; margin-bottom: 20px; background: var(--scene-accent, #f38861); }
.poem-subject { font-size: 12px; font-weight: 500; line-height: 1.6; letter-spacing: .035em; color: #e5dfd1; }
.poem-art { position: relative; min-height: 430px; }
.poem-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poem-art:after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0e1a2260, transparent 30%); pointer-events: none; }
.poem-body { width: min(650px, 100%); margin: 65px auto 0; }
.poem-text { font-family: Georgia, 'Times New Roman', serif; font-size: 24px; font-weight: 400; line-height: 1.6; }
.reader-footer { font-size: 12px; }
.poem-pagination { width: min(650px, 100%); margin-inline: auto; }
.poem-pagination strong { color: var(--accent); }
.small-star { color: var(--accent); }
#reader[data-subject=glass] { --scene-accent: #dd976a; }
#reader[data-subject=moon] { --scene-accent: #a3c6e0; }
#reader[data-subject=field] { --scene-accent: #c5d095; }
#reader[data-subject=shore] { --scene-accent: #edac77; }
#reader[data-subject=ember] { --scene-accent: #f38861; }
@keyframes reveal-landscape { from { opacity: .4; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }

@media (min-width: 1500px) { .hero h1 { font-size: min(15.2vw, 234px); } }
@media (max-width: 1100px) {
  .hero { padding-inline: 36px; }
  .hero h1 { font-size: 16vw; }
  .hero-plate figcaption { right: 36px; }
  .hero .image-mount { height: 100%; }
  .poem-row { grid-template-columns: 42px 91px minmax(0, 1fr) 170px; }
  .index-labels { grid-template-columns: 42px 91px minmax(0, 1fr) 170px; }
  .reading-main { width: calc(100% - 72px); }
  .poem-heading { padding-inline: 30px; }
  .poem-opening #poem-title { font-size: 77px; }
  .about-inner { gap: 60px; }
  .lead-poem { padding-inline: 30px; }
}
@media (max-width: 760px) {
  .masthead { height: 80px; }
  .hero { min-height: 700px; height: calc(100svh - 80px); max-height: 1000px; padding: 43px 22px 0; }
  .hero-copy { padding-bottom: 35px; }
  .hero-copy>.eyebrow { font-size: 11px; letter-spacing: .1em; gap: 13px; }
  .hero h1 { font-size: clamp(76px, 24vw, 145px); margin-top: 42px; margin-bottom: 38px; line-height: .81; }
  .hero h1 em { padding-left: .32em; }
  .hero-subtitle { margin-left: 2px; max-width: 27em; font-size: 11px; letter-spacing: .08em; }
  .hero-invitation { margin-left: 2px; gap: 14px; }
  .hero-invitation p { font-size: 27px; }
  .hero-invitation .hairline { width: 27px; }
  .hero-link { margin-left: 43px; margin-top: 28px; padding: 12px 18px; font-size: 11px; }
  .hero .image-mount { height: 100%; }
  .hero .image-mount img { object-position: 82% 50%; }
  .hero:before { background: linear-gradient(90deg, #071219c9, #07121925), linear-gradient(0deg, #071219dc 0%, #07121900 50%); }
  .hero .plate-mark { font-size: 100px; bottom: 93px; right: 22px; opacity: .7; }
  .hero-plate figcaption { bottom: 88px; right: 25px; font-size: 11px; }
  .hero-bottom { padding-top: 19px; padding-bottom: 20px; font-size: 11px; }
  .hero-bottom>span:first-child { font-size: 11px; }
  .hero-bottom>span:nth-child(2) { display: none; }
  .hero-bottom>a { margin-left: auto; }
  .beginnings { padding-top: 60px; padding-bottom: 72px; }
  .section-heading { margin-bottom: 27px; }
  .section-heading h2 { font-size: 48px; }
  .selection-grid { grid-template-columns: 1fr; gap: 18px; }
  .lead-poem { min-height: 420px; padding: 30px 27px; }
  .lead-poem h3 { font-size: 59px; margin-top: 29px; }
  .lead-poem .verse-excerpt { font-size: 24px; }
  .side-selections { grid-template-columns: 1fr; grid-template-rows: auto; gap: 18px; }
  .small-poem { padding: 25px 27px; min-height: 230px; }
  .small-poem h3 { font-size: 53px; }
  .small-poem>.eyebrow { font-size: 11px; }
  .small-poem p { font-size: 25px; }
  .small-poem .arrow { font-size: 25px; }
  .collection-heading h2 { font-size: 50px; }
  .collection-description { font-size: 13px; }
  .collection-tools { padding-bottom: 13px; }
  .filter { min-height: 44px; }
  .filters { gap: 3px 22px; }
  .index-labels { grid-template-columns: 27px 65px minmax(0, 1fr) 29px; }
  .index-labels>span:last-child { font-size: 0; }
  .poem-row { grid-template-columns: 27px 65px minmax(0, 1fr) 29px; min-height: 108px; }
  .row-number { font-size: 15px; padding-top: 24px; }
  .row-art { width: 50px; height: 70px; }
  .row-title { font-size: 31px; margin-bottom: 8px; }
  .row-excerpt { font-size: 13px; max-width: 100%; }
  .row-detail { padding: 17px 8px 17px 0; }
  .row-meta>span:not(.arrow) { display: none; }
  .row-meta .arrow { font-size: 23px; }
  .about-section { padding-block: 45px 58px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-plate { max-width: none; }
  .about-plate img { height: 290px; object-position: 50% 35%; }
  .about-plate figcaption { font-size: 26px; }
  .about-inner h2 { font-size: 52px; }
  .about-inner p:not(.eyebrow) { font-size: 13px; }
  .footer { min-height: 155px; }
  .footer-title { font-size: 34px; }
  .reader-bar { height: 80px; }
  .reading-main { width: calc(100% - 32px); margin-top: 22px; }
  .poem-opening { display: flex; flex-direction: column-reverse; min-height: 0; }
  .poem-heading { padding: 24px 24px 30px; min-height: 0; background: #0e1a22; }
  .poem-opening #poem-title { font-size: clamp(49px, 15.5vw, 76px); line-height: .95; margin-top: 28px; margin-bottom: 24px; max-width: 100%; }
  .poem-opening .poem-rule { margin-bottom: 17px; }
  .poem-subject { font-size: 11px; letter-spacing: .02em; }
  .poem-art { position: relative; inset: auto; min-height: 0; width: 100%; aspect-ratio: 3 / 2; opacity: 1; }
  .poem-art img { object-position: center; }
  .poem-art:after { display: none; }
  .poem-topline .eyebrow { font-size: 11px; max-width: calc(100% - 44px); }
  .poem-body { width: calc(100% - 16px); margin-top: 40px; }
  .poem-text { font-size: 22px; }
  .poem-pagination { width: calc(100% - 16px); }
}
@media (max-width: 380px) {
  .hero { padding-inline: 20px; min-height: 650px; }
  .hero h1 { font-size: 24vw; }
  .hero-invitation p { font-size: 24px; }
  .hero-link { margin-left: 0; }
  .lead-poem h3 { font-size: 54px; }
  .lead-poem .verse-excerpt { font-size: 22px; }
  .poem-row { grid-template-columns: 23px 57px minmax(0, 1fr) 23px; }
  .index-labels { grid-template-columns: 23px 57px minmax(0, 1fr) 23px; }
  .row-art { width: 44px; height: 65px; }
  .row-title { font-size: 28px; }
  .poem-heading { padding-inline: 20px; }
  .poem-text { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .hero .image-mount img { animation: none; } }
@media print {
  .reading-main { width: 100%; margin: 0; }
  .poem-art, .poem-subject, .poem-topline { display: none; }
  .poem-opening { display: block; min-height: 0; background: none; color: black; }
  .poem-heading { padding: 0; min-height: 0; background: none; }
  .poem-opening #poem-title { margin-top: 0; font-size: 36pt; }
  .poem-body { width: 100%; margin-top: 30px; }
  .poem-text, .reading-main.large-text .poem-text { font-size: 16pt; }
}
