/* /podcast — scrapbook page styles. Builds on scrapbook-v3.css + handmade.css.
   Flow layout (the homepage's absolute comp system stays homepage-only). */

/* Top bar: identical to the homepage. Same tape graphic, same name and link
   styling, same proportions (from build-proof-layout.py: tape 1000px of a
   1024px comp, name at (84,40)/34px, links at (440,51,320)/19px), expressed
   in container units so it scales with the header width. */
.pnav { position: relative !important; inset: auto !important; height: 11.53cqw !important; margin: 26px 0 0 !important; padding: 0 !important; container-type: inline-size; background: url("proof/nav.webp") center top / 97.66% 100% no-repeat; }
.pnav > * { position: absolute !important; }
/* Font, color, mask and case come from handmade.css's .tapenav rules so the
   bar is identical to the homepage; only position and scale live here. */
.pnav .name { left: 8.2%; top: 34%; font-size: 3.32cqw; line-height: 1; white-space: nowrap; text-decoration: none; }
.pnav nav { left: 42.97%; top: 43.2%; width: 31.25%; display: flex; justify-content: space-between; line-height: 1; }
.pnav nav a { font-size: 1.855cqw; text-decoration: none; white-space: nowrap; }
.pnav nav a:hover { text-decoration: underline; text-decoration-color: var(--rust); }
.pnav nav a[aria-current] { text-decoration: underline wavy; text-decoration-color: var(--rust); text-underline-offset: 3px; }
.pnav .menu { display: none !important; background: none; border: 0; padding: 8px; cursor: pointer; }
.pnav .menu i { display: block; width: 22px; height: 2.5px; margin: 4px 0; background: var(--forest); border-radius: 2px; }

.pwrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.p-hero { padding: 64px 0 30px; }
.p-kicker { display: inline-block; margin: 0 0 22px; padding: .34em 1em .3em; background: url("tape-2.webp") center / 100% 100% no-repeat; font-family: var(--hand); font-size: 20px; color: var(--ink); transform: rotate(-1.4deg); }
.p-hero h1 { margin: 0 0 18px; max-width: 15em; font-family: "Shadows Into Light", var(--hand), cursive; font-weight: 400; font-size: 58px; line-height: 1.12; color: #171717; }
.p-sub { max-width: 34em; margin: 0 0 26px; font-family: var(--hand); font-size: 26px; line-height: 1.4; color: var(--ink); }
.p-stats { display: flex; gap: 34px; margin: 0 0 30px; padding: 0; list-style: none; font-family: "Courier Prime", ui-monospace, monospace; font-size: 15px; letter-spacing: .04em; color: #5a5546; }
.p-stats b { display: block; font-family: var(--sharpie); font-weight: 400; font-size: 34px; letter-spacing: 0; color: #161616; }
.p-stats-note { margin: -18px 0 30px; font-family: "Courier Prime", ui-monospace, monospace; font-size: 12.5px; letter-spacing: .05em; color: #8a8272; }
.p-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.p-ctas a { display: inline-block; padding: .5em 1.2em .42em; background: url("tape-long.webp") center / 100% 100% no-repeat; font-family: var(--hand); font-size: 22px; color: var(--pen-ink) !important; text-decoration: none !important; filter: drop-shadow(0 1px 1px rgba(60,45,20,.22)); }
.p-ctas a:hover { transform: scale(1.03); }
.p-ctas a:nth-child(1) { transform: rotate(-.8deg); }
.p-ctas a:nth-child(2) { transform: rotate(.6deg); }
.p-ctas a:nth-child(3) { transform: rotate(-.4deg); }
.p-ctas a:nth-child(1):hover { transform: rotate(-.8deg) scale(1.03); }
.p-ctas a:nth-child(2):hover { transform: rotate(.6deg) scale(1.03); }
.p-ctas a:nth-child(3):hover { transform: rotate(-.4deg) scale(1.03); }

/* Section headings: Sharpie + wavy pen underline */
.pwrap > section { padding: 46px 0 8px; }
.pwrap h2 { display: inline-block; margin: 0 0 26px; font-family: var(--sharpie); font-weight: 400; font-size: 32px; color: #161616; text-shadow: var(--sharpie-line); padding-bottom: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='9' viewBox='0 0 120 9' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q 16 2, 30 5 T 60 5 T 90 4 T 118 5' fill='none' stroke='%232b5aa0' stroke-width='2.2' stroke-linecap='round' opacity='.8'/%3E%3C/svg%3E") left bottom / 100% 9px no-repeat; }
.p-lead { margin: -14px 0 24px; font-family: var(--hand); font-size: 22px; color: var(--ink); }

/* Episode cards */
.eps { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 0; padding: 0; list-style: none; counter-reset: ep; }
.ep { position: relative; display: flex; flex-direction: column; background: #fbf8f0; border-radius: 3px; box-shadow: 0 2px 5px rgba(60,45,20,.18), 0 12px 26px rgba(60,45,20,.10); padding: 18px 20px 16px; }
.ep:nth-child(odd) { transform: rotate(-.7deg); }
.ep:nth-child(even) { transform: rotate(.5deg); }
.ep::before { content: ""; position: absolute; top: -14px; left: 50%; width: 96px; height: 28px; transform: translateX(-50%) rotate(-1.5deg); background: url("tape-2.webp") center / 100% 100% no-repeat; opacity: .95; }
.ep figure { margin: 0 0 12px; border-radius: 2px; overflow: hidden; box-shadow: 0 1px 3px rgba(60,45,20,.25); }
.ep figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ep-meta { margin: 0 0 6px; font-family: "Courier Prime", ui-monospace, monospace; font-size: 13.5px; letter-spacing: .05em; color: #6b6455; }
.ep h3 { margin: 0 0 10px; font-family: "Shadows Into Light", var(--hand), cursive; font-weight: 400; font-size: 31px; line-height: 1.12; color: #171717; }
.ep .take { margin: 0 0 14px; font-family: var(--hand); font-size: 22px; line-height: 1.38; color: var(--ink); }
.ep .go { margin-top: auto; font-family: var(--hand); font-size: 20px; }
.ep .go a { color: var(--pen-ink) !important; text-decoration: none !important; border-bottom: 2px solid rgba(43,90,160,.45); }
.ep .go a:hover { border-bottom-style: wavy; }

/* Solo episodes: receipt rows */
.solos { margin: 0; padding: 0; list-style: none; background: #fbf8f0; border-radius: 3px; box-shadow: 0 2px 5px rgba(60,45,20,.16), 0 12px 26px rgba(60,45,20,.09); padding: 10px 26px 6px; transform: rotate(-.3deg); }
.solos li { padding: 18px 0 14px; border-bottom: 2px dashed #d8d2c2; }
.solos li:last-child { border-bottom: 0; }
.solos .s-meta { font-family: "Courier Prime", ui-monospace, monospace; font-size: 13.5px; letter-spacing: .05em; color: #6b6455; margin: 0 0 4px; }
.solos h3 { margin: 0 0 6px; font-family: "Shadows Into Light", var(--hand), cursive; font-weight: 400; font-size: 29px; line-height: 1.1; }
.solos h3 a { color: #171717 !important; text-decoration: none !important; }
.solos h3 a:hover { text-decoration: underline wavy !important; text-underline-offset: 4px; }
.solos .take { margin: 0; font-family: var(--hand); font-size: 21.5px; line-height: 1.38; color: var(--ink); }

/* Full archive, grouped by year */
.yr { margin: 34px 0 12px; font-family: var(--sharpie); font-weight: 400; font-size: 24px; color: #161616; text-shadow: var(--sharpie-line); }
.yr-sheet { transform: rotate(.2deg); }
.yr-sheet:nth-of-type(odd) { transform: rotate(-.25deg); }
.yr-sheet li { display: flex; gap: 18px; align-items: flex-start; }
.yr-sheet li > div { flex: 1; min-width: 0; }
.yr-sheet .thumb { flex: none; width: 128px; height: auto; margin-top: 4px; border-radius: 2px; box-shadow: 0 1px 3px rgba(60,45,20,.3); transform: rotate(-1deg); }
.yr-sheet li:nth-child(even) .thumb { transform: rotate(.8deg); }
.yr-sheet h4 { margin: 0 0 6px; font-family: "Shadows Into Light", var(--hand), cursive; font-weight: 400; font-size: 27px; line-height: 1.1; }
.yr-sheet h4 a { color: #171717 !important; text-decoration: none !important; }
.yr-sheet h4 a:hover { text-decoration: underline wavy !important; text-underline-offset: 4px; }

/* Archive pagination + subpage heading */
.pager { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 30px 0 6px; font-family: var(--hand); font-size: 21px; }
.pager a { display: inline-block; padding: .45em 1.1em .4em; background: url("tape-2.webp") center / 100% 100% no-repeat; color: var(--pen-ink) !important; text-decoration: none !important; filter: drop-shadow(0 1px 1px rgba(60,45,20,.22)); }

/* shipping log: weekly highlight reel */
.tl { display: flex; align-items: flex-end; gap: 3px; height: 110px; margin: 6px 0 8px; padding: 10px 12px 0; border: 2px solid rgba(60,45,20,.4); border-bottom-width: 3px; border-radius: 4px; background: rgba(255,255,255,.35); }
.tl span { flex: 1; min-width: 4px; background: #4a7a8c; border-radius: 2px 2px 0 0; opacity: .85; }
.tl span:hover { opacity: 1; outline: 2px solid #08313a; }
.tl span.tl-now { background: #e9ae4a; opacity: 1; }
.tl-cap { margin: 0 0 40px; font-family: "Courier Prime", var(--mono); font-size: 13.5px; letter-spacing: .04em; color: #8a8272; }

.wk-list { display: flex; flex-direction: column; gap: 38px; }
.wk { padding: 22px 24px 20px; background: rgba(255,255,255,.55); border: 2px solid rgba(60,45,20,.35); border-radius: 5px; box-shadow: 4px 4px 0 rgba(60,45,20,.18); }
.wk:nth-child(odd) { transform: rotate(-.35deg); }
.wk:nth-child(even) { transform: rotate(.3deg); }
.wk-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 8px; }
.wk-head h2 { margin: 0; font-family: var(--sharpie); font-weight: 400; font-size: 32px; line-height: 1.1; color: #161616; }
.wk-head h2 span { font-family: "Courier Prime", var(--mono); font-size: 15px; color: #6b6455; }
.wk-stats { display: flex; flex-wrap: wrap; gap: 34px; margin: 0 0 14px; padding: 0 0 12px; list-style: none; border-bottom: 1px dashed rgba(60,45,20,.3); font-family: "Courier Prime", var(--mono); font-size: 13.5px; letter-spacing: .04em; color: #5a5546; }
.wk-stats b { display: block; font-family: var(--sharpie); font-weight: 400; font-size: 27px; letter-spacing: 0; line-height: 1.15; color: #161616; }
.wk-bar { display: flex; height: 26px; margin-bottom: 18px; border: 2px solid rgba(60,45,20,.45); border-radius: 4px; overflow: hidden; background: #eee8d8; }
.wk-bar span { display: block; }
.wk-bar span:hover { outline: 2px solid #161616; outline-offset: -2px; }
.wk-hl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 34px; }
.wk-proj h3 { display: flex; align-items: center; gap: 9px; margin: 8px 0 4px; font-family: var(--hand); font-size: 25px; line-height: 1.2; color: #171717; }
.wk-proj h3 i { width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid rgba(60,45,20,.5); }
.wk-proj h3 em { margin-left: auto; font-family: "Courier Prime", var(--mono); font-style: normal; font-size: 13.5px; color: #8a8272; }
.wk-proj ul { margin: 0 0 6px; padding: 0; list-style: none; }
.wk-proj li { margin: 3px 0; padding-left: 22px; text-indent: -22px; font-family: var(--hand); font-size: 22px; line-height: 1.35; color: var(--ink); }
.wk-proj li::before { content: "\2022"; margin-right: 10px; color: var(--pen-ink); }
.wk-rest { margin: 12px 0 0; font-family: "Courier Prime", var(--mono); font-size: 14px; letter-spacing: .03em; color: #8a8272; }
.wk-note { max-width: 46em; margin: 44px auto 0; font-family: "Courier Prime", var(--mono); font-size: 14px; line-height: 1.6; letter-spacing: .03em; color: #6b6455; text-align: center; }
@media (max-width: 700px) {
  .wk { padding: 16px 16px 14px; }
  .wk-head h2 { font-size: 26px; }
  .wk-hl { grid-template-columns: 1fr; gap: 2px; }
  .wk-proj h3 { font-size: 22px; }
  .wk-proj li { font-size: 20px; }
  .tl { height: 80px; }
}

/* ai visibility experiment */
.av-answer { max-width: 36em; margin: -6px 0 0; padding: 18px 22px; background: #fbf8f0; border-left: 4px solid var(--pen-ink); border-radius: 3px; box-shadow: 0 2px 5px rgba(60,45,20,.14); font-family: var(--hand); font-size: 23px; line-height: 1.42; color: var(--ink); transform: rotate(-.3deg); }
.av-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.av-board, .av-raw { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.55); border: 2px solid rgba(60,45,20,.35); border-radius: 5px; box-shadow: 4px 4px 0 rgba(60,45,20,.18); }
.av-board caption { caption-side: bottom; padding-top: 10px; text-align: left; font-family: "Courier Prime", var(--mono); font-size: 13px; letter-spacing: .04em; color: #6b6455; }
.av-board th, .av-board td, .av-raw th, .av-raw td { padding: 10px 12px; border-bottom: 2px dashed #d8d2c2; text-align: left; vertical-align: top; }
.av-board thead th, .av-raw thead th { font-family: var(--sharpie); font-weight: 400; font-size: 20px; color: #161616; border-bottom: 3px solid rgba(60,45,20,.45); }
.av-board tbody th { font-family: var(--hand); font-weight: 400; font-size: 21px; line-height: 1.3; color: var(--ink); }
.av-board tfoot th, .av-board tfoot td { border-bottom: 0; font-family: var(--sharpie); font-weight: 400; font-size: 21px; color: #161616; }
.av-c span { display: inline-block; padding: .2em .7em .16em; border-radius: 3px; font-family: "Courier Prime", var(--mono); font-size: 13.5px; letter-spacing: .03em; white-space: nowrap; }
.av-c i { font-style: normal; }
.av-c .s { display: none; }
.av-yes span { background: #08313a; color: #f8f4ea; }
.av-prop span { background: #e9ae4a; color: #171717; }
.av-no span { background: #e76f51; color: #171717; }
.av-na span { border: 1.5px dashed #8a8272; color: #5a5546; }
.av-weeks { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.av-weeks li { padding: 10px 14px; border: 2px solid rgba(60,45,20,.35); border-radius: 4px; background: rgba(255,255,255,.55); font-family: "Courier Prime", var(--mono); font-size: 13.5px; color: #5a5546; }
.av-weeks li b { display: block; font-family: var(--sharpie); font-weight: 400; font-size: 20px; color: #161616; }
.av-weeks .av-wk-miss { border-style: dashed; color: #b0522f; }
.av-weeks .av-wk-open { border-style: dashed; }
.av-raw td { font-family: var(--hand); font-size: 19px; line-height: 1.3; color: var(--ink); }
.av-raw td:first-child { font-family: "Courier Prime", var(--mono); font-size: 13.5px; white-space: nowrap; color: #5a5546; }
.av-raw-na td { color: #5a5546; }
.av-raw summary { cursor: pointer; color: var(--pen-ink); }
.av-ans { margin: 10px 0; padding: 12px 14px; max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; background: #fbf8f0; border-radius: 3px; font-family: "Courier Prime", var(--mono); font-size: 13.5px; line-height: 1.5; color: #2a2a24; }
.av-k { margin: 6px 0; font-family: "Courier Prime", var(--mono); font-size: 13px; color: #6b6455; }
.av-cites { margin: 0 0 6px; padding-left: 18px; font-family: "Courier Prime", var(--mono); font-size: 13px; word-break: break-all; }
.av-cites a, .wk-note a, .p-lead a { color: var(--pen-ink) !important; }
.av-more { margin-top: 18px; }
.av-more > summary { cursor: pointer; margin-bottom: 12px; font-family: var(--hand); font-size: 22px; color: var(--pen-ink); }
.av-faq { max-width: 40em; margin: 0 0 22px; }
.av-faq h3 { margin: 0 0 6px; font-family: "Shadows Into Light", var(--hand), cursive; font-weight: 400; font-size: 28px; line-height: 1.15; color: #171717; }
.av-faq p { margin: 0; font-family: var(--hand); font-size: 21px; line-height: 1.4; color: var(--ink); }
@media (max-width: 700px) {
  .av-stats { flex-wrap: wrap; gap: 16px 26px; }
  .av-stats b { white-space: nowrap; }
  .av-answer { font-size: 20px; padding: 14px 16px; }
  .av-raw { min-width: 0; }
  .av-raw thead { display: none; }
  .av-raw tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-bottom: 2px dashed #d8d2c2; }
  .av-raw td { border: 0; padding: 0; }
  .av-raw td:first-child, .av-raw td:last-child { grid-column: 1 / -1; }
  .av-c .l { display: none; }
  .av-c .s { display: inline; }
  .av-board th, .av-board td { padding: 9px 7px; }
  .av-board thead th { font-size: 16px; }
  .av-board tbody th { min-width: 0; font-size: 17px; }
}

/* music page */
.juk-jump { flex-wrap: wrap; gap: 14px; margin: 8px 0 34px; font-size: 19px; }
.juk-filter { margin-top: -22px; font-size: 15px; }
.juk-filter a[aria-pressed="true"] { background-image: url("tape-1.webp"); color: #171717 !important; text-decoration: underline wavy !important; text-underline-offset: 4px; }
.juk-cards { grid-template-columns: repeat(3, 1fr); margin: 4px 0 34px; }
.juk-cards.one { grid-template-columns: minmax(280px, 400px); }
.juk-cards .ep h3 { font-size: 26px; }
.juk-cards .ep .take { font-size: 20px; }
@media (max-width: 1000px) { .juk-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .juk-cards, .juk-cards.one { grid-template-columns: 1fr; } }
.juk-count { display: inline-block; margin-left: 10px; font-family: "Courier Prime", var(--mono); font-size: 12px; letter-spacing: .08em; color: #8a8a76; vertical-align: middle; }
.s-artist { font-family: var(--hand); font-size: .72em; color: var(--ink2, #4a4a42); white-space: nowrap; }
.m-feat-card { display: flex; gap: 26px; align-items: flex-start; transform: rotate(-.3deg); }
.m-feat-thumb { flex: none; width: 300px; display: block; box-shadow: 0 2px 6px rgba(60,45,20,.32); border-radius: 3px; overflow: hidden; }
.m-feat-thumb img { display: block; width: 100%; height: auto; }
.m-feat-card > div { flex: 1; min-width: 0; }
.m-feat-card h3 { margin: 0 0 8px; font-family: "Shadows Into Light", var(--hand), cursive; font-weight: 400; font-size: 34px; line-height: 1.1; }
.m-feat-card h3 a { color: #171717 !important; text-decoration: none !important; }
.m-feat-card h3 a:hover { text-decoration: underline wavy !important; text-underline-offset: 4px; }
@media (max-width: 700px) {
  .juk-jump { gap: 10px; font-size: 16px; }
  .m-feat-card { flex-direction: column; gap: 14px; }
  .m-feat-thumb { width: 100%; }
}
.pager a:first-of-type { transform: rotate(-.8deg); }
.pager a:last-of-type { transform: rotate(.7deg); }
.pager a:hover { scale: 1.04; }
.pager span { font-family: "Courier Prime", ui-monospace, monospace; font-size: 13.5px; letter-spacing: .05em; color: #6b6455; }
.p-arch-h { display: inline-block; margin: 40px 0 18px; font-family: var(--sharpie); font-weight: 400; font-size: 32px; color: #161616; text-shadow: var(--sharpie-line); padding-bottom: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='9' viewBox='0 0 120 9' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q 16 2, 30 5 T 60 5 T 90 4 T 118 5' fill='none' stroke='%232b5aa0' stroke-width='2.2' stroke-linecap='round' opacity='.8'/%3E%3C/svg%3E") left bottom / 100% 9px no-repeat; }
.p-arch-h + .p-lead a { color: var(--pen-ink); }

/* Guest spots */
.guests { margin: 0; padding: 0; list-style: none; }
.guests li { margin: 0 0 16px; font-family: var(--hand); font-size: 23px; }
.guests a { color: var(--pen-ink) !important; text-decoration: none !important; border-bottom: 2px solid rgba(43,90,160,.45); }
.guests a:hover { border-bottom-style: wavy; }
.guests .g-show { font-family: "Courier Prime", ui-monospace, monospace; font-size: 13.5px; letter-spacing: .04em; color: #6b6455; }

/* Footer */
.pfoot { margin-top: 70px; padding: 70px 20px 0; text-align: center; background: url("proof/f-trees.webp") center bottom / min(100%, 1536px) auto no-repeat; }
.pfoot nav { margin-bottom: 18px; display: flex; justify-content: center; gap: 1.8em; flex-wrap: wrap; }
.pfoot nav a { font-family: var(--hand); font-size: 21px; color: var(--pen-ink) !important; text-decoration: none; }
.pfoot nav a:hover { text-decoration: underline wavy; text-underline-offset: 4px; }
/* Single tape: the footer strip itself is the tape, so the line is written
   directly on it — no second tape graphic layered on top. */
.pfoot small { display: inline-block; margin-bottom: 82px; font-family: var(--hand); font-size: 20px; color: var(--ink); }

@media (max-width: 760px) {
  .p-hero { padding: 44px 0 20px; }
  .p-hero h1 { font-size: 40px; }
  .p-sub { font-size: 22px; }
  .p-stats { gap: 22px; }
  .p-stats b { font-size: 27px; }
  .eps { grid-template-columns: 1fr; }
  .yr-sheet .thumb { width: 92px; }
  .yr-sheet li { gap: 12px; }
  .pager { flex-wrap: wrap; gap: 14px; }
  .pfoot { background-size: auto 204px; }
  .pfoot small { margin-bottom: 96px; }
}

/* Same mobile bar as the homepage: name shrinks onto the tape, links collapse
   behind the hamburger. */
@media (max-width: 700px) {
  .pnav { height: 11.7cqw !important; margin-top: 8px !important; background-size: 98.97% 100%; }
  .pnav .name { left: 6.15%; top: 30%; font-size: 5.64cqw; }
  .pnav nav { display: none; }
  .pnav .menu { display: block !important; left: auto !important; right: 2.5%; top: 50%; transform: translateY(-50%); }
  .pnav nav.open { display: flex; flex-direction: column; gap: 12px; left: 12px; right: 12px; top: calc(100% + 6px); width: auto; padding: 14px 18px; background: #efe8da; box-shadow: 0 6px 16px rgba(40,30,15,.2); z-index: 5; }
  .pnav nav.open a { font-size: 16px; }
}
