:root {
    --bg: #0a1210;
    --bg-elevated: #121a18;
    --bg-card: #161f1c;
    --text: #f4efe6;
    --text-muted: rgba(244, 239, 230, 0.65);
    --accent: #d4a574;
    --accent-hover: #e8b88a;
    --border: rgba(212, 165, 116, 0.18);
    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'Source Sans 3', system-ui, sans-serif;
    --radius: 12px;
    --max-w: 72rem;
    --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }
.container { width: min(100% - 2rem, var(--max-w)); margin-inline: auto; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 18, 16, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h); gap: 1rem;
}
.site-logo {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--accent);
}
.site-logo:hover { color: var(--accent-hover); }
.site-nav { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
    color: var(--text-muted);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--text); background: rgba(212, 165, 116, 0.1); }
.nav-toggle {
    display: none;
    background: none; border: 1px solid var(--border);
    color: var(--text); padding: 0.5rem 0.75rem;
    border-radius: 8px; cursor: pointer;
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; background: var(--bg-elevated);
        padding: 1rem; border-bottom: 1px solid var(--border);
    }
    .site-nav.is-open { display: flex; }
}

/* Hero */
.hero {
    padding: 3rem 0 4rem;
    background: radial-gradient(ellipse 80% 60% at 30% 0%, rgba(212, 165, 116, 0.12), transparent);
}
.hero__grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 768px) {
    .hero__grid { grid-template-columns: 1fr 1.2fr; }
}
.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.hero__title { font-size: clamp(1.75rem, 4vw, 2.75rem); }
.hero__art {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    position: relative;
}
.hero__art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.badge-new {
    position: absolute; top: 1rem; left: 1rem;
    background: var(--accent); color: var(--bg);
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 0.35rem 0.65rem; border-radius: 6px;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px; font-weight: 600; font-size: 0.95rem;
    border: none; cursor: pointer; transition: all 0.2s;
}
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn--outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.platform-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }

/* Audio player */
.pt-player {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}
.pt-player__controls {
    display: flex; align-items: center; gap: 1rem;
}
.pt-player__play {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent); color: var(--bg); border: none;
    cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.pt-player__progress {
    flex: 1; height: 6px; background: rgba(255,255,255,0.1);
    border-radius: 3px; cursor: pointer; position: relative;
}
.pt-player__bar {
    height: 100%; background: var(--accent);
    border-radius: 3px; width: 0%;
}
.pt-player__time { font-size: 0.8rem; color: var(--text-muted); min-width: 4.5rem; text-align: right; }

/* Cards & sections */
.section { padding: 3.5rem 0; }
.section__title { font-size: 1.75rem; margin-bottom: 1.5rem; }
.episode-grid {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 640px) { .episode-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .episode-grid { grid-template-columns: repeat(3, 1fr); } }
.episode-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}
.episode-card:hover { transform: translateY(-3px); border-color: rgba(212,165,116,0.35); }
.episode-card__img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.episode-card__body { padding: 1.25rem; }
.episode-card__num { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.episode-card__title { font-size: 1.1rem; margin: 0.35rem 0 0.5rem; }
.episode-card__title a { color: var(--text); }
.episode-card__title a:hover { color: var(--accent); }
.episode-card__desc { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.feature-grid {
    display: grid; gap: 1.5rem;
}
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.feature h3 { font-size: 1.1rem; color: var(--accent); }

/* Footer */
.site-footer {
    margin-top: 4rem;
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}
.newsletter {
    background: rgba(212, 165, 116, 0.08);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.newsletter h3 { color: var(--accent); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; max-width: 32rem; margin: 1rem auto 0; }
.newsletter-form input {
    flex: 1; min-width: 140px;
    padding: 0.65rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 8px; color: var(--text);
}
.footer-links { text-align: center; font-size: 0.9rem; color: var(--text-muted); }
.footer-links a { color: var(--text-muted); margin: 0 0.5rem; }
.footer-links a:hover { color: var(--accent); }

/* Page hero */
.page-hero { padding: 2.5rem 0 1.5rem; }
.page-hero h1 { font-size: 2.25rem; }

/* Content prose */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2rem; }

/* Search */
.search-form { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.search-form input {
    flex: 1; padding: 0.75rem 1rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text);
}

/* Pagination */
.pt-pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.pt-pagination a, .pt-pagination span {
    padding: 0.5rem 0.85rem; border-radius: 8px;
    border: 1px solid var(--border); color: var(--text-muted);
}
.pt-pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pt-pagination .current { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.alert { padding: 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert--success { background: rgba(111,191,138,0.15); border: 1px solid #6fbf8a; color: #6fbf8a; }
.alert--error { background: rgba(232,124,124,0.15); border: 1px solid #e87c7c; color: #e87c7c; }

.chapter-list { display: flex; flex-direction: column; gap: 0.5rem; max-width: 28rem; }
.chapter-btn {
    display: flex; gap: 1rem; align-items: center;
    width: 100%; text-align: left;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s;
}
.chapter-btn:hover { border-color: var(--accent); background: rgba(212, 165, 116, 0.08); }
.chapter-btn__time { color: var(--accent); font-variant-numeric: tabular-nums; min-width: 3.5rem; }

.legal-content h2 { margin-top: 1.5rem; color: var(--accent); font-size: 1.25rem; }
.legal-content h3 { margin-top: 1.5rem; color: var(--accent); }
.legal-content ul { padding-left: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
