/* ============================================================
   THE COSMIC VARIETY SHOW — Complete Stylesheet
   Fuller · Feynman · Sagan — Three Minds, One Universe
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
    /* Background & Surface */
    --color-bg: #0a0a0a;
    --color-bg-raised: #111111;
    --color-bg-card: #141414;
    --color-bg-hover: #1a1a1a;
    --color-bg-input: #1e1e1e;
    --color-surface: #181818;
    --color-surface-alt: #1c1c1c;

    /* Primary accent */
    --color-accent: #00bcd4;
    --color-accent-hover: #00e5ff;
    --color-accent-dim: rgba(0, 188, 212, 0.15);
    --color-accent-glow: rgba(0, 188, 212, 0.3);

    /* Voice colors */
    --color-bucky: #ff9800;
    --color-bucky-dim: rgba(255, 152, 0, 0.15);
    --color-bucky-hover: #ffb74d;

    --color-feynman: #e91e63;
    --color-feynman-dim: rgba(233, 30, 99, 0.15);
    --color-feynman-hover: #f06292;

    --color-sagan: #2196f3;
    --color-sagan-dim: rgba(33, 150, 243, 0.15);
    --color-sagan-hover: #64b5f6;

    /* Text */
    --color-text: #e0e0e0;
    --color-text-secondary: #9e9e9e;
    --color-text-muted: #666666;
    --color-text-dim: #444444;

    /* Borders */
    --color-border: #222222;
    --color-border-light: #2a2a2a;
    --color-border-hover: #333333;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-accent: 'Special Elite', 'Courier New', monospace;

    /* Sizing */
    --container-max: 1280px;
    --container-narrow: 800px;
    --header-height: 64px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.7);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.65);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}


/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
    font-size: 17px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.6rem;
    font-weight: 900;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.25em;
}

ul, ol {
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}

li {
    margin-bottom: 0.4em;
}

blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: var(--color-bg-raised);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

blockquote p:last-child {
    margin-bottom: 0;
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
    background: var(--color-bg-raised);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
    color: var(--color-accent);
}

pre {
    background: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25em 1.5em;
    overflow-x: auto;
    margin: 1.5em 0;
    line-height: 1.5;
}

pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: var(--color-text);
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2em 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

th, td {
    padding: 0.75em 1em;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    font-family: var(--font-body);
    font-weight: 600;
    color: #ffffff;
    background: var(--color-bg-raised);
}

::selection {
    background: var(--color-accent-dim);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-hover);
}


/* ============================================================
   ACCENT BAR
   ============================================================ */

.accent-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--color-bucky) 0%,
        var(--color-bucky) 33%,
        var(--color-feynman) 33%,
        var(--color-feynman) 66%,
        var(--color-sagan) 66%,
        var(--color-sagan) 100%
    );
    z-index: 10000;
}


/* ============================================================
   CONTAINER
   ============================================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 2rem;
}


/* ============================================================
   SITE HEADER / TOP NAV
   ============================================================ */

.site-header {
    position: sticky;
    top: 4px;
    z-index: 9000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    transition: background var(--transition-base);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-logo {
    font-family: var(--font-accent);
    font-size: 1.15rem;
    color: #ffffff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.site-logo:hover {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0 1.1rem;
    height: var(--header-height);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color var(--transition-fast), background var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
    background: var(--color-bg-hover);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 60%;
}

.dropdown-arrow {
    font-size: 0.65em;
    margin-left: 0.3em;
    transition: transform var(--transition-fast);
}


/* ============================================================
   DROPDOWN MENU
   ============================================================ */

.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    z-index: 9100;
    padding: 0.5rem 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-item {
    display: block;
    padding: 0.7rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text);
    transition: background var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: var(--color-bg-hover);
    padding-left: 1.5rem;
}

.dropdown-item-bucky:hover {
    color: var(--color-bucky);
    border-left-color: var(--color-bucky);
    background: var(--color-bucky-dim);
}

.dropdown-item-feynman:hover {
    color: var(--color-feynman);
    border-left-color: var(--color-feynman);
    background: var(--color-feynman-dim);
}

.dropdown-item-sagan:hover {
    color: var(--color-sagan);
    border-left-color: var(--color-sagan);
    background: var(--color-sagan-dim);
}


