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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f0f5fa;
    color: #121c2a;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
}

/* Frost Canvas Background */
.frost-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: soft-light;
    opacity: 0.15;
}

/* Frost Navigation Bar */
.frost-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(230, 238, 248, 0.35);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    padding: 1.5rem 2rem;
}

.frost-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 3rem;
}

.logotype {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    font-style: italic;
    color: #121c2a;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.category-ticker {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.category-pill {
    font-family: 'Azeret Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a8ca0;
    background: rgba(240, 245, 252, 0.45);
    backdrop-filter: blur(16px) saturate(120%);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    white-space: nowrap;
    transition: all 300ms ease;
    cursor: pointer;
}

.category-pill:hover {
    background: rgba(240, 245, 252, 0.6);
    color: #121c2a;
    border-color: rgba(255, 255, 255, 0.8);
}

.frost-bar-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
}

/* Main Content Area */
.main-content {
    margin-top: 120px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Editorial Column */
.editorial-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Story Cards */
.story-card {
    background: rgba(240, 245, 252, 0.45);
    backdrop-filter: blur(24px) brightness(1.05);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 2rem;
    animation: slideInLeft 600ms ease-out forwards;
    opacity: 0;
}

.hero-card {
    animation-delay: 0.3s;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.secondary-card {
    min-height: 200px;
}

.story-card:nth-of-type(2) {
    animation-delay: 0.6s;
}

.story-card:nth-of-type(3) {
    animation-delay: 0.9s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.category-label {
    font-family: 'Azeret Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a8ca0;
}

.timestamp {
    font-family: 'Azeret Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a8ca0;
}

.story-headline {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 400;
    color: #121c2a;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.story-excerpt {
    font-size: 1.0625rem;
    color: #121c2a;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.story-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Azeret Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7a8ca0;
    margin-top: auto;
}

.byline,
.reading-time {
    display: inline;
}

/* Frost Margin */
.frost-margin {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Signal Module */
.signal-module {
    background: rgba(240, 245, 252, 0.45);
    backdrop-filter: blur(24px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 2rem;
    animation: fadeInRight 600ms ease-out 0.4s both;
}

.module-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #121c2a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.signal-topics {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.signal-topic {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform 200ms ease;
}

.signal-topic:hover {
    transform: scale(1.05);
}

.signal-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(58, 123, 213, 0.08);
    border-radius: 50%;
    flex-shrink: 0;
}

.signal-icon svg {
    width: 100%;
    height: 100%;
}

.signal-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: #121c2a;
    font-weight: 500;
}

/* Depth Module */
.depth-module {
    background: rgba(240, 245, 252, 0.45);
    backdrop-filter: blur(24px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 2rem;
    animation: fadeInRight 600ms ease-out 0.6s both;
}

.depth-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.depth-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.depth-item:last-child {
    border-bottom: none;
}

.depth-headline {
    font-family: 'Instrument Serif', serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #121c2a;
    line-height: 1.4;
    flex: 1;
}

.depth-time {
    font-family: 'Azeret Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7a8ca0;
    white-space: nowrap;
    flex-shrink: 0;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Permafrost Footer */
.permafrost-footer {
    background: rgba(18, 28, 42, 0.7);
    backdrop-filter: blur(32px);
    color: #ffffff;
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-section h4 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    background: rgba(240, 245, 252, 0.2);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    transition: all 300ms ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(240, 245, 252, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

.newsletter-button {
    background: #3a7bd5;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 300ms ease;
}

.newsletter-button:hover {
    background: #2a5fa0;
    box-shadow: 0 0 20px rgba(58, 123, 213, 0.3);
}

.footer-links {
    text-align: right;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links p {
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .frost-margin {
        flex-direction: row;
        grid-template-columns: 1fr 1fr;
    }

    .signal-module,
    .depth-module {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .frost-bar-content {
        flex-direction: column;
        gap: 1rem;
    }

    .logotype {
        width: 100%;
    }

    .category-ticker {
        width: 100%;
        overflow-x: auto;
    }

    .main-content {
        padding: 2rem 1rem;
        margin-top: 200px;
    }

    .hero-card {
        min-height: auto;
    }

    .frost-margin {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .frost-bar {
        padding: 1rem;
    }

    .frost-bar-content {
        gap: 1rem;
    }

    .logotype {
        font-size: 1.4rem;
    }

    .category-ticker {
        gap: 0.5rem;
    }

    .category-pill {
        padding: 0.4rem 0.8rem;
        font-size: 0.65rem;
    }

    .main-content {
        padding: 1rem;
        gap: 1rem;
        margin-top: 150px;
    }

    .story-card {
        padding: 1rem;
    }

    .story-headline {
        font-size: 1.5rem;
    }

    .signal-module,
    .depth-module {
        padding: 1rem;
    }

    .module-title {
        font-size: 1.1rem;
    }

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

    .footer-content {
        gap: 1.5rem;
    }

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

    .newsletter-button {
        width: 100%;
    }
}
