/* Mystery School Poets: the 2005 American Atheneum look, brought up to date.
   Colours are taken from the 2005 header pictures. */
:root {
  --slate: #5a667e;
  --slate-deep: #474f63;
  --slate-ink: #2f3545;
  --oxblood: #7a0001;
  --oxblood-deep: #560001;
  --wine: #660000;
  --wine-hover: #a3121a;
  --mist: #e6e7e8;
  --rule: #d4d4d6;
  --paper: #ffffff;
  --ink: #26221f;
  --muted: #6c6a68;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --wrap: 1120px;
  --pad: clamp(20px, 4vw, 40px);      /* side margin of the page */
  --col: 260px;                       /* left column: artist card or category tabs */
  --gap: clamp(40px, 6vw, 88px);      /* space between that column and the content */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh; display: flex; flex-direction: column;   /* the gray footer always reaches the bottom */
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--wine); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus-visible { color: var(--wine-hover); }
a:focus-visible, summary:focus-visible, .tab:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); width: 100%; }
.small { font-size: .82em; }
.muted { color: var(--muted); }
.accent { color: var(--wine); }

/* ---- top bar ---- */
.top { background: var(--slate); color: #fff; }
/* wordmark at the far left, links at the far right, at every window width */
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; flex-wrap: wrap; padding: 0 clamp(20px, 3vw, 40px); }
.wordmark { font-family: var(--sans); font-size: 1.65rem; letter-spacing: -.01em; line-height: 1; color: #fff; white-space: nowrap; }
/* Scott's wordmark artwork (white), sized to the old lettering; shrinks to fit narrow phones */
.wordmark { display: inline-block; max-width: 100%; }
.wordmark img { display: block; height: 1.7rem; width: auto; max-width: 100%; object-fit: contain; }
.wordmark:hover img { opacity: .85; }
.menu { display: flex; gap: clamp(16px, 3vw, 36px); font-family: var(--sans); font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.menu a { color: #e4e8ef; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover { color: #fff; }
.menu a[aria-current="page"] { color: #fff; border-bottom-color: #c9a9a9; }

/* ---- hero (section front page) ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--oxblood);
  background-image: linear-gradient(90deg, var(--oxblood) 54%, var(--oxblood-deep) 100%);   /* same red where the picture fades out: no seam */
  color: #fff;
  min-height: clamp(320px, 36vw, 560px);
  overflow: hidden;
}
.hero-art { position: relative; }
/* Scott's 2026 header (both faces kept in view); the red fades in from the right in code, so the amount can be tuned here */
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 35%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(122,0,1,0) 62%, rgba(122,0,1,.55) 84%, var(--oxblood) 100%); }
.hero-text { align-self: center; padding: clamp(36px, 5vw, 72px) clamp(24px, 5vw, 72px); }
.eyebrow { font-family: var(--sans); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: #e9c9c9; margin: 0 0 14px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.02; margin: 0; letter-spacing: -.01em; }
.script { font-family: var(--script); font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: #d6dbe5; margin: 10px 0 22px; line-height: 1.2; }
.lede { font-size: 1.06rem; line-height: 1.7; color: #f3e6e6; max-width: 30em; margin: 0; }

/* ---- page band (every other page) ---- */
.band { position: relative; background: var(--oxblood); color: #fff; overflow: hidden; }
/* the header picture, a little larger than the band and centred on the eyes (Scott, Nov 15) */
.band-art {
  position: absolute; inset: 0 auto 0 0; width: min(50%, 640px);
  background: url(header-800.webp) no-repeat;
  background-image: image-set(url(header-800.webp) 1x, url(header-1280.webp) 2x);
  background-size: 115% auto; background-position: 34% 27%;
  -webkit-mask-image: linear-gradient(90deg, #000 58%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 58%, transparent 100%);
  opacity: .9;
}
.band-text { position: relative; padding-top: 34px; padding-bottom: 34px; padding-left: max(var(--pad), min(30%, 360px)); }
/* the title lines up with the content column below it */
.band.indent-reading .band-text, .band.indent-tabs .band-text { padding-left: calc(var(--pad) + var(--col) + var(--gap)); }
.band.no-indent .band-text { padding-left: var(--pad); }
.band-title { font-family: var(--serif); font-weight: 500; letter-spacing: -.005em; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1; margin: 6px 0 0; }
.crumbs { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #e9c9c9; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs a { color: #f4e3e3; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { color: #c48686; }
.crumbs span:last-child:not(.sep) { color: #f0d6d6; }

main { display: block; flex: 1 0 auto; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }

/* ---- reading pages (poems, essays) ---- */
.reading { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); gap: 0 var(--gap); align-items: start; }
.reading.no-side { grid-template-columns: minmax(0, 1fr); }
.side {
  font-family: var(--sans); font-size: .9rem; line-height: 1.55; color: var(--ink);
  text-align: right; padding-right: clamp(28px, 4vw, 44px);
  border-right: 2px dotted #b9b9bd; min-height: 220px;
  position: sticky; top: 24px;
}
.side img { display: block; margin: 0 0 8px auto; border-radius: 2px; width: 72px; height: auto; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.side .rule { width: 48px; margin: 18px 0 14px auto; }
.side i, .side em { color: var(--muted); }
.side audio { margin-top: 10px; }
.side table { width: 100%; }
.text { max-width: 36em; }
.text h1 { font-family: var(--serif); font-weight: 500; color: var(--wine); font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.005em; }
.text p { margin: 0 0 1.2em; }
.text .small { font-family: var(--sans); font-size: .82rem; letter-spacing: .01em; }
.text table { margin: 1.5em 0; }
.text table td { vertical-align: top; padding: 4px 16px 4px 0; }
.text img { margin: 8px 0 18px; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 1.4em 0; width: 100%; }

audio { width: 100%; max-width: 340px; height: 40px; display: block; }
/* the box is exactly the shape of the picture (the 2005 movies are 240 px wide; shown up to twice that) */
video { display: block; width: 100%; max-width: 480px; height: auto; background: #000; border-radius: 3px; margin: 12px 0 8px; }

/* ---- previous / next ---- */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end; margin-top: clamp(56px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--rule); font-size: 1.05rem; }
.pager a { display: flex; flex-direction: column; gap: 2px; }
.pager .small { font-family: var(--sans); letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; }
.pager .next { text-align: right; align-items: flex-end; }
.pager .back { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; color: var(--slate); }

/* ---- artist page: tabs on the left, accordion on the right ---- */
.artist-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: start; padding-bottom: clamp(32px, 4vw, 48px); margin-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.portrait img { width: 96px; height: auto; display: block; border-radius: 2px; }
.artist-kicker { font-family: var(--sans); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); margin: 0 0 8px; }
.artist-meta { font-family: var(--sans); font-size: .92rem; line-height: 1.6; color: var(--muted); }
.artist-meta .rule { display: none; }
.artist-meta br + br { display: none; }
.artist-meta i { display: block; margin-top: 14px; font-family: var(--serif); font-size: 1.08rem; color: var(--ink); max-width: 34em; }
.artist-meta audio { margin-top: 10px; }
.artist-art img { display: block; width: 150px; border-radius: 2px; }

.tabs-layout { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 24px; font-family: var(--sans); }
.tab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; border-left: 3px solid transparent; color: var(--slate-ink); font-size: .98rem; line-height: 1.35; border-radius: 0 4px 4px 0; }
.tab:hover { background: #f4f4f5; color: var(--wine); }
.tab .count { font-size: .78rem; color: #9a9894; font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] { border-left-color: var(--oxblood); background: #f6f1f1; color: var(--wine); font-weight: 500; }

.panel h2 { font-family: var(--serif); font-weight: 500; font-style: italic; color: var(--wine); font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 0 0 18px; }
.js .panel[hidden] { display: none; }
.poems { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.poems > li { border-bottom: 1px solid var(--rule); }
.poem summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 16px; padding: 18px 4px; font-size: 1.22rem; line-height: 1.35; color: var(--ink); }
.poem summary::-webkit-details-marker { display: none; }
.poem summary:hover .poem-name { color: var(--wine); }
.poem[open] summary .poem-name { color: var(--wine); }
.poem-meta { display: flex; gap: 6px; }
.pill { font-family: var(--sans); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); border: 1px solid #c8cdd7; border-radius: 999px; padding: 3px 9px 2px; }
.chev { width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; justify-self: center; }
.poem[open] .chev { transform: rotate(-135deg) translateY(-1px); }
.poem-body { padding: 4px 4px 36px; }
.poem-body .listen { margin: 4px 0 22px; }
.poem-text { max-width: 36em; }
.poem-text p { margin: 0 0 1.2em; }
.poem-text .small { font-family: var(--sans); font-size: .82rem; }
.poem-text table td { vertical-align: top; padding: 4px 16px 4px 0; }
.open { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 22px 0 0; }
.poems .ext a { display: block; padding: 18px 4px; font-size: 1.22rem; }

/* ---- section front page ---- */
.home { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.welcome h2 { font-family: var(--serif); font-weight: 500; color: var(--wine); font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 0 0 6px; }
.cards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 18px; align-items: center; padding: 18px; background: #fff; border: 1px solid #e7e4de; border-radius: 6px; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; height: 100%; }
.card:hover { border-color: #d7c2c2; box-shadow: 0 8px 24px -16px rgba(86,0,1,.45); transform: translateY(-1px); color: var(--ink); }
.card img { grid-row: 1 / 3; width: 64px; height: auto; border-radius: 2px; }
.card-name { font-size: 1.28rem; line-height: 1.2; color: var(--wine); align-self: end; }
.card-role { font-family: var(--sans); font-size: .82rem; line-height: 1.4; color: var(--muted); align-self: start; margin-top: 4px; }
.special { background: #f4f4f5; border-radius: 6px; padding: clamp(24px, 3vw, 36px); border-top: 3px solid var(--oxblood); }
.special .label { font-family: var(--sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); margin: 0 0 8px; }
.special p { margin: 0 0 16px; line-height: 1.6; }
.special .more { margin: 22px 0 0; font-family: var(--sans); font-size: .9rem; }

/* ---- footer ---- */
.foot { background: var(--slate); color: #d3d8e2; font-family: var(--sans); font-size: .82rem; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; min-height: 64px; padding-top: 18px; padding-bottom: 18px; }
.foot p { margin: 0; }
.foot-mark { color: #fff; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; }
.foot-mark:hover { color: #fff; opacity: .8; }

/* ---- phones and small tablets ---- */
@media (max-width: 860px) {
  .tabs-layout { grid-template-columns: minmax(0, 1fr); }
  .band.indent-tabs .band-text { padding-left: var(--pad); }
  .tabs { position: sticky; top: 0; z-index: 2; flex-direction: row; overflow-x: auto; gap: 8px; padding: 10px 0; margin: -10px 0 8px; background: var(--paper); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; border: 1px solid #ddd8d0; border-radius: 999px; padding: 8px 14px; font-size: .88rem; white-space: nowrap; }
  .tab[aria-selected="true"] { border-color: var(--oxblood); background: var(--oxblood); color: #fff; }
  .tab[aria-selected="true"] .count { color: #f0caca; }
  .home { grid-template-columns: minmax(0, 1fr); }
  .artist-head { grid-template-columns: auto minmax(0, 1fr); }
  .artist-art { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 1.125rem; }
  .top-row { min-height: 0; padding-top: 16px; padding-bottom: 14px; gap: 10px; }
  .menu { width: 100%; justify-content: space-between; gap: 12px; font-size: .72rem; letter-spacing: .12em; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-art { aspect-ratio: 16 / 9; }   /* the whole picture, faces uncropped */
  .hero-art::after { background: linear-gradient(180deg, rgba(122,0,1,0) 70%, var(--oxblood) 100%); }
  .hero-text { padding-top: 8px; }
  .band-art { width: 100%; opacity: .32; -webkit-mask-image: none; mask-image: none; background-size: cover; background-position: 50% 30%; }
  .band-text, .band.indent-reading .band-text, .band.indent-tabs .band-text { padding-left: var(--pad); padding-top: 26px; padding-bottom: 26px; }
  .reading { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; text-align: left; border-right: 0; border-bottom: 2px dotted #b9b9bd; padding: 0 0 22px; margin-bottom: 32px; min-height: 0; display: flow-root; }
  .side img { float: left; margin: 2px 16px 6px 0; width: 56px; }
  .side .rule { clear: both; width: 100%; margin: 14px 0; border-top-color: transparent; }
  .side br + br { display: none; }
  .crumbs .sep:nth-last-child(2), .crumbs > span:last-child:not(.sep) { display: none; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager .back { grid-column: 1 / -1; grid-row: 2; }
  .portrait img { width: 72px; }
}

/* ---- recordings ---- */
.native { display: none !important; }
.i-play { display: inline-block; width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.on > .p-btn .i-play, .deck.on .deck-play .i-play, .playing .i-play, .row-play.playing .i-play {
  width: 11px; height: 13px; border: 0; border-left: 3.5px solid currentColor; border-right: 3.5px solid currentColor; margin-left: 0; }
.i-prev, .i-next { display: inline-block; position: relative; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.i-prev { border-right: 9px solid currentColor; margin-left: 4px; }
.i-next { border-left: 9px solid currentColor; margin-right: 4px; }
.i-prev::before, .i-next::before { content: ""; position: absolute; top: -6px; width: 2.5px; height: 12px; background: currentColor; }
.i-prev::before { left: -3px; }
.i-next::before { right: -3px; }

.player { display: flex; align-items: center; gap: 14px; max-width: 420px; }
.p-btn, .deck-play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--oxblood); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.p-btn:hover, .deck-play:hover { background: var(--wine-hover); }
.p-btn:active, .deck-play:active { transform: scale(.96); }
.p-bar, .deck-bar { flex: 1; height: 6px; border-radius: 99px; background: #e2ddd6; position: relative; cursor: pointer; min-width: 80px; }
.p-fill, .deck-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--oxblood); }
.p-time, .deck-time { font-family: var(--sans); font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 4.5em; }

.listen-card { display: flex; flex-direction: column; gap: 12px; background: #f5f5f6; border-left: 3px solid var(--oxblood); border-radius: 0 6px 6px 0; padding: 18px 22px; margin: 0 0 2.2em; max-width: 30em; }
.listen-label { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); margin: 0; }
.special .player, .artist-meta .player { margin-top: 12px; }

.play-all { margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px; border: 0; border-radius: 999px; background: var(--oxblood); color: #fff; font-family: var(--sans); font-size: .9rem; letter-spacing: .04em; cursor: pointer; transition: background .15s ease; }
.play-all:hover { background: var(--wine-hover); }

.row-play { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #cdb8b8; background: transparent; color: var(--oxblood); display: grid; place-items: center; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.row-play .i-play { border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; margin-left: 2px; }
.row-play:hover, .row-play.current { background: var(--oxblood); border-color: var(--oxblood); color: #fff; }
.poem summary { grid-template-columns: 34px minmax(0, 1fr) auto 20px; }
.no-audio .poem summary::before { content: ""; width: 34px; }
.text-play { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; color: var(--wine); font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.text-play:hover { color: var(--wine-hover); }
.listen-line { margin: 0 0 1.4em !important; }

.panel-note { font-family: var(--sans); font-size: .9rem; color: var(--muted); margin: -6px 0 18px; }
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: none; }
.tracks li { border-bottom: 1px solid var(--rule); }
.track { width: 100%; display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto 28px; gap: 14px; align-items: center; padding: 14px 4px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.track .n { font-family: var(--sans); font-size: .78rem; color: #9a9894; font-variant-numeric: tabular-nums; }
.track .t { font-size: 1.12rem; line-height: 1.35; }
.track .c { font-family: var(--sans); font-size: .76rem; color: var(--muted); text-align: right; }
.track .i-play { color: var(--oxblood); justify-self: center; opacity: .55; }
.track:hover .t, .track.current .t { color: var(--wine); }
.track:hover .i-play, .track.current .i-play { opacity: 1; }

.deck { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; width: min(960px, calc(100% - 24px)); display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; background: var(--slate-ink); color: #fff; border-radius: 999px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); font-family: var(--sans); }
.deck[hidden] { display: none; }
.deck-play { width: 44px; height: 44px; }
.deck-prev, .deck-next, .deck-close { flex: none; width: 34px; height: 34px; border: 0; background: none; color: #d3d8e2; display: grid; place-items: center; cursor: pointer; border-radius: 50%; font-size: 1.4rem; line-height: 1; }
.deck-prev:hover, .deck-next:hover, .deck-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.deck-info { display: flex; flex-direction: column; min-width: 0; width: 34%; }
.deck-title { font-family: var(--serif); font-size: 1.05rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-by { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #aeb6c6; }
.deck-bar { background: rgba(255,255,255,.18); }
.deck-fill { background: #e9c9c9; }
.deck-time { color: #c9cfdb; }
body.has-deck .foot { padding-bottom: 96px; }

/* ---- Joe's book ---- */
.book { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px 18px 14px 14px; background: #fff; border: 1px solid #e7e4de; border-radius: 6px; color: var(--ink); max-width: 360px; transition: border-color .15s ease, box-shadow .15s ease; }
.book:hover { border-color: #d7c2c2; box-shadow: 0 8px 24px -16px rgba(86,0,1,.45); color: var(--ink); }
.book img { width: 96px; height: auto; display: block; box-shadow: 0 6px 16px -8px rgba(0,0,0,.45); }
.book-text { display: flex; flex-direction: column; gap: 2px; }
.book-kicker { font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.book-title { font-size: 1.25rem; line-height: 1.2; color: var(--wine); }
.book-sub { font-family: var(--sans); font-size: .82rem; color: var(--muted); }
.book-get { margin-top: 8px; font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); }

/* ---- contact ---- */
.contact-form { display: grid; gap: 20px; max-width: 34em; margin-top: 1.6em; }
.contact-form label { display: grid; gap: 8px; font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-ink); }
.contact-form input, .contact-form textarea { font: inherit; font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0; text-transform: none; color: var(--ink); background: #fff; border: 1px solid #d9d4cc; border-radius: 6px; padding: 12px 14px; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--slate); outline-offset: 1px; border-color: transparent; }
.contact-form button { justify-self: start; border: 0; border-radius: 999px; background: var(--oxblood); color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; padding: 14px 28px; cursor: pointer; }
.contact-form button:hover { background: var(--wine-hover); }
.contact-form button[disabled] { opacity: .6; cursor: default; }
.form-status { font-family: var(--sans); font-size: .9rem; color: var(--wine); margin: 0; min-height: 1.4em; }
.hp { position: absolute; left: -9999px; }

@media (max-width: 860px) {
  .artist-head .artist-art { display: block; grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .deck { bottom: 0; width: 100%; border-radius: 0; flex-wrap: wrap; padding: 10px 14px; gap: 8px 10px; }
  .deck-info { width: auto; flex: 1; }
  .deck-bar { order: 9; flex-basis: 100%; }
  .deck-time { order: 8; }
  .track { grid-template-columns: 2em minmax(0, 1fr) 24px; }
  .track .c { display: none; }
  .poem summary { gap: 12px; }
}

/* ---- Scott's art beside a poem ---- */
.poem-art { float: right; width: min(48%, 460px); margin: 4px 0 28px clamp(24px, 4vw, 48px); shape-outside: margin-box; }
.poem-art img { display: block; width: 100%; height: auto; margin: 0; }
.text:has(.poem-art) { max-width: 60em; }
.text:has(.poem-art) .listen-card { max-width: 30em; }
.poem-text .poem-art { width: min(44%, 380px); }
.text::after, .poem-text::after { content: ""; display: block; clear: both; }
/* pictures drawn on white paper sit into the page instead of showing white boxes */
.text img, .poem-text img, .artist-art img { mix-blend-mode: multiply; }
@media (max-width: 720px) {
  .poem-art, .poem-text .poem-art { float: none; width: 100%; max-width: 420px; margin: 0 auto 28px; }
}
.poem-art figcaption { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 10px; text-align: right; }
.art-zoom { display: block; cursor: zoom-in; }
/* very tall pictures: never taller than the screen */
.poem-art.tall { width: auto; max-width: min(40%, 360px); }
.poem-art.tall img { width: auto; max-width: 100%; max-height: calc(100vh - 140px); margin: 0 auto; }
@media (max-width: 720px) {
  .poem-art.tall, .poem-text .poem-art.tall { max-width: 100%; }
  .poem-art.tall img { max-height: 70vh; }
}
/* wide pictures: full width above the poem on every screen */
.poem-art.wide, .poem-text .poem-art.wide { float: none; width: 100%; max-width: none; margin: 4px 0 32px; }

/* small pictures: never shown larger than their real size */
.poem-art.small, .poem-text .poem-art.small { width: auto; max-width: 225px; }
.poem-art.small img { width: auto; max-width: 100%; }
/* the only copy is small, so it sits in a white mat with a thin rule to look framed on purpose */
.poem-art.small { padding: 14px; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
@media (max-width: 720px) { .poem-art.small, .poem-text .poem-art.small { margin: 0 auto 28px; } }

/* above: picture on its own above the poem so long lines keep their full width */
.poem-art.above, .poem-text .poem-art.above { float: none; width: 100%; max-width: 440px; margin: 4px 0 32px; }

/* "Play all" on its own line under the place name */
.artist-meta .play-all { display: flex; width: fit-content; margin-top: 16px; }

/* Jonathan Talbot's music: introduction, the recordings, then the videos */
.panel-intro { margin: 0 0 24px; max-width: 36em; }
.panel-sub { font-family: var(--sans); font-weight: 500; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); margin: 40px 0 6px; }
.clips { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.clip { margin: 0; flex: 0 1 360px; }
.clip video { max-width: 360px; }
.clip figcaption { font-family: var(--sans); font-size: .82rem; color: var(--muted); }

/* Scott, 2026-11-15: a poem's lines break only where the poet broke them.
   site.js measures the longest line; a picture that would squeeze it moves above the poem, and on a narrow
   phone the type eases down (to 80% at most) before any line is allowed to wrap. */
.verse { white-space: nowrap; }
.verse .small, .verse .prose { white-space: normal; }   /* dedications, epigraphs and prose paragraphs wrap as prose */
.verse.measure { display: inline-block; width: max-content; }
.verse.measure .small, .verse.measure .prose, .verse.measure video, .verse.measure audio, .verse.measure table { display: none; }
.verse.wrap { white-space: normal; }
.poem-art.forced-above, .poem-text .poem-art.forced-above { float: none; width: 100%; max-width: 440px; margin: 4px 0 32px; }
.poem-art.forced-above.wide { max-width: none; }
.poem-art.forced-above.small { width: auto; max-width: 225px; }
.poem-art.forced-above.tall img { max-height: 70vh; margin: 0; }
