:root {
    --black: #070b0e;
    --ink: #111417;
    --muted: #62676b;
    --line: #dfe1e2;
    --paper: #fff;
    --white: #fff;
    --radius: 8px;
    --page: 1440px;
    --pad: clamp(24px, 4vw, 72px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--black);
    font-family: var(--gh-font-body, Arial, Helvetica, sans-serif);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input {
    font-family: var(--gh-font-body, Arial, Helvetica, sans-serif);
}

h1,
h2,
h3,
h4,
p,
blockquote,
figure {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--gh-font-heading, Arial, Helvetica, sans-serif);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

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

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

.site-shell {
    width: min(calc(100% - 24px), var(--page));
    margin: 12px auto;
    overflow: hidden;
    background: var(--paper);
    border-radius: var(--radius);
}

.outer {
    padding-right: var(--pad);
    padding-left: var(--pad);
}

.outer-wide {
    margin-right: clamp(24px, 2.5vw, 44px);
    margin-left: clamp(24px, 2.5vw, 44px);
}

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

.eyebrow,
.footer-title,
.post-card-tag {
    margin-bottom: 16px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-dark {
    color: var(--white);
    background: var(--black);
}

.button-outline {
    border-color: #c8cbcd;
    background: rgba(255,255,255,.45);
}

.button-light {
    color: var(--black);
    background: var(--white);
}

.button-outline-light {
    color: var(--white);
    border-color: #4d565d;
}

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pad);
    background: rgba(255,255,255,.97);
}

