/* Inter (variable, weights 400-900), self-hosted. Copyright The Inter Project Authors,
   SIL Open Font License 1.1 — see public/fonts/OFL.txt. No request leaves this site for fonts. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/inter-latin.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;
}

/* Static pages (blog). Colours follow the app's dark theme (site-source/src/index.css). */
:root { --bg: #0f0f11; --card: #18181b; --line: #2a2a2e; --text: #f4f4f5; --muted: #a1a1aa; --primary: #2f6df6; --primary-soft: rgba(47,109,246,.14); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: #7aa7ff; text-underline-offset: 3px; }
a:hover { color: #a9c5ff; }
a:focus-visible, .button:focus-visible { outline: 2px solid #7aa7ff; outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(15,15,17,.92); backdrop-filter: blur(8px); z-index: 5; }
.top .wrap, .foot .wrap { max-width: 1120px; }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; text-decoration: none; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.top nav a:hover { color: var(--text); }
.button { display: inline-block; background: var(--primary); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 12px; }
.button:hover { background: #4a80f8; color: #fff; }
.button.small { padding: 8px 16px; font-size: 15px; white-space: nowrap; }
main { padding-top: 28px; padding-bottom: 64px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; margin: 0 0 14px; text-wrap: balance; }
h2 { font-size: clamp(23px, 3.4vw, 29px); line-height: 1.2; letter-spacing: -.01em; font-weight: 750; margin: 44px 0 14px; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 24px; }
li { margin-bottom: 8px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.lead { font-size: 19px; color: #d4d4d8; }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 14px; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
pre { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; margin: 0 0 16px; }
pre code { background: none; border: 0; padding: 0; overflow-wrap: normal; }
table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15.5px; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 120px; }
th { color: var(--muted); font-weight: 600; font-size: 14px; }
.cta { background: var(--primary-soft); border: 1px solid rgba(47,109,246,.4); border-radius: 18px; padding: 26px; margin: 44px 0 0; }
.cta-title { font-size: 22px; font-weight: 750; margin-bottom: 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--text); }
.card:hover { border-color: #4a4a52; color: var(--text); }
.card-kind { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.card-title { font-weight: 700; line-height: 1.3; }
.card-text { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.foot { border-top: 1px solid var(--line); padding: 40px 0 32px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.foot-title { color: var(--text); font-weight: 650; margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-note { color: #8a8a93; margin: 32px 0 0; font-size: 13.5px; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  .top-row { justify-content: space-between; }
}
