:root {
    --bg: #f4ede1;
    --paper: rgba(255, 251, 245, 0.88);
    --ink: #1f1308;
    --muted: #715b47;
    --accent: #bc4b1e;
    --accent-strong: #8f310b;
    --line: rgba(31, 19, 8, 0.12);
    --shadow: 0 24px 60px rgba(85, 48, 19, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(188, 75, 30, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(137, 84, 44, 0.2), transparent 25%),
        linear-gradient(135deg, #efe2d0 0%, #f8f2ea 46%, #eadbc7 100%);
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 56px;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.95fr;
    gap: 24px;
    align-items: start;
}

.hero-copy,
.hero-card,
.episode-card,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--paper);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 32px;
}

.hero-card {
    padding: 24px;
}

.eyebrow {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: var(--accent-strong);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    line-height: 0.96;
    margin-bottom: 18px;
}

.lede {
    max-width: 42rem;
    font-size: 1.06rem;
    line-height: 1.7;
    color: var(--muted);
}

.upload-form {
    display: grid;
    gap: 14px;
}

.upload-form label {
    display: grid;
    gap: 8px;
    font-size: 0.94rem;
}

.upload-form input {
    width: 100%;
    border: 1px solid rgba(31, 19, 8, 0.15);
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    background: rgba(255, 255, 255, 0.78);
}

.upload-form button {
    border: 0;
    border-radius: 999px;
    padding: 14px 18px;
    font: inherit;
    font-weight: 700;
    color: #fffaf4;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    cursor: pointer;
}

.notice {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.94rem;
}

.notice-success {
    background: rgba(51, 129, 89, 0.12);
}

.notice-error {
    background: rgba(178, 60, 42, 0.12);
}

.notice-warning {
    background: rgba(188, 138, 30, 0.14);
}

.episodes {
    margin-top: 34px;
}

.section-head {
    margin-bottom: 18px;
}

.episode-card,
.empty-state {
    padding: 24px;
    margin-bottom: 18px;
}

.episode-card audio {
    width: 100%;
    margin: 18px 0 8px;
}

.episode-meta p:last-child {
    color: var(--muted);
    line-height: 1.65;
}

.script-grid {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.script-line {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(31, 19, 8, 0.1);
    background: rgba(255, 255, 255, 0.55);
}

.script-line strong {
    display: block;
    margin-bottom: 6px;
}

.script-line p {
    margin-bottom: 0;
    line-height: 1.6;
    color: var(--muted);
}

@media (max-width: 880px) {
    .hero {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.9rem;
    }
}