/* Blog: editorial layout in the homepage's visual system (Instrument Sans + Lora, white / stone / near-black). */
:root {
  --ink: #151717; --ink-2: #1F2222; --paper: #FFFFFF; --stone: #F1F1F1; --stone-2: #E7E7E5;
  --text: #151717; --text-2: #5F6463; --text-3: #8E9392;
  --on-ink: #FFFFFF; --on-ink-2: rgba(255,255,255,.62); --on-ink-3: rgba(255,255,255,.38);
  --line: #E1E2E0; --line-ink: rgba(255,255,255,.12);
  --sky: #2F5FA8; --sky-soft: #9CC3E6; --radius: 22px; --ease: cubic-bezier(.22,.8,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; overflow-wrap: break-word; }
.article > *, .guides > *, .post-row > * { min-width: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.serif { font-family: "Lora", Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px 15px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1; background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn .arr { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }

/* Header (solid on blog pages) */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .logo { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; white-space: nowrap; }
.brand .logo b { font-weight: 700; }
.brand .sep { width: 1px; height: 16px; background: currentColor; opacity: .5; }
.brand .collab { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .04em; white-space: nowrap; opacity: .9; }
.brand .wm { font-weight: 700; font-size: 15px; letter-spacing: -0.03em; line-height: 1; }
.brand .wm sup { font-size: 7px; font-weight: 600; letter-spacing: 0; vertical-align: top; position: relative; top: 1px; }
.brand .wm img { height: 14px; width: auto; display: block; }
.hdr nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.hdr nav a { text-decoration: none; font-size: 14.5px; font-weight: 500; opacity: .85; }
.hdr nav a:hover, .hdr nav a[aria-current] { opacity: 1; }
.hdr nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.hdr .btn { padding: 11px 16px 11px 18px; font-size: 14px; white-space: nowrap; }
.hdr .right { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.lang button { all: unset; cursor: pointer; padding: 6px 7px; border-radius: 999px; opacity: .6; transition: opacity .2s, background .2s; }
.lang button:hover { opacity: 1; }
.lang button.on { opacity: 1; background: rgba(21,23,23,.08); }
@media (max-width: 1060px) { .hdr nav { display: none; } }
@media (max-width: 680px) {
  /* One line: brand stacks under itself, everything else tightens so the CTA never wraps */
  .hdr .wrap { gap: 8px; padding: 0 14px; }
  .brand { flex-direction: column; align-items: flex-start; gap: 2px; }
  .brand .sep { display: none; }
  .brand .logo { font-size: 10px; letter-spacing: .15em; }
  .brand .collab { font-size: 9px; gap: 4px; opacity: .8; }
  .brand .wm img { height: 10px; }
  .hdr .right { gap: 4px; }
  .lang { font-size: 10.5px; letter-spacing: .02em; }
  .lang button { padding: 5px 3px; }
  .hdr .btn { padding: 9px 12px; font-size: 12px; }
}

/* Blog index */
.blog-hero { padding: 88px 0 56px; border-bottom: 1px solid var(--line); }
.blog-hero h1 { font-weight: 700; font-size: clamp(44px, 7vw, 96px); line-height: .96; letter-spacing: -0.03em; }
.blog-hero h1 .serif { font-weight: 400; letter-spacing: 0; }
.blog-hero .lede { font-size: 19px; color: var(--text-2); max-width: 58ch; margin-top: 20px; }
.featured { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.featured .meta, .post-row .meta, .article-head .meta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; display: flex; gap: 14px; flex-wrap: wrap; }
.featured h2 { font-weight: 700; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -0.025em; margin: 16px 0 18px; }
.featured p { font-family: "Lora", serif; font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 54ch; }
.featured .art { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--ink); color: var(--on-ink); display: grid; align-content: end; padding: 32px; }
.featured .art .big { font-weight: 700; font-size: clamp(56px, 7vw, 112px); letter-spacing: -0.04em; line-height: .9; }
.featured .art .cap { color: var(--on-ink-2); font-size: 14px; margin-top: 12px; max-width: 32ch; }
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; gap: 28px; } }
.post-list { display: grid; }
.post-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 32px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.post-row h3 { font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px; }
.post-row p { color: var(--text-2); font-size: 16px; max-width: 64ch; }
.post-row .go { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.post-row .go .arr { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.post-row:hover .go .arr { transform: translateX(5px); }
@media (max-width: 760px) { .post-row { grid-template-columns: 1fr; gap: 10px; } }

/* Article */
.article-head { padding: 80px 0 40px; max-width: 880px; }
.article-head h1 { font-weight: 700; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.0; letter-spacing: -0.03em; margin: 18px 0 22px; }
.article-head .dek { font-family: "Lora", serif; font-size: 21px; line-height: 1.45; color: var(--text-2); max-width: 60ch; }
.article-head .byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 14px; color: var(--text-2); }
.article-head .byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 74% 42%; }
.article-head .byline b { color: var(--text); font-weight: 600; }
.article { display: grid; grid-template-columns: minmax(0, 68ch) minmax(220px, 1fr); gap: 72px; align-items: start; padding-bottom: 96px; }
.prose { font-family: "Lora", Georgia, serif; font-size: 18.5px; line-height: 1.65; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: "Instrument Sans", sans-serif; font-weight: 700; font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; margin-top: 2em; }
.prose h3 { font-family: "Instrument Sans", sans-serif; font-weight: 600; font-size: 21px; letter-spacing: -0.01em; margin-top: 1.6em; }
.prose p a, .prose li a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose p a:hover, .prose li a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose strong { font-weight: 600; }
.prose .pull { font-family: "Lora", serif; font-style: italic; font-size: 26px; line-height: 1.3; padding: 8px 0 8px 24px; border-left: 2px solid var(--ink); color: var(--text); margin: 1.8em 0; }
.prose table { width: 100%; border-collapse: collapse; font-family: "Instrument Sans", sans-serif; font-size: 15px; margin: 1.4em 0; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; border-bottom: 1px solid var(--ink); }
.prose td.n, .prose th.n { text-align: right; font-variant-numeric: tabular-nums; }
.prose .table-wrap { overflow-x: auto; }
.prose .note { font-family: "Instrument Sans", sans-serif; font-size: 14px; color: var(--text-3); }
.keyfacts { background: var(--stone); border-radius: var(--radius); padding: 26px 28px; font-family: "Instrument Sans", sans-serif; margin: 0 0 2em; }
.keyfacts .eyebrow { margin-bottom: 12px; }
/* The bullet is positioned, not a flex item: a flex li would split <strong>/<a> into separate columns */
.keyfacts ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; font-size: 16px; line-height: 1.45; }
.keyfacts li { position: relative; padding-left: 16px; }
.keyfacts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.faqbox { font-family: "Instrument Sans", sans-serif; margin-top: 2.4em; }
.faqbox details { border-top: 1px solid var(--line); }
.faqbox details:last-child { border-bottom: 1px solid var(--line); }
.faqbox summary { cursor: pointer; list-style: none; padding: 18px 0; font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faqbox summary::-webkit-details-marker { display: none; }
.faqbox summary::after { content: ""; width: 10px; height: 10px; flex: 0 0 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform .3s var(--ease); margin-right: 6px; }
.faqbox details[open] summary::after { transform: rotate(-135deg); }
.faqbox .a { padding: 0 0 20px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; max-width: 64ch; }
.sources { font-family: "Instrument Sans", sans-serif; font-size: 14px; color: var(--text-2); margin-top: 2.4em; padding-top: 20px; border-top: 1px solid var(--ink); }
.sources h2 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin: 0 0 12px; }
.sources ol { margin: 0; padding-left: 1.2em; }
.sources li + li { margin-top: 6px; }
.sources a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Side rail */
.rail { position: sticky; top: 96px; display: grid; gap: 28px; font-family: "Instrument Sans", sans-serif; }
.rail .box { border-top: 1px solid var(--ink); padding-top: 16px; display: grid; gap: 10px; }
.rail .box .eyebrow { margin-bottom: 2px; }
.rail .box p { font-size: 14.5px; color: var(--text-2); }
.rail .toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.rail .toc a { text-decoration: none; color: var(--text-2); }
.rail .toc a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.rail .more a { display: block; text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; line-height: 1.3; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rail .more a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; gap: 40px; } .rail { position: static; } }

