:root {
    --bg: #e9eef1;
    --bg-deep: #d9e3e8;
    --ink: #132028;
    --muted: #4d5d68;
    --line: #c5d0d7;
    --panel: rgba(255, 255, 255, 0.72);
    --brand: #0b3d3a;
    --brand-2: #1f6f68;
    --accent: #c45c26;
    --max: 1080px;
    --header-h: 4.25rem;
    --radius: 0;
    --shadow: 0 18px 50px rgba(19, 32, 40, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 8% -10%, rgba(31, 111, 104, 0.18), transparent 55%),
        radial-gradient(900px 420px at 100% 0%, rgba(196, 92, 38, 0.12), transparent 45%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    min-height: 100vh;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--brand);
    color: #fff;
    padding: 0.6rem 0.9rem;
    z-index: 100;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
    width: min(var(--max), calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(233, 238, 241, 0.86);
    border-bottom: 1px solid rgba(197, 208, 215, 0.8);
}

.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-mark {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    border-radius: 8px;
}
.logo-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.logo-text {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: clamp(1.45rem, 3vw, 1.8rem);
    letter-spacing: -0.04em;
    line-height: 1;
}
.logo-slogan {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--muted);
    line-height: 1.2;
}

.nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.6);
    padding: 0;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 1.1rem;
    height: 2px;
    margin: 0.28rem auto;
    background: var(--ink);
    transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:first-of-type { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-of-type { transform: translateY(-5px) rotate(-45deg); }

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    align-items: center;
}
.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.35rem 0;
    position: relative;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--brand-2);
}

.site-main { padding-bottom: 3.5rem; }

.hero {
    padding: clamp(2.2rem, 6vw, 4rem) 0 1.4rem;
    animation: rise 650ms ease both;
}
.hero-brand {
    margin: 0 0 0.55rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 9vw, 5.2rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
    color: var(--brand);
}
.hero-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.25rem, 3.2vw, 1.7rem);
    font-weight: 600;
    max-width: 18ch;
    letter-spacing: -0.02em;
}
.hero-lead {
    margin: 0;
    max-width: 36ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.featured-block {
    margin-bottom: 1.5rem;
    animation: rise 750ms ease both;
    animation-delay: 80ms;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 2rem;
    align-items: start;
    padding-bottom: 1rem;
}
.content-main { min-width: 0; }

.story-list {
    display: grid;
    gap: 0;
}
.story {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.story.has-cover {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 0.95rem;
    align-items: start;
}
.story-featured.has-cover {
    grid-template-columns: minmax(180px, 38%) minmax(0, 1fr);
    gap: 1.1rem;
}
.story-featured {
    padding: 1.15rem 0 1.35rem;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--line);
}
.story-featured .story-title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    max-width: 18ch;
}
.story-cover {
    display: block;
    margin: 0;
    overflow: hidden;
    background: #d5dee4;
    border-radius: 2px;
}
.story-cover img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.story-featured .story-cover img {
    aspect-ratio: 16 / 10;
}
.story-body { min-width: 0; }

.tag-pool {
    position: sticky;
    top: calc(var(--header-h) + 0.75rem);
    padding: 1rem 0.9rem 1.1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(8px);
}
.tag-pool h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.tag-pool-lead {
    margin: 0.25rem 0 0.85rem;
    color: var(--muted);
    font-size: 0.86rem;
}
.tag-pool-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: min(70vh, 560px);
    overflow: auto;
}
.tag-pool-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.5rem;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
}
.tag-pool-list a:hover {
    border-color: var(--line);
    background: rgba(255,255,255,0.8);
    color: var(--brand-2);
}
.tag-count {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.article-cover {
    margin: 0.8rem 0 1.1rem;
    overflow: hidden;
    background: #d5dee4;
    max-width: 40rem;
}
.article-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.9rem;
}
.section-head h2,
.related h2,
.page-intro h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.03em;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.page-intro {
    padding: 2rem 0 1rem;
}
.page-intro p { color: var(--muted); margin: 0.55rem 0 0; }

.feed-block { animation: rise 700ms ease both; animation-delay: 120ms; }

.story-cat {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}
.story-title {
    margin: 0 0 0.4rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    letter-spacing: -0.025em;
    line-height: 1.2;
}
.story-title a {
    color: inherit;
    text-decoration: none;
}
.story-title a:hover { color: var(--brand-2); }
.story-excerpt {
    margin: 0 0 0.55rem;
    color: var(--muted);
    max-width: 62ch;
}
.story-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.breadcrumbs {
    padding-top: 1.2rem;
    margin-bottom: 0.4rem;
}
.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    color: var(--muted);
    font-size: 0.88rem;
}
.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    opacity: 0.6;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }

.article-header { padding: 0.6rem 0 1.2rem; }
.article-title {
    margin: 0.2rem 0 0.7rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 5.5vw, 3rem);
    letter-spacing: -0.035em;
    line-height: 1.1;
    max-width: 18ch;
}
.article-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.article-dek {
    margin: 1rem 0 0;
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 40ch;
}
.article-body {
    padding: 0.4rem 0 1.5rem;
    max-width: 40rem;
    font-size: 1.08rem;
}
.article-body p { margin: 0 0 1.1rem; }

.article-tags {
    max-width: 40rem;
    padding: 0 0 1.5rem;
}
.tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.tag-list a {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.7);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}
.tag-list a:hover {
    border-color: var(--brand-2);
    color: var(--brand-2);
}

.comments {
    max-width: 40rem;
    margin: 1.75rem 0 2rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
}
.comments h2 {
    margin: 0 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    letter-spacing: -0.03em;
}
.site-flash {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.75);
    font-weight: 600;
}
.site-flash-success {
    border-color: #b7dfc3;
    background: #e8f6ec;
    color: #1f6b3a;
}
.site-flash-error {
    border-color: #e5b4b4;
    background: #fbebe8;
    color: #8a1f1f;
}
.comment-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0;
}
.comment-item {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
}
.comment-author {
    margin: 0;
    font-weight: 700;
}
.comment-meta {
    margin: 0.2rem 0 0.55rem;
    color: var(--muted);
    font-size: 0.86rem;
}
.comment-body {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.55;
}
.comment-empty {
    color: var(--muted);
    margin: 0 0 1.25rem;
}
.comment-form {
    margin-top: 0.5rem;
    padding: 1.1rem 1rem 1.2rem;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.55);
    display: grid;
    gap: 0.85rem;
}
.comment-form h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
}
.comment-form-lead {
    margin: -0.35rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}
.comment-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.92rem;
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.comment-form textarea { resize: vertical; min-height: 7rem; }
.comment-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.comment-submit {
    justify-self: start;
    padding: 0.65rem 1.15rem;
    border: 0;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.comment-submit:hover { background: var(--brand-2); }

.related { margin-top: 2rem; }
.related h2 { margin-bottom: 0.8rem; }

.search-form {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
    max-width: 36rem;
}
.search-form input,
.search-form button {
    font: inherit;
    border: 1px solid var(--line);
    padding: 0.8rem 0.95rem;
    background: rgba(255,255,255,0.75);
    color: var(--ink);
}
.search-form button {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    cursor: pointer;
    font-weight: 700;
}
.search-form button:hover { background: var(--brand-2); }

.pagination ul {
    list-style: none;
    margin: 1.6rem auto 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.pagination a,
.pagination span {
    display: inline-flex;
    min-width: 2.4rem;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.65);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}
.pagination [aria-current="page"] {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.empty-state { color: var(--muted); padding: 1rem 0; }
.text-link {
    font-weight: 700;
    text-decoration: none;
    color: var(--brand-2);
}
.text-link:hover { color: var(--accent); }

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(19, 32, 40, 0.96);
    color: #d7e0e6;
    padding: 2.4rem 0 1.4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 1.5rem;
}
.footer-brand {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.footer-brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}
.footer-tag { margin: 0.4rem 0 0; color: #9aabb6; max-width: 28ch; }
.footer-label {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8ea0ab;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.site-footer a { color: #d7e0e6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
    margin-top: 1.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #8ea0ab;
    font-size: 0.9rem;
}

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

@media (max-width: 920px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .tag-pool {
        position: static;
        order: 2;
    }
    .tag-pool-list {
        max-height: none;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .tag-pool-list a {
        border-color: var(--line);
        background: rgba(255,255,255,0.7);
    }
}

@media (max-width: 820px) {
    .nav-toggle { display: inline-block; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: var(--header-h);
        background: rgba(233, 238, 241, 0.98);
        border-bottom: 1px solid var(--line);
        padding: 0.75rem 1rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }
    .site-nav.is-open { display: flex; }
    .site-header { position: sticky; }
    .header-inner { position: relative; }
    .footer-grid { grid-template-columns: 1fr; }
    .search-form { grid-template-columns: 1fr; }
    .story.has-cover {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 0.75rem;
    }
    .story-featured.has-cover {
        grid-template-columns: 1fr;
    }
    .story-featured .story-title {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
