/* Блог — статичні сторінки, зібрані tools/build-blog.py.

   Будова знята з референсу Applica (виміряно 2026-09-11 на 1440): стримана
   шапка по центру, обкладинка на ширину контейнера 1276, колонка тексту 680
   із запасом 162 ліворуч, липкий зміст праворуч на 224 з проміжком 48, і
   ілюстрації, що виходять за текст на ті самі 162 з обох боків. Світ, шрифти
   й кольори — Blue Hour: ті самі значення, що в web/src/styles/tokens.css. */

@font-face{font-family:"BlueHour Display";src:url(/fonts/BlueHourDisplay300.woff2) format("woff2");font-weight:300;font-display:swap}
@font-face{font-family:"BlueHour Display";src:url(/fonts/BlueHourDisplay400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Maison Neue";src:url(/fonts/Maison_Neue_Book.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Maison Neue";src:url(/fonts/Maison_Neue_Bold.woff2) format("woff2");font-weight:600 700;font-display:swap}
@font-face{font-family:"Maison Neue Mono";src:url(/fonts/Maison_Neue_Mono.woff2) format("woff2");font-weight:400;font-display:swap}

:root{
  --canvas:#0a0a0a; --card:#181818; --tile:#1c1c1c;
  --line:rgba(255,255,255,.08); --line-strong:rgba(255,255,255,.14);
  --text:#fff; --text-2:#8e8e8e; --text-3:rgba(255,255,255,.55); --text-ghost:rgba(255,255,255,.25);
  /* Текст статті не білий: Applica тримає 72% чорнила на світлому, і на
     темному той самий прийом дає спокійну сторінку, де білим лишаються лише
     заголовки й виділене. */
  --ink:rgba(255,255,255,.74);
  --accent:#3e8fe0; --accent-fill:rgba(62,143,224,.22); --on-light:#1e1e1e;
  /* 26 — радіус панелі навігації (site-nav.css, як в апці). Панелі вмісту —
     20, як картки на лендінгу. */
  --radius-card:26px; --radius-panel:20px; --radius-control:18px; --radius-pill:100px;
  --ease-css:cubic-bezier(.25,.1,.25,1); --ease-rise:cubic-bezier(.16,1,.3,1);
  --display:"BlueHour Display",Georgia,"Times New Roman",serif;
  --body:"Maison Neue",-apple-system,"Helvetica Neue",Arial,sans-serif;
  --mono:"Maison Neue Mono",ui-monospace,"SF Mono",Menlo,monospace;
  --wrap:min(1276px, 100% - 40px);
}

*{box-sizing:border-box}
html{color-scheme:dark;scroll-behavior:smooth}
body{margin:0;background:var(--canvas);color:var(--text);font-family:var(--body);
  font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased;overscroll-behavior:none}
a{color:inherit}
h1,h2,h3{font-family:var(--display);font-weight:400;margin:0;text-wrap:balance}
p{margin:0}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}

/* Смужка прочитаного — тонка, кольору акценту, і лише на сторінці статті. */
.progress{position:fixed;inset:0 0 auto;height:2px;z-index:50;pointer-events:none}
.progress i{display:block;height:100%;background:var(--accent);transform:scaleX(0);transform-origin:0 50%}

/* ── Шапка ─────────────────────────────────────────────────────────────── */
.post{position:relative;isolation:isolate;padding:clamp(56px,7vw,96px) 0 0}
/* Присмеркове небо за шапкою — те саме, що в картці для месенджерів. Світле
   небо Applica тут перекладено на наше: не фон, а світіння згори. */
.post::before{content:"";position:absolute;inset:0 0 auto;height:760px;z-index:-1;pointer-events:none;
  background:radial-gradient(58% 72% at 50% 0%,rgba(63,111,196,.24) 0%,rgba(36,64,126,.10) 46%,transparent 76%)}
/* На посадковій сторінці шапки немає — її місце займає hero з головної, і в
   нього власне світло. Небо позаду нього читалося просто смугою вгорі. */
.post.post-blocks::before{content:none}

.post-head,.blog-head{width:min(760px,100% - 40px);margin:0 auto;text-align:center;
  display:grid;gap:18px;justify-items:center}
