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

/* ---- TOKENS ---- */
:root {
    --paper: #F2EDE3;
    --dark: #111111;
    --blue: #1B3F72;
    --blue-hover: #26529A;
    --text: #111111;
    --text-paper: #F2EDE3;
    --muted: #5A5A5A;
    --muted-dark: #888888;
    --border-light: #D5CFC4;
    --rule: 3px solid #111111;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--paper);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 300px 300px;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--dark);
    border-bottom: 3px solid var(--blue);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-paper);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2px;
}

.nav-links a {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    font-weight: 400;
    text-decoration: none;
    color: var(--muted-dark);
    padding: 6px 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.2s, background 0.2s;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--text-paper);
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-paper);
    border-radius: 1px;
    transition: all 0.25s;
}

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    background: var(--dark);
    display: flex;
    align-items: center;
    padding: 80px 24px 56px;
    border-bottom: 6px solid var(--blue);
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--blue-hover);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
}

.hero-name {
    font-family: 'Bebas Neue', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(5rem, 20vw, 13rem);
    line-height: 0.92;
    color: var(--text-paper);
    margin-bottom: 28px;
}

.hero-sub {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.75rem, 2vw, 0.95rem);
    color: var(--muted-dark);
    letter-spacing: 0.04em;
}

/* ---- SECTIONS ---- */
.section {
    padding: 96px 0;
    border-bottom: var(--rule);
}

.section--paper {
    background: var(--paper);
}

.section--dark {
    background: var(--dark);
}

.section--dark .section-tag {
    color: var(--blue-hover);
    border-color: var(--blue);
}

.section--dark .section-title {
    color: var(--text-paper);
}

.section--dark .section-desc {
    color: var(--muted-dark);
}

.section--dark .more-link {
    color: var(--blue-hover);
    border-color: var(--blue);
}

.section--dark .more-link:hover {
    background: var(--blue);
    color: var(--text-paper);
    border-color: var(--blue);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    margin-bottom: 20px;
}

.section-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--blue);
    display: block;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue);
    width: fit-content;
}

.section-title {
    font-family: 'Bebas Neue', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.95;
    color: var(--text);
}

.section-desc {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 640px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.section-desc a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.section-desc a:hover {
    color: var(--blue-hover);
}

.section--dark .section-desc a {
    color: var(--blue-hover);
}

.section--dark .section-desc a:hover {
    color: #5580C4;
}

/* ---- EYE 5 EMBED ---- */
.embed-block {
    margin-bottom: 32px;
    border: var(--rule);
    background: white;
    overflow: hidden;
}

.embed-loading {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    color: var(--muted);
    padding: 20px 24px;
    display: block;
}

.embed-loading a {
    color: var(--blue);
}

.mixcloud-iframe {
    display: block;
    border: none;
}

.episode-name {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: var(--muted);
    padding: 10px 16px;
    border-top: 1px solid var(--border-light);
    background: #EDE8DF;
    letter-spacing: 0.02em;
}

/* ---- MORE LINK ---- */
.more-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 18px;
    border: 2px solid var(--text);
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}

.more-link:hover {
    background: var(--dark);
    color: var(--text-paper);
    border-color: var(--dark);
}

/* ---- EPISODES LIST ---- */
.episodes-list {
    margin-bottom: 36px;
}

.episode-card {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.episode-card:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.episode-info {
    flex: 1;
}

.episode-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue-hover);
    display: block;
    margin-bottom: 6px;
}

.episode-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-paper);
    line-height: 1.4;
}

.episode-duration {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    color: var(--muted-dark);
    white-space: nowrap;
    padding-top: 2px;
}

.episode-player audio {
    width: 100%;
    height: 36px;
    color-scheme: dark;
}

.episodes-error {
    font-family: 'Space Mono', monospace;
    font-size: 0.82rem;
    color: var(--muted-dark);
    padding: 24px 0;
}

.episodes-error a {
    color: var(--blue-hover);
}

/* ---- ABOUT ---- */
.bio {
    font-size: 1.2rem;
    line-height: 1.85;
    color: #2A2A2A;
    max-width: 680px;
    border-left: 4px solid var(--blue);
    padding-left: 24px;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--dark);
    padding: 72px 0 48px;
}

.footer-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--blue-hover);
    margin-bottom: 32px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    max-width: 560px;
    margin-bottom: 64px;
}

.contact-item {
    display: flex;
    gap: 24px;
    align-items: baseline;
    text-decoration: none;
    color: var(--text-paper);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s;
}

.contact-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-item:hover {
    color: var(--blue-hover);
}

.contact-key {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-dark);
    min-width: 80px;
    transition: color 0.2s;
}

.contact-item:hover .contact-key {
    color: var(--blue-hover);
}

.contact-val {
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-copy {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.18);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--dark);
        border-bottom: 3px solid var(--blue);
        flex-direction: column;
        padding: 12px;
        gap: 2px;
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 99;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        display: block;
        padding: 12px 16px;
    }

    .contact-item {
        flex-direction: column;
        gap: 4px;
    }

    .contact-key {
        min-width: unset;
    }
}
