/* Vistura blog: static article pages (src/blog/render.tsx). Same fonts and colours as the site. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/montserrat-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/montserrat-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }

:root {
  --bg: #0C0D0D; --surface: #151716; --surface-2: #1D201F; --line: rgb(255 255 255 / 0.08); --line-strong: rgb(255 255 255 / 0.14);
  --ink: #F4F4F5; --ink-2: #C9CBCA; --ink-3: #9A9E9C; --brand: #00BCFF; --brand-ink: #0A0B0B;
  --display: "Montserrat", "Inter", system-ui, sans-serif; --sans: "Inter", system-ui, -apple-system, sans-serif;
  --r: 14px; --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 17px/1.65 var(--sans); }
a { color: var(--ink); text-decoration-color: rgb(0 188 255 / 0.5); text-underline-offset: 3px; transition: color 150ms ease, text-decoration-color 150ms ease; }
a:hover { color: var(--brand); text-decoration-color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 12px; }

.top { max-width: 1120px; margin: 0 auto; padding: 20px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { color: var(--ink); display: inline-flex; }
.brand .logo { height: 26px; width: auto; }
.brand.small .logo { height: 20px; }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink) !important; font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: 999px; transition: background-color 150ms ease, transform 150ms ease; }
.btn:hover { background: #33C9FF; transform: translateY(-1px); }

main { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) 64px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); text-decoration: none; margin: 0 0 10px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; }
h1 { font: 800 clamp(32px, 5vw, 52px)/1.08 var(--display); letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); max-width: 680px; margin: 0; }
.meta { font-size: 14px; color: var(--ink-3); margin: 16px 0 0; }
.meta span { color: var(--ink-2); }

.hero { padding: 48px 0 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips a { text-decoration: none; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); }
.chips a[aria-current="page"] { background: rgb(0 188 255 / 0.12); border-color: rgb(0 188 255 / 0.4); color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color 150ms ease; }
.card:hover { border-color: var(--line-strong); }
.card-img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 20px; }
.card h2 { font: 700 20px/1.3 var(--sans); margin: 0 0 8px; }
.card h2 a { text-decoration: none; }
.card p { margin: 0; font-size: 15px; }
.card .meta { margin-top: 14px; font-size: 13px; }
.empty { color: var(--ink-3); }

.post { padding-top: 24px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 28px; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.post-head { max-width: 760px; }
.cover { margin: 32px 0 0; }
.cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 40px; }
@media (min-width: 1000px) { .post-layout:has(.toc) { grid-template-columns: 230px minmax(0, 720px); } }
.toc { font-size: 14px; }
.toc p { font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-strong); }
.toc li a { display: block; padding: 5px 0 5px 14px; color: var(--ink-3); text-decoration: none; }
.toc li a:hover { color: var(--ink); }
@media (min-width: 1000px) { .toc { position: sticky; top: 24px; align-self: start; } }
@media (max-width: 999px) { .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; } }

.prose { max-width: 720px; min-width: 0; }
.prose h2 { font: 800 clamp(24px, 3vw, 30px)/1.2 var(--display); letter-spacing: -0.01em; margin: 48px 0 14px; scroll-margin-top: 24px; }
.prose h3 { font: 700 20px/1.3 var(--sans); margin: 32px 0 10px; scroll-margin-top: 24px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--ink); }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: var(--r); }
.prose figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.table { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--surface); }
.prose tr:last-child td { border-bottom: 0; }

.faq { margin-top: 48px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; transition: transform 150ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; }

.cta { margin-top: 48px; padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid rgb(0 188 255 / 0.3); }
.cta h2 { margin: 0 0 8px; font-size: 24px; }
.cta p { margin: 0 0 20px; }
.related { margin-top: 72px; }
.related > h2 { font: 800 26px/1.2 var(--display); margin: 0 0 20px; }

.foot { max-width: 1120px; margin: 0 auto; padding: 32px var(--gutter) 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; color: var(--ink-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--ink-3); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.langs { display: flex; gap: 10px; }
.langs span { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
@media (min-width: 700px) { html { scroll-behavior: smooth; } }
