:root {
    --ink: #1c1917;
    --muted: #57534e;
    --line: #e7e5e4;
    --paper: #fafaf9;
    --card: #ffffff;
    --accent: #1d4ed8;
    --accent-soft: #eff6ff;
    --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
}
a { color: var(--accent); }
img { max-width: 100%; }

.g-wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.g-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
}
.g-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}
.g-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: inherit;
    text-decoration: none;
}
.g-logo strong { display: block; font-family: "Segoe UI", system-ui, sans-serif; font-size: 1.05rem; }
.g-logo small { display: block; color: var(--muted); font-family: "Segoe UI", system-ui, sans-serif; }
.g-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #1e3a8a;
    color: #fff;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
}
.g-nav { display: flex; flex-wrap: wrap; gap: 0.9rem 1.1rem; font-family: "Segoe UI", system-ui, sans-serif; font-size: 0.92rem; }
.g-nav a { color: var(--ink); text-decoration: none; }
.g-nav a:hover { color: var(--accent); }

.g-hero { padding: 2.5rem 0 1rem; }
.g-kicker {
    font-family: "Segoe UI", system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--accent);
    margin: 0 0 0.6rem;
}
.g-hero h1, .g-article h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 0.8rem; }
.g-dek { font-size: 1.15rem; color: #44403c; max-width: 46rem; }

.g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2.5rem; padding-bottom: 3rem; }
.g-article {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.5rem 1.4rem 2rem;
}
.g-article h2 { font-size: 1.45rem; line-height: 1.3; margin: 1.6rem 0 0.5rem; }
.g-article h3 { font-size: 1.15rem; margin: 1.2rem 0 0.4rem; }
.g-article p { margin: 0 0 0.95rem; }
.g-article ul, .g-article ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.g-meta { font-family: "Segoe UI", system-ui, sans-serif; color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.g-side {
    font-family: "Segoe UI", system-ui, sans-serif;
}
.g-side h2 { font-size: 0.95rem; margin: 0 0 0.7rem; }
.g-side a { display: block; text-decoration: none; color: inherit; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.g-side a span { display: block; color: var(--muted); font-size: 0.8rem; }

.g-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 2.5rem; }
.g-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1rem 1.1rem;
    text-decoration: none;
    color: inherit;
}
.g-card:hover { border-color: #93c5fd; }
.g-card small { font-family: "Segoe UI", system-ui, sans-serif; color: var(--accent); }
.g-card h2 { font-family: Georgia, serif; font-size: 1.25rem; line-height: 1.3; margin: 0.35rem 0; }
.g-card p { color: var(--muted); margin: 0; font-family: "Segoe UI", system-ui, sans-serif; font-size: 0.95rem; }

.g-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.g-topics a {
    font-family: "Segoe UI", system-ui, sans-serif;
    background: var(--accent-soft);
    color: #1e3a8a;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.88rem;
}

.g-footer { border-top: 1px solid var(--line); background: #fff; padding: 2rem 0 2.4rem; font-family: "Segoe UI", system-ui, sans-serif; color: var(--muted); }
.g-footer p { max-width: 50rem; }
.g-footer-nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1.1rem; margin: 1rem 0; }
.g-copy { font-size: 0.85rem; }

@media (max-width: 860px) {
    .g-layout, .g-grid { grid-template-columns: 1fr; }
    .g-header-inner { align-items: flex-start; flex-direction: column; }
}