/* ============================================================
   MOBILE MENU TOGGLE
   ============================================================ */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 9200;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================================
   SITE MAIN
   ============================================================ */

.site-main {
    min-height: calc(100vh - var(--header-height) - 4px);
}


/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 188, 212, 0.04) 0%, transparent 70%);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.04em;
    margin-bottom: 0.4em;
    line-height: 1.1;
}

.hero-tagline {
    font-family: var(--font-accent);
    font-size: 1.15rem;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    margin-bottom: 1.5em;
}

.hero-intro {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
}


/* ============================================================
   SECTION TITLES
   ============================================================ */

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-accent);
}


/* ============================================================
   VOICE CARDS (HOMEPAGE)
   ============================================================ */

.voices-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-border);
}

.voice-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.voice-card {
    display: block;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    text-decoration: none;
}

.voice-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.voice-card-bucky {
    border-top: 4px solid var(--color-bucky);
}

.voice-card-bucky:hover {
    border-color: var(--color-bucky);
    box-shadow: 0 12px 40px rgba(255, 152, 0, 0.15);
}

.voice-card-feynman {
    border-top: 4px solid var(--color-feynman);
}

.voice-card-feynman:hover {
    border-color: var(--color-feynman);
    box-shadow: 0 12px 40px rgba(233, 30, 99, 0.15);
}

.voice-card-sagan {
    border-top: 4px solid var(--color-sagan);
}

.voice-card-sagan:hover {
    border-color: var(--color-sagan);
    box-shadow: 0 12px 40px rgba(33, 150, 243, 0.15);
}

.voice-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--color-bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.voice-card-placeholder {
    font-family: var(--font-accent);
    font-size: 2rem;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    user-select: none;
}

.voice-card-bucky .voice-card-placeholder {
    color: rgba(255, 152, 0, 0.3);
}

.voice-card-feynman .voice-card-placeholder {
    color: rgba(233, 30, 99, 0.3);
}

.voice-card-sagan .voice-card-placeholder {
    color: rgba(33, 150, 243, 0.3);
}

.voice-card-content {
    padding: 1.5rem;
}

.voice-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3em;
    transition: color var(--transition-fast);
}

.voice-card-bucky:hover .voice-card-content h3 {
    color: var(--color-bucky);
}

.voice-card-feynman:hover .voice-card-content h3 {
    color: var(--color-feynman);
}

.voice-card-sagan:hover .voice-card-content h3 {
    color: var(--color-sagan);
}

.voice-card-content p {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
    font-style: italic;
}


/* ============================================================
   LATEST POSTS SECTION
   ============================================================ */

.latest-posts-section {
    padding: 4rem 0;
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-muted);
    font-family: var(--font-accent);
    font-size: 1.1rem;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-raised);
}


/* ============================================================
   MOSAIC GRID (CARD LAYOUT)
   ============================================================ */

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.mosaic-card {
    display: block;
    text-decoration: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
}

.mosaic-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-card-hover);
}

.mosaic-card-inner {
    position: relative;
    width: 100%;
}

.mosaic-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-slow);
}

.mosaic-card:hover .mosaic-image {
    transform: scale(1.05);
}

.mosaic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 60%);
    z-index: 1;
    border-radius: var(--radius-md);
    transition: background var(--transition-base);
}

.mosaic-card:hover .mosaic-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 65%);
}


/* ============================================================
   MOSAIC BADGE
   ============================================================ */

.mosaic-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    font-family: var(--font-accent);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3em 0.7em;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
}

.mosaic-badge-bucky {
    background: var(--color-bucky);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.mosaic-badge-feynman {
    background: var(--color-feynman);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
}

.mosaic-badge-sagan {
    background: var(--color-sagan);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}


/* ============================================================
   MOSAIC CONTENT (overlay text)
   ============================================================ */

.mosaic-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1.25rem;
}

.mosaic-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 0.3em;
    transition: color var(--transition-fast);
}

.mosaic-card:hover .mosaic-title {
    color: var(--color-accent);
}

.mosaic-date {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.4em;
}

