/* === Reset === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Palette === */
:root {
    --color-primary: #cc5803; /* Burnt Sienna */
    --color-secondary: #7ea16b; /* Sage */
    --color-bg: #000;
    --color-text: #fff;
    --color-text-muted: rgba(255, 255, 255, 0.5);

    --font-display: "Oswald", sans-serif;
    --font-body: system-ui, -apple-system, sans-serif;
}

/* === Base === */
body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-secondary);
}

/* === Display type === */
.display {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: 0.02em;
}

.display--xl {
    font-size: clamp(4rem, 10vw, 8rem);
}

.display--lg {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

.display--sm {
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    line-height: 1.4;
    letter-spacing: 0.08em;
}

.color-primary {
    color: var(--color-primary);
}
.color-secondary {
    color: var(--color-secondary);
}

/* === Hero === */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 6rem 3rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    text-align: right;
}

.hero-credits a {
    color: inherit;
}

.hero-credits a:hover {
    color: var(--color-primary);
}

.hero-type .display--lg {
    margin-top: 0.3em;
}

/* === Play button === */
.play-btn {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: filter 0.2s;
}

.play-btn:hover {
    filter: drop-shadow(0 0 12px var(--color-primary));
}

.play-label {
    color: inherit;
}

/* === Video modal === */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
}

.video-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
    position: relative;
    width: 90vw;
    max-width: 64rem;
}

.video-modal-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* === Bio === */
.bio {
    padding: 2rem 6rem 4rem;
    max-width: 56rem;
    margin: 0 auto;
}

.bio-heading {
    margin-bottom: 1.5rem;
}

.bio-text p {
    margin-bottom: 1em;
}

.bio-text p:last-child {
    margin-bottom: 0;
}

/* === Works === */
.works {
    padding: 2rem 6rem 4rem;
    max-width: 56rem;
    margin: 0 auto;
}

.works-heading {
    margin-bottom: 1.5rem;
}

.work {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.work:last-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.work summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
    padding: 1.5rem 0;
    cursor: pointer;
    list-style: none;
}

.work summary::-webkit-details-marker {
    display: none;
}

.work-title {
    color: var(--color-text);
    transition: color 0.2s;
}

.work summary:hover .work-title,
.work[open] .work-title {
    color: var(--color-primary);
}

.work-credits {
    color: var(--color-secondary);
    text-align: right;
    flex-shrink: 0;
}

.work-body {
    padding: 0 0 2rem;
    max-width: 40rem;
}

.work-body p {
    margin-bottom: 1em;
}

.work-meta {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.work-quote {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--color-primary);
}

.work-quote p {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

.work-quote cite {
    font-style: normal;
    color: var(--color-text-muted);
}

.work-audio {
    display: block;
    width: 100%;
    height: 166px;
    border: 0;
    margin: 1.5rem 0;
}

.work-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    margin-bottom: 1em;
}

/* === Footer === */
.footer {
    padding: 3rem;
    text-align: right;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.footer a {
    color: var(--color-text-muted);
}

.footer a:hover {
    color: var(--color-text);
}

/* === Phone === */
@media (max-width: 40rem) {
    .hero-overlay {
        padding: 5rem 1rem 1rem;
    }

    .display--xl {
        font-size: clamp(3rem, 16vw, 4rem);
    }

    .play-btn {
        bottom: 1.5rem;
        right: 1rem;
    }

    .play-btn svg {
        width: 72px;
        height: 72px;
    }

    .video-modal-content {
        width: 100vw;
    }

    .bio,
    .works {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .work summary {
        flex-direction: column;
        gap: 0.5rem;
    }

    .work-credits {
        text-align: left;
    }

    .footer {
        padding: 2rem 1rem;
    }
}
