:root {
    --bg: #ffffff;
    --panel: #f6f8fb;
    --text: #172033;
    --muted: #5f6b7a;
    --line: #dfe5ec;
    --accent: #005eb8;
    --accent-dark: #004f9a;
    --accent-soft: #e8f2ff;
    --tag-bg: #f1ece6;
    --tag-text: #4f4f4f;
    --max: 1180px;
    --content-max: 920px;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
    font-size: 18px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.wrap {
    width: min(92%, var(--max));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.brand span {
    display: inline-block;
}

.site-nav {
    display: flex;
    gap: 1.15rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.hero {
    padding: 3.4rem 0 2.7rem;
    background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
    border-bottom: 1px solid var(--line);
}

.kicker,
.section-label {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.hero h1 {
    margin: 0 0 1rem;
    max-width: var(--content-max);
    font-size: clamp(2.1rem, 3vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-text {
    max-width: var(--content-max);
    color: var(--muted);
    font-size: 1.04rem;
    margin-bottom: 0;
}

.article-hero {
    padding: 2.9rem 0 2.7rem;
}

.article-hero-inner {
    display: grid;
    grid-template-columns: minmax(330px, 0.75fr) minmax(0, 0.95fr);
    gap: 2rem;
    align-items: center;
}

.article-hero-copy {
    min-width: 0;
}

.article-hero h1 {
    font-size: clamp(2.05rem, 3.1vw, 3.35rem);
}

.hero-media {
    margin: 0;
    align-self: stretch;
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 430px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(23, 32, 51, 0.13);
}

.section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--line);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.6rem;
}

.card h3 {
    margin: 0 0 0.8rem;
    font-size: 1.2rem;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.article-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.article-item {
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line);
}

.article-card {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 1.45rem;
    align-items: start;
}

.article-card-image {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
}

.article-card-image img {
    display: block;
    width: 100%;
    height: 155px;
    object-fit: cover;
    transition: transform 180ms ease;
}

.article-card-image:hover img {
    transform: scale(1.025);
}

.article-card-body {
    min-width: 0;
}

.article-card-body h3,
.article-item h3 {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
    line-height: 1.25;
}

.article-card-body p,
.article-item p {
    margin-top: 1rem;
}

.article-meta {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.compact-list .article-card {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.1rem;
}

.compact-list .article-card-image img {
    height: 115px;
}

.compact-list .article-card-body h3 {
    font-size: 1.15rem;
}

.content {
    max-width: var(--content-max);
}

.content h1,
.content h2,
.content h3 {
    line-height: 1.2;
    letter-spacing: 0;
}

.content h2 {
    margin-top: 2.3rem;
    font-size: 1.55rem;
}

.content h3 {
    margin-top: 1.8rem;
    font-size: 1.18rem;
}

.content p,
.content li {
    color: #303b4a;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.article-image {
    margin: 2rem 0;
}

.article-image img {
    display: block;
    width: 100%;
    margin: 0;
}

.article-image figcaption {
    margin-top: 0.65rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.content blockquote {
    margin: 2rem 0;
    padding: 0.1rem 0 0.1rem 1.25rem;
    border-left: 4px solid var(--line);
}

.content blockquote p {
    color: #303b4a;
}

.content hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2.4rem 0;
}

.content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
    background: #eef2f7;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    padding: 0.12rem 0.3rem;
}

.content pre {
    overflow-x: auto;
    margin: 1.6rem 0;
    padding: 1rem;
    background: #101827;
    border-radius: 8px;
}

.content pre code {
    display: block;
    background: transparent;
    border: 0;
    color: #f7fafc;
    padding: 0;
    line-height: 1.55;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    font-size: 0.95rem;
}

.content th,
.content td {
    border: 1px solid var(--line);
    padding: 0.75rem 0.85rem;
    text-align: left;
    vertical-align: top;
}

.content th {
    background: var(--panel);
    color: var(--text);
    font-weight: 750;
}

.notice,
.callout {
    background: var(--accent-soft);
    border: 1px solid #c9def8;
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    color: #17395f;
}

.about-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.about-profile {
    position: sticky;
    top: 110px;
    max-width: 260px;
}

.about-photo {
    display: block;
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 42px rgba(23, 32, 51, 0.12);
}

.about-content {
    max-width: 860px;
}

.about-profile {
    position: sticky;
    top: 110px;
}

.about-photo {
    display: block;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 42px rgba(23, 32, 51, 0.12);
}

.about-content {
    max-width: 860px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    background: var(--tag-bg);
    color: var(--tag-text);
    padding: 0.42rem 0.62rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1;
}

.tag:hover {
    color: var(--text);
    text-decoration: none;
    background: #e8e1da;
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.55rem 0.82rem;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
}

.button:hover,
.button-secondary:hover {
    background: var(--accent-dark);
    color: #ffffff;
    text-decoration: none;
}

.button-secondary {
    background: #edf3fa;
    color: var(--accent);
    border: 1px solid #c9def8;
}

.button-secondary:hover {
    background: #dbeafe;
    color: var(--accent-dark);
}

.artifact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 0.5rem;
    max-width: var(--content-max);
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--line);
}

.artifact-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.42rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
}

.artifact-links a:hover {
    border-color: #c9def8;
    background: #ffffff;
    color: var(--accent);
    text-decoration: none;
}

.search-label {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 750;
}

.search-box {
    width: 100%;
    min-height: 54px;
    margin-bottom: 2rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    line-height: 1.2;
}

.search-box:focus {
    outline: 3px solid #c9def8;
    border-color: var(--accent);
}

.search-results {
    margin-top: 1rem;
}

.site-footer {
    background: #f6f8fb;
    border-top: 1px solid var(--line);
}

.footer-inner {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .article-hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-media img {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .article-card {
        grid-template-columns: 205px minmax(0, 1fr);
        gap: 1.15rem;
    }

    .article-card-image img {
        height: 130px;
    }

.about-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.about-profile {
    position: sticky;
    top: 110px;
    max-width: 260px;
}

.about-photo {
    display: block;
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 42px rgba(23, 32, 51, 0.12);
}

.about-content {
    max-width: 860px;
}

    .about-profile {
        position: static;
        max-width: 320px;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .hero {
        padding: 3rem 0 2.3rem;
    }

    .hero h1 {
        font-size: 2.05rem;
    }

    .article-card,
    .compact-list .article-card {
        grid-template-columns: 1fr;
    }

    .article-card-image img,
    .compact-list .article-card-image img {
        height: auto;
        max-height: 260px;
    }

    .article-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button,
    .button-secondary {
        width: 100%;
    }

    .artifact-links {
        grid-template-columns: 1fr;
    }
}

.article-lead-image-section {
    padding: 2.5rem 0 0;
    background: #ffffff;
}

.article-lead-image {
    max-width: 860px;
    margin: 0 auto;
}

.article-lead-image img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(23, 32, 51, 0.10);
    background: #ffffff;
}

.artifact-disclosure {
    max-width: var(--content-max);
    margin-top: 0.95rem;
}

.artifact-disclosure summary {
    display: list-item;
    width: fit-content;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.35;
    cursor: pointer;
}

.artifact-disclosure summary:hover {
    color: var(--accent);
    text-decoration: underline;
}

.artifact-disclosure .artifact-links {
    margin-top: 0.75rem;
}