.crumbs{display:flex;gap:8px;font-size:13px;color:var(--text-3)}
.crumbs a{color:var(--text-3);text-decoration:none;transition:color .18s var(--ease-css)}
.crumbs a:hover{color:var(--text)}
.post-meta,.card-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:8px 12px;font-size:15px;color:var(--text-2)}
.chip{display:inline-flex;align-items:center;height:28px;padding:0 11px;border-radius:8px;
  background:var(--tile);box-shadow:inset 0 0 0 1px var(--line);color:var(--text);font-size:14px}
/* Назва стримана, як у референсі: головне на першому екрані — підзаголовок,
   що пояснює, про що стаття. Антиква на 46 читається тихіше за гротеск на 24. */
.post-head h1{font-size:clamp(32px,3.4vw,46px);line-height:1.06;letter-spacing:-.02em;max-width:22ch}
.post-dek{font-size:clamp(17px,1.3vw,19px);line-height:1.62;color:var(--text-2);max-width:62ch}

.post-share{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:4px}
.share-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;
  border:0;border-radius:var(--radius-pill);background:transparent;box-shadow:inset 0 0 0 1px var(--line);
  color:var(--text-2);font:400 14px/1 var(--body);text-decoration:none;cursor:pointer;
  transition:color .18s var(--ease-css),box-shadow .18s var(--ease-css)}
.share-btn:hover{color:var(--text);box-shadow:inset 0 0 0 1px rgba(255,255,255,.24)}
.share-btn svg{width:15px;height:15px;flex:none}

/* ── Обкладинка ────────────────────────────────────────────────────────── */
.post-cover{width:var(--wrap);margin:clamp(40px,5vw,64px) auto 0}
.cover-panel{position:relative;overflow:hidden;border-radius:var(--radius-panel);height:clamp(300px,40vw,560px);
  background:radial-gradient(70% 92% at 50% 100%,#1d3d78 0%,#10213f 42%,#0c1322 72%,#0d0f14 100%);
  box-shadow:inset 0 0 0 1px var(--line)}
/* Два телефони з лендінга виглядають із-за нижнього краю: обкладинка каже
   «це про камеру», не повторюючи назву статті картинкою. */
.cover-devices{position:absolute;left:50%;bottom:0;transform:translate(-50%,14%);
  display:flex;align-items:flex-end;gap:clamp(18px,3vw,44px)}
.dev{position:relative;width:clamp(140px,19vw,272px);filter:drop-shadow(0 30px 60px rgba(0,0,0,.6))}
.dev-b{transform:translateY(12%)}
.dev-bezel{width:100%;height:auto;display:block;position:relative;z-index:2;
  filter:grayscale(1) sepia(1) hue-rotate(183deg) saturate(6) brightness(.9) contrast(1.15)}
.dev-screen{position:absolute;z-index:1;top:1.7%;left:4.2%;width:91.6%;height:96.5%;
  object-fit:cover;border-radius:7%/3.4%}

/* ── Тіло: колонка тексту, зміст праворуч ──────────────────────────────── */
.post-body{width:var(--wrap);margin:clamp(48px,6vw,88px) auto 0;
  display:grid;grid-template-columns:minmax(0,680px);justify-content:center}
@media (min-width:1100px){
  /* Запас ліворуч і праворуч від тексту рівний і стискається першим, поки
     екран вужчий за 1316: колонка тексту лишається 680, доки є куди. */
  .post-body{--bleed:clamp(0px, calc((min(1276px, 100vw - 40px) - 952px) / 2), 162px);
    grid-template-columns:var(--bleed) minmax(0,680px) var(--bleed) 48px 224px}
  .prose{grid-column:2;grid-row:1}
  .toc{display:block;grid-column:5;grid-row:1}
  .toc-mobile{display:none}
  .prose .wide{margin-left:calc(var(--bleed) * -1);margin-right:calc(var(--bleed) * -1)}
}

/* Ховається медіа-запитом на вужче, а НЕ базовим display:none: це правило
   стоїть після блоку min-width:1100 з тією самою специфічністю, і базове
   display:none перебивало там display:block — зміст на десктопі мав ширину 0. */
.toc{position:sticky;top:40px;align-self:start}
@media (max-width:1099px){.toc{display:none}}
.toc-label{font-family:var(--display);font-size:22px;line-height:1.2;color:var(--text);margin-bottom:20px}
.toc ol,.toc-mobile ol{list-style:none;margin:0;padding:0;display:grid}
.toc ol{gap:18px}
.toc a,.toc-mobile a{display:block;color:var(--text-2);text-decoration:none;font-size:15px;line-height:1.45;
  transition:color .18s var(--ease-css)}
.toc a:hover,.toc-mobile a:hover{color:var(--text)}
.toc a[aria-current="true"],.toc-mobile a[aria-current="true"]{color:var(--accent)}

.toc-mobile{margin:0 0 36px;border-radius:var(--radius-control);background:var(--tile);box-shadow:inset 0 0 0 1px var(--line)}
.toc-mobile summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;
  padding:16px 18px;font-size:15px;color:var(--text)}
