/* Base X Tech blog, design v2. Layout of the blog pages only; the header, menu, modal and footer come from
   assets/v2/v2.css (generated from the site). Tokens mirror the site (src/styles/v2.scss): dark #040507,
   light #ededed, accent #B5DC4A, Host Grotesk ("TWKEverettV2") for text, Onest for headings. Post content keeps
   Ghost's card styles from built/screen.css (Source) with v2 type and colours on top. */

:root {
    --font-sans: 'TWKEverettV2', system-ui, sans-serif;
    --font-serif: 'TWKEverettV2', system-ui, sans-serif;
    --gh-font-heading: 'Onest', 'TWKEverettV2', system-ui, sans-serif;
    --gh-font-body: 'TWKEverettV2', system-ui, sans-serif;
    --color-darker-gray: #121314;
    --color-secondary-text: #5e5e5e;
    --color-light-gray: #dcdcdc;
    --color-border: rgba(0, 0, 0, .12);
    --ghost-accent-color: #B5DC4A;
    --bx-ink: #121314;
    --bx-soft: #5e5e5e;
    --bx-light: #ededed;
    --bx-dark: #040507;
    --bx-panel: #101113;
    --bx-accent: #B5DC4A;
    --bx-head: 'Onest', 'TWKEverettV2', system-ui, sans-serif;
    --bx-pad: 24px;
}
@media (min-width: 1024px) { :root { --bx-pad: 40px; } }

body.v2.bx-blog { font-family: var(--font-sans); }
body.v2.bx-blog .bx-blog__main { display: block; }
body.v2.bx-blog h1, body.v2.bx-blog h2, body.v2.bx-blog h3 { letter-spacing: -.02em; }

