@font-face {
    font-family: 'Alpha Lyrae';
    src: url('/fonts/AlphaLyrae.woff2') format('woff2'),
         url('/fonts/AlphaLyrae.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --pink: #FFB243;
    --purple: #43000B;
    --font-main: 'Alpha Lyrae', sans-serif;
    --font-pixel: 'Jersey 10', monospace;
    --font-logo: 'Jacquard 12', system-ui;
}

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

body {
    background-color: var(--pink);
    color: var(--purple);
    font-family: var(--font-main);
    line-height: 1.2;
    font-feature-settings: "calt" 0; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-feature-settings: "calt" 1;
}

h1 a, h2 a, h3 a, h4 a, li a, p a, article a, a {
    color: var(--purple);
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

a:hover, button:hover {
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
}

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

img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: url(#gradient-map);
}

/* --- TOP HEADER --- */
.top-header {
    background-color: var(--purple);
    color: var(--pink);
    padding: 20px 0 15px 0;
    margin-bottom: 20px;
    width: 100%;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.site-logo {
    max-height: 45px;
    width: auto;
    filter: none;
}

.visit-onion {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--pink);
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

.visit-onion span {
    font-family: var(--font-logo);
    font-size: 2rem;
    font-feature-settings: normal;
    font-weight: normal;
}

.visit-onion:hover {
    opacity: 0.8;
}

.header-divider {
    width: 100%;
    height: 2px;
    background-color: var(--pink);
    margin-bottom: 12px;
}

.top-header .nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    font-size: 0.80rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--pink);
}

.top-header .nav-bar a {
    color: var(--pink);
    text-decoration: none;
}

.top-header .nav-bar a:hover {
    opacity: 0.8;
}

.top-section {
    display: grid;
    grid-template-columns: 3.5fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--purple);
}

.stories {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 20px;
    border-right: 2px solid var(--purple);
}

.main-story {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-story-img img {
    aspect-ratio: 16/11;
    height: auto;
    min-height: auto;
}

.main-story-text h1 {
    margin-bottom: 8px;
}

.main-story-text p {
    font-size: 1rem;
    line-height: 1.3;
}

/* --- 2x2 GRID SECTION --- */
.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    border-top: 2px solid var(--purple);
    padding-top: 15px;
    position: relative;
}

.grid-2x2 article {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
    border: none;
}

.grid-2x2 article:nth-child(1)::after,
.grid-2x2 article:nth-child(2)::after {
    content: "";
    position: absolute;
    top: 51%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--purple);
    transform: translateY(-50%);
}

.grid-2x2 article:nth-child(3),
.grid-2x2 article:nth-child(4) {
    padding: 0;
}

.grid-2x2 article img {
    aspect-ratio: 16/11;
    margin-bottom: 10px;
}

.grid-2x2 article h4 {
    font-size: 0.95rem;
}

/* --- SIDEBAR --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    height: fit-content;
    top: 20px;
}

.contribute {
    border-top: 2px solid var(--purple);
    padding-top: 10px;
}

.contribute h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contribute p {
    font-size: 0.85rem;
    padding: 5px 0;
}

/* --- SIDEBAR POLL --- */
.poll-box {
    border-top: 2px solid var(--purple);
    padding-top: 10px;
}

.poll-box h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.poll-options label {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    line-height: 1.4;
}

.poll-options input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--purple);
    border-radius: 50%;
    outline: none;
    background-color: var(--pink);
    cursor: pointer;
    display: grid;
    place-content: center;
    margin: 0;
    flex-shrink: 0;
}

.poll-options input[type="radio"]:checked {
    background-color: var(--purple);
    box-shadow: inset 0 0 0 2px var(--pink);
}

.poll-submit {
    margin-top: 10px;
    background-color: var(--purple);
    color: var(--pink);
    border: none;
    padding: 8px 15px;
    font-family: var(--font-main);
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: opacity 0.2s ease-in-out;
    font-feature-settings: "calt" 0;
}

.poll-submit:hover {
    opacity: 0.85;
}

/* --- BANNER --- */
.banner {
    padding: 0;
    background: none;
    margin-bottom: 20px;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- FOOTER --- */
footer {
    background-color: var(--purple);
    color: var(--pink);
    padding: 40px 20px 20px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo-img {
    max-height: 40px;
    width: auto;
    filter: none;
}

.footer-sub {
    font-size: 0.8rem;
    margin-top: 7px;
}

.footer-sub span {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    font-feature-settings: normal;
}

.footer-links {
    display: flex;
    gap: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--pink);
}

.about-link, .article-link, .search-link, .sean-link {
    color: var(--pink);
}

.footer-bottom {
    border-top: 1px solid var(--pink);
    padding-top: 15px;
    font-size: 0.65rem;
    opacity: 0.7;
}

/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
    .container {
        padding: 0 15px 0px 15px;
    }

    /* CENTER HEADER LOGO ON MOBILE */
    .header-top {
        justify-content: center;
    }

    .site-logo {
        margin: 0 auto;
    }

    .visit-onion {
        display: none;
    }

    .top-header .nav-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 0;
    }

    .top-header .nav-bar #extra {
        display: none;
    }

    .top-section {
        grid-template-columns: 1fr;
        margin-bottom: 0px;
        border: none;
    }

    .stories {
        padding-right: 0;
        border-right: none;
    }

    .main-story-text h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .main-story-img img {
        min-height: auto;
        max-height: 300px;
    }

    .grid-2x2 {
        display: block;
        grid-template-columns: 1fr;
    }

    .grid-2x2 article:nth-child(1)::after,
    .grid-2x2 article:nth-child(2)::after {
        display: none;
    }

    .grid-2x2 article:nth-child(3),
    .grid-2x2 article:nth-child(4) {
        padding-bottom: 20px;
    }

    .grid-2x2 article {
        border-bottom: 2px solid var(--purple);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .grid-2x2 article h4 {
        font-size: 1.05rem;
    }

    .grid-2x2 article:last-child {
        margin-bottom: 0;
    }

    .sidebar {
        position: static;
        width: 100%;
    }

    .contribute {
        display: none;
    }

    footer {
        padding: 20px;
        width: 100%;
    }

    .footer-content {
        padding: 0;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .footer-sub {
        font-size: 0.8rem;
    }

    .footer-sub span {
        font-size: 1.2rem;
        margin-top: 2px;
    }

    .footer-bottom {
        font-size: 0.75rem;
        opacity: 0.9;
        line-height: 1.4;
    }
}