.toc-mobile summary::-webkit-details-marker{display:none}
.toc-mobile summary::after{content:"+";color:var(--text-2);font-size:20px;line-height:1;transition:transform .2s var(--ease-css)}
.toc-mobile[open] summary::after{transform:rotate(45deg)}
.toc-mobile ol{gap:12px;padding:0 18px 18px}

/* ── Текст статті ──────────────────────────────────────────────────────── */
.prose{min-width:0;font-size:clamp(17px,1.25vw,18px);line-height:1.72;color:var(--ink)}
.prose > * + *{margin-top:1.15em}
.prose h2{position:relative;font-size:clamp(28px,2.8vw,40px);line-height:1.12;letter-spacing:-.018em;
  color:var(--text);margin-top:2.1em;scroll-margin-top:32px}
.prose h3{font-size:clamp(21px,1.9vw,26px);line-height:1.22;color:var(--text);margin-top:1.8em;scroll-margin-top:32px}
.prose h2 + *,.prose h3 + *{margin-top:.7em}
/* Підрозділ одразу під розділом прилипав до нього: .7em — відступ для тексту, не для заголовка. */
.prose h2 + h3{margin-top:1.25em}
.prose strong{color:var(--text);font-weight:600}
.prose a{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.prose ul,.prose ol{padding-left:1.25em}
.prose li + li{margin-top:.55em}
.prose li::marker{color:var(--text-2)}

/* Якір на заголовку — щоб поділитись саме розділом. Видно лише під курсором:
   на телефоні його нема, там ділиться вся стаття. */
.h-anchor{position:absolute;right:100%;top:.12em;padding-right:.35em;
  font-family:var(--body);font-size:.55em;line-height:1.8;color:var(--text-ghost);text-decoration:none;
  opacity:0;transition:opacity .15s var(--ease-css)}
/* «#» — лише малюнок. Текстом усередині <h2> він ставав частиною назви
   розділу для всього, що читає сторінку без стилів: AI-пошук бачив
   «Why wedding guest photos go missing#». Згенерований вміст у текст
   документа не входить. */
.h-anchor::before{content:"#"}

/* Підпис автора на телефоні не влазить у рядок із датою: крапка-розділювач
   лишалась висіти в кінці першого рядка. Там імʼя — окремим рядком, без крапки. */
@media (max-width:700px){
  .post-meta .byline-sep{display:none}
  .post-meta .byline{flex-basis:100%;text-align:center}
}
.prose h2:hover .h-anchor,.h-anchor:focus-visible{opacity:1}
@media (hover:none){.h-anchor{display:none}}

/* Коротко про головне — першим, до вступу. Саме такий блок AI-пошук
   забирає у відповідь дослівно, тож і стоїть він там, де його знайдуть. */
.takeaways{border-radius:var(--radius-panel);background:var(--tile);box-shadow:inset 0 0 0 1px var(--line);padding:26px 28px}
.takeaways .kicker{font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--text-2);margin:0 0 14px}
.takeaways ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.prose .takeaways li + li{margin-top:0}
.takeaways li{position:relative;padding-left:28px;color:var(--text);font-size:17px;line-height:1.55}
.takeaways li::before{content:"";position:absolute;left:0;top:.38em;width:14px;height:14px;border-radius:50%;
  box-shadow:inset 0 0 0 1.5px var(--accent)}