.mosaic-excerpt {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ============================================================
   MOSAIC GRID — FEATURED SIZES
   ============================================================ */

.mosaic-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaic-card:first-child .mosaic-title {
    font-size: 1.5rem;
}

.mosaic-card:first-child .mosaic-excerpt {
    -webkit-line-clamp: 3;
}

.mosaic-card:first-child .mosaic-badge {
    font-size: 0.8rem;
    padding: 0.35em 0.85em;
}


/* ============================================================
   POST PAGE
   ============================================================ */

.post {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.post-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.post-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 0.4em;
}

.post-header time {
    display: block;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8em;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}


/* ============================================================
   TAGS
   ============================================================ */

.tag {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3em 0.75em;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    background: var(--color-bg-hover);
    border: 1px solid var(--color-border);
    line-height: 1;
}

.tag-bucky {
    color: var(--color-bucky);
    background: var(--color-bucky-dim);
    border-color: rgba(255, 152, 0, 0.3);
}

.tag-feynman {
    color: var(--color-feynman);
    background: var(--color-feynman-dim);
    border-color: rgba(233, 30, 99, 0.3);
}

.tag-sagan {
    color: var(--color-sagan);
    background: var(--color-sagan-dim);
    border-color: rgba(33, 150, 243, 0.3);
}


/* ============================================================
   POST BODY
   ============================================================ */

.post-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.post-body h2 {
    font-size: 1.8rem;
    margin-top: 2.5em;
    margin-bottom: 0.6em;
    color: #ffffff;
}

.post-body h3 {
    font-size: 1.4rem;
    margin-top: 2em;
    margin-bottom: 0.5em;
    color: #ffffff;
}

.post-body h4 {
    font-size: 1.15rem;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #ffffff;
}

.post-body p {
    margin-bottom: 1.4em;
}

.post-body a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(0, 188, 212, 0.3);
    transition: text-decoration-color var(--transition-fast);
}

.post-body a:hover {
    text-decoration-color: var(--color-accent);
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.4em;
    padding-left: 1.5em;
}

.post-body li {
    margin-bottom: 0.5em;
}

.post-body blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 1.25em 1.75em;
    margin: 2em 0;
    background: var(--color-bg-raised);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--color-text-secondary);
}

.post-body blockquote p:last-child {
    margin-bottom: 0;
}

.post-body img {
    border-radius: var(--radius-md);
    margin: 2em 0;
    box-shadow: var(--shadow-md);
}

.post-body figure {
    margin: 2em 0;
}

.post-body figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.75em;
    font-style: italic;
}

.post-body pre {
    margin: 2em 0;
}

.post-body hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 3em 0;
}

.post-body strong {
    font-weight: 600;
    color: #ffffff;
}

.post-body em {
    font-style: italic;
}

.post-body .embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2em 0;
    border-radius: var(--radius-md);
}

.post-body .embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-md);
}


/* ============================================================
   POST FOOTER
   ============================================================ */

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.post-footer a {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-accent);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.post-footer a:hover {
    color: var(--color-accent-hover);
    transform: translateX(-4px);
}


/* ============================================================
   EDITOR / VOICE PAGES
   ============================================================ */

.editor-page {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.editor-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
    border-left: 5px solid;
    background: var(--color-bg-raised);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.editor-placeholder {
    width: 200px;
    height: 200px;
    background: var(--color-bg-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-size: 1.5rem;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 2px solid var(--color-border);
    user-select: none;
}

.editor-placeholder-bucky {
    color: rgba(255, 152, 0, 0.5);
    border-color: rgba(255, 152, 0, 0.2);
    background: var(--color-bucky-dim);
}

.editor-placeholder-feynman {
    color: rgba(233, 30, 99, 0.5);
    border-color: rgba(233, 30, 99, 0.2);
    background: var(--color-feynman-dim);
}

.editor-placeholder-sagan {
    color: rgba(33, 150, 243, 0.5);
    border-color: rgba(33, 150, 243, 0.2);
    background: var(--color-sagan-dim);
}

.editor-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.4em;
}

.editor-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 0;
}

.editor-bio {
    margin-bottom: 3rem;
    padding: 0 0.5rem;
}

.editor-bio p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.25em;
}

.editor-page h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.editor-page h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--color-accent);
}

.editor-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.editor-post-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
    background: var(--color-bg-card);
    border-left: 4px solid var(--color-border);
}

.editor-post-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.editor-post-card-bucky {
    border-left-color: var(--color-bucky);
}

