@font-face {
    font-family: "Questrial";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/questrial-latin.woff2") format("woff2");
}

:root {
    --ink: #07110e;
    --forest: #0b1713;
    --green: #008461;
    --mint: #39efb3;
    --canvas: #f4f4f1;
    --paper: #ffffff;
    --peach: #fad8b0;
    --line: rgba(7, 17, 14, 0.12);
    --muted: #5b6863;
    --gh-font-heading: "Questrial", system-ui, sans-serif;
    --gh-font-body: "Questrial", system-ui, sans-serif;
    --display: var(--gh-font-heading);
    --body: var(--gh-font-body);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

.shell { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }
.shell.narrow { width: min(760px, calc(100% - 40px)); }
.shell.wide { width: min(1280px, calc(100% - 40px)); }
.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;
}
.skip-link {
    position: fixed; left: 16px; top: 12px; z-index: 1000; transform: translateY(-160%);
    border-radius: 999px; background: var(--ink); color: white; padding: 10px 16px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line);
    background: rgba(244, 244, 241, 0.94); backdrop-filter: blur(16px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand-logo { width: 160px; height: auto; }
.brand-logo-footer { width: 190px; }
.site-navigation { display: flex; align-items: center; gap: 5px; }
.site-navigation a { min-height: 42px; display: inline-flex; align-items: center; border-radius: 14px; padding: 8px 10px; text-decoration: none; font-size: 0.9rem; font-weight: 650; white-space: nowrap; }
.site-navigation a:hover, .site-navigation a[aria-current="page"] { background: var(--paper); }
.site-navigation .nav-login { margin-left: 5px; border: 1px solid var(--line); background: var(--paper); padding-inline: 16px; }
.site-navigation .nav-cta { margin-left: 2px; border-radius: 999px; background: #000; color: white; padding-inline: 19px; }
.site-navigation .nav-cta:hover { background: var(--green); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--paper); padding: 11px; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--ink); }

.eyebrow, .story-label {
    margin: 0 0 12px; color: #006b52; font-size: 0.78rem; font-weight: 800;
    letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none;
}
.blog-hero { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); }
.blog-hero-grid { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.7fr); align-items: end; gap: 80px; padding-block: 110px 80px; }
.blog-hero h1, .archive-header h1, .article-header h1, .error-page h1 {
    margin: 0; font-family: var(--display); font-weight: 650; line-height: 1.04; letter-spacing: -0.045em; text-wrap: balance;
}
.blog-hero h1 { max-width: 850px; font-size: clamp(3rem, 7vw, 6.4rem); }
.hero-copy { max-width: 720px; margin: 30px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.35rem); text-wrap: pretty; }
.hero-note { align-self: end; border-radius: 28px; background: var(--peach); padding: 30px; }
.hero-note span { color: #744000; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-note strong { display: block; margin-top: 14px; font-family: var(--display); font-size: 1.45rem; line-height: 1.25; }
.hero-note a { display: inline-flex; gap: 8px; margin-top: 30px; font-weight: 800; }

.posts-section { padding-block: 80px 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.035em; }
.section-heading > a { font-weight: 750; color: var(--green); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.post-card-image { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #dce9e4; text-decoration: none; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms cubic-bezier(.16, 1, .3, 1); }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.post-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--forest), #123b30); color: var(--mint); font-family: var(--display); font-size: 2rem; font-weight: 700; }
.post-card-body { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.post-meta, .post-card-footer, .article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 0.82rem; }
.post-meta { justify-content: space-between; }
.post-meta a { color: var(--green); font-weight: 750; text-decoration: none; }
.post-card h3 { margin: 15px 0 10px; font-family: var(--display); font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.02em; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--green); }
.post-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.post-card-footer { justify-content: space-between; margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); }
.empty-state { grid-column: 1 / -1; border: 1px dashed rgba(0, 132, 97, 0.4); border-radius: 24px; background: rgba(57, 239, 179, 0.07); padding: 60px; text-align: center; }
.empty-state h3 { margin: 0; font-family: var(--display); font-size: 1.8rem; }
.empty-state p { color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 16px; margin-top: 48px; }
.pagination a { border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 10px 18px; font-weight: 750; text-decoration: none; }

.archive-header { border-bottom: 1px solid var(--line); background: var(--paper); padding-block: 100px 70px; }
.archive-header h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
.archive-header p:not(.eyebrow) { color: var(--muted); font-size: 1.2rem; }
.author-heading { display: flex; align-items: center; gap: 28px; }
.author-heading img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }

