:root {
    --blue: #22aee4;
    --green: #80bd3f;
    --ink: #171717;
    --muted: #707070;
    --paper: #ffffff;
    --soft: #f2f2f2;
    --rule: #e6e6e6;
    --serif: "Newsreader", Georgia, serif;
    --sans: "Inter", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 30px 24px 24px;
}

.site-brand {
    display: grid;
    justify-items: center;
    gap: 4px;
    color: var(--ink);
    text-align: center;
}

.site-brand-tagline {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(30px, 3.6vw, 52px);
    font-weight: 500;
    line-height: 1;
}

.site-brand-community {
    color: var(--blue);
    font-size: clamp(12px, 1.1vw, 15px);
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.site-nav ul {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-more-button {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--paper);
    color: var(--muted);
    cursor: default;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(92px, 1fr));
    gap: 1px;
    min-width: 240px;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: var(--rule);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -6px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.nav-more:hover .nav-dropdown,
.nav-more:focus-within .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-dropdown a {
    padding: 13px 15px;
    background: var(--paper);
    color: var(--ink);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.nav-dropdown a:hover {
    color: #0b7ca8;
}

.site-main {
    width: 100%;
}

.featured-story {
    display: grid;
    grid-template-columns: minmax(190px, 0.74fr) minmax(390px, 1.42fr) minmax(280px, 1fr);
    gap: 36px;
    align-items: center;
    width: min(1200px, calc(100% - 48px));
    margin: 10px auto 38px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--rule);
}

.featured-kicker {
    align-self: center;
}

.featured-kicker span {
    display: block;
    width: 56px;
    height: 2px;
    margin-bottom: 26px;
    background: var(--blue);
}

.featured-kicker h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(34px, 3.3vw, 52px);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: 0;
    text-wrap: balance;
}

.featured-kicker p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.featured-kicker a,
.featured-link {
    display: inline-flex;
    align-items: center;
    margin-top: 22px;
    color: #0b7ca8;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.featured-kicker a::after,
.featured-link::after {
    content: "→";
    margin-left: 10px;
}

.featured-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 5px;
    background: #ddd;
}

.featured-card {
    align-self: center;
}

.featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-copy h2 {
    margin: 8px 0 0;
    font-family: var(--serif);
    font-size: clamp(30px, 2.8vw, 44px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-wrap: balance;
}

.featured-copy p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.latest-section {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto 76px;
}

.latest-section > h2 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px 40px;
    width: 100%;
    margin: 0;
}

.post-card {
    background: transparent;
}

.post-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ddd;
    border-radius: 4px;
}

.post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-body {
    padding: 16px 2px 0;
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.4;
    text-transform: uppercase;
}

.post-card-meta a {
    color: #0b7ca8;
}

.post-card-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(22px, 1.65vw, 28px);
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: 0;
    text-wrap: balance;
}

.post-card-excerpt {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 24px auto 80px;
    color: var(--muted);
    font-size: 14px;
}

