/* seanredenbaugh.com — hand-written, no framework.
   Palette: dusk (night blues) for chrome and photographs, clean page for reading,
   his brand red for actions, a single sunrise glow on the home page. */

@font-face { font-family: "Bodoni Moda"; font-style: normal; font-display: swap; font-weight: 400 900; src: url(/fonts/bodoni-moda-latin-standard-normal.woff2) format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-display: swap; font-weight: 400 900; src: url(/fonts/bodoni-moda-latin-standard-italic.woff2) format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/roboto-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-display: swap; font-weight: 400 800; src: url(/fonts/eb-garamond-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-display: swap; font-weight: 400 800; src: url(/fonts/eb-garamond-latin-wght-italic.woff2) format("woff2"); }

:root {
  --night: #1c2029;
  --night-2: #252a36;
  --night-3: #323847;
  --on-night: #e9e6e1;
  --on-night-muted: #a5a9b5;
  --page: #fbfaf8;
  --page-2: #f1efeb;
  --ink: #20232b;
  --muted: #676c7a;
  --rule: #dedad3;
  --red: #d91d23;
  --red-dark: #b0161b;
  --gold: #f0b545;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif;
  --wrap: 1180px;
  --narrow: 720px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1.13rem, 1.05rem + .3vw, 1.25rem);
  line-height: 1.6;
  font-variant-numeric: oldstyle-nums;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; font-kerning: normal; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
blockquote { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
/* narrow text columns stay left-aligned with the wordmark in the header */
.wrap.narrow > * { max-width: var(--narrow); }
.wrap-wide { max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--page); padding: .5em 1em; z-index: 100; }
.skip:focus { left: 8px; }
.small { font-size: .9em; color: var(--muted); }

/* ------------------------------------------------ masthead */
.masthead { background: var(--night); color: var(--on-night); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.07); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 24px; }
.wordmark { font-family: var(--display); font-size: 1.45rem; font-style: italic; text-decoration: none; color: var(--on-night); white-space: nowrap; }
.wordmark:hover { color: #fff; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 4px; }
.site-nav a { display: block; padding: .45em .7em; text-decoration: none; color: var(--on-night-muted); font-size: 1.06rem; border-radius: 3px; }
.site-nav a:hover, .site-nav .active > a, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav .active > a { box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.site-nav .has-sub { position: relative; }
.site-nav .sub { position: absolute; top: 100%; left: 0; min-width: 190px; background: var(--night-2); padding: 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 4px; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub a { box-shadow: none !important; }
.nav-toggle { display: none; background: none; border: 0; color: var(--on-night); width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; margin: auto; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 64px 0 0 0; background: var(--night); overflow-y: auto; padding: 16px var(--gutter) 40px; display: none; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; gap: 0; }
  .site-nav a { font-size: 1.35rem; padding: .5em 0; color: var(--on-night); }
  .site-nav .active > a { box-shadow: none; color: #fff; }
  .site-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; padding: 0 0 8px 18px; }
  .site-nav .sub a { font-size: 1.15rem; color: var(--on-night-muted); padding: .3em 0; }
  body.nav-open { overflow: hidden; }
}

/* ------------------------------------------------ shared */
.section-title { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); margin-bottom: .8em; }
.section-title a { text-decoration: none; }
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); }
.page-head .wrap > :last-child { margin-bottom: 0; }
.script-page-head { padding-bottom: 24px; }
.page-head h1 { margin-bottom: .35em; }
.lede { font-size: 1.3em; line-height: 1.5; color: var(--muted); max-width: 40em; }
.lede-small { color: var(--muted); max-width: 44em; }
.button { display: inline-block; background: var(--red); color: #fff; text-decoration: none; padding: .55em 1.25em .6em; border-radius: 3px; font-size: 1.02rem; border: 1px solid var(--red); cursor: pointer; font-family: var(--text); line-height: 1.3; }
.button:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.button-quiet:hover { background: var(--page-2); color: var(--ink); border-color: var(--muted); }
.button-link, .text-button { color: var(--ink); font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .2em; cursor: pointer; }
.button-link:hover, .text-button:hover { color: var(--red); }
.crumb { margin-bottom: .6em; font-size: 1rem; }
.crumb a { color: var(--muted); }
.year-group { margin-bottom: 2.5em; }
.year { font-size: 1.1rem; font-family: var(--text); font-weight: 500; color: var(--red); letter-spacing: .02em; border-bottom: 1px solid var(--rule); padding-bottom: .3em; margin-bottom: .6em; font-variant-numeric: lining-nums; }

/* ------------------------------------------------ home: hero */
.hero { position: relative; background: var(--night); color: var(--on-night); overflow: hidden; isolation: isolate; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: clamp(24px, 5vw, 72px); padding-top: 80px; padding-bottom: 80px; position: relative; z-index: 1; }
.hero-text { --name: clamp(2.8rem, 1rem + 6.4vw, 6.4rem); }
.hero h1 { font-size: var(--name); line-height: .95; font-weight: 400; letter-spacing: -.025em; margin-bottom: .35em; }
.hero-lede { margin-bottom: 0; text-wrap: balance; }
.hero-lede em { white-space: nowrap; }
/* Desktop: center the "Redenbaugh" line on the portrait. The tagline sits in a
   reserved space one name-line tall, so the block's middle is the second line. */
@media (min-width: 761px) {
  .hero-text { position: relative; align-self: center; padding-bottom: calc(var(--name) * .95); }
  .hero-text h1 { margin-bottom: 0; }
  .hero-text .hero-lede { position: absolute; left: 0; right: 0; top: calc(100% - var(--name) * .95 + var(--name) * .3); }
}
.hero-lede { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); max-width: 28em; color: var(--on-night); line-height: 1.45; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 1.6em; }
.hero-links a { color: var(--on-night); font-size: 1.15rem; text-decoration-color: rgba(255,255,255,.3); }
.hero-links a:hover { color: #fff; text-decoration-color: var(--red); }
/* Author portrait beside the name */
.hero-portrait { margin: 0; justify-self: end; align-self: center; width: 100%; max-width: 380px; }
.hero-portrait img { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.06); }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait { justify-self: start; max-width: 300px; margin-top: 4px; }
}

