*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #050505;
    --card: #ffffff;
    --ink: #151515;
    --muted: #6b6b6b;
    --line: rgba(255,255,255,.13);
    --dark-line: rgba(0,0,0,.10);
    --gold: #d7b46a;
    --soft: #f4f1ea;
}

html,
body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: white;
    line-height: 1.55;
}

audio {
    max-width: 100%;
}

.page {
    width: min(900px, calc(100% - 28px));
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px) 0 34px;
}

.site-top {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    letter-spacing: -.045em;
    line-height: 1.05;
}

h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 5.4rem);
}

.lead {
    max-width: 650px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.68);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.episode-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.episode-link {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    background: white;
    color: var(--ink);
    text-decoration: none;
    border-radius: 18px;
}

.episode-link:hover {
    background: var(--soft);
}

.episode-link span {
    color: var(--gold);
    font-weight: 900;
    letter-spacing: .04em;
}

.episode-link strong {
    overflow-wrap: anywhere;
}

.episode-link small {
    color: var(--muted);
    white-space: nowrap;
}

.player-page {
    display: grid;
    place-items: center;
    padding: 20px 0;
}

.player-shell {
    width: min(720px, calc(100% - 28px));
}

.player-card {
    background: white;
    color: var(--ink);
    border-radius: 26px;
    padding: clamp(22px, 5vw, 42px);
    box-shadow: 0 24px 70px rgba(0,0,0,.34);
}

.player-card h1 {
    font-size: clamp(1.9rem, 6vw, 3.5rem);
    margin-bottom: 14px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}

.meta-row span {
    border: 1px solid var(--dark-line);
    background: var(--soft);
    color: #514a3c;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .84rem;
    font-weight: 750;
}

.minimal-player {
    width: min(100%, 380px);
    max-width: 100%;
    padding: 10px;
    border-radius: 18px;
    background: #111;
}

.minimal-player audio {
    display: block;
    width: 100%;
    height: 32px;
}

.episode-details {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--dark-line);
}

.episode-details h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.episode-details p,
.muted {
    color: var(--muted);
    margin: 0;
    overflow-wrap: anywhere;
}

.message {
    background: #fff8e8;
    border: 1px solid rgba(215,180,106,.45);
    color: #705016;
    padding: 15px;
    border-radius: 17px;
}

@media (max-width: 620px) {
    .episode-link {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .episode-link small {
        white-space: normal;
    }

    .minimal-player {
        width: 100%;
    }
}