.article-shell { padding-bottom: 100px; }
.article-header { padding-block: 105px 55px; text-align: center; }
.article-header .eyebrow { display: inline-block; }
.article-header h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); }
.article-deck { margin: 26px auto 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); text-wrap: pretty; }
.article-byline { justify-content: center; margin-top: 30px; }
.story-label { display: inline-flex; border-radius: 999px; background: var(--peach); color: #744000; padding: 7px 12px; }
.article-image { margin-bottom: 65px; }
.article-image img { width: 100%; max-height: 760px; object-fit: cover; border-radius: 32px; }
.article-image figcaption { margin-top: 12px; color: var(--muted); font-size: 0.83rem; text-align: center; }
.article-layout { display: grid; grid-template-columns: 150px minmax(0, 760px) 1fr; gap: 32px; }
.article-aside { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 0.82rem; }
.article-aside > span { margin-bottom: 3px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
.article-aside a { width: fit-content; }
.article-content { min-width: 0; font-size: 1.08rem; }
.gh-content > * { margin-block: 0 1.35em; }
.gh-content h2, .gh-content h3, .gh-content h4 { margin-top: 2em; margin-bottom: 0.65em; font-family: var(--display); line-height: 1.22; letter-spacing: -0.025em; text-wrap: balance; }
.gh-content h2 { font-size: clamp(1.8rem, 4vw, 2.55rem); }
.gh-content h3 { font-size: 1.55rem; }
.gh-content p, .gh-content li { text-wrap: pretty; }
.gh-content a { color: #006b52; font-weight: 650; }
.gh-content blockquote { margin-inline: 0; border-left: 5px solid var(--mint); border-radius: 0 18px 18px 0; background: var(--paper); padding: 22px 26px; font-family: var(--display); font-size: 1.25rem; }
.gh-content pre { overflow: auto; border-radius: 18px; background: var(--forest); color: #ecfff8; padding: 22px; }
.gh-content code { border-radius: 5px; background: rgba(0, 132, 97, 0.09); padding: 0.12em 0.35em; }
.gh-content pre code { background: transparent; padding: 0; }
.gh-content img { border-radius: 18px; }
.gh-content .kg-width-wide { width: min(980px, calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); border-radius: 0; }
.gh-content figcaption { color: var(--muted); font-size: 0.82rem; text-align: center; }
.gh-content table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; }
.gh-content th, .gh-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.story-cta { margin-top: 75px; border-radius: 30px; background: var(--peach); padding: 44px; text-align: center; }
.story-cta h2 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; }
.story-cta p:not(.eyebrow) { color: #5d421f; }
.article-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 70px; border-top: 1px solid var(--line); padding-top: 25px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { border-radius: 999px; background: var(--paper); padding: 6px 11px; font-size: 0.82rem; font-weight: 700; text-decoration: none; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; font-weight: 800; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: var(--green); }
.button-secondary { border-color: var(--line); background: var(--paper); color: var(--ink); }
.error-page { min-height: 65vh; display: flex; flex-direction: column; align-items: start; justify-content: center; padding-block: 80px; }
.error-page h1 { font-size: clamp(3rem, 7vw, 5rem); }
.error-page p:not(.eyebrow) { color: var(--muted); }

.site-footer { background: var(--forest); color: #d9e4e0; padding-block: 70px 25px; }
.brand-light { color: white; }
.footer-grid { display: grid; grid-template-columns: minmax(250px, 1.35fr) repeat(3, minmax(130px, 0.65fr)); gap: 55px; }
.footer-grid p { max-width: 480px; color: #9eaaa6; }
.footer-grid .footer-promise { margin-bottom: 0; color: white; font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.2; }
.footer-grid h2 { margin: 0 0 16px; color: var(--mint); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-grid h2:not(:first-child) { margin-top: 24px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: start; gap: 8px; }
.footer-grid a, .footer-button { color: #d9e4e0; background: none; border: 0; padding: 0; text-decoration: none; cursor: pointer; }
.footer-grid a:hover, .footer-button:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; color: #82908b; font-size: 0.82rem; }
.footer-bottom a { color: inherit; }

.consent-banner { position: fixed; z-index: 500; right: 20px; bottom: 20px; width: min(620px, calc(100% - 40px)); border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 24px 80px rgba(7,17,14,0.24); padding: 24px; }
.consent-banner:not([hidden]) { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.consent-banner h2 { margin: 0; font-family: var(--display); font-size: 1.15rem; }
.consent-banner p { margin: 7px 0 0; color: var(--muted); font-size: 0.88rem; }
.consent-actions { display: flex; flex-direction: column-reverse; gap: 8px; }

@media (max-width: 1100px) {
    .header-inner { min-height: 64px; }
    .menu-toggle { display: block; }
    .site-navigation { position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 20px 60px rgba(7,17,14,0.17); padding: 10px; }
    .site-navigation.is-open { display: flex; }
    .site-navigation a { justify-content: center; }
    .site-navigation .nav-login, .site-navigation .nav-cta { margin: 3px 0 0; }
    .blog-hero-grid { grid-template-columns: 1fr; gap: 35px; padding-block: 85px 60px; }
    .hero-note { max-width: 480px; }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout { grid-template-columns: 1fr; }
    .article-aside { position: static; flex-direction: row; align-items: center; }
    .article-aside > span { margin: 0 4px 0 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 34px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .shell, .shell.narrow, .shell.wide { width: min(100% - 28px, 1180px); }
    .header-inner { min-height: 64px; }
    .site-navigation { left: 14px; right: 14px; }
    .blog-hero-grid { min-height: auto; padding-block: 70px 50px; }
    .blog-hero h1 { font-size: clamp(2.7rem, 13vw, 4.1rem); }
    .posts-section { padding-block: 60px 80px; }
    .section-heading { align-items: start; flex-direction: column; }
    .post-grid { grid-template-columns: 1fr; }
    .archive-header, .article-header { padding-block: 70px 42px; }
    .article-image { margin-bottom: 42px; }
    .article-image img { border-radius: 20px; }
    .article-content { font-size: 1rem; }
    .story-cta { padding: 30px 22px; }
    .article-footer { align-items: start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 24px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; }
    .consent-banner:not([hidden]) { grid-template-columns: 1fr; }
    .consent-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
