/* Homepage sections below the hero (inc/home.php), and the bands the About page shares with them
   (its "At a glance" facts, "Questions about Francheska" and the red invitation). Episode rows, the resume bar and progress lines come from episodes.css.
   Rhythm: dark hero → light topic cards in the topic colors → dark "about" band → light guests and questions → red invitation → dark footer.
   The two bands carry the sound wave from the show artwork (tgp_sound_wave in inc/home.php); it is decorative and hidden from assistive tech. */

.home-sections { padding-bottom: 0; }
.home-resume { margin-top: clamp(20px, 3vw, 32px); margin-bottom: 0; }

/* Section headings: a small label, a large serif title, an optional line and link. */
.home-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 3vw, 36px); }
.home-heading .eyebrow { margin: 0; }
.home-heading h2 { margin-top: 10px; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.home-heading-intro { max-width: 34rem; margin-top: 10px; color: var(--muted); font-size: 1.0625rem; line-height: 1.5; }
.home-heading > .text-link { white-space: nowrap; }

/* Find your next conversation: one card per topic, headed in that topic's color. */
.home-next { padding-top: clamp(56px, 7vw, 96px); }
.home-next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: clamp(16px, 2vw, 24px); }
.home-topic-card { display: flex; flex-direction: column; border: 1px solid #dddbd1; background: #fbfaf6; transition: border-color var(--motion), box-shadow var(--motion); }
.home-topic-card:hover, .home-topic-card:focus-within { border-color: var(--ink); box-shadow: 0 12px 32px rgba(32, 34, 31, 0.08); }
.home-topic-head { padding: clamp(22px, 2.4vw, 30px) clamp(20px, 2.4vw, 28px) clamp(20px, 2vw, 26px); }
.home-topic-tone-0 .home-topic-head { background: #dce2d7; }
.home-topic-tone-1 .home-topic-head { background: #e8dfd0; }
.home-topic-tone-2 .home-topic-head { background: #dce4e1; }
.home-topic-label { color: #4b4d47; font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.home-topic-head h3 { margin-top: 10px; font-size: clamp(1.625rem, 2.4vw, 2.125rem); line-height: 1.08; letter-spacing: -0.025em; }
.home-topic-head h3 a { text-decoration: none; }
.home-topic-head h3 a:hover { text-decoration: underline; }
.home-next-description { margin-top: 8px; color: #4b4d47; font-size: 0.9375rem; line-height: 1.5; }
.home-topic-body { display: flex; flex: 1; flex-direction: column; padding: 4px clamp(20px, 2.4vw, 28px) 20px; }
.home-topic-body .room-list { flex: 1; }
.home-topic-body .room-episode { gap: 10px 16px; padding: 20px 0; }
.home-topic-body .room-episode:last-child { border-bottom: 0; }
.home-topic-body .room-episode h4 { font-size: 1.1875rem; line-height: 1.25; }
.home-topic-body .room-lede { display: block; overflow: visible; -webkit-line-clamp: unset; } /* one whole sentence (tgp_first_sentence), never clipped */
.home-topic-body .room-more { margin-top: 0; padding-top: 14px; border-top: 1px solid var(--rule); }

/* Solid red play buttons inside the cards; the button's name comes from its aria-label ("Play: …"). */
.home-topic-body .episode-row-play {
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-color: var(--red);
    background: var(--red);
    color: #fff;
    font-size: 0;
}
.home-topic-body .episode-row-play span { color: #fff; font-size: 0.875rem; transform: translateX(1px); }
.home-topic-body .episode-row-play:hover { border-color: var(--ink); background: var(--ink); }

/* What is The Good Paralegal? A dark band with the facts as a grid. */
.home-about { margin-top: clamp(64px, 8vw, 112px); padding-block: clamp(56px, 7vw, 104px); background: var(--ink); color: var(--paper); }
.home-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: clamp(40px, 6vw, 96px); }
.home-about .eyebrow { margin: 0; color: #f2a99c; }
.home-about h2 { margin-top: 14px; font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.home-about-wave { display: block; width: min(100%, 360px); height: auto; margin-top: 22px; color: #e0493b; }
.home-about-summary { max-width: 34rem; margin-top: 20px; color: #cfd2c8; font-family: var(--serif); font-size: clamp(1.1875rem, 1.6vw, 1.375rem); font-style: italic; line-height: 1.5; }
.home-about .text-link { margin-top: 18px; color: var(--paper); }
.home-about a:hover { color: #f2a99c; }
.home-about :focus-visible { outline-color: var(--paper); }
.home-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid rgba(247, 245, 239, 0.32); }
.home-facts > div { padding: 18px 20px 20px 0; border-bottom: 1px solid rgba(247, 245, 239, 0.16); }
.home-facts > div:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(247, 245, 239, 0.16); }
.home-facts dt { color: #f2a99c; font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.home-facts dd { margin: 8px 0 0; color: var(--paper); font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; }
.home-facts dd a { color: var(--paper); }

/* About page: the same band answers "Who is Francheska Stone?" and quotes the official feed's description of the show. */
.about-glance { margin-top: 0; }
.about-glance + .about-topics { margin-top: clamp(56px, 7vw, 96px); }
.about-glance-quote { max-width: 34rem; margin: 26px 0 0; padding-left: 20px; border-left: 2px solid #e0493b; }
.about-glance-quote blockquote { margin: 0; }
.about-glance-quote p { color: #cfd2c8; font-size: 1rem; line-height: 1.6; }
.about-glance-quote figcaption { margin-top: 10px; color: #f2a99c; font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }

/* Who's been on the show: a two-column roster with monograms (no guest photos are supplied, so none are invented). */
.home-guests { padding-top: clamp(64px, 8vw, 112px); }
.home-guest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); margin: 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.home-guest { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.home-monogram { display: grid; flex: none; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #dce2d7; color: var(--ink); font-family: var(--serif); font-size: 1.3125rem; letter-spacing: 0.02em; }
.home-guest:nth-child(3n + 2) .home-monogram { background: #e8dfd0; }
.home-guest:nth-child(3n) .home-monogram { background: #dce4e1; }
.home-guest-text { display: grid; gap: 2px; min-width: 0; }
.home-guest-name { font-family: var(--serif); font-size: 1.4375rem; line-height: 1.15; text-decoration: none; }
.home-guest-name:hover { text-decoration: underline; }
.home-guest-role { color: var(--muted); font-size: 0.9375rem; }
.home-guest-episode { margin-top: 4px; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
.home-guest-episode a { color: var(--ink); }

/* Questions (homepage and About): the heading across the top, then the numbered questions in two columns that
   read down (01–03, then 04–06). Rows line up across the columns, so the rules between them meet. Answers stay visible. */
.home-faq { padding-top: clamp(64px, 8vw, 112px); }
.home-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--faq-rows, 3), auto); grid-auto-flow: column; column-gap: clamp(32px, 5vw, 80px); margin: 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.home-faq-item { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 16px; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.home-faq-number { color: var(--red); font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.home-faq-item h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; }
.home-faq-item p { max-width: 62ch; margin-top: 8px; color: #4b4d47; font-size: 1rem; line-height: 1.6; }
.home-faq-item a { color: var(--ink); }

/* One invitation to take part, on a red band before the footer. */
.home-join { margin-top: clamp(64px, 8vw, 112px); padding-block: clamp(48px, 6vw, 88px) clamp(28px, 3.5vw, 48px); background: var(--red); color: #fff; }
.home-join-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.home-join .eyebrow { margin: 0; color: #f7d6cf; }
.home-join h2 { max-width: 20ch; margin-top: 12px; color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.04; letter-spacing: -0.03em; }
.home-join-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.home-join .button { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.home-join .button:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.home-join .text-link { color: #fff; }
.home-join a:hover { color: #fff; text-decoration: underline; }
.home-join :focus-visible { outline-color: #fff; }
.home-join-wave { display: block; width: 100%; height: 56px; margin-top: clamp(36px, 5vw, 56px); color: rgba(255, 255, 255, 0.42); }

@media (prefers-reduced-motion: reduce) {
    .home-topic-card { transition: none; }
}

/* Laptops and tablets: each topic card runs full width, its header beside its episodes. */
@media (max-width: 1100px) {
    .home-next-grid { grid-template-columns: minmax(0, 1fr); }
    .home-topic-card { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); }
    .home-topic-body { padding-top: 8px; }
}

@media (max-width: 900px) {
    .home-about-grid { grid-template-columns: minmax(0, 1fr); }
    .home-faq-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
}

@media (max-width: 760px) {
    .home-topic-card { display: flex; }
    .home-heading > .text-link { order: 2; }
    .home-guest-list { grid-template-columns: minmax(0, 1fr); }
    .home-faq-item { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 600px) {
    .home-facts { grid-template-columns: minmax(0, 1fr); }
    .home-facts > div, .home-facts > div:nth-child(even) { padding: 16px 0 18px; border-left: 0; }
}