/* ------------------------------------------------ home: sections */
.shelf, .crafts, .essence, .poem-feature, .journal-teaser, .photo-strip { padding: clamp(56px, 8vw, 110px) 0; }
.shelf { padding-top: 80px; }
.shelf-list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 3vw, 40px); align-items: flex-start; }
/* each book's width is proportional to its cover's shape, so all covers end up the same height */
.shelf-list li { flex: var(--r) 1 0; min-width: 0; }
.shelf-list a { text-decoration: none; display: grid; gap: 4px; }
.shelf-list img { width: 100%; height: auto; margin-bottom: 12px; box-shadow: 0 16px 30px -18px rgba(20,22,30,.55); border-radius: 2px; transition: transform .25s; }
.shelf-list a:hover img { transform: translateY(-4px); }
.shelf-title { font-family: var(--display); font-size: 1.25rem; line-height: 1.15; }
.shelf-meta { color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) {
  .shelf-list { flex-wrap: wrap; row-gap: 32px; column-gap: 16px; }
  .shelf-list li { flex: 0 0 auto; width: calc(180px * var(--r)); }
}

.motto { background: var(--night); color: var(--on-night); padding: clamp(56px, 9vw, 120px) 0; text-align: center; }
/* Two lines sized to the same width, like the old site: a bold serif line over a condensed all-caps line */
/* --k = 100 / (width of the line set at 100px); recalculate if the wording changes */
.motto-inner { --k-lead: .0323; --k-main: .0453; max-width: 960px; margin: 0 auto; container-type: inline-size; }
.motto-lead { font-family: var(--text); font-weight: 700; color: var(--on-night-muted); line-height: 1.2; margin: 0 0 .75em; white-space: nowrap; font-size: calc(100cqi * var(--k-lead)); }
.motto-main { font-family: "Roboto Condensed", "Arial Narrow", sans-serif; font-weight: 700; text-transform: uppercase; color: var(--on-night); line-height: 1.1; margin: 0; white-space: nowrap; font-size: calc(100cqi * var(--k-main)); }
@media (max-width: 600px) {
  .motto-lead, .motto-main { white-space: normal; text-wrap: balance; }
  .motto-lead { font-size: 1.1rem; margin-bottom: 1em; }
  .motto-main { font-size: 1.9rem; }
}

