:root {
    --ink: #1a0a0a;
    --ink-soft: #5c2a2a;
    --paper: #ffffff;
    --paper-2: #fff5f5;
    --red: #c1121f;
    --red-deep: #8a0f18;
    --red-soft: #fee2e2;
    --line: rgba(193, 18, 31, 0.16);
    --shadow: 0 18px 50px rgba(138, 15, 24, 0.12);
    --radius: 18px;
    --font-sans: "DM Sans", system-ui, sans-serif;
    --font-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background:
        radial-gradient(circle at 8% -8%, rgba(193, 18, 31, 0.14), transparent 38%),
        radial-gradient(circle at 92% 0%, rgba(138, 15, 24, 0.08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fff8f8 45%, #fff5f5 100%);
    min-height: 100vh;
}

.site-noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 0;
}

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

.site-header {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--ink);
}

.brand-logo {
    height: 42px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.brand-k {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.7rem;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--red), var(--red-deep));
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(193, 18, 31, 0.35);
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    color: var(--red-deep);
}

.site-nav .nav-link {
    color: var(--ink-soft);
    font-weight: 500;
    border-radius: 999px;
    padding: 0.4rem 0.9rem !important;
}

.site-nav .nav-link:hover {
    color: var(--red);
    background: var(--red-soft);
}

.btn-admin-link {
    border: 1px solid var(--red);
    color: var(--red);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    text-decoration: none;
    background: white;
}

.btn-admin-link:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

.hero-carousel-section { padding-top: 1.5rem; }

.hero-carousel {
    border-radius: calc(var(--radius) + 6px);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.hero-slide {
    display: block;
    position: relative;
    min-height: clamp(320px, 52vh, 560px);
    color: white;
    text-decoration: none;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    animation: kenburns 12s ease-in-out infinite alternate;
}

.hero-empty {
    background: linear-gradient(135deg, var(--red), var(--red-deep));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: linear-gradient(180deg, transparent 20%, rgba(40, 8, 10, 0.88) 100%);
}

.hero-category {
    display: inline-flex;
    align-self: flex-start;
    background: rgba(193, 18, 31, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-bottom: 0.85rem;
    color: #fff;
    text-decoration: none;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.05;
    max-width: 16ch;
    margin-bottom: 0.75rem;
    animation: riseIn 0.7s ease both;
}

.hero-excerpt {
    max-width: 48ch;
    opacity: 0.92;
    margin: 0;
}

.carousel-control-prev,
.carousel-control-next { width: 8%; }

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--red);
    font-weight: 700;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -0.03em;
    color: var(--ink);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    border: 1px solid var(--line);
    background: white;
    color: var(--ink-soft);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.9rem;
    transition: 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.news-card {
    display: block;
    height: 100%;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: riseIn 0.55s ease both;
}

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

.news-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news-card-media img,
.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.news-card-body { padding: 1.1rem 1.15rem 1.25rem; }

.news-card-cat {
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.news-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0.4rem 0 0.55rem;
    line-height: 1.2;
}

.news-card p {
    color: var(--ink-soft);
    font-size: 0.94rem;
    margin-bottom: 0.75rem;
}

.news-card time {
    font-size: 0.8rem;
    color: #9a6b6b;
}

.sidebar-panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--red-deep);
}

.ad-card,
.ad-banner {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid var(--line);
}

.ad-frame {
    width: 100%;
    background:
        linear-gradient(45deg, #fff5f5 25%, transparent 25%),
        linear-gradient(-45deg, #fff5f5 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #fff5f5 75%),
        linear-gradient(-45deg, transparent 75%, #fff5f5 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-color: #ffffff;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.ad-card .ad-frame {
    aspect-ratio: 4 / 5;
}

.ad-banner.ad-between .ad-frame {
    aspect-ratio: 8 / 1;
    min-height: 90px;
}

.ad-banner.ad-footer .ad-frame {
    aspect-ratio: 5 / 1;
    min-height: 72px;
    max-width: 320px;
}

.ad-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    image-rendering: auto;
}

.ad-card span {
    display: block;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-card-media img,
.related-card img,
.article-cover {
    object-fit: cover;
    object-position: center;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li + li { border-top: 1px solid var(--line); }

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: var(--ink);
    text-decoration: none;
}

.category-list em {
    font-style: normal;
    background: var(--red-soft);
    color: var(--red-deep);
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    font-size: 0.8rem;
}

.site-footer {
    background: linear-gradient(180deg, #ffffff, #fff1f1);
    border-top: 2px solid var(--red);
}

.footer-tagline { color: var(--ink-soft); max-width: 32ch; }
.footer-bottom { border-top: 1px solid var(--line); color: #9a6b6b; }
.footer-ads .ad-banner { max-width: 280px; }

.article-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.article-cover {
    width: 100%;
    border-radius: var(--radius);
    max-height: 460px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.article-body {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #3a1a1a;
}

.article-body p + p { margin-top: 1rem; }

.related-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-card img {
    aspect-ratio: 16/10;
    border-radius: 14px;
    margin-bottom: 0.65rem;
}

.related-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.25;
}

.pagination .page-link {
    color: var(--red-deep);
    border-radius: 10px !important;
    margin: 0 0.15rem;
    border-color: var(--line);
}

.pagination .page-item.active .page-link {
    background: var(--red);
    border-color: var(--red);
}

.news-skeleton {
    height: 320px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, #fee2e2, #ffffff, #fee2e2);
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
}

@keyframes kenburns {
    from { transform: scale(1.02) translateY(0); }
    to { transform: scale(1.08) translateY(-1.5%); }
}

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

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

@media (max-width: 768px) {
    .hero-title { max-width: none; }
}
