@font-face {
  font-family: Manrope;
  src: url('/assets/fonts/manrope-latin-variable.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --reading-width: 48rem;
  --gutter: clamp(22px, 5.8vw, 32px);
  --page-top: clamp(32px, 9vw, 128px);
  --masthead-space: 76px;
  --entry-gap: 144px;
  --body-size: 19px;
  --ease-soft: cubic-bezier(.19, 1, .22, 1);
  font-family: Manrope, sans-serif;
  font-synthesis: none;
  background: var(--background);
  color: var(--foreground);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
h1, h2, p, figure { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--foreground); outline-offset: 5px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 14px 18px; background: var(--foreground); color: var(--background); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.reading-column { width: min(var(--reading-width), calc(100% - 2 * var(--gutter))); margin-inline: auto; padding-block: var(--page-top) 72px; animation: page-in 400ms ease-out; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 15px; transition: color 100ms; }
.back-link svg { width: 16px; height: 16px; margin-left: -3px; }
.back-link:hover { color: var(--foreground); }
.blog-masthead { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; column-gap: 32px; row-gap: 14px; margin-top: var(--masthead-space); }
.blog-masthead h1 { font-size: 52px; font-weight: 600; line-height: 1.12; letter-spacing: -2px; }
.blog-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; }
.blog-filters button { min-height: 44px; min-width: 44px; color: var(--muted); font-size: 15px; line-height: 1.5; transition: color 100ms; }
.blog-filters button:hover, .blog-filters button[aria-pressed="true"] { color: var(--foreground); }
.post-list { display: flex; flex-direction: column; gap: var(--entry-gap); margin-top: 64px; outline: none; }
.post-entry { scroll-margin-top: 48px; }
.post-entry h2 { font-size: 39px; line-height: 1.2; font-weight: 400; letter-spacing: -1.25px; overflow-wrap: break-word; }
.post-title-link { display: block; min-height: 44px; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .14em; transition: text-decoration-color 150ms; }
.post-title-link:hover { text-decoration-color: #707070; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 24px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.author-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.post-byline { display: flex; flex-wrap: wrap; gap: 0 8px; }
.post-meta time { white-space: nowrap; }
.meta-dot { color: var(--muted); }
.category-link { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; transition: color 100ms; }
.category-link:hover { color: var(--foreground); }
.post-excerpt { margin-top: 34px; color: var(--body-text); font-size: var(--body-size); line-height: 1.65; overflow-wrap: anywhere; }
.read-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 7px; font-size: 17px; text-decoration: underline; text-decoration-color: #666; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color 100ms; }
.read-more:hover { text-decoration-color: var(--foreground); }
.article { margin-top: var(--masthead-space); }
.article-header h1 { font-size: 50px; font-weight: 500; line-height: 1.16; letter-spacing: -1.8px; overflow-wrap: break-word; text-wrap: pretty; }
.article-header .post-meta { margin-top: 24px; }
.article-figure { margin-top: 44px; }
.article-figure img { width: 100%; height: auto; border-radius: 10px; }
.article-figure--portrait { max-width: 500px; }
.article-body { margin-top: 38px; color: var(--body-text); font-size: var(--body-size); line-height: 1.65; overflow-wrap: anywhere; outline: none; }
.article-body > * + * { margin-top: 1.65em; }
.article-body h2 { margin-top: 2.3em; color: var(--foreground); font-size: 25px; font-weight: 600; line-height: 1.4; letter-spacing: -.5px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h2 + * { margin-top: 1em; }
.article-body b, .article-body strong { color: var(--foreground); font-weight: 600; }
.article-body a { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: #555; text-underline-offset: 5px; transition: text-decoration-color 100ms; }
.article-body a:hover { text-decoration-color: var(--foreground); }
.article-body ul, .article-body ol { padding-left: 1.2em; }
.article-body ul { list-style: '–  '; }
.article-body li::marker { color: var(--muted); }
.article-body li + li { margin-top: .65em; }
.article-body blockquote { margin-inline: 0; font-style: italic; }
.article-body pre { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; padding: 22px 24px; border: 1px solid var(--code-line); border-radius: 8px; background: var(--code-background); color: var(--code-text); font-size: 14px; line-height: 1.75; tab-size: 2; overflow-wrap: normal; scrollbar-width: thin; scrollbar-color: var(--scrollbar) transparent; }
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.article-body :not(pre) > code { padding: .1em .25em; background: var(--code-inline); border-radius: 3px; font-size: .85em; }
.article-body pre code { white-space: pre; }
.article-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 76px; }
.article-action { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--muted); font-size: 15px; text-align: left; transition: color 100ms; }
.article-action:hover { color: var(--foreground); }
.article-action[href^="https://t.me"] { text-decoration: underline; text-decoration-color: #444; text-underline-offset: 5px; }
.copy-icon { width: 20px; font-size: 18px; }
.blog-footer { display: flex; align-items: center; gap: 12px; margin-top: 112px; padding-top: 56px; border-top: 1px solid var(--line); }
.blog-footer a { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; color: var(--muted); transition: color 100ms; }
.blog-footer a:hover { color: var(--foreground); }
.blog-footer svg { width: 23px; height: 23px; }
@keyframes page-in { from { opacity: .35; } to { opacity: 1; } }

@media (max-width: 767px) {
  :root { --page-top: 20px; --masthead-space: clamp(108px, 25vw, 140px); --entry-gap: 104px; --body-size: clamp(18px, 4vw, 21px); }
  .reading-column { padding-bottom: 40px; }
  .blog-masthead { column-gap: 20px; }
  .blog-masthead h1 { font-size: clamp(36px, 8.35vw, 44px); letter-spacing: -1.4px; }
  .blog-filters { gap: 0 10px; }
  .blog-filters button { font-size: 15px; }
  .post-list { margin-top: 64px; }
  .post-entry h2 { font-size: clamp(31px, 8.1vw, 42px); letter-spacing: -1.15px; line-height: 1.18; }
  .post-meta { font-size: clamp(12px, 3vw, 16px); column-gap: 8px; margin-top: 18px; }
  .post-byline { column-gap: 6px; }
  .author-avatar { width: 24px; height: 24px; }
  .post-excerpt { margin-top: 28px; }
  .read-more { font-size: 17px; }
  .article-header h1 { font-size: clamp(34px, 8.4vw, 44px); letter-spacing: -1.3px; line-height: 1.16; }
  .article-header .post-meta { margin-top: 20px; }
  .article-figure { margin-top: 32px; }
  .article-figure img { border-radius: 8px; }
  .article-body { margin-top: 30px; }
  .article-body h2 { font-size: 23px; }
  .article-body pre { padding: 18px; font-size: 12px; }
  .article-actions { margin-top: 56px; }
  .blog-footer { margin-top: 72px; padding-top: 32px; }
}
@media (max-width: 459px) {
  .blog-masthead { row-gap: 12px; }
  .blog-filters { width: 100%; justify-content: space-between; gap: 0 4px; }
  .post-list { margin-top: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 100ms !important; }
}
