:root {
    --black: #080808;
    --black-soft: #111111;
    --ink: #171717;
    --paper: #f1efe9;
    --paper-bright: #fbfaf7;
    --muted: #a6a39d;
    --line-dark: #2d2d2d;
    --line-light: #d7d3ca;
    --accent: #c5262c;
    --shell: 1240px;
    --content: 760px;
    --radius: 2px;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--black);
    color: var(--paper);
    font-family: var(--gh-font-body, var(--sans));
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: var(--accent); color: white; }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.narrow-shell { max-width: 900px; margin-inline: auto; }
.wide-shell { max-width: 1440px; }
.content-shell { max-width: var(--content); }
.section { padding-block: clamp(72px, 9vw, 140px); }
.visually-hidden { 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; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--gh-font-heading, var(--sans)); line-height: .98; letter-spacing: -.045em; }
h1 { font-size: clamp(3.3rem, 8vw, 7.7rem); font-weight: 720; }
h2 { font-size: clamp(2.4rem, 5.3vw, 5.2rem); font-weight: 680; }
h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 650; }
.eyebrow { margin-bottom: 22px; color: var(--muted); font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line-dark); background: rgba(8,8,8,.96); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: -.025em; }
.brand-logo { max-width: 92px; max-height: 48px; object-fit: contain; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--paper); font-family: var(--serif); }
.header-panel, .site-nav, .header-actions { display: flex; align-items: center; }
.header-panel { gap: 30px; }
.site-nav .nav, .site-nav .nav-list { margin: 0; padding: 0; display: flex; gap: 26px; list-style: none; }
.site-nav a, .text-button { color: #d8d6d1; font-size: .88rem; }
.site-nav a:hover, .site-nav .nav-current a, .text-button:hover { color: white; }
.header-actions { gap: 16px; }
.text-button { padding: 0; border: 0; background: none; cursor: pointer; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 12px 8px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle > span:not(.visually-hidden) { display: block; height: 1px; margin: 7px 0; background: currentColor; }

.button { display: inline-flex; min-height: 50px; padding: 13px 20px; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--paper); border-radius: 100px; background: var(--paper); color: var(--ink); font-size: .88rem; font-weight: 700; line-height: 1; transition: .2s ease; cursor: pointer; }
.button:hover { background: white; border-color: white; transform: translateY(-2px); }
.button-small { min-height: 40px; padding: 10px 17px; }
.button-ghost { background: transparent; color: var(--paper); }
.button-ghost:hover { background: var(--paper); color: var(--ink); }
.button-light { border-color: var(--black); background: var(--black); color: var(--paper); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: .82rem; font-weight: 750; letter-spacing: .03em; }
.arrow-link span { transition: transform .2s ease; }
.arrow-link:hover span { transform: translateX(4px); }

.hero { min-height: calc(100vh - 92px); display: flex; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(310px, .5fr); gap: clamp(60px, 10vw, 150px); align-items: end; }
.hero h1 { max-width: 1000px; margin-bottom: 34px; }
.hero h1::first-line { color: white; }
.hero-deck { max-width: 720px; margin-bottom: 38px; color: #bbb8b1; font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.5; }
.hero-index { padding-top: 18px; border-top: 1px solid var(--line-dark); }
.index-label { color: var(--muted); font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; }
.hero-index ol { margin: 0; padding: 0; list-style: none; }
.hero-index li { display: grid; grid-template-columns: 30px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.hero-index li > span { color: #6f6d69; font-family: var(--mono); font-size: .7rem; }
.hero-index strong { font-size: .95rem; }
.hero-index small { grid-column: 2; color: var(--muted); font-size: .74rem; }

.section-heading { display: flex; margin-bottom: clamp(38px, 6vw, 72px); align-items: end; justify-content: space-between; gap: 40px; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading > div > p:last-child { max-width: 620px; margin-bottom: 0; color: var(--muted); }
.ruled-heading { padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
.ruled-heading h2 { margin: 0; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }
.status-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }

.spotlight-section { border-top: 1px solid var(--line-dark); }
.spotlight-card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); min-height: 540px; background: var(--paper); color: var(--ink); }
.spotlight-media { min-height: 480px; overflow: hidden; background: #191919; }
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.spotlight-media:hover img { transform: scale(1.02); }
.spotlight-copy { padding: clamp(32px, 5vw, 70px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.spotlight-copy h3 { margin: 28px 0 24px; font-size: clamp(2rem, 3.5vw, 4.3rem); }
.spotlight-copy p { color: #5e5b55; }
.spotlight-copy .arrow-link { margin-top: 18px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: #77736c; font-family: var(--mono); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.media-placeholder { display: flex; width: 100%; height: 100%; min-height: 230px; padding: 28px; align-items: flex-end; background: repeating-linear-gradient(135deg,#151515,#151515 12px,#1b1b1b 12px,#1b1b1b 24px); color: #787878; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; }

.home-editor-section { background: var(--paper); color: var(--ink); }
.home-editor { max-width: 1080px; }
.home-editor > h2 { margin: 90px 0 26px; }
.home-editor > h2:first-child { margin-top: 0; }
.home-editor > h2 + p { max-width: 720px; color: #5a5751; font-size: 1.15rem; }

.projects-section { background: var(--paper-bright); color: var(--ink); }
.projects-section .eyebrow { color: #716d66; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.project-card { display: grid; grid-template-columns: minmax(160px, .8fr) minmax(0, 1.2fr); min-height: 320px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); background: var(--paper-bright); }
.project-media { min-height: 100%; overflow: hidden; background: var(--black-soft); color: var(--paper); }
.project-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); transition: .35s ease; }
.project-card:hover .project-media img { filter: saturate(1); transform: scale(1.025); }
.project-code { display: flex; height: 100%; padding: 22px; align-items: flex-end; background: radial-gradient(circle at 70% 20%, #343434, #0f0f0f 58%); color: #777; font-family: var(--mono); }
.project-content { padding: clamp(25px, 3vw, 42px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.project-content h3 { margin: 20px 0 16px; }
.project-content p { color: #68645d; font-size: .9rem; }
.project-content .arrow-link { margin-top: auto; }
.empty-state { padding: 50px; border: 1px dashed #aaa; text-align: center; }
.empty-state code { padding: 3px 7px; background: #dedbd4; }

.latest-section { background: var(--black); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 54px 24px; }
.post-card { display: flex; min-width: 0; flex-direction: column; }
.post-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--black-soft); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); transition: .35s ease; }
.post-card:hover .post-card-media img { filter: grayscale(0); transform: scale(1.025); }
.post-card-content { padding-top: 24px; }
.post-card-content h3 { margin: 18px 0 16px; }
.post-card-content p { color: var(--muted); font-size: .9rem; }
.post-card-content .arrow-link { margin-top: 8px; }

.newsletter-section { background: var(--accent); color: white; }
.newsletter-section .eyebrow { color: rgba(255,255,255,.65); }
.newsletter-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(50px, 10vw, 150px); align-items: end; }
.newsletter-grid h2 { max-width: 780px; margin: 0; }
.newsletter-grid > div:last-child p { margin-bottom: 28px; font-size: 1.05rem; }

.archive-header { padding-bottom: 72px; }
.archive-header h1 { margin-bottom: 32px; }
.archive-header > div > p:last-child { max-width: 700px; color: var(--muted); font-size: 1.2rem; }
.archive-list-section { padding-top: 30px; }
.pagination { display: flex; margin-top: 80px; align-items: center; justify-content: center; gap: 24px; color: var(--muted); font-family: var(--mono); font-size: .7rem; text-transform: uppercase; }

.article-header { padding-bottom: 60px; }
.article-header h1 { margin-bottom: 34px; font-size: clamp(3.2rem, 7vw, 7rem); }
.article-header .card-meta { margin-bottom: 30px; }
.article-deck { max-width: 780px; color: var(--muted); font-family: var(--serif); font-size: clamp(1.3rem, 2.3vw, 1.8rem); line-height: 1.45; }
.article-hero { margin-top: 75px; }
.article-hero img { width: 100%; max-height: 780px; object-fit: cover; }
.article-hero figcaption { padding-top: 10px; color: var(--muted); font-size: .75rem; }
.reading-progress { position: fixed; top: 0; left: 0; z-index: 50; width: 100%; height: 3px; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.article-body { padding-bottom: clamp(80px, 10vw, 150px); }

.gh-content { font-family: var(--gh-font-body, var(--serif)); font-size: 1.13rem; line-height: 1.8; }
.gh-content > * { margin-top: 0; margin-bottom: 1.6em; }
.gh-content h2, .gh-content h3, .gh-content h4 { margin-top: 2.1em; margin-bottom: .8em; font-family: var(--sans); }
.gh-content h2 { font-size: clamp(2.1rem, 4vw, 3.7rem); }
.gh-content h3 { font-size: clamp(1.55rem, 2.5vw, 2.25rem); }
.gh-content a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.gh-content blockquote { margin: 2.4em 0; padding: 8px 0 8px 30px; border-left: 4px solid var(--accent); color: inherit; font-size: 1.35em; line-height: 1.45; }
.gh-content hr { margin-block: 4em; border: 0; border-top: 1px solid currentColor; opacity: .25; }
.gh-content pre { overflow-x: auto; padding: 24px; background: #171717; color: #f1efe9; font-family: var(--mono); font-size: .82rem; }
.gh-content code { font-family: var(--mono); }
.gh-content table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .88rem; }
.gh-content th, .gh-content td { padding: 12px; border-bottom: 1px solid currentColor; text-align: left; }
.gh-content .kg-width-wide { width: min(1100px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-image-card img, .gh-content .kg-gallery-image img { width: 100%; }
.gh-content .kg-gallery-container { gap: 10px; }
.gh-content .kg-button-card .kg-btn { border-radius: 100px; background: var(--accent); font-family: var(--sans); font-size: .85rem; text-decoration: none; }
.gh-content .kg-bookmark-card, .gh-content .kg-callout-card, .gh-content .kg-product-card { font-family: var(--sans); }
.gh-content .kg-signup-card { border: 1px solid rgba(128,128,128,.3); }

.home-editor .kg-gallery-card { margin-block: 60px; }
.home-editor .kg-gallery-image { display: grid; min-height: 120px; place-items: center; padding: 22px; background: white; border: 1px solid var(--line-light); }
.home-editor .kg-gallery-image img { max-height: 86px; object-fit: contain; }
.home-editor blockquote { display: inline-block; width: calc(50% - 20px); min-height: 280px; margin: 20px 14px 20px 0; padding: 34px; vertical-align: top; border: 1px solid var(--line-light); border-left: 5px solid var(--accent); background: var(--paper-bright); font-size: 1.05rem; }
.home-editor .hq-proof { margin-block: 70px; }
.home-editor .hq-partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.home-editor .partner-wordmark { display: grid; min-height: 150px; place-items: center; background: white; font-family: var(--sans); font-size: 1.35rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.home-editor .hq-testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.home-editor .hq-quote { margin: 0; padding: 34px; border: 1px solid var(--line-light); background: var(--paper-bright); }
.home-editor .hq-quote blockquote { display: block; width: auto; min-height: 0; margin: 0 0 26px; padding: 0; border: 0; background: transparent; font-size: 1.05rem; }
.home-editor .hq-quote cite { font-family: var(--sans); font-size: .76rem; font-style: normal; font-weight: 700; }
.home-editor .hq-quote cite span { display: block; color: #777; font-weight: 400; }

.tag-list { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 70px; }
.tag-list a { padding: 7px 12px; border: 1px solid var(--line-dark); border-radius: 100px; color: var(--muted); font-size: .72rem; }
.article-cta { padding: clamp(34px, 6vw, 70px); border: 1px solid var(--line-dark); }
.article-cta h2 { margin-bottom: 30px; font-size: clamp(2rem, 4vw, 3.6rem); }
.related-section { margin-top: 100px; border-top: 1px solid var(--line-dark); }
.page-article .article-body { min-height: 30vh; }
.wide-page .article-header h1 { max-width: 1100px; }
.error-page { min-height: 75vh; display: flex; align-items: center; }

.site-footer { padding-block: 70px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr auto; gap: 50px; align-items: start; }
.footer-brand { font-size: 1.2rem; font-weight: 750; }
.footer-grid p { max-width: 400px; margin-top: 10px; color: var(--muted); font-size: .85rem; }
.footer-nav .nav, .footer-nav .nav-list { margin: 0; padding: 0; columns: 2; list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a, .footer-meta { color: var(--muted); font-size: .76rem; }
.footer-nav a:hover { color: white; }
.footer-meta { display: flex; flex-direction: column; text-align: right; }

@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-index { max-width: 600px; }
    .spotlight-card { grid-template-columns: 1fr; }
    .spotlight-media { min-height: 460px; }
    .project-card { grid-template-columns: 1fr; }
    .project-media { min-height: 260px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-meta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (max-width: 900px) {
    .header-inner { min-height: 76px; }
    .menu-toggle { display: block; }
    .header-panel { position: fixed; inset: 76px 0 0; padding: 32px 24px 60px; display: none; align-items: stretch; flex-direction: column; background: var(--black); }
    .header-panel.is-open { display: flex; }
    .site-nav .nav, .site-nav .nav-list { align-items: stretch; flex-direction: column; gap: 0; }
    .site-nav li { border-bottom: 1px solid var(--line-dark); }
    .site-nav a { display: block; padding: 16px 0; font-size: 1.25rem; }
    .header-actions { margin-top: auto; justify-content: flex-start; }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .newsletter-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .shell { width: min(calc(100% - 30px), var(--shell)); }
    .section { padding-block: 72px; }
    h1 { font-size: clamp(3rem, 16vw, 5.2rem); }
    .hero { min-height: auto; }
    .hero-grid { gap: 64px; }
    .button-row { align-items: stretch; flex-direction: column; }
    .button-row .button { width: 100%; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .desktop-link { display: none; }
    .spotlight-media { min-height: 300px; }
    .project-grid, .post-grid { grid-template-columns: 1fr; }
    .project-card { min-height: 0; }
    .home-editor blockquote { display: block; width: 100%; min-height: 0; margin-inline: 0; }
    .home-editor .hq-partners, .home-editor .hq-testimonials { grid-template-columns: 1fr; }
    .gh-content { font-size: 1.05rem; }
    .gh-content .kg-width-wide { width: calc(100vw - 30px); }
    .article-header { padding-bottom: 34px; }
    .article-hero { width: 100%; margin-top: 40px; }
    .pagination { flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-meta { grid-column: auto; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Testimonial portraits */

.home-editor .hq-person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

.home-editor .hq-quote-photo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter 0.2s ease;
}

.home-editor .hq-quote:hover .hq-quote-photo {
    filter: grayscale(0);
}

.home-editor .hq-person cite {
    font-family: var(--sans);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4;
}

.home-editor .hq-person cite span {
    display: block;
    color: #777;
    font-weight: 400;
}