:root {
    --primary-color: #a22a1f;
    --primary-dark: #6f1710;
    --accent-color: #d88b5b;
    --ink: #201816;
    --muted: #6b5a57;
    --line: rgba(99, 58, 48, 0.14);
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #fffaf8;
    --bg-color: #f4efeb;
    --shadow: 0 20px 50px rgba(55, 24, 18, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(216, 139, 91, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(162, 42, 31, 0.10), transparent 24%),
        linear-gradient(180deg, #efe4dd 0%, var(--bg-color) 26%, #f8f4f1 100%);
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
}

header {
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    padding: 6rem 1.5rem 8rem;
    background: #b81d13;
    background-image: 
        radial-gradient(circle at top right, rgba(0, 0, 0, 0.4) 0%, transparent 60%),
        linear-gradient(180deg, rgba(82, 11, 6, 0.2) 0%, rgba(82, 11, 6, 0.7) 100%);
}

header::before,
header::after {
    content: "";
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
    filter: blur(60px);
    z-index: 0;
}

header::before {
    top: -10rem;
    right: -10rem;
}

header::after {
    bottom: -10rem;
    left: -10rem;
}

.hero,
.page-hero {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    background: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

header h1 {
    margin: 0 auto;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-hero h1 {
    max-width: 20ch;
}

.hero-lead {
    max-width: 800px;
    margin: 1.5rem auto 0;
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-wrap: balance;
    font-weight: 500;
}

.critical-alert-wrapper {
    position: relative;
    max-width: 1040px;
    margin: -4rem auto 0;
    padding: 0 1.5rem;
    z-index: 10;
}

.critical-alert {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: #fff;
    border: 3px solid #b81d13;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(184, 29, 19, 0.15), 0 5px 15px rgba(0,0,0,0.08);
}

.critical-alert .alert-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    color: #b81d13;
}

.critical-alert .alert-content {
    color: #1a1a1a;
}

.critical-alert .alert-content strong {
    display: block;
    color: #b81d13;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.critical-alert .alert-content p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.metrics-wrapper {
    max-width: 1040px;
    margin: 2rem auto 3rem;
    padding: 0 1.5rem;
}

.hero-metrics,
.subpage-grid,
.highlight-grid,
.tips,
.content-grid,
.info-grid {
    display: grid;
    gap: 1.25rem;
}

.hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hero-metrics article,
.highlight-grid article,
.subpage-grid article,
.content-card,
.info-grid article {
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(129, 72, 57, 0.15);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.hero-metrics.dark-text article {
    text-align: center;
    border-top: 4px solid #b81d13;
    transition: transform 0.2s ease;
}

.hero-metrics.dark-text article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.hero-metrics.dark-text strong {
    display: block;
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #b81d13;
    font-family: 'Source Serif 4', Georgia, serif;
}

.hero-metrics.dark-text span {
    display: block;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #4a4a4a;
    font-weight: 500;
}

.toc {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.toc nav {
    background: rgba(255, 250, 248, 0.86);
    border: 1px solid rgba(129, 72, 57, 0.12);
    border-radius: 20px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.page-nav,
.toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    list-style: none;
    padding: 0;
}

.page-nav {
    margin: 0.9rem 0 0.6rem;
}

.toc ul {
    margin: 0.75rem 0 0;
}

.page-nav a,
.toc a,
.button-link,
.text-link {
    text-decoration: none;
    font-weight: 600;
    border-radius: 999px;
}

.page-nav a,
.toc a {
    color: var(--primary-color);
    padding: 0.35rem 0.75rem;
    background: rgba(162, 42, 31, 0.07);
}

.page-nav a[aria-current="page"] {
    background: var(--primary-color);
    color: white;
}

.button-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.55rem 0.95rem;
    background: var(--primary-color);
    color: white;
}

.button-link:hover,
.text-link:hover,
.page-nav a:hover,
.toc a:hover,
.links a:hover {
    text-decoration: underline;
}

.text-link {
    color: var(--primary-color);
}

main {
    max-width: 1040px;
    margin: 2rem auto;
    padding: 0 1.5rem 2rem;
}

.content-shell {
    background: var(--surface);
    border: 1px solid rgba(129, 72, 57, 0.10);
    box-shadow: var(--shadow);
    border-radius: 28px;
    overflow: hidden;
}

section {
    padding: 2rem 2rem;
    border-bottom: 1px solid var(--line);
}

section:last-child {
    border-bottom: none;
}

h2,
h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    letter-spacing: -0.02em;
}

h2 {
    color: var(--primary-color);
    font-size: clamp(1.7rem, 2.4vw, 2.4rem);
    line-height: 1.05;
    margin: 0 0 1rem;
}

h3 {
    margin: 0 0 0.55rem;
    font-size: 1.08rem;
    color: var(--primary-dark);
}

p {
    margin: 0 0 1rem;
}

strong {
    color: #2e1512;
}

ul {
    padding-left: 20px;
    margin: 0;
}

li {
    margin-bottom: 12px;
    padding-left: 0.15rem;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: var(--muted);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
}

.intro-note,
.source-note,
.notice {
    margin-top: 1.25rem;
    padding: 1.1rem 1.2rem;
    background: linear-gradient(135deg, rgba(162, 42, 31, 0.08), rgba(216, 139, 91, 0.10));
    border: 1px solid rgba(162, 42, 31, 0.14);
    border-radius: 18px;
}

.intro-note {
    font-weight: 600;
}

.alert-conclusion {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    color: #b81d13;
    padding: 1.25rem 1.5rem;
    border: 2px solid #b81d13;
    border-radius: 12px;
    margin-top: 1.5rem;
    font-size: 1.15rem;
    box-shadow: 0 8px 20px rgba(184, 29, 19, 0.12);
}

.alert-conclusion svg {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
}

.alert-conclusion strong {
    color: #b81d13;
    line-height: 1.4;
}

.cta {
    background: linear-gradient(180deg, rgba(255, 245, 239, 0.96), rgba(255, 250, 247, 0.96));
    padding: 1.5rem;
    border: 1px solid rgba(162, 42, 31, 0.16);
    border-left: 5px solid var(--primary-color);
    border-radius: 18px;
    margin-top: 1.5rem;
}

.links a {
    color: #7f2b1d;
    text-decoration: none;
    font-weight: bold;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid rgba(162, 42, 31, 0.22);
}

.timeline li {
    position: relative;
    padding: 0 0 1.25rem 1.4rem;
    margin: 0;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -0.45rem;
    top: 0.35rem;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 6px rgba(162, 42, 31, 0.10);
}

.tips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    list-style: none;
}

.tips li {
    padding: 1rem 1rem 1rem 1.1rem;
    border-radius: 18px;
    background: var(--surface-strong);
    border: 1px solid rgba(129, 72, 57, 0.10);
    margin: 0;
}

.highlight-grid,
.subpage-grid,
.content-grid,
.info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.subpage-grid p,
.highlight-grid p,
.info-grid p,
.content-card p {
    color: var(--muted);
}

.content-grid.two,
.info-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-list {
    list-style: none;
    padding: 0;
}

.source-list li {
    margin: 0 0 1rem;
    padding: 1rem 1rem 1rem 1.1rem;
    border-radius: 18px;
    background: var(--surface-strong);
    border: 1px solid rgba(129, 72, 57, 0.10);
}

.small-note {
    color: var(--muted);
    font-size: 0.94rem;
}

footer {
    text-align: center;
    padding: 2rem 1.5rem 3rem;
    color: var(--muted);
    margin-top: 0;
}

footer p {
    max-width: 780px;
    margin: 0 auto;
}

@media (max-width: 920px) {
    .hero-metrics,
    .highlight-grid,
    .subpage-grid,
    .info-grid,
    .content-grid,
    .tips {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    section {
        padding: 1.5rem 1.25rem;
    }

    .toc {
        margin-top: -1.25rem;
    }

    .content-grid.two,
    .info-grid.two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    header {
        padding-top: 4rem;
    }

    .toc ul,
    .page-nav {
        gap: 0.55rem;
    }

    .toc a,
    .page-nav a,
    .button-link {
        display: inline-block;
        width: 100%;
        text-align: center;
    }
}