.editor-post-card-bucky:hover {
    border-color: rgba(255, 152, 0, 0.3);
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.1);
}

.editor-post-card-feynman {
    border-left-color: var(--color-feynman);
}

.editor-post-card-feynman:hover {
    border-color: rgba(233, 30, 99, 0.3);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.1);
}

.editor-post-card-sagan {
    border-left-color: var(--color-sagan);
}

.editor-post-card-sagan:hover {
    border-color: rgba(33, 150, 243, 0.3);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.1);
}

.editor-post-card a {
    display: block;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--color-text);
}

.editor-post-card a h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3em;
    transition: color var(--transition-fast);
}

.editor-post-card:hover a h3 {
    color: var(--color-accent);
}

.editor-post-card a time {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5em;
}

.editor-post-card a p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--color-bg-raised);
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 3rem;
    padding: 3.5rem 2rem 2.5rem;
}

.footer-logo {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    color: #ffffff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75em;
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 1em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.5em;
}

.footer-col a {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-col a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-copyright {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5em;
}

.footer-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}


/* ============================================================
   POSTS LIST PAGE
   ============================================================ */

.posts-list {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.posts-list h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--color-border);
}

.posts-list-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.posts-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
    text-decoration: none;
    color: var(--color-text);
}

.posts-list-item:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.posts-list-item time {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 0.35em;
    min-width: 110px;
}

.posts-list-item h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2em;
    transition: color var(--transition-fast);
}

.posts-list-item:hover h3 {
    color: var(--color-accent);
}

.posts-list-item p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}


/* ============================================================
   ARCHIVE / UTILITY PAGES
   ============================================================ */

.archive-page {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.archive-year {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid var(--color-border);
}

.archive-list {
    list-style: none;
    padding: 0;
}

.archive-list li {
    padding: 0.6em 0;
    border-bottom: 1px solid rgba(34, 34, 34, 0.5);
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.archive-list time {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
    min-width: 80px;
    font-variant-numeric: tabular-nums;
}

.archive-list a {
    font-size: 0.95rem;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.archive-list a:hover {
    color: var(--color-accent);
}


/* ============================================================
   SEARCH (placeholder styles)
   ============================================================ */

.search-container {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-dim);
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-results {
    margin-top: 2rem;
}


/* ============================================================
   AUDIO PLAYER (placeholder styles)
   ============================================================ */

.audio-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin: 1.5em 0;
}

.audio-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.audio-play-btn:hover {
    background: var(--color-accent-hover);
    transform: scale(1.08);
}

.audio-play-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.audio-info {
    flex: 1;
    min-width: 0;
}

.audio-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-duration {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.audio-progress {
    flex: 2;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.audio-progress-bar {
    height: 100%;
    background: var(--color-accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}


/* ============================================================
   NOTIFICATION / ALERT STYLES
   ============================================================ */

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5em 0;
    font-size: 0.92rem;
    border-left: 4px solid;
}

.alert-info {
    background: var(--color-accent-dim);
    border-left-color: var(--color-accent);
    color: var(--color-accent);
}

.alert-bucky {
    background: var(--color-bucky-dim);
    border-left-color: var(--color-bucky);
    color: var(--color-bucky);
}

.alert-feynman {
    background: var(--color-feynman-dim);
    border-left-color: var(--color-feynman);
    color: var(--color-feynman);
}

.alert-sagan {
    background: var(--color-sagan-dim);
    border-left-color: var(--color-sagan);
    color: var(--color-sagan);
}


/* ============================================================
   BUTTON STYLES
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65em 1.5em;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1;
    gap: 0.5em;
}

.btn-primary {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    box-shadow: 0 4px 15px var(--color-accent-glow);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent-dim);
    color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border-color: var(--color-border);
}

.btn-ghost:hover {
    background: var(--color-bg-hover);
    color: #ffffff;
    border-color: var(--color-border-hover);
}

.btn-sm {
    padding: 0.4em 1em;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.85em 2em;
    font-size: 1rem;
}


/* ============================================================
   LOADING & SKELETON STATES
   ============================================================ */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-bg-hover) 0%,
        var(--color-surface) 50%,
        var(--color-bg-hover) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.75em;
    width: 100%;
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-title {
    height: 1.8em;
    width: 80%;
    margin-bottom: 1em;
}

.skeleton-image {
    aspect-ratio: 16 / 9;
    width: 100%;
}


/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}


/* ============================================================
   PULSE ANIMATION (for live indicators etc.)
   ============================================================ */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}


/* ============================================================
   TOOLTIP
   ============================================================ */

.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4em 0.8em;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    pointer-events: none;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    z-index: 100;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}


