/* blog.flovatar.com: Flovatar web tokens (palette + type from brand.flovatar.com) */
@font-face { font-family: "Staatliches"; src: url(/static/staatliches-latin.8d6ca3290b.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Staatliches"; src: url(/static/staatliches-latin-ext.6d2bb19048.woff2) format("woff2"); font-display: swap; unicode-range: U+0100-02BA, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Korolev Condensed"; font-weight: 700; src: url(/static/korolev-condensed-bold.fb94795b21.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Korolev Compressed"; font-weight: 700; src: url(/static/korolev-compressed-bold.f57337c185.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Roboto Condensed"; font-weight: 100 900; src: url(/static/roboto-condensed-latin.68b005e049.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Roboto Condensed"; font-weight: 100 900; src: url(/static/roboto-condensed-latin-ext.4a44e6b11c.woff2) format("woff2"); font-display: swap; unicode-range: U+0100-02BA, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #180830; --night-violet: #1A083A; --indigo: #411793; --pink: #EF2AC1; --neon-pink: #EB3CF2;
  --sky: #91E3F9; --peri: #AED7F7; --yellow: #FFEE50; --ink: #1A1E2D; --panel: #343B5A; --panel-deep: #212741;
  --violet: #6657D3; --royal: #5F37CB; --muted: #9DA4C7; --green: #52F618;
  --f-display: "Staatliches", "Korolev Compressed", "Arial Narrow", sans-serif;
  --f-heading: "Korolev Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --f-numeric: "Korolev Compressed", "Staatliches", "Arial Narrow", sans-serif;
  --f-body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
body {
  margin: 0; color: #fff; font: 18px/1.6 var(--f-body);
  background-color: var(--night);
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 140px 90px, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 260px 160px, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 330px 40px, rgba(255,255,255,.3) 50%, transparent 51%);
  background-size: 380px 220px;
}
a { color: var(--peri); text-decoration: underline; text-decoration-color: rgba(174,215,247,.4); text-underline-offset: 2px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 24px; background: linear-gradient(180deg, rgba(237,43,235,.95) 0%, rgba(127,25,139,.92) 55%, rgba(24,8,48,.96) 100%);
  border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 38px; width: auto; display: block; }
.brand .tag { font: 700 24px/1 var(--f-numeric); color: var(--yellow); letter-spacing: .02em; text-transform: uppercase; }
.top nav { display: flex; gap: 10px; align-items: center; }
.btn { font: 700 18px/1 var(--f-numeric); text-transform: uppercase; letter-spacing: .02em; padding: 10px 14px; border-radius: 0;
  cursor: pointer; text-decoration: none; display: inline-block; }
.btn-yellow { background: var(--yellow); color: var(--ink); border: 3px solid #000; box-shadow: 0 6px 0 0 rgba(65,23,147,.75); }
.btn-yellow:hover { transform: translateY(2px); box-shadow: 0 4px 0 0 rgba(65,23,147,.75); color: var(--ink); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

/* home */
.hero { max-width: 1100px; margin: 0 auto; padding: 48px 24px 16px; }
.hero h1 { font: 400 clamp(44px, 7vw, 84px)/.9 var(--f-display); color: var(--peri); margin: 0 0 12px; }
.eyebrow { font: 700 20px/1.1 var(--f-heading); color: var(--pink); margin: 0; text-transform: uppercase; }
.lead { font-size: 20px; max-width: 680px; color: #e9e6ff; margin: 0; }
.posts { list-style: none; max-width: 1100px; margin: 0 auto; padding: 24px 24px 64px; display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card { background: rgba(26,8,58,.78); border: 1px solid rgba(174,215,247,.12); border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--pink); }
.card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.card .thumb { aspect-ratio: 1200 / 630; background: var(--panel-deep); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .txt { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h2 { font: 700 26px/1.05 var(--f-heading); color: #fff; margin: 0; }
.card p { margin: 0; color: #d9d5f2; font-size: 16px; line-height: 1.45; }
.meta { font: 700 16px/1.2 var(--f-numeric); text-transform: uppercase; letter-spacing: .03em; color: var(--sky); }
.meta .lang { color: var(--ink); background: var(--yellow); padding: 1px 5px; margin-left: 6px; }
.posts li.featured { grid-column: 1 / -1; }
.posts li.featured a { flex-direction: row; }
.posts li.featured .thumb { flex: 1.25; aspect-ratio: auto; min-height: 300px; }
.posts li.featured .txt { flex: 1; padding: 24px 28px; justify-content: center; }
.posts li.featured h2 { font-size: clamp(30px, 3.4vw, 42px); }
@media (max-width: 760px) {
  .posts li.featured a { flex-direction: column; }
  .posts li.featured .thumb { aspect-ratio: 1200 / 630; min-height: 0; }
  .posts li.featured .txt { padding: 14px 18px 18px; }
}

/* article */
.post { max-width: 760px; margin: 0 auto; padding: 40px 24px 24px; }
.post header h1 { font: 700 clamp(36px, 5.2vw, 58px)/1 var(--f-heading); color: var(--peri); margin: 8px 0 12px; }
.post .subtitle { font-size: 22px; line-height: 1.4; color: #e3defa; margin: 0 0 14px; }
.post .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.post .translation { margin: 12px 0 0; font-size: 16px; }
.body { background: rgba(26,8,58,.72); border: 1px solid rgba(174,215,247,.08); border-radius: 10px; padding: 8px 36px 28px;
  margin-top: 24px; overflow-wrap: anywhere; }
.body h2 { font: 700 clamp(28px, 3.4vw, 38px)/1 var(--f-heading); color: var(--peri); margin: 34px 0 8px; }
.body h3 { font: 700 24px/1.15 var(--f-heading); color: #fff; margin: 28px 0 6px; }
.body h3::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--pink); margin-right: 9px; vertical-align: middle; border-radius: 2px; }
.body p, .body li { color: #f1efff; }
.body strong { color: #fff; }
.body ul, .body ol { padding-left: 1.3em; }
.body li { margin: 4px 0; }
.body li::marker { color: var(--pink); }
.body blockquote { margin: 18px 0; padding: 10px 18px; border-left: 4px solid var(--pink); background: rgba(239,42,193,.08); border-radius: 0 6px 6px 0; }
.body .pullquote { font: 700 26px/1.2 var(--f-heading); color: var(--yellow); border-left: 4px solid var(--yellow); padding: 6px 0 6px 18px; margin: 26px 0; }
.body .pullquote strong { color: inherit; }
.body figure { margin: 26px 0; }
.body figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 8px; }
.body figcaption { text-align: center; font-size: 15px; color: var(--muted); margin-top: 8px; }
.body hr { border: 0; text-align: center; margin: 32px 0; }
.body hr::before { content: "• • •"; color: var(--pink); letter-spacing: .6em; font-size: 20px; }
.body code { font: 15px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--ink); color: #e8e6ff; padding: 1px 5px; border-radius: 4px; }
.body pre { background: #0f0a22; border: 1px solid rgba(174,215,247,.14); border-radius: 8px; padding: 14px 16px; overflow-x: auto; }
.body pre code { background: none; padding: 0; white-space: pre; font-size: 14px; }
.body .card, .body .embed-link { background: var(--panel); border-radius: 8px; padding: 14px 18px; }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; opacity: .85; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%); background: var(--pink);
  border-radius: 14px; box-shadow: 0 4px 0 rgba(0,0,0,.4); }
.yt-play::after { content: ""; position: absolute; left: 30px; top: 15px; border-style: solid; border-width: 12px 0 12px 21px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt-play { background: var(--neon-pink); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tags li { font: 700 15px/1 var(--f-numeric); text-transform: uppercase; background: var(--panel); color: var(--sky); padding: 6px 9px; border-radius: 4px; }
.pager { max-width: 760px; margin: 0 auto; padding: 8px 24px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: block; background: rgba(26,8,58,.78); border: 1px solid rgba(174,215,247,.12); border-radius: 10px; padding: 14px 18px;
  text-decoration: none; color: #fff; font: 700 20px/1.15 var(--f-heading); }
.pager a:hover { border-color: var(--pink); }
.pager small { display: block; font: 700 15px/1 var(--f-numeric); color: var(--pink); text-transform: uppercase; margin-bottom: 6px; letter-spacing: .03em; }
.pager .next { text-align: right; grid-column: 2; }
.foot { color: var(--muted); text-align: center; padding: 24px; font-size: 16px; border-top: 1px solid rgba(174,215,247,.1); }
.foot a { color: var(--muted); }
@media (max-width: 640px) {
  body { font-size: 17px; }
  .top { padding: 8px 14px; }
  .brand img { height: 30px; }
  .brand .tag { font-size: 20px; }
  .top .hide-s { display: none; }
  .hero { padding: 32px 16px 8px; }
  .posts { padding: 16px 16px 48px; grid-template-columns: 1fr; }
  .post { padding: 24px 14px 16px; }
  .body { padding: 4px 18px 20px; }
  .post .subtitle { font-size: 19px; }
  .pager { grid-template-columns: 1fr; padding: 8px 14px 40px; }
  .pager .next { grid-column: 1; }
}
