@font-face {
    font-family: "Chakra Petch";
    src: url("../fonts/ChakraPetch-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Chakra Petch";
    src: url("../fonts/ChakraPetch-SemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
:root {
    --bg: #1a1a1a;
    --bg-deep: #101010;
    --surface: #222222;
    --surface-light: #2a2a2a;
    --paper: #f2f1ed;
    --text: #f5f4ef;
    --muted: #aaa9a5;
    --ink: #171717;
    --line: #393939;
    --accent: #ff5ca8;
    --accent-2: #f3df58;
    --shell: 1180px;
    --narrow: 900px;
    --wide: 1320px;
    --display: "Chakra Petch", Consolas, "Lucida Console", monospace;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 1.6rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .025;
    z-index: 100;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }
.site-frame { min-height: 100vh; overflow: clip; }
.shell, .shell-narrow, .shell-wide, .shell-content {
    width: calc(100% - 48px);
    margin-inline: auto;
}
.shell { max-width: var(--shell); }
.shell-narrow { max-width: var(--narrow); }
.shell-wide { max-width: var(--wide); }
.shell-content { max-width: 760px; }
.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, .story-kicker {
    margin: 0;
    color: var(--accent);
    font-size: 1.2rem;
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid transparent;
    font-size: 1.35rem;
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: transform .18s ease, background .18s ease;
}
.button:hover { transform: translate(-2px, -2px); }
.button-accent { background: var(--accent); color: var(--ink); box-shadow: 4px 4px 0 var(--accent-2); }
.button-follow { min-height: 40px; border-color: var(--line); color: var(--text); text-transform: none; }
.button-follow:hover { border-color: var(--accent); color: var(--accent); }
.button-light { border-color: var(--accent); background: transparent; color: var(--accent); box-shadow: none; }
.button-light:hover { background: var(--accent); color: var(--ink); }

/* Header */
.site-header { background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.header-main {
    min-height: 96px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
.wordmark {
    display: inline-flex;
    align-items: center;
    font-family: var(--display);
    font-size: clamp(2.2rem, 3.2vw, 3.6rem);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: 1;
}
.wordmark-prompt, .wordmark-cursor { color: var(--accent); }
.wordmark-prompt { margin-right: 4px; color: var(--accent-2); }
.wordmark-cursor { animation: cursor-blink 1.15s steps(1) infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 24px; }
.header-login { font-size: 1.35rem; font-weight: 800; }
.header-login:hover { color: var(--accent); }
.menu-toggle {
    justify-self: start;
    width: 44px;
    height: 44px;
    padding: 12px 9px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: currentColor; transition: .2s ease; }
.navigation-bar { background: var(--surface); border-top: 1px solid var(--line); }
.site-navigation { min-height: 54px; display: flex; align-items: center; gap: 28px; }
.site-navigation .nav { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.site-navigation a, .search-button {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 750;
    transition: color .15s ease;
}
.site-navigation a:hover, .site-navigation .nav-current a { color: var(--accent); }
.nav-home { color: var(--accent-2); }
.search-button {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    padding: 8px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.search-icon { width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px; background: currentColor; transform: rotate(45deg); }

/* Home */
.intro-strip { border-bottom: 1px solid var(--line); }
.intro-strip-inner { min-height: 52px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.intro-strip p { margin: 0; font-family: var(--serif); font-style: italic; color: #d7d6d1; }
.quote-rotator {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    max-width: 62%;
    padding: 10px 14px;
    border-left: 3px solid var(--accent);
    background: linear-gradient(90deg, rgba(255, 92, 168, .1), rgba(255, 92, 168, .025));
    font-family: var(--display);
}
.quote-prefix { flex: 0 0 auto; color: var(--accent); font-size: 1.05rem; font-weight: 600; }
.quote-text { color: var(--text); font-size: 1.45rem; font-style: normal; font-weight: 600; line-height: 1.35; text-align: left; transition: opacity .24s ease, transform .24s ease; }
.quote-text::before, .quote-text::after { color: var(--accent-2); }
.quote-rotator.is-changing .quote-text { opacity: 0; transform: translateY(4px); }
.lead-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: 22px; padding-block: 24px 52px; }
.lead-primary { padding-right: 22px; border-right: 1px solid var(--line); }
.image-link { display: block; overflow: hidden; background: #080808; }
.image-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .3s ease; }
.image-link:hover img { transform: scale(1.025); opacity: .88; }
.lead-image { aspect-ratio: 16 / 9; }
.image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 220px; background: radial-gradient(circle at 50% 45%, #2f2f2f, #080808 66%); }
.image-placeholder b { color: var(--accent); font-family: var(--display); font-size: clamp(8rem, 17vw, 18rem); font-style: italic; line-height: 1; text-shadow: 8px 8px 0 rgba(243,223,88,.16); }
.lead-copy { position: relative; margin: -1px 28px 0; padding: 25px 28px 10px; background: var(--bg); }
.story-kicker { display: flex; align-items: center; gap: 14px; }
.story-kicker > * + * { color: var(--muted); }
.story-kicker a:hover { text-decoration: underline; }
.lead-copy h1, .side-story h2, .story-card h3, .section-heading h2, .archive-header h1, .error-page h1 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1.02;
}
.lead-copy h1 { max-width: 850px; margin: 13px 0 14px; font-size: clamp(3.4rem, 5.1vw, 6.8rem); }
.lead-copy h1 a:hover, .side-story h2 a:hover, .story-card h3 a:hover { color: var(--accent); }
.lead-excerpt { max-width: 680px; margin: 0 0 20px; color: #d3d2ce; font-size: 1.75rem; line-height: 1.45; }
.lead-quote { max-width: 680px; margin: 0 0 22px; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); }
.lead-quote p { margin: 0; color: var(--text); font-family: var(--serif); font-size: 1.8rem; font-style: italic; line-height: 1.45; }
.story-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; color: var(--muted); font-size: 1.1rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.story-meta strong { color: var(--text); }
.lead-secondary { display: flex; flex-direction: column; gap: 0; }
.side-story { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.side-image { aspect-ratio: 16 / 9; margin-bottom: 18px; }
.side-story h2 { margin: 10px 0 12px; font-size: clamp(2.2rem, 2.2vw, 3rem); line-height: 1.06; }
.editor-note { position: relative; min-height: 320px; padding: 40px 34px; overflow: hidden; background: var(--surface); color: var(--text); border-top: 6px solid var(--accent-2); }
.editor-note .eyebrow { color: var(--accent); }
.editor-note h2 { position: relative; margin: 12px 0 18px; font-family: var(--display); font-size: clamp(3.2rem, 4vw, 5.4rem); letter-spacing: -.055em; line-height: .95; }
.editor-note p:last-child { position: relative; max-width: 32ch; color: #d2d1cc; font-family: var(--serif); font-size: 1.8rem; line-height: 1.5; }
.editor-note-mark { position: absolute; right: -24px; bottom: -65px; color: rgba(255,255,255,.025); font-family: var(--display); font-size: 32rem; font-style: italic; line-height: 1; }
.latest, .related { padding-bottom: 72px; }
.latest:not(:has(.story-card)) { display: none; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0 14px; border-top: 5px solid var(--text); border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-size: clamp(3rem, 4vw, 5rem); }
.section-heading span { color: var(--accent); font-size: 1.2rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; padding-top: 24px; }
.story-card { min-width: 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.card-image { aspect-ratio: 16 / 10; margin-bottom: 18px; }
.story-card h3 { margin: 10px 0 12px; font-size: 2.7rem; }
.story-card .card-copy > p:not(.story-meta) { margin: 0 0 16px; color: #c4c3bf; font-family: var(--serif); font-size: 1.55rem; }
.pagination { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 800; }

/* Article */
.article { padding-top: 68px; }
.article-header { text-align: center; }
.article-kicker { justify-content: center; }
.article-header h1 { max-width: 900px; margin: 18px auto; font-family: var(--display); font-size: clamp(4.8rem, 8.2vw, 9.6rem); letter-spacing: -.065em; line-height: .93; }
.article-deck { max-width: 720px; margin: 24px auto; color: #d0cfcb; font-family: var(--serif); font-size: clamp(2rem, 2.6vw, 2.8rem); line-height: 1.38; }
.article-byline { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 30px 0 48px; }
.article-byline img { width: 44px; height: 44px; border: 2px solid var(--accent); border-radius: 50%; object-fit: cover; }
.article-byline p { margin: 0; color: var(--muted); font-size: 1.2rem; line-height: 1.45; text-transform: uppercase; }
.article-byline a { color: var(--text); font-weight: 850; }
.article-feature { max-width: 1000px; margin-bottom: 64px; }
.article-feature img { width: 100%; max-height: 760px; object-fit: cover; }
.article-feature figcaption { max-width: 900px; margin: 9px auto 0; color: var(--muted); font-size: 1.2rem; }
.article-layout { position: relative; display: grid; grid-template-columns: 60px 30px minmax(0, 720px) 90px; }
.article-layout .gh-content { grid-column: 3; grid-row: 1; width: 100%; max-width: 720px; margin-inline: 0; }
.article-rail { position: absolute; top: 50%; left: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; width: 60px; color: var(--accent); font-size: 1rem; font-weight: 900; letter-spacing: .12em; writing-mode: vertical-rl; transform: translateY(-50%); }
.rail-line { width: 1px; height: 90px; background: var(--line); }
.gh-content { min-width: 0; color: #e5e3de; font-family: var(--serif); font-size: 1.95rem; line-height: 1.75; }
.gh-content > * { margin-top: 0; margin-bottom: 1.6em; }
.gh-content h2, .gh-content h3, .gh-content h4 {
    margin-top: 1.8em;
    margin-bottom: .65em;
    color: var(--text);
    font-family: var(--sans);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.08;
}
.gh-content h2 { font-size: 3.8rem; }
.gh-content h3 { font-size: 2.8rem; }
.gh-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gh-content strong { color: var(--text); }
.gh-content blockquote { margin-inline: 0; padding: 22px 0 22px 28px; border-left: 6px solid var(--accent); color: var(--text); font-size: 1.25em; font-style: italic; line-height: 1.45; }
.gh-content hr { height: 1px; margin-block: 3em; border: 0; background: var(--line); }
.gh-content ul, .gh-content ol { padding-left: 1.4em; }
.gh-content li { margin-bottom: .6em; }
.gh-content img { width: 100%; height: auto; }
.gh-content figcaption { color: var(--muted); font-family: var(--sans); font-size: 1.2rem; text-align: center; }
.gh-content pre { overflow-x: auto; padding: 22px; background: #0d0d0d; border: 1px solid var(--line); font-size: 1.4rem; }
.gh-content code { font-size: .86em; }
.gh-content .kg-width-wide { width: min(1050px, 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-card { font-family: var(--sans); }
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; gap: 8px; }
.kg-gallery-image { flex: 1 1 0; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-bookmark-card { width: 100%; }
.kg-bookmark-container {
    display: flex;
    min-height: 150px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    text-decoration: none !important;
}
.kg-bookmark-content { display: flex; flex: 1; flex-direction: column; justify-content: center; min-width: 0; padding: 22px; }
.kg-bookmark-title { font-family: var(--sans); font-size: 1.8rem; font-weight: 850; line-height: 1.2; }
.kg-bookmark-description { display: -webkit-box; overflow: hidden; margin-top: 8px; color: var(--muted); font-family: var(--sans); font-size: 1.35rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: #d2d1cc; font-family: var(--sans); font-size: 1.1rem; }
.kg-bookmark-icon { width: 20px; height: 20px; }
.kg-bookmark-author::after { content: "•"; margin-left: 8px; color: var(--accent); }
.kg-bookmark-publisher { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kg-bookmark-thumbnail { position: relative; flex: 0 0 34%; min-width: 150px; }
.kg-bookmark-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-footer { max-width: 720px; margin-top: 68px; padding-left: 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.article-tags a { padding: 7px 11px; background: var(--surface-light); color: var(--accent-2); font-size: 1.1rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.author-card { display: grid; grid-template-columns: 80px 1fr; gap: 22px; align-items: center; padding-block: 34px 68px; }
.author-card > img, .author-monogram { width: 80px; height: 80px; border-radius: 50%; }
.author-card > img { object-fit: cover; }
.author-monogram { display: grid; place-items: center; background: var(--accent); color: var(--ink); font-family: var(--display); font-size: 4rem; }
.author-card h2 { margin: 5px 0; font-size: 2.5rem; }
.author-card div > p:last-child { margin: 4px 0 0; color: var(--muted); }
.article-comments { max-width: 720px; padding: 46px 0 80px; border-top: 1px solid var(--line); }
.page-article .article-header { margin-bottom: 48px; }
.page-article .gh-content { padding-bottom: 80px; }

/* Archive and footer */
.archive-page { padding-block: 56px 80px; }
.archive-header { margin-bottom: 28px; padding-bottom: 30px; border-bottom: 5px solid var(--text); }
.archive-header h1 { margin: 10px 0; font-size: clamp(5rem, 9vw, 10rem); }
.archive-header > p:last-child { max-width: 680px; color: var(--muted); font-family: var(--serif); font-size: 2rem; }
.author-header { display: flex; align-items: center; gap: 30px; }
.author-header > img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }
.site-footer { margin-top: 32px; background: var(--surface); color: var(--text); border-top: 1px solid var(--line); }
.footer-cta { min-height: 210px; display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-block: 42px; }
.footer-cta .eyebrow { color: var(--accent); }
.footer-cta h2 { max-width: 650px; margin: 8px 0; font-family: var(--display); font-size: clamp(3rem, 4.2vw, 5rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; }
.footer-cta p:last-child { margin: 14px 0 0; color: var(--muted); font-family: var(--serif); font-size: 1.7rem; }
.footer-base { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 74px; border-top: 1px solid var(--line); color: var(--muted); font-size: 1.15rem; }
.footer-brand { color: var(--text); font-family: var(--display); font-size: 2rem; letter-spacing: -.04em; }
.footer-brand span { color: var(--accent); }
.footer-privacy { margin-left: 8px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-privacy:hover { color: var(--accent); }
.footer-powered { justify-self: end; }
.footer-powered a { text-decoration: underline; }
.error-page { min-height: 58vh; padding-block: 90px; }
.error-page h1 { max-width: 1000px; margin: 12px 0; font-size: clamp(5rem, 9vw, 11rem); }
.error-page > p:not(.eyebrow) { margin-bottom: 30px; color: var(--muted); font-family: var(--serif); font-size: 2.2rem; }

@media (max-width: 900px) {
    .lead-layout { grid-template-columns: 1fr; }
    .lead-primary { padding-right: 0; padding-bottom: 24px; border-right: 0; border-bottom: 1px solid var(--line); }
    .lead-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .editor-note { grid-column: 1 / -1; min-height: 320px; }
    .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout { grid-template-columns: 1fr; }
    .article-rail { display: none; }
    .article-footer { padding-left: 0; }
}

@media (max-width: 760px) {
    .shell, .shell-narrow, .shell-wide, .shell-content { width: calc(100% - 30px); }
    .header-main { min-height: 76px; grid-template-columns: 44px 1fr auto; gap: 10px; }
    .wordmark { justify-self: center; font-size: 2.5rem; }
    .header-login { display: none; }
    .header-actions { gap: 0; }
    .header-actions .button { min-height: 38px; padding-inline: 13px; font-size: 1.05rem; box-shadow: none; }
    .navigation-bar { display: none; }
    .menu-open .navigation-bar { display: block; }
    .site-navigation { align-items: stretch; flex-direction: column; gap: 0; padding-block: 12px; }
    .site-navigation .nav { align-items: stretch; flex-direction: column; gap: 0; }
    .site-navigation a, .search-button { width: 100%; padding: 13px 4px; border-bottom: 1px solid var(--line); }
    .search-button { margin-left: 0; }
    .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
    .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .intro-strip-inner { min-height: 46px; }
    .intro-strip-inner { align-items: flex-start; flex-direction: column; gap: 5px; padding-block: 11px; }
    .quote-rotator { align-items: flex-start; flex-direction: column; justify-content: flex-start; gap: 3px; width: 100%; max-width: 100%; padding: 9px 12px; }
    .quote-text { font-size: 1.3rem; text-align: left; }
    .lead-layout { padding-top: 15px; }
    .lead-copy { margin-inline: 10px; padding: 18px 10px 0; }
    .lead-copy h1 { font-size: 4rem; }
    .lead-excerpt { font-size: 1.6rem; }
    .lead-secondary, .story-grid { grid-template-columns: 1fr; }
    .side-story { display: grid; grid-template-columns: 110px 1fr; column-gap: 14px; }
    .side-story .side-image { grid-row: 1 / 4; margin-bottom: 0; aspect-ratio: 1 / 1; }
    .side-story h2 { margin: 6px 0 10px; font-size: 2.1rem; }
    .editor-note { grid-column: auto; }
    .article { padding-top: 45px; }
    .article-header h1 { font-size: 4.8rem; }
    .article-deck { font-size: 2rem; }
    .article-feature { margin-bottom: 42px; }
    .gh-content { font-size: 1.75rem; line-height: 1.7; }
    .gh-content h2 { font-size: 3.1rem; }
    .kg-bookmark-thumbnail { flex-basis: 28%; min-width: 110px; }
    .author-card { grid-template-columns: 60px 1fr; }
    .author-card > img, .author-monogram { width: 60px; height: 60px; }
    .footer-cta { align-items: flex-start; flex-direction: column; }
    .footer-base { grid-template-columns: 1fr; gap: 4px; padding-block: 22px; }
    .footer-powered { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