/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    padding: 1rem 0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--color-text-secondary);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.breadcrumb-separator {
    color: var(--color-text-dim);
}


/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5em;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.pagination a:hover {
    color: #ffffff;
    border-color: var(--color-accent);
    background: var(--color-accent-dim);
}

.pagination .current {
    color: #ffffff;
    background: var(--color-accent);
    border-color: var(--color-accent);
}


/* ============================================================
   BACK TO TOP
   ============================================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 8000;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
    transform: translateY(-2px);
}


/* ============================================================
   GRID HELPERS
   ============================================================ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}


/* ============================================================
   SPACING HELPERS
   ============================================================ */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }


/* ============================================================
   TEXT HELPERS
   ============================================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-accent { color: var(--color-accent); }
.text-bucky { color: var(--color-bucky); }
.text-feynman { color: var(--color-feynman); }
.text-sagan { color: var(--color-sagan); }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }

.font-heading { font-family: var(--font-heading); }
.font-accent { font-family: var(--font-accent); }
.font-body { font-family: var(--font-body); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-900 { font-weight: 900; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.italic { font-style: italic; }


/* ============================================================
   DISPLAY HELPERS
   ============================================================ */

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-inline-flex { display: inline-flex; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }


/* ============================================================
   BORDER HELPERS
   ============================================================ */

.border { border: 1px solid var(--color-border); }
.border-top { border-top: 1px solid var(--color-border); }
.border-bottom { border-bottom: 1px solid var(--color-border); }
.border-left { border-left: 1px solid var(--color-border); }
.border-right { border-right: 1px solid var(--color-border); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 50%; }


/* ============================================================
   VISUALLY HIDDEN (for accessibility)
   ============================================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
    .accent-bar,
    .site-header,
    .site-footer,
    .mobile-menu-toggle,
    .back-to-top,
    .audio-player {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #000000;
        font-size: 12pt;
        line-height: 1.5;
    }

    .post {
        max-width: none;
        padding: 0;
    }

    a {
        color: #000000;
        text-decoration: underline;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000000;
    }

    .post-body img {
        max-width: 100%;
        box-shadow: none;
    }
}


/* ============================================================
   RESPONSIVE: 1200px
   ============================================================ */

