/* ============================================================
   Blog article — Martyna Zając
   Buduje na bazie site-core.css (dark, glass, accent #bfeeff).
   ============================================================ */

:root {
  --article-accent: #bfeeff;
  --article-text: rgba(255, 255, 255, .78);
}

/* ---------- Article hero ---------- */
.article-hero {
  position: relative;
  overflow: hidden;
  background: #030303;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.article-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.04) brightness(.62);
  opacity: 0;
  animation: articleCoverIn 1.4s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes articleCoverIn {
  0% { transform: scale(1.18); opacity: 0; filter: blur(10px) brightness(.45); }
  100% { transform: scale(1.06); opacity: 1; filter: blur(0) brightness(.62); }
}
.article-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 30% 18%, rgba(191,238,255,.18), transparent 34%),
    linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.4) 44%, rgba(0,0,0,.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,.42) 0%, transparent 38%, rgba(0,0,0,.86) 100%);
  pointer-events: none;
}
.article-hero-grid {
  position: absolute; inset: 0; z-index: 2;
  opacity: .22; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 12.5% 100%, 100% 16.666%;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.article-hero-inner {
  position: relative; z-index: 3;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(120px, 22vh, 220px) 20px clamp(40px, 8vh, 84px);
}
.article-back {
  display: inline-flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.7); font-size: 11px; font-weight: 800;
  letter-spacing: .26em; text-transform: uppercase;
  transition: color .35s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.article-back:hover { color: #fff; transform: translateX(-4px); }
.article-back span {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.28); backdrop-filter: blur(14px);
}
.article-meta-row {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.article-title {
  margin-top: 24px;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: .88; letter-spacing: -.065em; font-weight: 500;
  text-shadow: 0 24px 80px rgba(0,0,0,.72);
  max-width: 14ch;
}
.article-title em {
  font-family: "Playfair Display", serif; font-style: italic;
  font-weight: 400; letter-spacing: -.055em; color: rgba(255,255,255,.9);
}
.article-deck {
  margin-top: 22px; max-width: 560px;
  font-size: clamp(16px, 2vh, 19px); line-height: 1.65;
  color: rgba(255,255,255,.74);
}
.article-byline {
  margin-top: 32px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  font-size: 13px; color: rgba(255,255,255,.62);
}
.article-byline strong { color: #fff; font-weight: 600; }
.article-byline .dot {
  display: inline-block; width: 4px; height: 4px;
  border-radius: 999px; background: var(--article-accent);
  box-shadow: 0 0 14px rgba(191,238,255,.6);
}

/* ---------- Article body grid (TOC + content) ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 64px;
  align-items: start;
  max-width: 1180px;
  margin-inline: auto;
  padding: 64px 20px 96px;
}
.article-layout > main { min-width: 0; }

/* ---------- Longform prose ---------- */
.prose {
  font-size: 18px; line-height: 1.85;
  color: var(--article-text);
  letter-spacing: -.005em;
}
.prose > * + * { margin-top: 1.5em; }
.prose h2 {
  margin-top: 2.4em;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: .96; letter-spacing: -.05em; font-weight: 500;
  color: #fff;
}
.prose h2 em {
  font-family: "Playfair Display", serif; font-style: italic;
  font-weight: 400; letter-spacing: -.05em; color: rgba(255,255,255,.92);
}
.prose h2 .num {
  display: inline-block; min-width: 56px;
  font-family: "Playfair Display", serif; font-style: italic;
  font-weight: 400; color: var(--article-accent); padding-right: 14px;
}
.prose h3 {
  margin-top: 2em;
  font-size: 22px; letter-spacing: -.02em; font-weight: 600; color: #fff;
}
.prose p { letter-spacing: -.003em; }
.prose strong { color: #fff; font-weight: 600; }
.prose a {
  color: #fff;
  background-image: linear-gradient(90deg, var(--article-accent), var(--article-accent));
  background-repeat: no-repeat; background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 2px;
  transition: color .3s ease, background-size .3s ease;
}
.prose a:hover { color: var(--article-accent); background-size: 100% 2px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul li { position: relative; padding-left: 6px; }
.prose ul li::marker { content: ""; }
.prose ul li::before {
  content: ""; position: absolute; left: -16px; top: .78em;
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--article-accent); box-shadow: 0 0 12px rgba(191,238,255,.5);
}
.prose ol { counter-reset: step; list-style: none; padding-left: 38px; }
.prose ol li { position: relative; counter-increment: step; }
.prose ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: -38px; top: 0;
  font-family: "Playfair Display", serif; font-style: italic;
  color: var(--article-accent); font-size: 18px;
}
.prose blockquote {
  margin: 2em 0; padding: 30px 32px 30px 38px;
  border-left: 1px solid rgba(191,238,255,.5);
  border-radius: 0 22px 22px 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(191,238,255,.1), transparent 60%), rgba(255,255,255,.03);
  font-family: "Playfair Display", serif; font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4;
  letter-spacing: -.03em; color: #fff;
}
.prose blockquote cite {
  display: block; margin-top: 14px;
  font-family: "Inter", sans-serif; font-style: normal; font-size: 13px;
  letter-spacing: .04em; color: rgba(255,255,255,.55);
}
.prose code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em; padding: 2px 7px; border-radius: 7px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: #fff;
}
.prose pre {
  margin: 2em 0; padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 30px 90px rgba(0,0,0,.42);
  overflow-x: auto;
}
.prose pre code { padding: 0; background: transparent; border: 0; font-size: .9em; }
.prose img {
  width: 100%; border-radius: 24px; margin: 2.4em 0;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
}
.prose figure { margin: 2.4em 0; }
.prose figcaption {
  text-align: center; margin-top: 12px;
  font-size: 13px; color: rgba(255,255,255,.5); letter-spacing: .02em;
}

/* ---------- Stat / key-takeaways callout ---------- */
.callout {
  position: relative; margin: 2.4em 0;
  padding: 30px 32px 28px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(155deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 30px 90px rgba(0,0,0,.42);
  backdrop-filter: blur(18px);
}
.callout::before {
  content: ""; position: absolute; left: 0; top: 26px; bottom: 26px;
  width: 2px; border-radius: 999px;
  background: linear-gradient(180deg, var(--article-accent), transparent);
}
.callout-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .24em;
  text-transform: uppercase; color: var(--article-accent);
}
.callout-kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--article-accent); box-shadow: 0 0 16px rgba(191,238,255,.7);
}
.callout h3 {
  margin-top: 14px; margin-bottom: 0;
  font-size: 22px; color: #fff; letter-spacing: -.02em;
}
.callout p { margin-top: 12px; }