.prose blockquote{margin:1.7em 0;padding:4px 0 4px 22px;border-left:2px solid var(--accent);
  font-family:var(--display);font-size:clamp(22px,2vw,28px);line-height:1.3;letter-spacing:-.01em;color:var(--text)}

.prose figure{margin:2.2em 0}
.frame{border-radius:var(--radius-panel);overflow:hidden;background:var(--card);box-shadow:inset 0 0 0 1px var(--line)}
.prose figure img{display:block;width:100%;height:auto}
.looks{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;background:var(--line)}
.prose figcaption{margin-top:12px;font-size:14px;line-height:1.5;color:var(--text-2);text-align:center}

.table-wrap{overflow-x:auto;margin:1.8em 0}
.prose table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.45}
.prose table.cmp{min-width:560px}
.prose th{text-align:left;vertical-align:bottom;font-weight:400;color:var(--text-2);
  padding:0 14px 12px;border-bottom:1px solid var(--line-strong)}
.prose td{vertical-align:top;padding:14px;border-bottom:1px solid var(--line);color:var(--ink)}
.prose td:first-child,.prose th:first-child{padding-left:0}
.prose td:first-child{color:var(--text);font-weight:600}
.prose tr.ours td{color:var(--text)}
.prose .num{font-variant-numeric:tabular-nums;white-space:nowrap}

.post-faq{border-bottom:1px dashed rgba(255,255,255,.13)}
.post-faq details{border-top:1px dashed rgba(255,255,255,.13)}
.post-faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:baseline;gap:18px;
  padding:20px 2px;font-size:18px;line-height:1.4;color:var(--text)}
.post-faq summary::-webkit-details-marker{display:none}
.post-faq summary::after{content:"+";flex:none;color:var(--text-2);font-size:22px;line-height:1;transition:transform .18s var(--ease-css)}
.post-faq details[open] summary::after{transform:rotate(45deg)}
.post-faq details p{padding:0 2px 22px}

/* ── Кінець статті ─────────────────────────────────────────────────────── */
.post-cta{width:var(--wrap);margin:clamp(72px,8vw,120px) auto 0}
.cta-panel{border-radius:var(--radius-panel);padding:clamp(40px,5vw,64px) 24px;text-align:center;
  display:grid;gap:14px;justify-items:center;
  background:radial-gradient(60% 120% at 50% 0%,rgba(63,111,196,.20),transparent 70%),var(--card);
  box-shadow:inset 0 0 0 1px var(--line)}
.cta-panel h2{font-size:clamp(28px,2.8vw,38px);line-height:1.1;letter-spacing:-.015em}
.cta-panel p{color:var(--text-2);max-width:46ch}
.cta-panel .sitenav-cta{margin-top:10px;padding:14px 26px}

/* Панель на десктопі стоїть унизу, тож підвалу потрібен запас під неї. */
.footer{display:flex;flex-wrap:wrap;gap:18px;justify-content:center;color:var(--text-3);font-size:13px;
  padding:64px 24px calc(120px + env(safe-area-inset-bottom))}
.footer a{color:var(--text-3);text-decoration:none}
.footer a:hover{color:var(--text)}

/* ── Сторінка /blog/ ───────────────────────────────────────────────────── */
.blog-head h1{font-size:clamp(44px,5.2vw,68px);line-height:1;letter-spacing:-.03em}
.blog-list{width:var(--wrap);margin:clamp(48px,6vw,80px) auto 0;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,380px),1fr));gap:40px 24px}
.card{display:grid;gap:18px;align-content:start;color:inherit;text-decoration:none}
.card-media{overflow:hidden;border-radius:var(--radius-panel);aspect-ratio:4/3;background:var(--card);box-shadow:inset 0 0 0 1px var(--line)}
.card-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease-rise)}
.card:hover .card-media img{transform:scale(1.03)}
.card-text{display:grid;gap:12px;justify-items:start}
.card-meta{justify-content:flex-start}
.card h2{font-size:clamp(24px,2.2vw,32px);line-height:1.14;letter-spacing:-.012em}
.card p{color:var(--text-2);line-height:1.6}
.card time{font-size:14px;color:var(--text-3)}
@media (min-width:860px){
  .card.featured{grid-column:1 / -1;grid-template-columns:1.15fr 1fr;align-items:center;gap:clamp(28px,4vw,64px)}
  .card.featured h2{font-size:clamp(30px,3vw,44px)}
}