@media (max-width: 1200px) {
    .mosaic-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mosaic-card:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* ============================================================
   RESPONSIVE: 1024px
   ============================================================ */

@media (max-width: 1024px) {
    html {
        font-size: 16px;
    }

    .mosaic-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mosaic-card:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .mosaic-card:first-child .mosaic-image {
        aspect-ratio: 2 / 1;
    }

    .voice-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ============================================================
   RESPONSIVE: 768px
   ============================================================ */

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Mobile menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: calc(var(--header-height) + 4px);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        overflow-y: auto;
        z-index: 9000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        height: auto;
        padding: 1rem 2rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-link::after {
        display: none;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--color-bg);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    .dropdown-item {
        padding: 0.75rem 2rem 0.75rem 3rem;
        border-left: none;
    }

    .dropdown-item:hover {
        padding-left: 3rem;
    }

    .dropdown-arrow {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-intro {
        font-size: 1rem;
    }

    /* Mosaic */
    .mosaic-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mosaic-card:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }

    .mosaic-card:first-child .mosaic-image {
        aspect-ratio: 16 / 10;
    }

    .mosaic-card:first-child .mosaic-title {
        font-size: 1.3rem;
    }

    .mosaic-image {
        aspect-ratio: 16 / 10;
    }

    /* Voice cards */
    .voice-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .voice-card-image {
        aspect-ratio: 16 / 8;
    }

    /* Sections */
    .voices-section {
        padding: 3rem 0;
    }

    .latest-posts-section {
        padding: 3rem 0;
    }

    /* Editor */
    .editor-page {
        padding: 2rem 1.25rem 3rem;
    }

    .editor-hero {
        padding: 2rem 1.5rem;
    }

    .editor-hero h1 {
        font-size: 1.8rem;
    }

    .editor-placeholder {
        width: 150px;
        height: 150px;
        font-size: 1.2rem;
    }

    /* Post */
    .post {
        padding: 2rem 1.25rem 3rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.25rem 2rem;
        gap: 2rem;
    }

    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    /* Grid helpers */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Posts list */
    .posts-list-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .posts-list-item time {
        min-width: auto;
    }
}


/* ============================================================
   RESPONSIVE: 480px
   ============================================================ */

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    .site-logo {
        font-size: 0.95rem;
    }

    .hero {
        padding: 2.5rem 0 2rem;
    }

    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 0.02em;
    }

    .hero-tagline {
        font-size: 0.88rem;
    }

    .hero-intro {
        font-size: 0.92rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .post-header h1 {
        font-size: 1.7rem;
    }

    .editor-hero h1 {
        font-size: 1.5rem;
    }

    .editor-placeholder {
        width: 120px;
        height: 120px;
        font-size: 1rem;
    }

    .voice-card-content {
        padding: 1.25rem;
    }

    .voice-card-content h3 {
        font-size: 1.15rem;
    }

    .mosaic-title {
        font-size: 1rem;
    }

    .mosaic-content {
        padding: 1rem;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-inner {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-quote {
        font-size: 0.82rem;
    }

    .post-body blockquote {
        padding: 0.75em 1em;
        margin: 1.5em 0;
    }

    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }
}


/* ============================================================
   RESPONSIVE: 360px (very small screens)
   ============================================================ */

@media (max-width: 360px) {
    .site-logo {
        font-size: 0.82rem;
        letter-spacing: 0.04em;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .voice-card-placeholder {
        font-size: 1.5rem;
    }

    .editor-placeholder {
        width: 100px;
        height: 100px;
        font-size: 0.88rem;
    }
}


/* ============================================================
   DARK MODE SPECIFIC OVERRIDES (already dark, but kept for
   consistency if someone wraps in prefers-color-scheme)
   ============================================================ */

@media (prefers-color-scheme: dark) {
    /* Already dark — no changes needed */
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .mosaic-card:hover {
        transform: none;
    }

    .mosaic-card:hover .mosaic-image {
        transform: none;
    }

    .voice-card:hover {
        transform: none;
    }

    .editor-post-card:hover {
        transform: none;
    }

    .post-footer a:hover {
        transform: none;
    }
}


/* ============================================================
   HIGH CONTRAST
   ============================================================ */

@media (prefers-contrast: high) {
    :root {
        --color-text: #ffffff;
        --color-text-secondary: #cccccc;
        --color-text-muted: #999999;
        --color-border: #444444;
    }

    .mosaic-overlay {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 60%);
    }

    .tag {
        border-width: 2px;
    }

    .nav-link::after {
        height: 3px;
    }

    .accent-bar {
        height: 5px;
    }
}


/* ============================================================
   FOCUS STYLES (Accessibility)
   ============================================================ */

*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.mosaic-card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: var(--radius-md);
}

.voice-card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.editor-post-card a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}


/* ============================================================
   SPECIFIC COMPONENT: QUOTE BLOCK
   ============================================================ */

.quote-block {
    padding: 2.5rem 3rem;
    background: var(--color-bg-raised);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-accent);
    margin: 2em 0;
    position: relative;
}

.quote-block::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-accent-dim);
    line-height: 1;
}

.quote-block p {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0.75em;
}

.quote-block p:last-child {
    margin-bottom: 0;
}

.quote-block cite {
    display: block;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    margin-top: 1em;
}

.quote-block-bucky {
    border-left-color: var(--color-bucky);
}

.quote-block-bucky::before {
    color: var(--color-bucky-dim);
}

.quote-block-feynman {
    border-left-color: var(--color-feynman);
}

.quote-block-feynman::before {
    color: var(--color-feynman-dim);
}

.quote-block-sagan {
    border-left-color: var(--color-sagan);
}

.quote-block-sagan::before {
    color: var(--color-sagan-dim);
}


/* ============================================================
   SPECIFIC COMPONENT: STAT CARD
   ============================================================ */

