@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-roman.woff2') format('woff2');
}

@font-face {
    font-family: 'Lexend Deca';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/lexend-deca-latin.woff2') format('woff2');
}

:root.has-light-text {
    color-scheme: dark;
    --background-color: #0d0d0d;
    --aw-surface: #141414;
    --aw-raised: #1a1a1a;
    --aw-accent: #fea426;
    --ghost-accent-color: #fea426;
    --color-primary-text: #ededed;
    --color-darker-gray: #fafafa;
    --color-secondary-text: #a6a6a6;
    --color-border: #2b2b2b;
    --color-light-gray: #2b2b2b;
    --font-sans: Inter, system-ui, sans-serif;
    --gh-font-body: Inter, system-ui, sans-serif;
    --gh-font-heading: 'Lexend Deca', Inter, system-ui, sans-serif;
    --container-width: 1240px;
    --container-gap: clamp(20px, 4vw, 48px);
    --content-width: 740px;
    --content-font-size: 1.8rem;
}

body { background: var(--background-color); }
::selection { color: #0d0d0d; background: var(--aw-accent); }
a, button { -webkit-tap-highlight-color: transparent; }
a:hover { opacity: 1; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--aw-accent);
    outline-offset: 5px;
}
button { color: inherit; }
.aw-theme :is(h1, h2, h3, h4, h5, h6) { font-family: var(--gh-font-heading); font-weight: 500; }
.aw-shell { width: min(1240px, calc(100% - var(--container-gap) * 2)); margin-inline: auto; }
.aw-skip-link { position: fixed; top: -100px; left: 20px; z-index: 1000; padding: 12px 20px; color: #0d0d0d; background: var(--aw-accent); border-radius: 8px; }
.aw-skip-link:focus { top: 12px; }

/* Arcweave navigation */
.aw-header { position: relative; z-index: 20; border-bottom: 1px solid var(--color-border); background: var(--background-color); }
.aw-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 92px; }
.aw-brand, .aw-header-actions, .aw-menu { display: flex; align-items: center; }
.aw-brand { flex-shrink: 0; }
.aw-brand img { width: 281px; height: auto; }
.aw-menu { gap: 26px; font-size: 1.4rem; font-weight: 500; }
.aw-menu > a { white-space: nowrap; color: #bcbcbc; }
.aw-menu > a:hover, .aw-menu > a[aria-current] { color: #fff; }
.aw-header-actions { gap: 18px; }
.aw-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 14px 20px; border: 1px solid transparent; border-radius: 8px; background: var(--aw-accent); color: #0d0d0d; font-size: 1.4rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.aw-button:hover { background: #ffb64c; color: #0d0d0d; }
.aw-button > span { font-size: 1.9rem; line-height: 1; }
.aw-header .gh-search { display: inline-flex; padding: 10px; min-width: 44px; min-height: 44px; }
.aw-header .gh-search svg { width: 21px; height: 21px; }
/* Match the search iframe's initial canvas before its stylesheet loads. */
#sodo-search-root iframe { color-scheme: light; }
.aw-menu-toggle { display: none; border: 0; background: none; padding: 10px; width: 44px; height: 44px; cursor: pointer; }
.aw-menu-toggle svg { width: 24px; height: 24px; }
.aw-menu .aw-mobile-cta { display: none; }

/* Neutral category pills stay distinct from orange article-link hover states. */
.aw-tag { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 6px 10px; border-radius: 999px; background: #2b2b2b; color: #d5d5d5; font-size: 1.05rem; font-weight: 600; line-height: 1.35; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; transition: background-color 220ms ease; }
.aw-tag:hover { color: #d5d5d5; background: #353535; }

/* Home and archives */
.aw-intro { padding-block: 66px 46px; }
.aw-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--aw-accent); font-size: 1.15rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.aw-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--aw-accent); margin-right: 3px; }
.aw-intro h1 { font-size: clamp(3.8rem, 4.8vw, 6.6rem); letter-spacing: -.045em; line-height: 1.13; margin-top: 18px; }
.aw-intro h1 span { color: var(--aw-accent); }
.aw-intro > p:last-child { margin-top: 19px; color: #a6a6a6; font-size: 1.75rem; letter-spacing: -.015em; }
.aw-feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 36px; }
.aw-feature-image { display: block; min-width: 0; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--color-border); border-radius: 12px; background: var(--aw-raised); }
.aw-feature-image img { width: 100%; height: 100%; object-fit: cover; }
.aw-feature-copy { display: flex; flex-direction: column; align-items: flex-start; }
.aw-feature-copy .aw-eyebrow { letter-spacing: .065em; font-size: 1.05rem; flex-wrap: wrap; }
.aw-separator { margin-inline: 4px; color: #555; }
.aw-feature h2 { margin-top: 16px; font-size: 3.2rem; letter-spacing: -.032em; line-height: 1.23; }
.aw-feature h2 a { transition: color 220ms ease; }
.aw-feature h2 a:hover { color: var(--aw-accent); }
.aw-feature-excerpt { color: #a6a6a6; font-size: 1.5rem; line-height: 1.7; margin-top: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aw-byline { display: flex; flex-wrap: wrap; gap: 8px; font-size: 1.2rem; color: #a6a6a6; margin-top: 18px; }
.aw-byline a { color: #d5d5d5; }
.aw-read-link { display: inline-flex; gap: 32px; align-items: center; color: var(--aw-accent); font-size: 1.4rem; font-weight: 500; }
.aw-feature .aw-read-link { margin-top: 22px; }
.aw-read-link span { font-size: 2.2rem; }
.aw-latest { padding-top: 64px; }
.aw-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.aw-section-heading h2 { font-size: 2.7rem; letter-spacing: -.035em; }
.aw-section-heading > a { color: #a6a6a6; font-size: 1.3rem; white-space: nowrap; }
.aw-section-heading > a:hover { color: var(--aw-accent); }
.aw-topics { display: flex; gap: 9px; overflow-x: auto; padding: 4px 3px 18px; margin: 0 -3px 22px; scrollbar-width: thin; scrollbar-color: #414141 transparent; }
.aw-topics a { flex-shrink: 0; padding: 8px 15px; border: 1px solid #303030; border-radius: 7px; color: #bcbcbc; font-size: 1.3rem; text-transform: capitalize; }
.aw-topics a:hover { border-color: #666; color: white; }
.aw-topics a[aria-current] { background: var(--aw-accent); color: #0d0d0d; border-color: var(--aw-accent); font-weight: 600; }
.aw-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.aw-card { position: relative; isolation: isolate; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: 12px; background: var(--aw-surface); transition: background-color 220ms ease; }
.aw-card:is(:hover, :focus-within) { background: var(--aw-raised); }
.aw-card:is(:hover, :focus-within) .aw-card-link { color: var(--aw-accent); }
.aw-card-image { aspect-ratio: 16 / 9; background: var(--aw-raised); border-radius: 11px 11px 0 0; overflow: hidden; }
.aw-card-image img { width: 100%; height: 100%; object-fit: cover; }
.aw-card-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 24px; }
/* The title link covers the card; the category stays a separate link above it. */
.aw-card-link { transition: color 220ms ease; }
.aw-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.aw-card-link:focus-visible { outline: none; }
.aw-card-link:focus-visible::after { outline: 2px solid var(--aw-accent); outline-offset: 4px; }
.aw-card-tag { position: relative; z-index: 2; }
.aw-card h3 { font-size: 2.1rem; letter-spacing: -.025em; line-height: 1.35; margin-top: 10px; }
.aw-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; color: #a6a6a6; font-size: 1.2rem; }
.aw-pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin-top: 54px; padding-block: 28px; border-top: 1px solid var(--color-border); font-size: 1.35rem; }
.aw-pagination > span { color: #a6a6a6; font-size: 1.2rem; }
.aw-pagination > div:last-child { text-align: right; }
.aw-pagination a:hover { color: var(--aw-accent); }
.aw-archive { padding-top: 64px; }
.aw-archive-heading { margin-bottom: 40px; }
.aw-archive-heading h1 { font-size: clamp(3.4rem, 4vw, 5.2rem); margin-top: 20px; letter-spacing: -.04em; }
.aw-archive-heading p:not(.aw-eyebrow) { max-width: 700px; margin-top: 18px; color: #a6a6a6; font-size: 1.7rem; }
.aw-topic-title { text-transform: capitalize; }
.aw-author-heading { display: flex; gap: 28px; align-items: center; }
.aw-author-heading > img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; }
.aw-author-heading .aw-read-link { margin-top: 16px; }

/* Reading layouts and native Ghost cards */
.aw-article { --container-width: 1120px; }
.aw-article .gh-article-header { margin-block: 44px 44px; }
.aw-article-navigation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.aw-back-link { font-size: 1.25rem; color: #a6a6a6; }
.aw-back-link:hover { color: var(--aw-accent); }
.aw-article .gh-article-title { font-size: clamp(3.4rem, 3.6vw, 4.8rem); font-weight: 500; letter-spacing: -.036em; line-height: 1.17; }
.aw-article-subtitle { margin-top: 16px; color: #bcbcbc; font-size: 2.1rem; line-height: 1.55; }
.aw-article-byline { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 26px 0; }
.aw-article-author { display: flex; align-items: center; gap: 12px; min-width: 0; }
.aw-author-avatar { display: block; flex: 0 0 40px; border-radius: 50%; }
.aw-author-avatar img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.aw-author-details { min-width: 0; }
.aw-author-name { font-size: 1.4rem; font-weight: 500; }
.aw-article-date { display: flex; flex-wrap: wrap; gap: 9px; color: #a6a6a6; font-size: 1.25rem; margin-top: 4px; }
.aw-share { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; border: 1px solid #414141; border-radius: 7px; padding: 8px 14px; background: transparent; cursor: pointer; white-space: nowrap; }
.aw-share svg { width: 15px; height: 15px; transform: rotate(-45deg); }
.aw-article .gh-article-image { grid-column: main; margin: 0 0 28px; }
.gh-feature-image { border-radius: 12px; border: 1px solid var(--color-border); cursor: default; }
.gh-content { line-height: 1.85; color: #d5d5d5; }
.gh-content > * { min-width: 0; }
.gh-content :is(h2, h3, h4, h5, h6) { color: #fafafa; line-height: 1.3; letter-spacing: -.025em; }
.gh-content h2 { font-size: 2.9rem; }
.gh-content h3 { font-size: 2.3rem; }
.gh-content a:not(.kg-btn, .kg-bookmark-container, .kg-file-card-container) { color: var(--aw-accent); text-decoration-color: #9d6820; text-underline-offset: 4px; }
.gh-content a:hover { text-decoration-color: var(--aw-accent); }
.gh-content :is(blockquote, blockquote:not([class])) { color: #ededed; font-family: var(--font-sans); font-size: 2rem; font-style: normal; background: var(--aw-surface); border-left: 3px solid var(--aw-accent); border-radius: 0 8px 8px 0; padding: 22px 28px; }
.gh-content blockquote::before { display: none; }
.gh-content :is(pre, code) { background: #1a1a1a; color: #ffd699; border-radius: 5px; }
.gh-content pre { border: 1px solid var(--color-border); padding: 24px; font-size: 1.4rem; overflow-x: auto; }
.gh-content pre code { padding: 0; white-space: pre; }
.gh-content :is(img, video, iframe) { max-width: 100%; }
.gh-content :is(.kg-image, video, .kg-embed-card > iframe) { border-radius: 8px; }
.gh-content figcaption, .gh-article-image figcaption { color: #a6a6a6; font-size: 1.3rem; line-height: 1.6; }
/* Native heading/list snippets remain editable in Ghost's visual editor. */
.gh-content > h2#key-takeaways { margin-bottom: 0; padding: 22px 26px 8px; border: 1px solid var(--color-border); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--aw-surface); font-size: 1.9rem; letter-spacing: 0; }
.gh-content > h2#key-takeaways + ul { margin-top: 0; padding: 0 26px 24px 48px; border: 1px solid var(--color-border); border-top: 0; border-radius: 0 0 10px 10px; background: var(--aw-surface); font-size: 1.6rem; line-height: 1.7; }
.gh-content > h2#key-takeaways + ul > li + li { margin-top: 8px; }
.gh-content > h2#key-takeaways + ul > li::marker { color: var(--aw-accent); }
/* A quotation followed by an image with a credit forms a testimonial. */
.gh-content > blockquote:has(+ figure.kg-image-card.kg-card-hascaption) { margin-bottom: 0; border-radius: 0 8px 0 0; padding-bottom: 0; }
.gh-content > blockquote:has(+ figure.kg-image-card.kg-card-hascaption) :is(h2, h3) { font-family: inherit; font-size: inherit; line-height: inherit; letter-spacing: normal; }
/* Source marks spacing after blockquotes important; join only credited image cards. */
.aw-article .gh-content > blockquote + figure.kg-image-card.kg-card-hascaption { display: flex; align-items: center; gap: 18px; margin-top: 0 !important; padding: 22px 28px; border-left: 3px solid var(--aw-accent); border-radius: 0 0 8px 0; background: var(--aw-surface); }
.gh-content > blockquote + figure.kg-image-card.kg-card-hascaption img { flex: 0 0 96px; width: 96px; height: 96px; margin: 0; object-fit: contain; border-radius: 8px; }
.gh-content > blockquote + figure.kg-image-card.kg-card-hascaption figcaption { flex: 1; min-width: 0; margin: 0; padding: 0; text-align: left; }
.gh-content :is(table, .gh-table) { width: 100%; }
.gh-content .gh-table { overflow-x: auto; border: 1px solid var(--color-border); border-radius: 8px; }
.gh-content table, .gh-content .gh-table table { font-size: 1.45rem; border-collapse: collapse; white-space: normal; word-break: normal; }
/* Override Source's tighter cells and zero padding on the outer columns. */
.gh-content :is(th, td), .aw-theme .gh-content .gh-table table :is(th, td) { border-color: #353535; padding: 12px 16px; vertical-align: top; }
.gh-content th, .gh-content .gh-table table th { color: #fafafa; background: #1a1a1a; }
.gh-content td { background: #141414; }
.gh-content hr { border-color: var(--color-border); }
.gh-content :is(.kg-bookmark-container, .kg-file-card-container, .kg-audio-card, .kg-toggle-card) { background: var(--aw-surface); color: #ededed; border-color: var(--color-border); }
.gh-content .kg-bookmark-description { color: #a6a6a6; }
.gh-content .kg-callout-card:not([class*="kg-callout-card-"]) { background: #1a1a1a; }
.gh-content [id] { scroll-margin-top: 28px; }
.aw-article-footer { padding-block: 44px 0; }
.aw-article-footer > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 28px; border-top: 1px solid var(--color-border); font-size: 1.2rem; }
.aw-article-footer span { color: #a6a6a6; margin-right: 8px; }
.aw-article-footer .aw-tag { font-size: 1.1rem; letter-spacing: 0; text-transform: capitalize; }
.aw-related { padding-top: 72px; }

/* Product invitation and footer */
.aw-footer { margin-top: 80px; background: var(--aw-surface); border-top: 1px solid var(--color-border); }
.aw-footer-top { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-block: 56px; border-bottom: 1px solid var(--color-border); }
.aw-footer-top h2 { font-size: clamp(2.6rem, 3vw, 3.6rem); letter-spacing: -.035em; margin-top: 14px; }
.aw-footer-top p:last-child { color: #a6a6a6; margin-top: 14px; font-size: 1.4rem; }
.aw-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-block: 30px; font-size: 1.2rem; color: #a6a6a6; }
.aw-footer-bottom img { width: 148px; }
.aw-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 24px; }
.aw-footer-bottom nav a { color: #bcbcbc; }
.aw-footer-bottom nav a:hover { color: var(--aw-accent); }

@media (prefers-reduced-motion: reduce) {
    .aw-card, .aw-card-link, .aw-feature h2 a, .aw-tag { transition: none; }
}

@media (max-width: 1150px) {
    .aw-header-inner { gap: 22px; }
    .aw-menu { gap: 18px; font-size: 1.3rem; }
    .aw-brand img { width: 230px; }
    .aw-header-actions { gap: 10px; }
    .aw-header .aw-button { padding-inline: 14px; gap: 12px; font-size: 1.3rem; }
}

@media (max-width: 1000px) {
    .aw-header-inner { min-height: 78px; }
    .aw-menu-toggle { display: block; }
    .aw-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 22px var(--container-gap) 30px; background: #141414; border-bottom: 1px solid #353535; box-shadow: 0 18px 30px #0006; align-items: flex-start; flex-direction: column; gap: 0; }
    .aw-menu > a { width: 100%; padding-block: 13px; font-size: 1.6rem; }
    .aw-header.is-open .aw-menu { display: flex; }
    .aw-intro { padding-top: 48px; }
    .aw-feature { grid-template-columns: 1fr; gap: 26px; }
    .aw-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
    .aw-footer-bottom { flex-wrap: wrap; }
}

@media (max-width: 640px) {
    .aw-header-inner { min-height: 72px; gap: 12px; }
    .aw-brand img { width: clamp(160px, 50vw, 210px); }
    .aw-header-actions { gap: 2px; }
    .aw-desktop-cta { display: none; }
    .aw-menu .aw-mobile-cta { display: inline-flex; width: auto; color: #0d0d0d; margin-top: 14px; }
    .aw-intro { padding-block: 38px 30px; }
    .aw-intro h1 { max-width: 350px; font-size: 4.2rem; margin-top: 16px; }
    .aw-intro > p:last-child { font-size: 1.5rem; line-height: 1.7; margin-top: 16px; }
    .aw-feature { gap: 24px; }
    .aw-feature h2 { font-size: 2.6rem; margin-top: 16px; }
    .aw-feature-excerpt { font-size: 1.4rem; -webkit-line-clamp: 2; }
    .aw-byline { font-size: 1.1rem; margin-top: 18px; }
    .aw-feature .aw-read-link { margin-top: 22px; }
    .aw-latest { padding-top: 40px; }
    .aw-section-heading { margin-bottom: 20px; }
    .aw-section-heading h2 { font-size: 2.3rem; }
    .aw-topics { margin-bottom: 16px; }
    .aw-topics a { padding: 7px 12px; font-size: 1.2rem; }
    .aw-post-grid { grid-template-columns: 1fr; gap: 36px; }
    .aw-card-copy { padding: 20px; }
    .aw-pagination { gap: 8px; margin-top: 36px; font-size: 1.15rem; }
    .aw-pagination > span { font-size: 1.05rem; }
    .aw-archive { padding-top: 38px; }
    .aw-archive-heading { margin-bottom: 28px; }
    .aw-author-heading { align-items: flex-start; gap: 20px; }
    .aw-author-heading > img { width: 56px; height: 56px; }
    .aw-article .gh-article-header { margin-block: 28px 30px; }
    .aw-article .gh-article-title { font-size: 3.3rem; }
    .aw-article-subtitle { font-size: 1.8rem; }
    .aw-article .gh-article-image { margin-bottom: 24px; }
    .aw-article-byline { align-items: flex-start; gap: 14px; }
    .aw-article-date { font-size: 1.15rem; }
    .aw-share { padding: 7px 10px; font-size: 1.15rem; }
    .gh-content { font-size: 1.65rem; line-height: 1.8; }
    .gh-content h2 { font-size: 2.6rem; }
    .gh-content h3 { font-size: 2.15rem; }
    .gh-content :is(blockquote, blockquote:not([class])) { padding: 18px 20px; font-size: 1.8rem; }
    .gh-content > h2#key-takeaways { padding: 18px 20px 8px; }
    .gh-content > h2#key-takeaways + ul { padding: 0 20px 20px 42px; font-size: 1.5rem; }
    .gh-content > blockquote:has(+ figure.kg-image-card.kg-card-hascaption) { padding-bottom: 0; }
    .aw-article .gh-content > blockquote + figure.kg-image-card.kg-card-hascaption { gap: 14px; padding: 18px 20px; }
    .gh-content > blockquote + figure.kg-image-card.kg-card-hascaption img { flex-basis: 72px; width: 72px; height: 72px; }
    .gh-content :is(th, td), .aw-theme .gh-content .gh-table table :is(th, td) { padding: 10px 12px; }
    .aw-related { padding-top: 48px; }
    .aw-footer { margin-top: 48px; }
    .aw-footer-top { flex-direction: column; align-items: flex-start; gap: 26px; padding-block: 36px; }
    .aw-footer-bottom { flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 28px; }
    .aw-footer-bottom nav { gap: 20px; }
}