/* ---------- hero (home, tag, author) */
body.v2 .bx-hero { padding: 88px var(--bx-pad) 56px; background: var(--bx-dark); color: #f5f5f5; border-bottom: 1px solid rgba(255, 255, 255, .14); }
@media (min-width: 1024px) { body.v2 .bx-hero { padding: 120px var(--bx-pad) 72px; } }
body.v2 .bx-hero__tag { margin-bottom: 24px; }
body.v2 .bx-hero__title { max-width: 900px; font-family: var(--bx-head); font-weight: 300; font-size: clamp(44px, 6vw, 84px); line-height: .96; letter-spacing: -.03em; }
body.v2 .bx-hero__text { max-width: 560px; margin-top: 24px; font-size: 18px; line-height: 1.4; font-weight: 300; color: #cfcfcf; }

/* ---------- feed */
body.v2 .bx-feed { padding: 48px var(--bx-pad) 72px; background: var(--bx-light); color: var(--bx-ink); }
@media (min-width: 1024px) { body.v2 .bx-feed { padding: 64px var(--bx-pad) 96px; } }
body.v2 .bx-feed__title { margin-bottom: 32px; font-family: var(--bx-head); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; }
body.v2 .bx-feed__grid { display: grid; gap: 16px; }
@media (min-width: 700px) { body.v2 .bx-feed__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { body.v2 .bx-feed__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

body.v2 .bx-card { position: relative; min-width: 0; }
body.v2 .bx-card__link { display: flex; flex-direction: column; height: 100%; border-radius: 12px; background: #fff; color: inherit; text-decoration: none; overflow: hidden; transition: box-shadow .2s, transform .2s; }
body.v2 .bx-card__link:hover, body.v2 .bx-card__link:focus-visible { box-shadow: 0 10px 30px rgba(0, 0, 0, .08); transform: translateY(-2px); }
body.v2 .bx-card__link:focus-visible { outline: 2px solid var(--bx-accent); outline-offset: 2px; }
body.v2 .bx-card__media { position: relative; margin: 0; aspect-ratio: 40 / 21; /* post covers are 1200×630-ish share images: show them whole */ background: #1e2022; overflow: hidden; }
body.v2 .bx-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.v2 .bx-card__placeholder { display: flex; align-items: flex-end; height: 100%; padding: 20px; box-sizing: border-box; font-family: var(--bx-head); font-size: 22px; color: rgba(255, 255, 255, .5); background: radial-gradient(ellipse at 30% 20%, #2a2c30, #0d0e10 70%); }
body.v2 .bx-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 64px 24px 20px; }
body.v2 .bx-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--bx-soft); }
body.v2 .bx-card__meta span { color: var(--bx-ink); font-weight: 500; }
body.v2 .bx-card__title { font-family: var(--bx-head); font-weight: 400; font-size: 21px; line-height: 1.15; color: var(--bx-ink); }
body.v2 .bx-card__excerpt { font-size: 16px; line-height: 1.45; font-weight: 300; color: #3d3d3d; }
body.v2 .bx-card__arrow { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bx-light); color: var(--bx-ink); transition: background .2s, transform .2s; pointer-events: none; }
body.v2 .bx-card__link:hover .bx-card__arrow { background: var(--bx-accent); transform: rotate(45deg); }

@media (min-width: 1024px) {
body.v2 .bx-card--large { grid-column: 1 / -1; }
body.v2 .bx-card--large .bx-card__link { flex-direction: row; }
body.v2 .bx-card--large .bx-card__media { flex: 0 0 60%; aspect-ratio: 40 / 21; }
body.v2 .bx-card--large .bx-card__body { justify-content: center; gap: 16px; padding: 40px 88px 40px 40px; }
body.v2 .bx-card--large .bx-card__title { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; }
}

body.v2 .bx-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; font-size: 15px; color: var(--bx-soft); }
body.v2 .bx-pagination .v2-pill { background: #fff; color: var(--bx-ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }

/* ---------- article */
body.v2 .bx-article { background: var(--bx-light); color: var(--bx-ink); padding-bottom: 72px; }
body.v2 .bx-article__head { max-width: 860px; margin: 0 auto; padding: 72px var(--bx-pad) 40px; }
@media (min-width: 1024px) { body.v2 .bx-article__head { padding-top: 96px; } }
body.v2 .bx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: 14px; color: var(--bx-soft); }
body.v2 .bx-crumbs a { color: var(--bx-ink); text-decoration: none; }
body.v2 .bx-crumbs a:hover { text-decoration: underline; }
body.v2 .bx-article__title { font-family: var(--bx-head); font-weight: 400; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.03em; color: var(--bx-ink); }
body.v2 .bx-article__excerpt { margin-top: 20px; font-size: 20px; line-height: 1.4; font-weight: 300; color: #3d3d3d; }
body.v2 .bx-article__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 24px; font-size: 14px; color: var(--bx-soft); }
body.v2 .bx-article__meta span:first-child { color: var(--bx-ink); font-weight: 500; }
body.v2 .bx-article__meta a { color: inherit; text-decoration: none; }
body.v2 .bx-article__image { max-width: 1320px; margin: 0 auto 48px; padding: 0 var(--bx-pad); }
body.v2 .bx-article__image img { display: block; width: 100%; height: auto; border-radius: 12px; }
body.v2 .bx-article__image figcaption { margin-top: 10px; font-size: 14px; color: var(--bx-soft); text-align: center; }

/* post content: Ghost cards from Source, v2 type and colours */
body.v2 .bx-content { color: #2a2a2c; font-family: var(--font-sans); font-size: 18px; line-height: 1.6; }
body.v2 .bx-content > * + * { margin-top: 1.25em; }
body.v2 .bx-content h2, body.v2 .bx-content h3, body.v2 .bx-content h4 { font-family: var(--bx-head); font-weight: 400; color: var(--bx-ink); line-height: 1.15; letter-spacing: -.02em; }
body.v2 .bx-content h2 { margin-top: 2em; font-size: clamp(26px, 2.6vw, 34px); }
body.v2 .bx-content h3 { margin-top: 1.6em; font-size: clamp(20px, 2vw, 24px); }
body.v2 .bx-content a { color: var(--bx-ink); text-decoration: underline; text-decoration-color: var(--bx-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
body.v2 .bx-content a:hover { background: rgba(181, 220, 74, .25); }
body.v2 .bx-content strong { font-weight: 500; color: var(--bx-ink); }
body.v2 .bx-content blockquote:not([class]) { border-left: 3px solid var(--bx-accent); padding-left: 20px; font-size: 1.1em; color: var(--bx-ink); }
body.v2 .bx-content figcaption { font-size: 14px; color: var(--bx-soft); }
body.v2 .bx-content img { border-radius: 8px; }
body.v2 .bx-content table { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; border-radius: 8px; overflow: hidden; }
body.v2 .bx-content th, body.v2 .bx-content td { padding: 12px 14px; border-bottom: 1px solid rgba(0, 0, 0, .08); text-align: left; vertical-align: top; }
body.v2 .bx-content th { font-weight: 500; background: #f5f5f5; }
body.v2 .bx-content pre { border-radius: 8px; background: var(--bx-panel); color: #e6e6e6; font-size: 14px; }
body.v2 .bx-content :not(pre) > code { padding: .1em .35em; border-radius: 4px; background: #fff; font-size: .9em; }
body.v2 .bx-content hr { border: 0; border-top: 1px solid rgba(0, 0, 0, .14); }
body.v2 .bx-content .kg-callout-card { border-radius: 8px; }
body.v2 .bx-content .kg-toggle-card { border-radius: 8px; background: #fff; }
body.v2 .bx-content .kg-button-card a.kg-btn, body.v2 .bx-content .kg-product-card a.kg-product-card-button { border-radius: 4px; background: var(--bx-accent) !important; color: #1D1E20 !important; text-decoration: none; font-weight: 500; }
body.v2 .bx-content .kg-bookmark-container { border-radius: 8px; background: #fff; text-decoration: none; }

/* ---------- closing CTA (opens the site's contact form) */
body.v2 .bx-cta { padding: 80px var(--bx-pad); background: var(--bx-dark); color: #f5f5f5; }
@media (min-width: 1024px) { body.v2 .bx-cta { padding: 112px var(--bx-pad); } }
body.v2 .bx-cta__inner { display: grid; gap: 32px; max-width: 1320px; margin: 0 auto; }
@media (min-width: 1024px) { body.v2 .bx-cta__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; } }
body.v2 .bx-cta__title { font-family: var(--bx-head); font-weight: 300; font-size: clamp(36px, 4.6vw, 64px); line-height: .98; letter-spacing: -.03em; }
body.v2 .bx-cta__title span { color: #8e8e8e; }
body.v2 .bx-cta__body p { max-width: 420px; font-size: 16px; line-height: 1.45; font-weight: 300; color: #cfcfcf; }
body.v2 .bx-cta .v2-btn { margin-top: 24px; }

/* the related posts after an article */
body.v2 .bx-feed--more { border-top: 1px solid rgba(0, 0, 0, .08); }

/* Source leftovers we don't use */
body.v2 .gh-head, body.v2 .gh-foot, body.v2 .gh-cta { display: none !important; }

/* Source sets html { font-size: 62.5% }, so this file uses px, not rem */
/* wide tables scroll inside the column instead of being cut */
body.v2 .bx-content .gh-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.v2 .bx-content .gh-table table { min-width: 560px; }
body.v2 .bx-content p, body.v2 .bx-content li { font-size: 18px; line-height: 1.6; }
body.v2 .bx-content ul, body.v2 .bx-content ol { padding-left: 1.3em; }
body.v2 .bx-content ul { list-style: disc; }
body.v2 .bx-content ol { list-style: decimal; }
body.v2 .bx-content li + li { margin-top: .4em; }
body.v2 .bx-content h4 { margin-top: 1.4em; font-size: 18px; font-weight: 500; }
@media (max-width: 699px) { body.v2 .bx-article__excerpt { font-size: 18px; } body.v2 .bx-content p, body.v2 .bx-content li { font-size: 17px; } }