.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.stat-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.3em;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* ============================================================
   SPECIFIC COMPONENT: TIMELINE
   ============================================================ */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 3px solid var(--color-accent);
    z-index: 1;
}

.timeline-item-bucky::before {
    border-color: var(--color-bucky);
}

.timeline-item-feynman::before {
    border-color: var(--color-feynman);
}

.timeline-item-sagan::before {
    border-color: var(--color-sagan);
}

.timeline-date {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3em;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3em;
}

.timeline-desc {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}


/* ============================================================
   SPECIFIC COMPONENT: FEATURE LIST
   ============================================================ */

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2em 0;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.feature-item:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-text h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.3em;
}

.feature-text p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}


/* ============================================================
   SPECIFIC COMPONENT: CARD LIST (generic)
   ============================================================ */

.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-border-hover);
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--color-bg-hover);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.25rem 1.5rem;
}

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3em;
}

.card-body p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

.card-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-footer time {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ============================================================
   SPECIFIC COMPONENT: TABLE OF CONTENTS
   ============================================================ */

.toc {
    background: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin: 2em 0;
}

.toc-title {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    margin-bottom: 0.75em;
}

.toc ol {
    list-style: decimal;
    padding-left: 1.25em;
    margin-bottom: 0;
}

.toc li {
    font-size: 0.92rem;
    margin-bottom: 0.4em;
}

.toc li:last-child {
    margin-bottom: 0;
}

.toc a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.toc a:hover {
    color: var(--color-accent);
}


/* ============================================================
   SPECIFIC COMPONENT: CALLOUT BOX
   ============================================================ */

.callout {
    padding: 1.5rem 2rem;
    background: var(--color-bg-raised);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin: 2em 0;
    position: relative;
    overflow: hidden;
}

.callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
}

.callout-accent::before {
    background: var(--color-accent);
}

.callout-bucky::before {
    background: var(--color-bucky);
}

.callout-feynman::before {
    background: var(--color-feynman);
}

.callout-sagan::before {
    background: var(--color-sagan);
}

.callout-title {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5em;
}

.callout p {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}


/* ============================================================
   SPECIFIC COMPONENT: RELATED POSTS
   ============================================================ */

.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.related-posts h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1em;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.related-post-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    text-decoration: none;
    display: block;
}

.related-post-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-sm);
}

.related-post-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3em;
    transition: color var(--transition-fast);
}

.related-post-card:hover h4 {
    color: var(--color-accent);
}

.related-post-card time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ============================================================
   SPECIFIC COMPONENT: SHARE BUTTONS
   ============================================================ */

.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5em 0;
}

.share-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
    font-size: 0.88rem;
}

.share-btn:hover {
    background: var(--color-accent-dim);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}


/* ============================================================
   SPECIFIC COMPONENT: AUTHOR BOX
   ============================================================ */

.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin: 2em 0;
}

.author-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-size: 0.82rem;
    color: var(--color-text-muted);
    border: 2px solid var(--color-border);
}

.author-avatar-bucky {
    border-color: rgba(255, 152, 0, 0.3);
    color: var(--color-bucky);
}

.author-avatar-feynman {
    border-color: rgba(233, 30, 99, 0.3);
    color: var(--color-feynman);
}

.author-avatar-sagan {
    border-color: rgba(33, 150, 243, 0.3);
    color: var(--color-sagan);
}

.author-info h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2em;
}

.author-info p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}


/* ============================================================
   SPECIFIC COMPONENT: NEWSLETTER SIGNUP (placeholder)
   ============================================================ */

.newsletter-section {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    background: var(--color-bg-raised);
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4em;
}

.newsletter-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    max-width: 480px;
    margin: 0 auto 1.5em;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 420px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--color-text);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
    border-color: var(--color-accent);
}

.newsletter-form input::placeholder {
    color: var(--color-text-muted);
}

.newsletter-form button {
    padding: 0.7rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--color-accent-hover);
}


/* ============================================================
   RESPONSIVE: FEATURE LIST
   ============================================================ */

@media (max-width: 768px) {
    .feature-list {
        grid-template-columns: 1fr;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .quote-block {
        padding: 2rem 1.5rem;
    }

    .quote-block::before {
        font-size: 3rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        flex-wrap: wrap;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   END OF STYLESHEET
   ============================================================ */