.crafts { background: var(--page-2); }
.crafts-inner { display: grid; grid-template-columns: .8fr 2fr; gap: 40px; }
.craft-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.craft-list div { padding: 18px 0 20px; border-top: 1px solid var(--rule); }
.craft-list dt { font-family: var(--display); font-size: 1.4rem; margin-bottom: 4px; }
.craft-list dt a { text-decoration: none; }
.craft-list dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .crafts-inner { grid-template-columns: 1fr; gap: 0; } .craft-list { grid-template-columns: 1fr; } }

.essence-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); }
.essence-text { max-width: 36em; }
.prompt { border-left: 2px solid var(--red); padding-left: 1.2em; margin-bottom: 2em; font-style: italic; font-size: 1.15em; }
.prompt footer, .praise footer, .photo-quotes footer, .about-quote footer, .sample-quotes footer { font-style: normal; color: var(--muted); font-size: .9rem; }
.prompt footer::before, .photo-quotes footer::before, .about-quote footer::before { content: "— "; }
.essence-songs { display: grid; gap: 16px; align-content: start; }
.songs-note { color: var(--muted); font-style: italic; margin-bottom: 0; }
@media (max-width: 860px) { .essence-inner { grid-template-columns: 1fr; } .essence-songs { grid-template-columns: 1fr 1fr; } .songs-note { grid-column: 1 / -1; } }
@media (max-width: 520px) { .essence-songs { grid-template-columns: 1fr; } }

.yt { position: relative; aspect-ratio: 16/9; background: var(--night) center/cover no-repeat; border-radius: 3px; overflow: hidden; }
.yt button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.18); cursor: pointer; color: #fff; }
.yt button:hover { background: rgba(0,0,0,.05); }
.yt button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; border-radius: 12px; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/24px no-repeat; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .yt { margin: 1.5em 0; }

.poem-feature { background: var(--page-2); }
.poem-card h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.poem-card h3 a { text-decoration: none; }
.poem-actions { margin-top: 1.5em; }
.poem-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 1.6em; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.poem-all { color: var(--muted); font-size: 1rem; }
.poem-all:hover { color: var(--red); }
.poem-nav { display: flex; align-items: center; gap: 10px; }
.poem-nav[hidden] { display: none; }
.poem-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: var(--page); color: var(--ink); font-family: var(--text); font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; transition: border-color .15s, color .15s; }
.poem-arrow:hover { border-color: var(--red); color: var(--red); }
.poem-count { color: var(--muted); font-size: .95rem; min-width: 4.5em; text-align: center; font-variant-numeric: lining-nums; }
.poem-rotator:focus-visible { outline-offset: 8px; }

