/*
Theme Name: aegisgamingnews-theme
Author: Donnie
Description: Custom theme for aegisgamingnews-theme.
Version: 0.5.0
*/

:root {
    --bg: #f8f5f2;
    --surface: #ffffff;
    --surface-muted: #f1ece7;
    --ink: #0b0c0f;
    --ink-soft: #24262c;
    --muted: #696d76;
    --accent: #e51d2a;
    --accent-dark: #b90d17;
    --primary: #111827;
    --primary-foreground: #ffffff;
    --border: #e3dcd5;
    --shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
    --font-heading: "Playfair Display", Georgia, serif;
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-logo: "Inter", "Arial Black", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

.container {
    margin: 0 auto;
    max-width: min(1280px, calc(100vw - 2rem));
    padding: 0 clamp(1rem, 2.2vw, 1.5rem);
}

.brand,
.site-nav,
.menu,
.featured-story,
.more-top-stories,
.post-card,
.post-card-body,
.post-thumb,
.home-sidebar,
.sidebar-panel,
.category-list a {
    min-width: 0;
}

.logo-text,
.post-card h2,
.compact-story h3,
.trending-item h3,
.sidebar-panel h2,
.single-article h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

.screen-reader-text,
.skip-link {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.skip-link:focus {
    background: var(--ink);
    clip: auto;
    color: #fff;
    height: auto;
    left: 1rem;
    padding: 0.75rem 1rem;
    top: 1rem;
    width: auto;
    z-index: 40;
}

.site-header {
    background: rgba(248, 245, 242, 0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
}

.network-bar {
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.network-bar-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 30px;
}

.network-bar nav {
    display: flex;
    gap: 1rem;
}

.network-bar a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.network-bar a:hover {
    color: #fff;
}

.masthead {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    min-height: 82px;
}

.site-logo {
    align-items: center;
    display: inline-flex;
    gap: 0.78rem;
    text-decoration: none;
}

.logo-mark {
    height: clamp(3rem, 4.15vw, 3.95rem);
    object-fit: contain;
    width: clamp(3rem, 4.15vw, 3.95rem);
}

.logo-text {
    color: var(--ink);
    display: grid;
    line-height: 0.86;
    text-transform: uppercase;
}

.logo-text strong {
    font-family: var(--font-logo);
    font-size: clamp(1.7rem, 2.5vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -0.055em;
}

.logo-text small {
    font-size: clamp(0.48rem, 0.7vw, 0.62rem);
    font-weight: 800;
    letter-spacing: 0.52em;
    margin-left: 0.14rem;
    margin-top: 0.18rem;
}

.menu {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 2.2vw, 2rem);
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    color: #4b5059;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-decoration: none;
    text-transform: uppercase;
}

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

.home-shell {
    padding-bottom: clamp(3rem, 6vw, 5rem);
    padding-top: clamp(2rem, 4vw, 3rem);
}

.top-stories-section {
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: clamp(1.6rem, 3vw, 2rem);
    grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr);
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.featured-story {
    min-width: 0;
}

.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.post-card-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    min-height: 460px;
}

.post-card-featured .post-thumb {
    aspect-ratio: auto;
    min-height: 100%;
}

.post-card-featured .post-card-body {
    align-self: center;
    padding: clamp(1.8rem, 3.5vw, 3rem);
}

.post-card-featured h2 {
    font-size: clamp(2.35rem, 4.8vw, 4.6rem);
    line-height: 0.96;
}

.post-thumb {
    align-items: center;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 80% 12%, rgba(229, 29, 42, 0.34), transparent 18rem),
        linear-gradient(135deg, #221715, #060606);
    color: #fff;
    display: flex;
    font-family: var(--font-logo);
    font-size: 1.1rem;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0.12em;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.post-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.post-card-body {
    padding: 1.2rem;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 0 0.75rem;
}

h2 {
    font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

h3 {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.post-card h2 a,
.compact-story h3 a,
.trending-item h3 a {
    text-decoration: none;
}

.post-card p,
.compact-story p,
.sidebar-panel p,
.empty-state,
.footer-meta {
    color: var(--muted);
}

.category-badge {
    color: var(--accent-dark);
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    margin-bottom: 0.65rem;
    text-decoration: none;
    text-transform: uppercase;
}

.entry-meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8rem;
    gap: 0.7rem;
    margin-top: 1rem;
}

.entry-meta span {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
}

.entry-meta span:before {
    background: var(--accent);
    border-radius: 999px;
    content: "";
    height: 0.42rem;
    width: 0.42rem;
}

.more-top-stories {
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-left: clamp(1.4rem, 3vw, 2rem);
}

.more-top-stories > h2,
.sidebar-panel > h2 {
    border-bottom: 1px solid var(--border);
    color: rgba(11, 12, 15, 0.72);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    padding-bottom: 0.65rem;
    text-transform: uppercase;
}

.compact-story,
.trending-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.2rem;
}

.compact-story:last-child,
.trending-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.content-grid {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr);
    padding-top: clamp(2.5rem, 5vw, 4rem);
}

.latest-news-section {
    min-width: 0;
}

.section-heading {
    align-items: center;
    border-bottom: 2px solid var(--ink);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.55rem;
}

.section-heading h2 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.latest-grid,
.post-grid {
    display: grid;
    gap: clamp(1.4rem, 2.4vw, 2rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.latest-grid .post-card,
.post-grid .post-card {
    box-shadow: none;
}

.latest-grid .post-card h2,
.post-grid .post-card h2 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.section-action {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.button {
    border: 1px solid var(--border);
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0.04em;
    padding: 0.75rem 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
}

.button-secondary {
    background: var(--surface);
    color: var(--ink);
}

.button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-panel {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.trending-list {
    display: grid;
    gap: 1.15rem;
}

.newsletter-panel {
    background: var(--primary);
    color: var(--primary-foreground);
}

.newsletter-panel h2 {
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.newsletter-panel p {
    color: rgba(255, 255, 255, 0.76);
}

.newsletter-panel form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.newsletter-panel input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    min-height: 44px;
    padding: 0.7rem 0.8rem;
}

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

.newsletter-panel button {
    background: #fff;
    border: 0;
    color: var(--primary);
    cursor: pointer;
    font-weight: 900;
    min-height: 44px;
    padding: 0.7rem 0.8rem;
}

.category-list {
    display: grid;
    gap: 0.65rem;
}

.category-list a {
    align-items: center;
    border-bottom: 1px solid var(--border);
    display: flex;
    font-weight: 800;
    justify-content: space-between;
    padding-bottom: 0.65rem;
    text-decoration: none;
}

.category-list small {
    color: var(--muted);
}

.network-metrics {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(3rem, 6vw, 5rem);
}

.network-metrics div {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 2rem;
    text-align: center;
}

.network-metrics div:nth-child(2) {
    background: var(--accent);
}

.network-metrics div:nth-child(3) {
    background: var(--surface-muted);
    color: var(--ink);
}

.network-metrics strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 3.3rem);
    line-height: 1;
}

.network-metrics span {
    display: block;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    margin-top: 0.65rem;
    text-transform: uppercase;
}

.content-narrow {
    max-width: 820px;
}

.single-article,
.archive-header {
    margin-top: 2rem;
}

.single-article {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: clamp(1.25rem, 4vw, 2.7rem);
}

.featured-image {
    margin: 1.5rem 0;
}

.entry-content {
    font-size: 1.08rem;
}

.navigation.pagination {
    margin-top: 2rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-grid {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

@media (max-width: 1080px) {
    .masthead {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 1rem;
    }

    .menu {
        justify-content: flex-start;
    }
}

@media (max-width: 920px) {
    .top-stories-section,
    .content-grid,
    .post-card-featured,
    .latest-grid,
    .post-grid,
    .network-metrics {
        grid-template-columns: 1fr;
    }

    .more-top-stories {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 680px) {
    .network-bar-inner,
    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
        padding-block: 0.5rem;
    }

    .menu {
        gap: 0.7rem 1rem;
    }

    .menu a {
        font-size: 0.7rem;
        letter-spacing: 0.18em;
    }

    .post-card-featured h2 {
        font-size: clamp(2rem, 12vw, 3rem);
    }
}