/* ── Сторінка /updates/ ─────────────────────────────────────────────────── */
/* Дата й версія ліворуч, зміни праворуч — як журнал, а не як стрічка дописів:
   сюди приходять знайти свою версію, а не гортати. */
.updates{width:min(1000px,100% - 40px);margin:clamp(48px,6vw,80px) auto 0}
.update{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px 56px;padding:44px 0;
  border-top:1px solid var(--line);scroll-margin-top:112px}
.update:last-child{border-bottom:1px solid var(--line)}
.update-when{display:grid;gap:12px;align-content:start;justify-items:start;font-size:15px;color:var(--text-2)}
.update-when .chip{font-family:var(--mono);font-size:13px}
.update h2{position:relative;font-size:clamp(26px,2.4vw,34px);line-height:1.12;letter-spacing:-.015em}
.update h2:hover .h-anchor{opacity:1}
.update .summary{margin-top:12px;color:var(--ink);font-size:17px;line-height:1.65;max-width:62ch}
.update ul{margin:20px 0 0;padding-left:1.2em;display:grid;gap:10px;color:var(--ink);font-size:16.5px;line-height:1.6;max-width:62ch}
.update li::marker{color:var(--text-2)}
@media (max-width:700px){
  .update{grid-template-columns:1fr;gap:14px;padding:30px 0;scroll-margin-top:92px}
  .update-when{grid-auto-flow:column;justify-content:start;align-items:center}
}

@media (max-width:700px){
  /* Панель на телефоні вгорі — сторінці треба запас під неї. */
  body{padding-top:76px}
  .post{padding-top:24px}
  .post-head{gap:14px}
  .cover-panel{height:300px}
  .dev{width:128px}
  .prose h2,.prose h3{scroll-margin-top:92px}
  .prose h2{margin-top:1.8em}
  .takeaways{padding:22px 20px}
  .footer{padding-bottom:calc(40px + env(safe-area-inset-bottom))}
}

/* Таблиця порівняння на телефоні — картки, а не бічна прокрутка: таблиця,
   обрізана краєм екрана, читається як вада верстки, а не як «гортай далі». */
@media (max-width:700px){
  .prose table.cmp{min-width:0}
  .prose table.cmp thead{display:none}
  .prose table.cmp tr{display:block;padding:16px 0;border-bottom:1px solid var(--line)}
  .prose table.cmp td{display:grid;grid-template-columns:44% 1fr;gap:12px;padding:3px 0;border:0}
  .prose table.cmp td::before{content:attr(data-label);color:var(--text-2)}
  .prose table.cmp td:first-child{display:block;padding:0 0 8px;font-size:17px}
  .prose table.cmp td:first-child::before{content:none}
}

/* Блог — сторінка для читання, тож на десктопі панель угорі, а не внизу, як
   на лендінгу: внизу вона закривала рядок, який саме читаєш (власник,
   2026-09-11). Лише блог — у лендінга й документів своя панель.
   .blog .sitenav специфічніше за .sitenav із site-nav.css, тож порядок
   підключення файлів тут не важить. Решта правил блоку стоїть ПІСЛЯ базових
   і тому їх перебиває: зміст, якорі й підвал мусять посунутись разом із
   панеллю, інакше залізуть під неї. */
@media (min-width:701px){
  .blog .sitenav{top:0;bottom:auto}
  .blog .post{padding-top:calc(clamp(56px,7vw,96px) + 40px)}
  .toc{top:112px}
  .prose h2,.prose h3{scroll-margin-top:112px}
  .footer{padding-bottom:calc(56px + env(safe-area-inset-bottom))}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}