.photo-strip { background: var(--night); color: var(--on-night); padding-bottom: clamp(48px, 7vw, 90px); }
.strip { list-style: none; margin: 0; padding: 0 var(--gutter); padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.strip li { flex: 0 0 auto; scroll-snap-align: start; }
.strip img { height: clamp(200px, 26vw, 320px); width: auto; border-radius: 2px; }

/* ------------------------------------------------ entries (journal lists) */
.entry-list { list-style: none; padding: 0; margin: 0; }
.entry { display: grid; grid-template-columns: 180px 1fr; align-items: start; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.entry:not(:has(.entry-img)) { grid-template-columns: 1fr; }
.entry-img img { aspect-ratio: 3/2; object-fit: cover; width: 100%; border-radius: 2px; }
.entry h3 { font-size: 1.45rem; margin-bottom: .1em; }
.entry h3 a { text-decoration: none; }
.entry p:last-child { margin-bottom: 0; color: var(--muted); }
.entry-date { color: var(--muted); font-size: 1rem; margin-bottom: .5em; }
.entry-date .tags::before { content: " in "; }
.journal-teaser .entry-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.journal-teaser .entry { grid-template-columns: 1fr; border: 0; padding: 0; gap: 14px; align-content: start; }
@media (max-width: 860px) { .journal-teaser .entry-list { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .entry { grid-template-columns: 110px 1fr; gap: 16px; } .entry h3 { font-size: 1.25rem; } }

/* ------------------------------------------------ reading pages */
.poem-page, .post-page { padding-top: clamp(40px, 7vw, 90px); padding-bottom: 60px; }
.verse { font-size: 1.22em; line-height: 1.55; }
.verse p, .verse-stanza { margin: 0 0 1.1em; }
.verse .vl { display: block; padding-left: 1.4em; text-indent: -1.4em; }
.poem-page h1 { margin-bottom: .8em; }
.poem-date { color: var(--muted); font-size: 1rem; font-style: italic; }
.prose { max-width: 38em; }
.prose img { margin: 1.4em 0; border-radius: 2px; }
.prose a { word-break: break-word; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td { padding: .4em .6em .4em 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose td:first-child { color: var(--muted); width: 45%; }
.post-hero { margin: 1.2em 0 1.8em; }
.post-hero img { border-radius: 2px; max-height: 70vh; width: auto; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 3.5em; padding-top: 1.5em; border-top: 1px solid var(--rule); }
.pager a { text-decoration: none; display: grid; font-family: var(--display); font-size: 1.2rem; line-height: 1.2; }
.pager span { font-family: var(--text); font-size: .95rem; color: var(--muted); margin-bottom: 4px; }
.pager-next { grid-column: 2; text-align: right; }

/* poetry index */
.poem-index ul { list-style: none; margin: 0; padding: 0; }
.poem-index li a { display: grid; grid-template-columns: minmax(10em, 1fr) 1.4fr; gap: 20px; padding: 9px 0; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
.pi-title { font-family: var(--display); font-size: 1.15rem; }
.pi-line { color: var(--muted); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poem-index li a:hover .pi-title { color: var(--red); }
@media (max-width: 600px) { .poem-index li a { grid-template-columns: 1fr; gap: 0; } }

/* sonnets */
.sonnets-layout { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: clamp(24px, 5vw, 72px); padding-bottom: 80px; }
.sonnet-index { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 1rem; }
.sonnet-index ol { list-style: none; margin: 0; padding: 0; }
.sonnet-index a { display: grid; grid-template-columns: 2em 1fr; padding: 3px 0; text-decoration: none; color: var(--muted); line-height: 1.35; }
.sonnet-index .num { min-width: 0; }
.sonnet-index a:hover { color: var(--red); }
.num { font-family: var(--display); font-variant-numeric: lining-nums; color: var(--red); display: inline-block; min-width: 2em; }
.sonnet { padding: 0 0 2.6em; margin-bottom: 2.6em; border-bottom: 1px solid var(--rule); max-width: 34em; scroll-margin-top: 90px; }
.sonnet h2 { font-size: 1.55rem; }
.sonnet .verse-stanza { font-size: 1.2em; line-height: 1.55; }
.sonnet .verse-stanza:not(.couplet) { margin-bottom: .45em; }
.couplet { padding-left: 1.5em; }
@media (max-width: 860px) { .sonnets-layout { grid-template-columns: 1fr; } .sonnet-index { display: none; } }

/* ------------------------------------------------ books */
.book-jump { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 1.4em; }
.book-jump a { font-size: 1.1rem; }
.book { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--rule); scroll-margin-top: 64px; }
.book:nth-of-type(even) { background: var(--page-2); }
.book-inner { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.book-cover { position: sticky; top: 96px; }
.book-cover img { box-shadow: 0 30px 50px -28px rgba(20,22,30,.6); border-radius: 2px; }
.book-body { max-width: 38em; }
.book-body h2 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); margin-bottom: .15em; }
.book-kind { color: var(--muted); margin-bottom: .6em; }
.book-tagline { font-family: var(--display); font-style: italic; font-size: 1.3rem; margin-bottom: 1.2em; }
.praise { margin: 1.8em 0; padding: 1.2em 0 1.2em 1.4em; border-left: 2px solid var(--red); font-style: italic; }
.praise footer { font-style: normal; }
.author-page-link { font-size: .95rem; margin: -1em 0 1.6em; }
.author-page-link a { color: var(--muted); }
.buy { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 1.6em 0 1.8em; }
.book-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 24px; margin: 0 0 1.6em; padding: 1em 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.book-details dt { color: var(--muted); font-size: .92rem; }
.book-details dd { margin: 0; font-variant-numeric: lining-nums; }
.excerpt { margin-bottom: 1em; }
.excerpt summary { cursor: pointer; font-family: var(--display); font-size: 1.25rem; padding: .3em 0; }
.excerpt summary:hover { color: var(--red); }
.excerpt-body { padding: .8em 0 0; }
.sample-poems section { margin-bottom: 1.4em; }
.sample-quotes { display: grid; gap: 16px; margin-top: 1.4em; }
.sample-quotes blockquote { font-style: italic; color: var(--muted); padding-left: 1.2em; border-left: 1px solid var(--rule); }
@media (max-width: 760px) { .book-inner { grid-template-columns: 1fr; } .book-cover { position: static; max-width: 240px; } }

/* ------------------------------------------------ galleries */
.dark-page { background: var(--night); color: var(--on-night); }
.dark-page .lede, .dark-page .lede-small { color: var(--on-night-muted); }
.photo-head { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 5vw, 72px); row-gap: 18px; align-items: start; }
.photo-head h1 { grid-column: 1; margin-bottom: 0; }
.photo-head .lede-small { grid-column: 1; }
.photo-quote { font-style: italic; max-width: 34em; }
.photo-quote footer { font-style: normal; color: var(--on-night-muted); font-size: .9rem; }
.photo-quote footer::before { content: "— "; }
/* longer quote sits under the title; the shorter one to its right, tops aligned */
.photo-head .photo-quote:nth-of-type(1) { grid-column: 1; grid-row: 2; }
.photo-head .photo-quote:nth-of-type(2) { grid-column: 2; grid-row: 2; }
@media (max-width: 860px) { .photo-head { grid-template-columns: 1fr; } .photo-head .photo-quote:nth-of-type(2) { grid-column: 1; grid-row: auto; } }
.gallery { --h: clamp(130px, 18vw, 250px); list-style: none; margin: 0 0 80px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gallery li { height: var(--h); flex-basis: calc(var(--h) * var(--r, 1.5)); flex-shrink: 1; min-width: 0; max-width: 100%; }
.gallery::after { content: ""; flex-grow: 999; }
.gallery a { display: block; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }
@media (max-width: 560px) { .gallery { --h: 120px; gap: 6px; } }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(15,17,23,.96); color: var(--on-night); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-height: 100vh; padding: 24px 0; }
.lightbox img { max-height: calc(100vh - 110px); width: auto; max-width: 100%; }
.lightbox figcaption { font-style: italic; color: var(--on-night-muted); }
.lightbox button { background: none; border: 0; color: var(--on-night); font-size: 2.6rem; cursor: pointer; height: 100%; font-family: var(--text); }
.lightbox button:hover { color: #fff; }
.lb-close { position: absolute; top: 8px; right: 12px; height: auto !important; font-size: 2.2rem !important; z-index: 2; }

/* ------------------------------------------------ scripts */
.script { padding-bottom: 80px; }
.script-still { margin-bottom: 1.6em; border-radius: 2px; }

/* ------------------------------------------------ about */
.about { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: clamp(32px, 6vw, 88px); padding-top: clamp(48px, 7vw, 96px); padding-bottom: 90px; align-items: start; }
.about { grid-template-rows: auto 1fr; row-gap: 20px; }
.about-title { grid-column: 2; grid-row: 1; margin-bottom: 0; }
.about-portrait { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 96px; }
.about-body { grid-column: 2; grid-row: 2; }
.about-portrait img { border-radius: 2px; margin-bottom: 1.6em; }
.about-quote { font-style: italic; font-size: 1.1em; }
.about-sections { max-width: 38em; }
.about-sections details { border-top: 1px solid var(--rule); }
.about-sections details:last-child { border-bottom: 1px solid var(--rule); }
.about-sections summary { cursor: pointer; font-family: var(--display); font-size: 1.35rem; padding: .7em 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.about-sections summary::-webkit-details-marker { display: none; }
.about-sections summary::after { content: "+"; font-family: var(--text); color: var(--muted); font-size: 1.4rem; }
.about-sections details[open] summary::after { content: "–"; }
.about-sections summary:hover { color: var(--red); }
.about-sections .prose { padding-bottom: 1em; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; row-gap: 28px; } .about-title, .about-portrait, .about-body { grid-column: 1; grid-row: auto; } .about-portrait { position: static; max-width: 420px; } }

/* ------------------------------------------------ contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); padding-top: clamp(48px, 7vw, 96px); padding-bottom: 90px; }
.contact .note { color: var(--muted); font-style: italic; }
.contact-list { list-style: none; padding: 0; margin: 1.6em 0 0; }
.contact-list li { display: grid; grid-template-columns: 6em 1fr; padding: .5em 0; border-top: 1px solid var(--rule); }
.contact-list span { color: var(--muted); }
.contact-form { display: grid; gap: 18px; align-content: start; background: var(--page-2); padding: clamp(20px, 3vw, 36px); border-radius: 4px; }
.contact-form label { display: grid; gap: 6px; font-size: 1rem; color: var(--muted); }
.contact-form input, .contact-form textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 3px; padding: .55em .7em; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
.contact-form .button { justify-self: start; }
.form-status { padding: .8em 1em; border-radius: 3px; background: #fff; border-left: 3px solid var(--red); color: var(--ink); }
.form-status.ok { border-left-color: #2f7d4f; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.notfound { padding: 100px var(--gutter) 140px; }

/* ------------------------------------------------ footer */
.footer { background: var(--night); color: var(--on-night-muted); padding: 64px 0 28px; font-size: 1.02rem; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: 40px; }
.footer a { color: var(--on-night); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }
.footer-name { font-family: var(--display); font-style: italic; font-size: 1.6rem; color: var(--on-night); margin-bottom: .4em; }
.footer-line { font-style: italic; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; align-content: start; }
.footer-contact { display: grid; gap: 6px; align-content: start; }
.copyright { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .92rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ------------------------------------------------ phones: keep verse lines whole */
@media (max-width: 520px) {
  .verse, .sonnet .verse-stanza, .poem-card .verse { font-size: 1.02em; }
  .couplet { padding-left: 1em; }
  .prose td:first-child { width: 38%; }
}

/* The "Red" in Redenbaugh turns red on hover */
.name-red .red { transition: color .35s ease; }
.name-red:hover .red, .name-red:focus-visible .red { color: var(--red); }
