/* alderfoldpress.com, design 06 "The Catalogue". Copied to site/home/assets/site.css by build_site.py (edit here, not there).
   The bonus sites (leo., bruce.) keep their own site.css. */
@font-face { font-family: "Young Serif"; src: url("fonts/youngserif.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
:root {
 --paper: #FAF9F5; --navy: #142B58; --ink: #202936; --panel: #EEF1F5; --rule: #D5D9DE; --red: #B63B35; --muted: #55606F;
 --display: "Young Serif", Georgia, serif; --body: "Nunito", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
figure { margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--navy); margin: 0; line-height: 1.12; }
h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: .5em; }
.label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; }
.lede { font-size: 19px; max-width: 34em; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; background: var(--navy); color: #fff; border: 1.5px solid var(--navy); border-radius: 3px; font-weight: 800; font-size: 16px; text-decoration: none; }
.btn:hover { background: #0C1D3E; color: #fff; }
.btn.line { background: transparent; color: var(--navy); }
.btn.line:hover { background: var(--navy); color: #fff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.actions .text { font-weight: 800; }
.soon { font-weight: 800; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 9; }

/* header */
.top { background: #fff; border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.top .logo { height: 50px; width: auto; }
.nav { display: flex; gap: 30px; font-weight: 700; font-size: 16px; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover, .nav a[aria-current] { color: var(--navy); text-decoration: underline; }

/* home hero */
.hero { padding: 76px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -.01em; margin-bottom: 22px; }
.hero p.lede { margin: 0 0 32px; max-width: 30em; }
.hero .wrap > * { min-width: 0; }
.plate .field { background: var(--panel); padding: 28px; }
.plate img { box-shadow: 0 1px 2px rgba(20,43,88,.12), 0 12px 30px -12px rgba(20,43,88,.35); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }
figcaption cite { font-style: italic; }

/* section heads */
.list { padding: 88px 0 96px; border-top: 1px solid var(--rule); }
.sechead { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.sechead h2 { font-size: clamp(32px, 3.6vw, 44px); margin: 0; }
.sechead p { margin: 0; color: var(--muted); max-width: 26em; }

/* homepage: the newest titles, large */
.titles { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.title { padding: 0 56px; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.title:first-child { padding-left: 0; }
.title:last-child { padding-right: 0; }
.title + .title { border-left: 1px solid var(--rule); }
.title .cover { align-self: stretch; background: var(--panel); padding: 44px; margin-bottom: 30px; }
.title .cover img { margin: 0 auto; max-width: 340px; width: 100%; box-shadow: 0 1px 2px rgba(20,43,88,.15), 0 16px 32px -14px rgba(20,43,88,.45); }
.series { font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.title h3 { font-size: 32px; margin-bottom: 6px; }
.by { margin: 0 0 16px; font-weight: 700; color: var(--navy); }
.title .blurb { margin: 0 0 22px; }

/* the catalogue record: same fields on every title, everywhere */
.record { align-self: stretch; display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: auto 0 22px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 15px; }
.record dt { font-weight: 800; color: var(--navy); }
.record dd { margin: 0; }
.marks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.mark { font-size: 13px; font-weight: 800; color: var(--navy); border: 1px solid var(--rule); background: #fff; padding: 3px 10px; border-radius: 3px; }
.mark.sings::before { content: "\266A  "; color: var(--red); }

/* /books/ catalogue grid */
.filters { display: grid; gap: 10px; margin: 0 0 40px; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 15px; }
.filters div { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.filters b { color: var(--navy); min-width: 4.5em; }
.filters a[aria-current] { font-weight: 800; color: var(--red); text-decoration: none; }
.shown { color: var(--muted); margin: 0 0 28px; }
.cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 48px 36px; }
.entry { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.entry .cover { align-self: stretch; background: var(--panel); padding: 22px; margin-bottom: 18px; }
.entry .cover img { margin: 0 auto; width: 100%; box-shadow: 0 1px 2px rgba(20,43,88,.15), 0 10px 22px -12px rgba(20,43,88,.45); }
.entry h3 { font-size: 23px; margin-bottom: 4px; }
.entry h3 a { text-decoration: none; }
.entry .by { margin-bottom: 12px; }
.entry .record { font-size: 14px; gap: 5px 14px; margin-bottom: 14px; }
.entry .marks { margin-bottom: 16px; }
.entry .actions { gap: 10px 18px; }
.entry .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }

/* song band (only when a featured title has a song) */
.song { background: var(--navy); color: #E8ECF3; padding: 88px 0; }
.song .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.song .wrap > * { min-width: 0; }
.song h2 { color: #fff; font-size: clamp(32px, 3.6vw, 44px); margin-bottom: 18px; }
.song .label { color: #F2B8B3; }
.song p { margin: 0 0 18px; }
.song a { color: #fff; font-weight: 800; }
.song img { box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); }
.song figcaption { color: #AFBACC; }

/* resources + press */
.res { padding: 96px 0; }
.res .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.res article { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; }
.res .thumb { background: var(--panel); padding: 16px; }
.res .thumb img { box-shadow: 0 6px 16px -8px rgba(20,43,88,.4); }
.res h3 { font-size: 27px; margin-bottom: 10px; }
.res p { margin: 0 0 14px; }
.res a.more { font-weight: 800; }
.press { border-top: 1px solid var(--rule); padding: 88px 0; }
.press .wrap { display: grid; grid-template-columns: 300px 1fr; gap: 72px; align-items: center; max-width: 1000px; }
.press blockquote { margin: 0 0 18px; font-family: var(--display); color: var(--navy); font-size: clamp(24px, 2.6vw, 31px); line-height: 1.3; }
.press p { margin: 0 0 14px; }

/* inner pages */
.pagehead { padding: 64px 0 56px; }
.pagehead h1 { font-size: clamp(38px, 4.6vw, 58px); letter-spacing: -.01em; margin-bottom: 18px; }
.band { padding: 80px 0; border-top: 1px solid var(--rule); }
.band.sheet { background: #fff; }
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1fr 1.5fr; }
.split > * { min-width: 0; }
.bookhead { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.bookhead > * { min-width: 0; }
.bookhead h1 { margin-bottom: 8px; }
.bookhead .cover { background: var(--panel); padding: 36px; }
.bookhead .cover img { margin: 0 auto; max-width: 420px; width: 100%; box-shadow: 0 1px 2px rgba(20,43,88,.15), 0 16px 32px -14px rgba(20,43,88,.45); }
.bookhead .record { margin-top: 24px; }
.spreads { display: grid; gap: 48px; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { font-size: 22px; margin: 1.2em 0 .4em; }
.prose li { margin-bottom: .45em; }
.badge { display: inline-block; vertical-align: middle; font: 800 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 3px; background: var(--red); color: #fff; }
.lyrics { font-weight: 700; font-size: 19px; white-space: pre-line; margin: 14px 0 0; }
details summary { cursor: pointer; font-weight: 800; color: var(--navy); }
audio { width: 100%; margin: 12px 0; }
.qa { border-top: 1px solid var(--rule); padding: 18px 0; }
.qa summary { font: 400 21px/1.4 var(--display); color: var(--navy); list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; float: right; font-family: var(--body); font-weight: 800; color: var(--red); }
.qa[open] summary::after { content: "\2013"; }
.note { color: var(--muted); font-size: 15px; }

/* printables gallery */
.sechead.small { margin-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 3px; padding: 18px; display: flex; flex-direction: column; min-width: 0; }
.card .thumb { background: var(--panel); padding: 18px; display: grid; place-items: center; aspect-ratio: 1 / 1; margin-bottom: 16px; }
.card .thumb img { max-height: 100%; width: auto; box-shadow: 0 8px 18px -10px rgba(20,43,88,.5); }
.card h3 { font-size: 20px; margin-bottom: .3em; }
.card p { font-size: 15px; color: var(--muted); margin-bottom: .6em; }
.card .inside { font-size: 14px; margin-bottom: 14px; }
.card .inside b { color: var(--navy); }
.card .btn { margin-top: auto; justify-content: center; min-height: 44px; font-size: 15px; }
.meta { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

/* footer */
.foot { background: #fff; border-top: 1px solid var(--rule); padding: 56px 0 40px; font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.foot .logo { height: 46px; width: auto; margin-bottom: 14px; }
.foot h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 6px; }
.foot p { margin: 0 0 6px; }
.foot small { display: block; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
 .wrap { padding: 0 20px; }
 .top .wrap { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 16px; padding-bottom: 14px; min-height: 0; }
 .top .logo { height: 42px; }
 .nav { flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
 .nav a { padding: 6px 0; }
 .hero { padding: 40px 0 56px; }
 .hero .wrap, .song .wrap, .res .wrap, .press .wrap, .split, .split.rev, .bookhead { grid-template-columns: 1fr; gap: 36px; }
 .plate .field { padding: 14px; }
 .list, .song, .res, .press, .band { padding: 60px 0; }
 .pagehead { padding: 40px 0 36px; }
 .sechead { display: block; margin-bottom: 32px; }
 .sechead h2 { margin-bottom: 10px; }
 .titles { grid-template-columns: 1fr; }
 .title, .title:first-child, .title:last-child { padding: 0; }
 .title + .title { border-left: 0; border-top: 1px solid var(--rule); padding-top: 48px; margin-top: 48px; }
 .title .cover { padding: 28px; }
 .title h3 { font-size: 28px; }
 .bookhead .cover { padding: 24px; order: -1; }
 .cat { grid-template-columns: 1fr 1fr; gap: 36px 18px; }
 .entry .cover { padding: 12px; }
 .entry h3 { font-size: 19px; }
 .entry .record { grid-template-columns: 1fr; gap: 0; }
 .entry .record dd { margin-bottom: 4px; }
 .res article { grid-template-columns: 96px 1fr; gap: 18px; }
 .res .thumb { padding: 8px; }
 .res h3 { font-size: 24px; }
 .press .wrap { justify-items: start; }
 .press img { max-width: 220px; }
 .foot .cols { grid-template-columns: 1fr 1fr; gap: 28px; }
 .foot .cols > :first-child, .foot .cols > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
 .cat { grid-template-columns: 1fr; }
 .entry .record { grid-template-columns: max-content 1fr; gap: 5px 14px; }
 .entry .record dd { margin-bottom: 0; }
}

/* new-book email form (build_site.news) */
.news { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: start; border: 1.5px solid var(--navy); border-radius: 18px; padding: 30px 32px; margin: 40px 0; background: #fff; }
.news h2 { margin: 0 0 6px; }
.news p { margin: 0; }
.news .ticks { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 12px; }
.news .tick { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; cursor: pointer; }
.news .tick input { width: 20px; height: 20px; accent-color: var(--navy); }
.news .row { display: flex; gap: 10px; flex-wrap: wrap; }
.news input[type=email] { flex: 1 1 220px; min-height: 48px; padding: 0 14px; font: inherit; border: 1.5px solid var(--navy); border-radius: 8px; background: #fff; color: inherit; }
.news .small { font-size: 14px; margin-top: 10px; opacity: .8; }
.news .hp, .news .sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) { .news { grid-template-columns: 1fr; padding: 24px; } }
