/* /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)); }
.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; }
}
