:root {
    --bg: #f7f5ef;
    --surface: #ffffff;
    --surface-strong: #111827;
    --text: #18212f;
    --muted: #627084;
    --line: #d9dee8;
    --accent: #0f8f88;
    --accent-strong: #0b6e69;
    --gold: #f0b84f;
    --ok: #147a3f;
    --shadow: 0 18px 45px rgba(21, 32, 48, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.75;
}

a {
    color: inherit;
}

code {
    background: #eef2f5;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: .05rem .3rem;
}

audio {
    width: 100%;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(760px, calc(100% - 32px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(247, 245, 239, .92);
    border-bottom: 1px solid rgba(217, 222, 232, .8);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
}

.brand__mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: var(--accent);
    border-radius: 8px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.site-nav a,
.filters a {
    padding: 8px 11px;
    border-radius: 7px;
    color: var(--muted);
    font-size: .94rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.filters a:hover,
.filters a.is-active {
    color: var(--text);
    background: #e9ece6;
}

.hero {
    background:
        linear-gradient(120deg, rgba(17, 24, 39, .92), rgba(15, 143, 136, .78)),
        radial-gradient(circle at 20% 20%, rgba(240, 184, 79, .55), transparent 30%),
        #172033;
    color: #fff;
}

.hero__inner {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 44px;
    align-items: center;
    padding: 72px 0;
}

.hero h1,
.page-title h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, .84);
    font-size: 1.08rem;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--gold);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid var(--accent);
    border-radius: 7px;
    color: #fff;
    background: var(--accent);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.button--ghost {
    color: var(--accent-strong);
    background: transparent;
}

.hero .button--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}

.button--wide {
    width: 100%;
    margin-top: 12px;
}

.button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.hero__panel {
    display: grid;
    gap: 12px;
}

.hero__panel a {
    display: grid;
    gap: 4px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    text-decoration: none;
}

.hero__panel strong {
    font-size: 1.18rem;
}

.hero__panel span {
    color: rgba(255, 255, 255, .78);
}

.section {
    padding: 58px 0;
}

.section--tint {
    background: #e9f0ee;
}

.section-heading,
.detail-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.section-heading h2,
.prose h2,
.detail-main h2,
.detail-side h2 {
    margin: 0 0 12px;
    line-height: 1.25;
}

.section-heading a {
    color: var(--accent-strong);
    font-weight: 800;
}

.track-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.track-card,
.detail-main,
.detail-side,
.info-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.track-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 20px;
}

.track-card__header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.track-card h3 {
    margin: 0;
    line-height: 1.35;
}

.track-card h3 a {
    text-decoration: none;
}

.track-card p {
    margin: 0;
}

.badge,
.status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #edf0f3;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}

.badge--ok,
.status-pill {
    background: #e4f5eb;
    color: var(--ok);
}

.muted {
    color: var(--muted);
}

.audio-placeholder,
.empty,
.note {
    padding: 14px;
    border: 1px dashed #b8c0ca;
    border-radius: 8px;
    color: var(--muted);
    background: #f7f9fb;
}

.page-title {
    padding: 52px 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.page-title p {
    max-width: 780px;
    color: var(--muted);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.detail-main,
.detail-side,
.info-grid article {
    padding: 24px;
}

.detail-main > * + h2 {
    margin-top: 30px;
}

.detail-side {
    position: sticky;
    top: 92px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.detail-side dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.prose ul,
.prose ol {
    padding-left: 1.3rem;
}

.site-footer {
    padding: 34px 0;
    color: rgba(255, 255, 255, .78);
    background: var(--surface-strong);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-grid p {
    margin: 6px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

.footer-links a {
    color: #fff;
    font-weight: 700;
}

@media (max-width: 860px) {
    .header-inner,
    .section-heading,
    .detail-head,
    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero__inner,
    .detail-layout,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .track-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-side {
        position: static;
    }
}

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

    .hero__inner {
        min-height: auto;
        padding: 48px 0;
    }

    .hero h1,
    .page-title h1 {
        font-size: 2.35rem;
    }
}