/* Author + CTA bands */
.author { background: var(--stone); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 88px 1fr; gap: 22px; align-items: center; font-family: "Instrument Sans", sans-serif; margin-top: 2.4em; }
.author img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 74% 42%; }
.author b { font-size: 17px; display: block; margin-bottom: 4px; }
.author p { font-size: 15px; color: var(--text-2); }
.author a.ext { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.author .btn { margin-top: 16px; background: var(--ink); color: var(--on-ink); border-color: var(--ink); padding: 13px 18px 13px 20px; font-size: 14.5px; }
.author .btn:hover { border-color: var(--ink); }
@media (max-width: 540px) { .author { grid-template-columns: 1fr; } }
.cta-band { background: var(--ink); color: var(--on-ink); padding: 96px 0; }
.cta-band .eyebrow { color: var(--on-ink-3); margin-bottom: 18px; }
.cta-band h2 { font-weight: 700; font-size: clamp(40px, 6vw, 84px); line-height: .98; letter-spacing: -0.025em; max-width: 16ch; }
.cta-band h2 .serif { font-weight: 400; letter-spacing: 0; }
.cta-band .lede { font-size: 19px; color: var(--on-ink-2); max-width: 56ch; margin: 22px 0 28px; }

footer { background: var(--ink); color: var(--on-ink); padding: 0 0 56px; }
footer .wrap { border-top: 1px solid var(--line-ink); padding-top: 36px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; }
footer p { font-size: 13px; color: var(--on-ink-3); line-height: 1.6; max-width: 72ch; }
footer p strong { color: var(--on-ink-2); font-weight: 500; }
footer p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; align-content: start; }
footer .links a { color: var(--on-ink-2); text-decoration: none; }
footer .links a:hover { color: var(--on-ink); }
@media (max-width: 900px) { footer .wrap { grid-template-columns: 1fr; } }

@media (max-width: 480px) {
  /* Headings step down so long compound words (Russian especially) fit the screen */
  .blog-hero h1 { font-size: clamp(34px, 11vw, 56px); }
  .article-head h1 { font-size: clamp(29px, 8.6vw, 44px); }
  .featured h2 { font-size: clamp(26px, 7.4vw, 36px); }
  .post-row h3 { font-size: clamp(21px, 6vw, 28px); }
  .cta-band h2 { font-size: clamp(32px, 9.2vw, 52px); }
  .prose h2 { font-size: 25px; }
  /* Long CTA labels need the room back, so trim the button's own metrics rather than the label */
  .btn, .author .btn { font-size: 14px; padding: 14px 18px 14px 20px; gap: 10px; }
  .author { padding: 24px 22px; }
  .keyfacts { padding: 22px 20px; }
  .article-head { padding: 56px 0 32px; }
  .cta-band { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .btn .arr, .post-row .go .arr { transition: none; } }
