:root {
    --ink: #17382f;
    --ink-deep: #102b24;
    --olive: #59643c;
    --gold: #d5a84f;
    --warm: #cf704d;
    --cream: #f5efe3;
    --paper: #fffdf8;
    --line: rgba(23, 56, 47, 0.16);
    --muted: #68756f;
    --serif: var(--gh-font-heading, Georgia, "Times New Roman", serif);
    --sans: var(--gh-font-body, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink-deep);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 500; line-height: 1.08; }
h1 { font-size: clamp(3.1rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4.2rem); }
h3 { font-size: clamp(1.45rem, 2vw, 2rem); }
p { margin: 0 0 1.2rem; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.shell--reading { width: min(calc(100% - 40px), 760px); }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tint { background: var(--cream); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; transform: translateY(-160%); background: var(--paper); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.eyebrow { margin: 0 0 18px; color: var(--warm); font-size: .72rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.post-meta { color: var(--muted); font-size: .82rem; letter-spacing: .04em; }
.text-link { color: var(--warm); font-size: .86rem; font-weight: 750; letter-spacing: .02em; }
.text-link:hover { color: var(--ink); }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, .96); backdrop-filter: blur(14px); }
.site-header__inner { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; min-width: max-content; align-items: center; gap: 13px; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.brand__logo { width: 66px; height: 66px; object-fit: contain; }
.site-navigation { display: flex; align-items: center; gap: 30px; }
.nav { display: flex; margin: 0; padding: 0; align-items: center; gap: clamp(18px, 2.3vw, 34px); list-style: none; white-space: nowrap; }
.nav a { font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.nav a:hover, .nav-current a { color: var(--warm); }
.header-cta { padding: 14px 20px; color: var(--paper); background: var(--ink); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.header-cta:hover { background: var(--warm); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 8px; border: 0; background: transparent; }
.nav-toggle > span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px auto; background: var(--ink); }

.hero { position: relative; min-height: min(760px, calc(100vh - 94px)); display: grid; align-items: center; overflow: hidden; background-image: var(--hero-image); background-position: center; background-size: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 25, 21, .88) 0%, rgba(10, 25, 21, .58) 55%, rgba(10, 25, 21, .2) 100%); }
.hero__content { position: relative; z-index: 1; padding-block: 100px; color: var(--paper); }
.hero h1 { max-width: 800px; color: var(--paper); }
.hero__content > p:not(.eyebrow) { max-width: 620px; margin-top: 24px; font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.55rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid transparent; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.button--solid { color: var(--paper); background: var(--olive); }
.button--outline { border-color: rgba(255,255,255,.7); color: var(--paper); }
.button--solid:hover, .button--outline:hover { color: var(--ink); background: var(--paper); }
.button--warm { margin-top: 10px; color: var(--paper); background: var(--warm); }

.section-heading { display: flex; margin-bottom: 46px; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading > p { max-width: 470px; color: var(--muted); }
.feature-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.feature-card__media { min-height: 470px; }
.feature-card__media img, .post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-card__copy { display: flex; padding: clamp(34px, 5vw, 68px); flex-direction: column; justify-content: center; }
.feature-card__copy h3 { margin: 14px 0 18px; font-size: clamp(2rem, 3.5vw, 3.4rem); }
.feature-card__copy p { color: var(--muted); }
.image-placeholder { display: block; width: 100%; height: 100%; min-height: 260px; background: linear-gradient(135deg, #dce2d4, #b7c2ae); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 28px; }
.post-card { min-width: 0; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dce2d4; }
.post-card__media img { transition: transform .45s ease; }
.post-card:hover .post-card__media img { transform: scale(1.025); }
.post-card__body { padding-top: 20px; }
.post-card h3 { margin: 9px 0 12px; }
.post-card h3 a:hover { color: var(--warm); }
.post-card p { color: var(--muted); font-size: .94rem; }

.pathway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pathway { min-height: 320px; padding: 36px; border: 1px solid var(--line); background: var(--paper); transition: transform .2s ease, background .2s ease; }
.pathway:hover { transform: translateY(-4px); background: var(--cream); }
.pathway > span { color: var(--warm); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.pathway h3 { margin: 70px 0 15px; }
.pathway p { color: var(--muted); }

.archive-hero { padding-top: clamp(90px, 12vw, 170px); padding-bottom: 65px; }
.archive-hero h1 { max-width: 900px; }
.archive-hero > p:last-child { max-width: 650px; margin-top: 22px; color: var(--muted); font-family: var(--serif); font-size: 1.25rem; }
.pagination { display: flex; margin-top: 70px; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .85rem; }
.pagination a { color: var(--warm); font-weight: 700; }

.article { padding-bottom: 120px; }
.article-header { padding-top: clamp(90px, 12vw, 165px); padding-bottom: 55px; text-align: center; }
.article-header h1 { font-size: clamp(2.8rem, 6vw, 5.8rem); }
.article-deck { margin: 24px auto 0; color: var(--muted); font-family: var(--serif); font-size: 1.3rem; }
.article-header .post-meta { margin-top: 26px; }
.article-image { max-width: 1180px; margin-bottom: 64px; }
.article-image img { width: 100%; max-height: 720px; object-fit: cover; }
.article-image figcaption { padding-top: 8px; color: var(--muted); font-size: .78rem; text-align: center; }
.gh-content { font-family: var(--serif); font-size: 1.14rem; }
.gh-content > * { margin-top: 0; margin-bottom: 1.45em; }
.gh-content h2, .gh-content h3 { margin-top: 1.5em; margin-bottom: .55em; }
.gh-content a { color: var(--warm); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gh-content blockquote { margin-inline: 0; padding: 8px 0 8px 28px; border-left: 3px solid var(--gold); color: var(--ink); font-size: 1.25em; font-style: italic; }
.gh-content img { margin-inline: auto; }
.gh-content .kg-width-wide { width: min(100vw - 40px, 1040px); margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.article-footer { margin-top: 60px; padding-top: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.article-author { margin-top: 8px; }
.page-article .article-header { padding-bottom: 45px; }

.site-footer { padding-top: 74px; color: rgba(255,255,255,.78); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1.1fr; gap: 70px; }
.footer-grid > div { display: flex; align-items: flex-start; flex-direction: column; }
.footer-brand { color: var(--paper); font-family: var(--serif); font-size: 2rem; }
.footer-heading { color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.footer-grid a:not(.button) { margin-bottom: 7px; }
.footer-grid a:not(.button):hover { color: var(--gold); }
.footer-base { margin-top: 58px; padding-block: 23px; border-top: 1px solid rgba(255,255,255,.14); font-size: .76rem; text-align: center; }

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .site-navigation { position: absolute; top: 100%; right: 20px; left: 20px; display: none; padding: 24px; align-items: stretch; flex-direction: column; background: var(--paper); box-shadow: 0 16px 32px rgba(16,43,36,.14); }
    .site-navigation.is-open { display: flex; }
    .nav { align-items: stretch; flex-direction: column; gap: 12px; white-space: normal; }
    .nav a { display: block; padding: 8px 0; }
    .header-cta { text-align: center; }
    .feature-card { grid-template-columns: 1fr; }
    .feature-card__media { min-height: 380px; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .pathway-grid { grid-template-columns: 1fr; }
    .pathway { min-height: 230px; }
    .pathway h3 { margin-top: 38px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .shell { width: min(calc(100% - 30px), var(--shell)); }
    .site-header__inner { min-height: 78px; }
    .brand__logo { width: 52px; height: 52px; }
    .brand { font-size: 1.08rem; }
    .hero { min-height: 660px; }
    .hero__shade { background: rgba(10,25,21,.72); }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
    .feature-card__media { min-height: 280px; }
    .feature-card__copy { padding: 30px 24px; }
    .post-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 42px; }
    .footer-grid > div:first-child { grid-column: auto; }
    .pagination { align-items: flex-start; flex-direction: column; }
}