.article {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

.article-header {
    margin: 12px auto 42px;
    text-align: center;
}

.article-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(44px, 5vw, 76px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
}

.article-content {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.gh-content {
    font-family: var(--serif);
    font-size: clamp(20px, 1.45vw, 26px);
    line-height: 1.95;
}

.gh-content > * {
    margin-left: auto;
    margin-right: auto;
}

.gh-content p {
    margin-top: 0;
    margin-bottom: 34px;
}

.gh-content a {
    color: #0b7ca8;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.gh-content figure,
.gh-content .kg-card {
    margin-top: 0;
    margin-bottom: 56px;
}

.gh-content iframe,
.gh-content .kg-embed-card iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.gh-content .kg-image-card img,
.gh-content > img {
    width: 100%;
    height: auto;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
    width: min(1080px, 100%);
    margin: 84px auto 120px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 18px;
}

.article-tags a::after {
    content: "•";
    margin-left: 14px;
    color: #b0b0b0;
}

.article-tags a:last-child::after {
    content: "";
    margin: 0;
}

.article-next {
    display: flex;
    justify-content: flex-end;
    min-height: 120px;
    margin-bottom: 40px;
}

.article-next a {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    max-width: 620px;
    font-family: var(--serif);
    font-size: clamp(26px, 2.4vw, 40px);
    line-height: 1.12;
    text-align: right;
}

.article-next svg {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.latest-strip {
    background: var(--soft);
    padding: 28px 0 42px;
}

.latest-strip-inner {
    width: min(1450px, calc(100% - 48px));
    margin: 0 auto;
}

.latest-strip h2 {
    margin: 0 0 18px;
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
}

.latest-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.mini-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.mini-card span {
    display: block;
    margin-top: 14px;
    font-family: var(--serif);
    font-size: clamp(20px, 1.7vw, 30px);
    line-height: 1.15;
    text-align: center;
}

.site-footer {
    padding: 0 24px 54px;
    text-align: center;
}

.page-socials .connect-section {
    display: none;
}

.connect-section {
    width: min(1200px, 100%);
    margin: 0 auto 72px;
    padding: 56px 0 44px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.connect-copy {
    width: min(620px, 100%);
    margin: 0 auto 30px;
}

.connect-copy h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0;
}

.connect-copy p {
    margin: 12px auto 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: var(--rule);
    text-align: left;
}

.social-grid a {
    display: grid;
    gap: 5px;
    min-height: 86px;
    padding: 18px;
    background: var(--paper);
}

.social-grid span {
    color: #0b7ca8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.social-grid strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.25;
    word-break: break-word;
}

.social-grid a:hover strong {
    color: #0b7ca8;
}

.connect-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin-top: 24px;
}

.connect-actions a {
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.connect-actions a::after {
    content: "→";
    margin-left: 8px;
    color: #0b7ca8;
}

.footer-inner {
    display: grid;
    justify-items: center;
    gap: 18px;
}

.footer-logo {
    width: min(520px, 68vw);
}

.footer-inner p {
    margin: 0;
    color: #b0b0b0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    width: min(760px, 100%);
}

.footer-links a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.footer-links a:hover,
.featured-kicker a:hover,
.featured-link:hover,
.connect-actions a:hover {
    color: var(--ink);
}

.socials-page {
    width: min(1120px, calc(100% - 48px));
    margin: 16px auto 96px;
}

.socials-hero {
    width: min(760px, 100%);
    margin: 0 auto 46px;
    text-align: center;
}

.socials-hero p {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.socials-hero h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: 0;
    text-wrap: balance;
}

.socials-hero span {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.socials-feature-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.95fr 0.95fr;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: 7px;
    background: var(--rule);
}

.social-feature {
    display: grid;
    align-content: end;
    min-height: 270px;
    padding: 28px;
    background: #fbfbfb;
}

.social-feature.primary {
    background: var(--ink);
    color: var(--paper);
}

.social-feature span,
.socials-directory span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.social-feature strong {
    display: block;
    margin-top: 8px;
    font-family: var(--serif);
    font-size: clamp(34px, 3vw, 48px);
    font-weight: 500;
    line-height: 1.02;
}

.social-feature em {
    display: block;
    max-width: 360px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 15px;
    font-style: normal;
    line-height: 1.5;
}

.social-feature.primary em {
    color: rgba(255, 255, 255, 0.72);
}

.socials-directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 32px;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: 7px;
    background: var(--rule);
}

.socials-directory a {
    display: grid;
    gap: 8px;
    min-height: 104px;
    padding: 22px;
    background: var(--paper);
}

.socials-directory strong {
    font-size: 17px;
    line-height: 1.25;
}

@media (max-width: 980px) {
    .featured-story {
        grid-template-columns: 1fr 1fr;
    }

    .featured-kicker {
        grid-column: 1 / -1;
        text-align: center;
    }

    .featured-kicker span {
        margin-left: auto;
        margin-right: auto;
    }

    .post-grid,
    .latest-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .socials-feature-grid {
        grid-template-columns: 1fr;
    }

    .social-feature {
        min-height: 220px;
    }

    .socials-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-card-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 26px 18px 24px;
    }

    .site-brand-tagline {
        font-size: 28px;
    }

    .site-brand-community {
        font-size: 12px;
    }

    .site-nav ul {
        gap: 18px;
        flex-wrap: wrap;
    }

    .site-nav {
        gap: 18px;
    }

    .nav-dropdown {
        right: 0;
        left: auto;
        transform: translate(0, -6px);
    }

    .nav-more:hover .nav-dropdown,
    .nav-more:focus-within .nav-dropdown {
        transform: translate(0, 0);
    }

    .featured-story {
        grid-template-columns: 1fr;
        width: min(420px, calc(100% - 32px));
        gap: 22px;
        margin-top: 4px;
        margin-bottom: 32px;
        padding-bottom: 28px;
    }

    .featured-kicker {
        text-align: left;
    }

    .featured-kicker span {
        width: 44px;
        margin: 0 0 18px;
    }

    .featured-kicker h1 {
        font-size: 32px;
    }

    .featured-copy h2 {
        font-size: 31px;
    }

    .latest-section {
        width: min(420px, calc(100% - 32px));
        margin-bottom: 64px;
    }

    .connect-section {
        padding: 42px 0 34px;
        margin-bottom: 46px;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .social-grid a {
        min-height: auto;
        text-align: center;
    }

    .socials-page {
        width: min(420px, calc(100% - 32px));
        margin-bottom: 72px;
    }

    .socials-hero {
        margin-bottom: 32px;
        text-align: left;
    }

    .socials-hero h1 {
        font-size: 40px;
    }

    .socials-directory {
        grid-template-columns: 1fr;
    }

    .post-grid,
    .latest-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .post-card-title {
        font-size: 27px;
    }

    .article {
        width: calc(100% - 32px);
    }

    .article-header {
        margin-bottom: 28px;
    }

    .article-title {
        font-size: 38px;
    }

    .gh-content {
        font-size: 20px;
        line-height: 1.75;
    }

    .article-tags {
        margin: 54px auto 80px;
        font-size: 16px;
    }

    .article-next {
        justify-content: flex-start;
    }

    .article-next a {
        text-align: left;
        font-size: 28px;
    }

    .latest-strip-inner {
        width: min(420px, calc(100% - 32px));
    }
}