.site-brand {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.site-brand img {
    width: auto;
    max-width: 180px;
    max-height: 34px;
}

.site-nav .nav,
.footer-column .nav {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-nav .nav {
    align-items: center;
    gap: clamp(18px, 2vw, 34px);
}

.site-nav a {
    padding: 10px 0;
    font-size: 12px;
    font-weight: 600;
}

.site-nav .nav-current a {
    border-bottom: 1px solid var(--ink);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 11px 8px;
    border: 0;
    background: transparent;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    height: 1px;
    margin: 6px 0;
    background: var(--ink);
}

.hero {
    position: relative;
    display: grid;
    min-height: 575px;
    grid-template-columns: 1.08fr .92fr;
    align-items: end;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 70%, rgba(25,50,80,.035), transparent 33%),
        repeating-radial-gradient(ellipse at 38% 120%, transparent 0 11px, rgba(25,50,80,.018) 12px 13px),
        var(--white);
}

.hero-copy {
    position: relative;
    z-index: 2;
    align-self: center;
    max-width: 700px;
    padding: 64px 0 92px;
}

.hero h1 {
    max-width: 680px;
    margin-bottom: 22px;
    font-size: clamp(45px, 5vw, 76px);
}

.hero-intro {
    max-width: 610px;
    margin-bottom: 32px;
    font-size: clamp(16px, 1.25vw, 20px);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-visual {
    height: 100%;
    min-height: 490px;
    align-self: end;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: grayscale(1);
}

.portrait-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(145deg, #fff, #f2f6fa);
    clip-path: ellipse(44% 48% at 50% 54%);
}

.portrait-placeholder span {
    max-width: 170px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.expertise {
    padding-top: 42px;
    padding-bottom: 52px;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.section-label {
    margin-bottom: 34px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(24px, 3vw, 56px);
}

.expertise h3,
.framework-grid h3 {
    margin: 13px 0 10px;
    font-size: 17px;
    letter-spacing: -.025em;
}

.expertise p,
.framework-grid p,
.principles p {
    margin: 0;
    color: #44494c;
    font-size: 12px;
    line-height: 1.55;
}

.line-icon,
.framework-grid article > span {
    font-size: 26px;
}

.featured {
    padding-top: 46px;
    padding-bottom: 58px;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 30%, #12202a 0, transparent 28%),
        var(--black);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-heading .eyebrow {
    margin: 0;
}

.section-heading > a {
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.featured-empty {
    grid-column: 1/-1;
    padding: 48px 24px;
    border: 1px dashed #364149;
    border-radius: 7px;
    color: #9ba4aa;
    text-align: center;
}

.featured-empty p {
    margin: 0;
}

.post-card {
    min-width: 0;
}

.featured .post-card {
    overflow: hidden;
    border: 1px solid #2b343a;
    border-radius: 7px;
    background: rgba(12,18,22,.72);
}

.post-card-image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #182229;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: transform .35s ease, filter .35s ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.025);
    filter: grayscale(.35);
}

.post-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, transparent 48%, rgba(255,255,255,.12) 49% 51%, transparent 52%),
        radial-gradient(circle at 30% 40%, #52626d, #172128 65%);
}

.post-card-content {
    padding: 18px;
}

.post-card-tag {
    display: inline-block;
    margin-bottom: 9px;
    color: inherit;
    opacity: .65;
    font-size: 8px;
}

.post-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.post-card p {
    margin-bottom: 17px;
    color: inherit;
    font-size: 12px;
    line-height: 1.55;
    opacity: .68;
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 9px;
    opacity: .58;
}

.philosophy {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(60px, 9vw, 150px);
    padding-top: 64px;
    padding-bottom: 64px;
    background:
        repeating-radial-gradient(ellipse at 14% 110%, transparent 0 10px, rgba(25,50,80,.015) 11px 12px),
        var(--white);
}

.philosophy blockquote {
    max-width: 720px;
    margin: 34px 0 0;
    font-size: clamp(23px, 2.4vw, 37px);
    line-height: 1.45;
    letter-spacing: -.035em;
}

.philosophy blockquote::before {
    content: "“";
    margin-right: 6px;
    color: #c8cbcd;
    font-size: 52px;
    line-height: 0;
    vertical-align: -.3em;
}

.principles {
    display: grid;
    gap: 24px;
}

.principles article {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 14px;
}

.principles h3 {
    margin-bottom: 5px;
    font-size: 14px;
}

.frameworks {
    display: grid;
    grid-template-columns: .8fr 2.2fr;
    gap: 40px;
    padding-top: 44px;
    padding-bottom: 44px;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.framework-intro h2 {
    max-width: 320px;
    margin-bottom: 26px;
    font-size: clamp(25px, 2.3vw, 36px);
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.framework-grid article {
    padding: 24px;
    border: 1px solid var(--line);
    border-right: 0;
}

.framework-grid article:first-child {
    border-radius: 6px 0 0 6px;
}

.framework-grid article:last-child {
    border-right: 1px solid var(--line);
    border-radius: 0 6px 6px 0;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.35fr .65fr .65fr .65fr 1fr;
    gap: clamp(28px, 4vw, 64px);
    padding-top: 48px;
    padding-bottom: 20px;
    color: #d8dcde;
    background:
        radial-gradient(circle at 75% 20%, #11212b, transparent 25%),
        #080e12;
}

.footer-lead h2 {
    max-width: 350px;
    margin-bottom: 14px;
    color: var(--white);
    font-size: 27px;
}

.footer-lead > p:not(.eyebrow),
.footer-newsletter > p:not(.footer-title) {
    max-width: 340px;
    color: #8e979c;
    font-size: 12px;
}

.footer-title {
    color: #858e93;
}

.footer-column .nav {
    flex-direction: column;
    gap: 7px;
}

.footer-column li,
.social-links a {
    font-size: 12px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-newsletter .button {
    width: 100%;
    margin-top: 8px;
}

.footer-bottom {
    display: flex;
    grid-column: 1/-1;
    justify-content: space-between;
    padding-top: 22px;
    margin-top: 12px;
    border-top: 1px solid #20282e;
    color: #737d83;
    font-size: 9px;
}

.page-header {
    padding-top: clamp(24px, 2.5vw, 36px);
    padding-bottom: clamp(24px, 2.5vw, 36px);
    border-bottom: 1px solid var(--line);
}

.page-header h1,
.author-header h1 {
    max-width: 920px;
    margin-bottom: 12px;
    font-size: clamp(40px, 4.5vw, 62px);
}

.page-header > p:last-child,
.author-header p {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 18px;
}

.archive {
    padding-top: 50px;
    padding-bottom: 70px;
    background: var(--white);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px 24px;
}

.archive .post-card {
    border-bottom: 1px solid var(--line);
}

.archive .post-card-content {
    padding: 18px 0 24px;
}

.archive .post-card h3 {
    font-size: 23px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    padding-top: 44px;
    font-size: 12px;
    font-weight: 700;
}

.author-header {
    display: grid;
    grid-template-columns: 1fr 300px;
    align-items: end;
    gap: 60px;
    padding-top: 70px;
    background: linear-gradient(135deg, #fff, #f4f7fa);
}

.author-header img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    filter: grayscale(1);
}

.article-header {
    width: 100%;
    max-width: 1040px;
    padding-top: clamp(30px, 3.5vw, 48px);
    padding-bottom: 32px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.article-header h1 {
    margin-right: auto;
    margin-bottom: 22px;
    margin-left: auto;
    font-size: clamp(45px, 6vw, 82px);
}

.article-header .post-card-tag {
    margin-right: auto;
    margin-left: auto;
}

.article-excerpt {
    max-width: 740px;
    margin: 0 auto 24px;
    color: var(--muted);
    font-size: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    color: var(--muted);
    font-size: 11px;
}

.article-image {
    width: calc(100% - (2 * var(--pad)));
    aspect-ratio: 16/9;
    max-height: 600px;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
    border-radius: 6px;
    background: #f3f6f9;
}

.page-feature-image {
    max-width: 820px;
    aspect-ratio: 3/2;
    max-height: 547px;
    margin-top: 32px;
    border: 1px solid #c9d6e7;
    box-shadow: 0 18px 50px rgba(20, 38, 62, .1);
}

.post-feature-image {
    max-width: 1040px;
    max-height: 600px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-image figcaption {
    padding-top: 8px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.gh-content {
    max-width: 760px;
    padding: 64px 24px;
    margin: 0 auto;
    font-family: var(--gh-font-body, Georgia, serif);
    font-size: 18px;
    line-height: 1.75;
}

.page-template .page-header {
    color: #f7f9fc;
    border-bottom-color: #24364e;
    background:
        radial-gradient(circle at 85% 10%, rgba(145, 174, 211, .2), transparent 28%),
        #111c2c;
}

.page-template .page-header > p:last-child {
    color: #b9c7d9;
}

.page-template .gh-content {
    padding-top: 42px;
    padding-bottom: 52px;
}

.page-template .gh-content h2 {
    margin-top: 1.55em;
    margin-bottom: .55em;
    color: #17253a;
}

.page-template .gh-content h3 {
    margin-top: 1.4em;
    margin-bottom: .45em;
}

.page-template .gh-content p {
    margin-bottom: 1em;
}

.page-template .gh-content hr {
    height: 1px;
    margin: 1.6em 0;
    border: 0;
    background: #dbe3ed;
}

.page-template .gh-content blockquote {
    border-left-color: #8fa8ca;
    color: #24364e;
}

.gh-content > * {
    max-width: 100%;
}

.gh-content h2 {
    margin-top: 2.2em;
    font-size: 34px;
}

.gh-content h3 {
    margin-top: 2em;
    font-size: 25px;
}

.gh-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gh-content blockquote {
    padding-left: 28px;
    margin: 2em 0;
    border-left: 3px solid var(--ink);
    font-size: 25px;
    line-height: 1.45;
}

.gh-content img,
.gh-content video {
    border-radius: 5px;
}

.gh-content .kg-width-wide {
    position: relative;
    width: min(1100px, calc(100vw - 48px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.gh-content .kg-width-full {
    position: relative;
    width: min(var(--page), calc(100vw - 24px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.gh-content .kg-card {
    margin-top: 2.5em;
    margin-bottom: 2.5em;
}

.article-footer {
    max-width: 860px;
    padding-top: 20px;
    padding-bottom: 70px;
    margin: 0 auto;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags a {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 99px;
    font-size: 10px;
    text-transform: uppercase;
}

.comments {
    margin-top: 55px;
}

.error-page {
    min-height: 65vh;
    padding-top: 140px;
    text-align: center;
}

.error-page h1 {
    margin-bottom: 30px;
    font-size: clamp(44px, 7vw, 90px);
}

@media (max-width: 1100px) {
    .expertise-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .site-footer {
        grid-template-columns: 1.5fr repeat(3, 1fr);
    }

    .footer-newsletter {
        grid-column: 1/-1;
    }
}

@media (max-width: 820px) {
    .site-header {
        min-height: 68px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 68px;
        right: 0;
        left: 0;
        display: none;
        padding: 24px var(--pad) 30px;
        border-top: 1px solid var(--line);
        background: var(--paper);
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav .nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .site-nav a {
        font-size: 16px;
    }

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

    .hero-copy {
        padding: 60px 0 20px;
    }

    .hero-visual {
        min-height: 430px;
    }

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

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

    .framework-grid article:nth-child(2) {
        border-right: 1px solid var(--line);
    }

    .framework-grid article:first-child,
    .framework-grid article:last-child {
        border-radius: 0;
    }

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

    .author-header {
        grid-template-columns: 1fr 220px;
    }
}

@media (max-width: 600px) {
    .site-shell {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-visual {
        min-height: 360px;
    }

    .expertise-grid,
    .featured-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

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

    .framework-grid article {
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .framework-grid article:last-child {
        border-bottom: 1px solid var(--line);
    }

    .site-footer {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-lead,
    .footer-newsletter {
        grid-column: 1/-1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .author-header {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }

    .author-header img {
        max-height: 320px;
    }

    .gh-content {
        font-size: 17px;
    }

    .article-image {
        width: calc(100% - 32px);
        max-height: 360px;
    }

    .page-feature-image {
        margin-top: 20px;
    }

    .page-template .gh-content {
        padding-top: 30px;
        padding-bottom: 40px;
    }
}