/* ---------- Key list inside callout ---------- */
.key-list { display: grid; gap: 14px; margin: 14px 0 0; }
.key-list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  align-items: start; padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  list-style: none; margin: 0;
}
.key-list li::before { content: none; }
.key-list .num {
  font-family: "Playfair Display", serif; font-style: italic;
  color: var(--article-accent); font-size: 20px; line-height: 1;
}

/* ---------- Two-column comparison ---------- */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin: 2em 0;
}
.compare > div {
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(155deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.compare h4 {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.62); margin-bottom: 12px;
}
.compare .yes { color: var(--article-accent); }
.compare .no { color: rgba(255,120,140,.85); }
.compare ul { padding-left: 18px; color: rgba(255,255,255,.74); }
.compare ul li::before { background: rgba(255,255,255,.45); box-shadow: none; }

/* ---------- Static TOC (desktop) ---------- */
.toc {
  position: sticky; top: 100px;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 30px 90px rgba(0,0,0,.4);
  backdrop-filter: blur(18px);
}
.toc-label {
  font-size: 10px; font-weight: 800; letter-spacing: .26em;
  text-transform: uppercase; color: var(--article-accent);
}
.toc-list {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; gap: 2px;
}
.toc-list a {
  display: grid; grid-template-columns: 30px 1fr; gap: 10px;
  padding: 8px 0;
  font-size: 13px; line-height: 1.45;
  color: rgba(255,255,255,.6);
  border-top: 1px solid rgba(255,255,255,.08);
  transition: color .3s ease, transform .3s cubic-bezier(.16,1,.3,1);
}
.toc-list a:hover { color: #fff; transform: translateX(4px); }
.toc-list a.is-active { color: var(--article-accent); }
.toc-list .num {
  font-family: "Playfair Display", serif; font-style: italic;
  color: var(--article-accent); opacity: .8;
}

/* ---------- Mobile TOC (collapsible) ---------- */
.toc-mobile { display: none; margin: 0 0 8px; }
.toc-mobile summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  background: rgba(255,255,255,.04);
  font-size: 12px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--article-accent);
  cursor: pointer; list-style: none;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile[open] summary { border-radius: 22px 22px 0 0; }
.toc-mobile .toc-list { padding: 8px 20px 16px; border: 1px solid rgba(255,255,255,.12); border-top: 0; border-radius: 0 0 22px 22px; background: rgba(255,255,255,.04); margin-top: 0; }

/* ---------- Share / footer of article ---------- */
.article-foot {
  margin-top: 56px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
}
.share {
  display: flex; align-items: center; gap: 10px;
}
.share-label {
  font-size: 10px; font-weight: 800; letter-spacing: .26em;
  text-transform: uppercase; color: rgba(255,255,255,.4);
}
.share-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  color: #fff;
  transition: background .35s ease, transform .35s cubic-bezier(.16,1,.3,1), border-color .35s ease;
}
.share-btn:hover { background: rgba(191,238,255,.16); border-color: rgba(191,238,255,.5); transform: translateY(-3px); }
.cta-inline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: #fff; color: #000 !important;
  font-size: 14px; font-weight: 700;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.cta-inline:hover { transform: scale(1.03); box-shadow: 0 18px 60px rgba(191,238,255,.25); }

.bg-white { color: #000 !important; }

/* ---------- Related posts ---------- */
.related-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.related-card {
  position: relative; overflow: hidden;
  min-height: 340px; padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(155deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 34px 110px rgba(0,0,0,.48);
  backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .55s cubic-bezier(.16,1,.3,1), border-color .45s ease;
}
.related-card:hover { transform: translateY(-6px); border-color: rgba(191,238,255,.4); }
.related-card .cover {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: saturate(1.05) contrast(1.04) brightness(.7);
}
.related-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.6) 60%, rgba(0,0,0,.92));
}
.related-card > * { position: relative; z-index: 2; }
.related-card .kicker {
  font-size: 10px; font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; color: var(--article-accent);
}
.related-card h3 {
  margin-top: 12px; font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.04; letter-spacing: -.04em; color: #fff;
}
.related-card .read { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { display: none; }
  .toc-mobile { display: block; }
  .related-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .prose { font-size: 17px; line-height: 1.78; }
  .article-hero-inner { padding-top: 110px; }
  .article-byline { font-size: 12px; }
}

/* Print */
@media print {
  .floating-nav, .scroll-rail, .toc, .share, .related-grid, .load-intro { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .prose * { color: #000 !important; }
}