:root {
    --bg: #f6f0e4;
    --surface: rgba(255, 252, 247, 0.82);
    --surface-strong: #fffdf8;
    --text: #1f2a24;
    --muted: #5c675f;
    --line: rgba(31, 42, 36, 0.1);
    --accent: #bb4d00;
    --accent-dark: #8f3b00;
    --accent-soft: #ffd8b5;
    --shadow: 0 18px 48px rgba(76, 53, 22, 0.12);
    --radius: 24px;
    --radius-sm: 16px;
    --max-width: 1180px;
    --font-head: Georgia, "Times New Roman", serif;
    --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(255, 216, 181, 0.8), transparent 34%),
        radial-gradient(circle at 85% 12%, rgba(194, 232, 212, 0.6), transparent 28%),
        linear-gradient(180deg, #f8f4ea 0%, #f5efe2 46%, #efe4d0 100%);
}

a {
    color: inherit;
}

.shell {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-header {
    position: sticky;
    top: 18px;
    z-index: 20;
    padding: 18px 24px;
    margin-bottom: 28px;
    background: rgba(255, 250, 243, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.logo-image {
    display: block;
    height: 42px;
    width: auto;
    max-width: min(52vw, 280px);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-nav a,
.site-footer a {
    text-decoration: none;
    color: var(--muted);
}

.site-nav a:hover,
.site-footer a:hover,
.article-card a:hover,
.category-card a:hover,
.source-card a:hover,
.update-card a:hover {
    color: var(--accent);
}

.content {
    display: grid;
    gap: 28px;
}

.card,
.article-body {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.card {
    padding: 28px;
}

.hero {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 28px;
    overflow: hidden;
}

.hero-copy h1,
.page-header h1 {
    margin: 10px 0 14px;
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    line-height: 0.98;
}

.hero-copy p,
.page-header p,
.article-section p,
.card p,
.site-footer p {
    color: var(--muted);
    line-height: 1.72;
}

.hero-stats {
    display: grid;
    gap: 14px;
    align-content: start;
}

.stat {
    padding: 20px;
    background: linear-gradient(180deg, rgba(255, 247, 239, 0.96), rgba(255, 233, 214, 0.82));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(187, 77, 0, 0.12);
}

.stat strong {
    display: block;
    font-size: 2.2rem;
    font-family: var(--font-head);
}

.stat span,
.card-meta,
.meta-row span,
.eyebrow,
.card-kicker {
    color: var(--muted);
    font-size: 0.94rem;
}

.eyebrow,
.card-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff9f2;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--accent-dark);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    border: 1px solid rgba(31, 42, 36, 0.08);
}

.search-panel {
    display: grid;
    gap: 14px;
}

.search-input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
    font: inherit;
    color: var(--text);
}

.section-block {
    display: grid;
    gap: 18px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
}

.section-heading h2,
.article-section h2,
.card h3 {
    margin: 0;
    font-family: var(--font-head);
}

.grid {
    display: grid;
    gap: 18px;
}

.grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-card,
.category-card,
.source-card,
.update-card {
    min-height: 100%;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.article-card:hover,
.category-card:hover,
.source-card:hover,
.update-card:hover {
    transform: translateY(-4px);
    border-color: rgba(187, 77, 0, 0.24);
}

.article-card h3,
.category-card h3,
.source-card h3,
.update-card h3 {
    margin: 8px 0 12px;
    font-size: 1.35rem;
}

.article-card a,
.category-card a,
.source-card a,
.update-card a {
    text-decoration: none;
}

.page-header,
.article-hero {
    position: relative;
    overflow: hidden;
}

.page-header::after,
.article-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -70px;
    top: -70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 216, 181, 0.85), transparent 62%);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.article-body {
    padding: 30px;
}

.article-section+.article-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.article-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 10px;
    line-height: 1.7;
}

.article-sources a {
    color: var(--accent-dark);
}

.site-footer {
    margin-top: 28px;
    padding: 28px 4px 4px;
    border-top: 1px solid rgba(31, 42, 36, 0.08);
    align-items: start;
}

.site-footer div:last-child {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 980px) {

    .hero,
    .grid-three,
    .grid-two {
        grid-template-columns: 1fr;
    }

    .site-header,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer div:last-child {
        justify-items: start;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(var(--max-width), calc(100% - 18px));
        padding-top: 16px;
    }

    .site-header {
        position: static;
        border-radius: 28px;
        padding: 18px;
    }

    .card,
    .article-body {
        padding: 20px;
    }

    .hero-copy h1,
    .page-header h1 {
        line-height: 1.04;
    }
}