/* ═══════════════════════════════════════════════════════
   DOBRZETATO — Clean Minimal 2026
   ═══════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:            #ffffff;
  --surface:       #f7f7f9;
  --surface-2:     #efeff3;
  --text:          #111111;
  --heading:       #111111;
  --muted:         #6b7280;
  --muted-2:       #9ca3af;
  --accent:        #B8732A;
  --accent-h:      #9A5E1E;
  --accent-light:  rgba(184,115,42,0.09);
  --accent-glow:   rgba(184,115,42,0.22);
  --border:        rgba(0,0,0,0.055);
  --border-solid:  #e8e8ec;
  --card-bg:       #ffffff;
  --shadow-xs:     0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-md:     0 8px 28px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.05);
  --nav-bg:        rgba(255,255,255,0.9);
  --font-serif:    'Instrument Serif', Georgia, serif;
  --font-sans:     'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --radius:        16px;
  --radius-sm:     10px;
  --radius-xs:     6px;
}

[data-theme="dark"] {
  --bg:            #0a0a0c;
  --surface:       #141417;
  --surface-2:     #1c1c21;
  --text:          #f0f0f5;
  --heading:       #f0f0f5;
  --muted:         #8a8a96;
  --muted-2:       #5e5e6a;
  --accent:        #D4882E;
  --accent-h:      #B8732A;
  --accent-light:  rgba(212,136,46,0.12);
  --accent-glow:   rgba(212,136,46,0.28);
  --border:        rgba(255,255,255,0.065);
  --border-solid:  #2a2a30;
  --card-bg:       #141417;
  --shadow-xs:     0 1px 2px rgba(0,0,0,0.2);
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-md:     0 8px 28px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3);
  --nav-bg:        rgba(10,10,12,0.9);
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; background: var(--bg); }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── CONTAINER ───────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.75rem; }

/* ── HEADER ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.site-header.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom-color: var(--border-solid);
  box-shadow: 0 1px 16px rgba(0,0,0,0.07);
}
/* On non-hero pages (post.ejs), always show background */
.site-header.always-bg {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom-color: var(--border-solid);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  cursor: pointer;
}
.logo-img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.logo-name {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.01em;
  line-height: 1.1;
  transition: color 0.45s var(--ease);
}
.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 2px;
  transition: color 0.45s var(--ease);
}
.site-header.scrolled .logo-name,
.site-header.always-bg .logo-name { color: var(--text); }
.site-header.scrolled .logo-tag,
.site-header.always-bg .logo-tag { color: var(--muted); }

.main-nav { display: flex; gap: 0; flex: 1; justify-content: center; }
.main-nav a {
  color: rgba(255,255,255,0.65);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative;
}
.site-header.scrolled .main-nav a { color: var(--muted); }
.site-header.always-bg .main-nav a { color: var(--muted); }
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.9rem; right: 0.9rem;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s var(--ease);
  border-radius: 1px;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border-solid);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }
.theme-toggle svg { display: block; }

.lang-switch {
  display: inline-flex; align-items: center;
  padding: 0 0.75rem; height: 34px;
  border: 1px solid var(--border-solid);
  border-radius: 99px;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: .06em;
  color: white; text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap; flex-shrink: 0;
}
.site-header.scrolled .lang-switch,
.site-header.always-bg .lang-switch { color: var(--muted); }
.lang-switch:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }

/* ── READING PROGRESS ────────────────────────────────── */
.reading-progress {
  position: fixed; top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #e8a855);
  width: 0%; z-index: 9999;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ── NOISE ───────────────────────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Always dark — hero stays dark even in light mode */
.hero, .hero * { --bg: #080808; --text: #f0f0f5; --heading: #f5f5f0; --muted: rgba(240,240,245,0.55); --border-solid: rgba(255,255,255,0.1); }

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform, opacity;
  filter: brightness(0.48);
}
.hero-slide.active { opacity: 1; }
.hero-slide.leaving { opacity: 0; animation: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.active { animation: hero-kb 22s ease-in-out infinite alternate; }
  .hero-slide.leaving { opacity: 0; animation: none; }
}
@keyframes hero-kb {
  from { transform: scale(1.06) translate(0,0); }
  to   { transform: scale(1.13) translate(-1.5%, 1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.32) 60%, rgba(0,0,0,0.1) 100%),
    linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 7rem clamp(1.75rem, calc((100vw - 1180px) / 2 + 1.75rem), 10rem) 6rem;
  color: #f0f0f5;
}

.hero-dots {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.hero-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}
.hero-dot.active { background: var(--accent); transform: scale(1.4); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-badge-line {
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero-badge-txt { color: rgba(255,255,255,0.45); }
.hero-badge-em  { color: var(--accent); }

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(3.8rem, 9vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: #f5f5f0;
  margin-bottom: 1.5rem;
}
.hero-title .word { display: inline-block; }
.hero-title-em { color: var(--accent); }

.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.58);
  margin: 0 0 2.5rem;
  line-height: 1.65;
}
.hero-sub-div { color: rgba(255,255,255,0.3); }
.hero-sub-em  { color: #f5f5f0; font-style: normal; font-weight: 500; }

/* Stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-stat-num {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: #f5f5f0;
  letter-spacing: -0.02em;
}
.hero-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.hero-stat-sep {
  width: 1px; height: 2rem;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.hero-cta-row {
  display: flex; align-items: center; gap: 1.5rem;
}
.hero-cta-btn {
  display: inline-flex; align-items: center;
  padding: 0.82rem 1.9rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-cta-btn:hover { background: var(--accent-h); transform: translateY(-2px); }

.hero-scroll {
  display: inline-flex; align-items: center;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-scroll-arrow {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  animation: bounce 2.5s ease-in-out infinite;
}
.hero-scroll-arrow svg { width: 12px; height: 12px; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ── MAIN ────────────────────────────────────────────── */
/* Hero is fixed-height so site-main starts right after — no extra padding needed */
.site-main { padding: 3.5rem 0 6rem; }
/* When there's no hero (category pages), pad for fixed nav */
body:not(:has(.hero)) .site-main { padding-top: calc(60px + 3.5rem); }

.layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 3rem;
  align-items: start;
}

/* ── SECTION HEADER ──────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border-solid);
}
.section-title {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

.category-header { margin-bottom: 2.5rem; }
.cat-label {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.category-header h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem; letter-spacing: -0.03em;
  margin: 0.5rem 0 0.75rem;
}
.back-link {
  font-size: 0.78rem; font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--accent); }

/* ── POSTS GRID ──────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ── POST CARD ───────────────────────────────────────── */
.post-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: pointer;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Featured */
.post-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 55% 45%;
}
.post-card--featured .card-image-link { height: 100%; display: block; }
.post-card--featured .card-image {
  aspect-ratio: unset; height: 100%; min-height: 320px;
}
.post-card--featured .card-body {
  display: flex; flex-direction: column; justify-content: center;
  padding: 2.5rem;
  border-left: 1px solid var(--border-solid);
}

.card-image-link { display: block; }
.card-image {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--surface-2);
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.post-card:hover .card-image img { transform: scale(1.05); }

.card-cat {
  position: absolute; top: 0.85rem; left: 0.85rem;
  background: var(--accent); color: #fff;
  font-size: 0.57rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
}

.card-body { padding: 1.35rem; }

.card-meta {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.67rem; color: var(--muted-2);
  font-weight: 500; margin-bottom: 0.55rem;
}
.card-meta-sep { opacity: 0.5; }

.card-title {
  font-family: var(--font-sans);
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3;
  margin-bottom: 0.7rem; color: var(--text);
}
.post-card--featured .card-title {
  font-size: 1.7rem; font-weight: 800; line-height: 1.15;
  letter-spacing: -0.03em; margin-bottom: 1rem;
}
.card-title a { color: var(--text); transition: color 0.2s ease; }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
  font-size: 0.85rem; color: var(--muted); line-height: 1.68;
  margin-bottom: 1.1rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card--featured .card-excerpt { -webkit-line-clamp: 4; font-size: 0.88rem; }

.read-more {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.76rem; font-weight: 600; color: var(--accent);
  width: fit-content; transition: gap 0.2s ease;
}
.read-more:hover { gap: 0.6rem; }
.read-more .arrow { transition: transform 0.2s ease; }
.read-more:hover .arrow { transform: translateX(2px); }

.empty-state {
  grid-column: 1/-1; text-align: center;
  padding: 5rem 1rem; color: var(--muted);
}
.empty-state a { color: var(--accent); }

/* ── PAGINATION ──────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid var(--border-solid);
}
.page-btn {
  background: var(--bg); border: 1px solid var(--border-solid);
  padding: 0.5rem 1.4rem; border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 600;
  color: var(--text); cursor: pointer;
  transition: all 0.2s ease;
}
.page-btn:hover {
  background: var(--accent); border-color: var(--accent);
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}
.page-info { font-size: 0.75rem; color: var(--muted); }

/* ── SIDEBAR ─────────────────────────────────────────── */
.sidebar { position: sticky; top: 78px; }

.widget {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-solid);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.widget-title {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.9rem;
  padding-bottom: 0.65rem; border-bottom: 1px solid var(--border-solid);
}

.recent-list { list-style: none; }
.recent-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--border-solid); }
.recent-list li:last-child { border-bottom: none; }
.recent-list a {
  font-size: 0.82rem; font-weight: 500; color: var(--text);
  line-height: 1.45; display: block; margin-bottom: 0.18rem;
  transition: color 0.2s ease;
}
.recent-list a:hover { color: var(--accent); }
.recent-list time { font-size: 0.65rem; color: var(--muted-2); }

.cat-list { list-style: none; }
.cat-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.42rem 0.5rem; border-radius: var(--radius-xs);
  font-size: 0.82rem; color: var(--text);
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.cat-list a:hover, .cat-list a.active {
  background: var(--accent-light); color: var(--accent); padding-left: 0.8rem;
}
.cat-count {
  font-size: 0.63rem; background: var(--surface-2);
  color: var(--muted); padding: 0.1rem 0.5rem;
  border-radius: 100px; font-weight: 600;
}

.widget-about p {
  font-size: 0.84rem; color: var(--muted); line-height: 1.75;
  font-family: var(--font-serif); font-style: italic;
}

/* Social media widget */
.social-links {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.25rem;
}
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-xs);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.social-link:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }
.social-link svg { width: 16px; height: 16px; }

/* TOC (table of contents) */
.toc-widget { display: none; }
.toc-widget.has-items { display: block; }
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 0.2rem; }
.toc-list a {
  font-size: 0.8rem; color: var(--muted); line-height: 1.45;
  display: block; padding: 0.3rem 0.5rem; border-radius: var(--radius-xs);
  transition: color 0.2s ease, background 0.2s ease;
  border-left: 2px solid transparent;
}
.toc-list a:hover { color: var(--text); background: var(--surface-2); }
.toc-list a.toc-active {
  color: var(--accent); background: var(--accent-light);
  border-left-color: var(--accent);
}

/* ── READING STATS BAR (on post page, above content) ─── */
.reading-stats {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 0.85rem 0; margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-solid);
  font-size: 0.72rem; color: var(--muted);
}
.reading-stats svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.6; }
.reading-stat { display: flex; align-items: center; gap: 0.3rem; }

/* ── PARALLAX HERO ───────────────────────────────────── */
.parallax-hero {
  width: 100%; height: 58vh; min-height: 360px; max-height: 580px;
  overflow: hidden; position: relative;
}
.parallax-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 15%, rgba(0,0,0,0.72) 100%);
}
.parallax-img {
  width: 100%; height: 130%; object-fit: cover;
  will-change: transform;
  transform: scale(1.15) translateY(0);
}
.parallax-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 2; padding: 2.5rem;
}

.post-cat-badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 100px; margin-bottom: 0.9rem;
  cursor: pointer; transition: background 0.2s ease;
}
.post-cat-badge:hover { background: var(--accent-h); }

.post-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.9rem);
  letter-spacing: -0.03em; line-height: 1.15; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2); max-width: 760px;
}
.post-meta-bar {
  display: flex; gap: 1.25rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.68);
  margin-top: 0.8rem; flex-wrap: wrap;
}

/* ── SINGLE POST LAYOUT ──────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem; align-items: start;
  padding: 3rem 0 6rem;
}
.single-post { min-width: 0; }

.post-excerpt-lead {
  font-family: var(--font-serif);
  font-size: 1.18rem; font-style: italic;
  color: var(--muted); line-height: 1.75;
  border-left: 3px solid var(--accent);
  padding-left: 1.4rem; margin-bottom: 2.5rem;
}

/* ── POST CONTENT ────────────────────────────────────── */
.post-content { font-size: 1.04rem; line-height: 1.85; color: var(--text); }
.post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.3;
  margin: 2.75rem 0 0.9rem; color: var(--text);
  scroll-margin-top: 80px;
}
.post-content p { margin-bottom: 1.4rem; }
.post-content ul, .post-content ol { margin: 0 0 1.4rem 1.75rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content strong { font-weight: 700; }
.post-content em { font-style: italic; color: var(--muted); }

/* ── POST FOOTER ─────────────────────────────────────── */
.post-footer {
  margin-top: 3.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border-solid);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.post-tags { display: flex; gap: 0.5rem; }
.tag {
  background: var(--accent-light); color: var(--accent);
  padding: 0.32rem 0.9rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.tag:hover {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.post-share {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; color: var(--muted);
}
.share-btn {
  padding: 0.36rem 0.9rem; border-radius: var(--radius-xs);
  font-size: 0.72rem; font-weight: 600; color: #fff; cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.share-btn:hover { opacity: 0.84; transform: translateY(-1px); }
.share-fb { background: #1877f2; }
.share-tw { background: #18181b; }

.back-to-blog {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 2rem; font-size: 0.8rem; font-weight: 500;
  color: var(--muted); transition: color 0.2s ease, gap 0.2s ease;
}
.back-to-blog:hover { color: var(--accent); gap: 0.65rem; }

/* ── RELATED ─────────────────────────────────────────── */
.related-list { list-style: none; }
.related-list li {
  display: flex; gap: 0.8rem;
  padding: 0.72rem 0; border-bottom: 1px solid var(--border-solid);
}
.related-list li:last-child { border-bottom: none; }
.related-list img {
  width: 68px; height: 52px; object-fit: cover;
  border-radius: var(--radius-xs); flex-shrink: 0;
}
.related-list a { font-size: 0.79rem; font-weight: 500; color: var(--text); line-height: 1.4; transition: color 0.2s ease; }
.related-list a:hover { color: var(--accent); }
.related-list time { font-size: 0.65rem; color: var(--muted-2); display: block; margin-top: 0.2rem; }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: #0a0a0c;
  color: rgba(255,255,255,0.38);
  padding: 2rem 0; font-size: 0.78rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.28); font-size: 0.73rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }

/* ── SCROLL REVEAL ───────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(36px) scale(0.98);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  [data-reveal].visible { opacity: 1; transform: translateY(0) scale(1); }
  [data-reveal][data-delay="1"] { transition-delay: 0.08s; }
  [data-reveal][data-delay="2"] { transition-delay: 0.17s; }
  [data-reveal][data-delay="3"] { transition-delay: 0.26s; }
  [data-reveal][data-delay="4"] { transition-delay: 0.35s; }

  /* Photography-school clip reveal */
  .word-clip {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.06em;
    margin-bottom: -0.06em;
  }
  .hero-title .word {
    display: inline-block;
    transform: translateY(110%);
    animation: word-lift 0.9s cubic-bezier(0.76, 0, 0.24, 1) both;
  }

  /* Badge line draws in, then text fades */
  .hero-badge-line {
    width: 0;
    animation: line-draw 0.55s cubic-bezier(0.76, 0, 0.24, 1) 0.08s both;
  }
  .hero-badge-txt { opacity: 0; animation: fade-up 0.5s var(--ease) 0.42s both; }
  .hero-badge-em  { opacity: 0; animation: fade-up 0.5s var(--ease) 0.52s both; }

  /* Subtitle: blur-fade */
  .hero-sub { opacity: 0; animation: blur-rise 0.8s var(--ease) 0.54s both; }

  /* Scroll indicator */
  .hero-scroll { opacity: 0; animation: fade-up 0.5s ease 0.85s both; }
}

@keyframes word-lift {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@keyframes line-draw {
  from { width: 0; }
  to   { width: 28px; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blur-rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}
@keyframes fade-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr 250px; gap: 2.5rem; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .sidebar .widget { margin-bottom: 0; }
  .toc-widget { display: none !important; }
  .post-layout { grid-template-columns: 1fr; }
  .post-layout .sidebar { grid-template-columns: 1fr 1fr; position: static; }
}
@media (max-width: 700px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-card--featured { grid-template-columns: 1fr; }
  .post-card--featured .card-image { min-height: 230px; height: 230px; aspect-ratio: unset; }
  .post-card--featured .card-body { border-left: none; border-top: 1px solid var(--border-solid); padding: 1.5rem; }
  .main-nav { display: none; }
  .parallax-hero { height: 55vw; min-height: 260px; }
  .parallax-caption { padding: 1.25rem; }
  .hero { min-height: 100svh; }
  .hero-content { padding: 8rem 1.5rem 5rem; }
  .hero-stats { display: none; }
  .hero-dots { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .sidebar { grid-template-columns: 1fr; }
  .post-layout .sidebar { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ══ TYPES SECTION (strona główna) ══════════════════════════ */
/* ── TYPES SECTION ───────────────────────────────────── */
.types-section { padding: 5rem 0 0; overflow: hidden; }

.types-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1.5rem;
}
.types-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: .62rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .6rem;
}
.types-kicker::before {
  content: ''; display: inline-block;
  width: 20px; height: 1px; background: var(--accent); flex-shrink: 0;
}
.types-title {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05; color: var(--heading); margin: 0;
  letter-spacing: -.03em;
}
.types-btn {
  display: inline-flex; align-items: center;
  padding: .72rem 1.6rem;
  background: var(--text); color: var(--bg);
  border-radius: 4px; text-decoration: none; white-space: nowrap;
  font-size: .75rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase;
  transition: opacity .15s, transform .15s;
  flex-shrink: 0;
}
.types-btn:hover { opacity: .78; transform: translateY(-2px); }

/* Photo strip */
.types-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: clamp(340px, 46vw, 560px);
}
.type-card {
  position: relative; overflow: hidden;
  text-decoration: none; color: #fff;
  border-right: 1px solid rgba(255,255,255,.06);
}
.type-card:last-child { border-right: none; }
.type-card-photo {
  position: absolute; inset: 0;
  background: center/cover no-repeat;
  transition: transform .8s cubic-bezier(.25,1,.5,1);
  filter: grayscale(.3) brightness(.65);
}
.type-card:hover .type-card-photo {
  transform: scale(1.07);
  filter: grayscale(0) brightness(.48);
}
.type-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,.9) 0%,
    rgba(0,0,0,.22) 55%,
    transparent 100%);
}
.type-card-num {
  position: absolute; top: 1.3rem; left: 1.3rem;
  font-size: .58rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.28); z-index: 2;
}
.type-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.8rem 1.3rem; z-index: 2;
}
.type-card-name {
  font-family: var(--font-serif);
  font-size: 1.3rem; line-height: 1; margin-bottom: .28rem; color: #fff;
}
.type-card-tag {
  font-size: .58rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.38); margin-bottom: .85rem;
}
.type-card-desc {
  font-size: .78rem; line-height: 1.6; color: rgba(255,255,255,.72);
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.type-card:hover .type-card-desc { opacity: 1; transform: translateY(0); }
.type-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .42s cubic-bezier(.25,1,.5,1); z-index: 3;
}
.type-card:hover::after { transform: scaleX(1); }

@media (max-width: 900px) {
  .types-strip { grid-template-columns: repeat(3, 1fr); height: auto; }
  .type-card { aspect-ratio: 3/4; }
  .types-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .types-strip { grid-template-columns: 1fr 1fr; }
}

/* ── HOW-SECTION (Jak to działa?) ─────────────────────── */
.how-section {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.how-inner {
  display: grid;
  grid-template-columns: 340px 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.how-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.how-visual-img {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1492725764893-90b379c2b6e7?w=800&q=85&auto=format&fit=crop') center/cover no-repeat;
  transition: transform 0.7s var(--ease);
}
.how-visual:hover .how-visual-img { transform: scale(1.04); }
.how-visual-tag {
  position: absolute;
  bottom: 1.2rem; left: 1.2rem;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  z-index: 2;
}
.how-visual-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
}
.how-visual-tag-line {
  width: 16px; height: 1px;
  background: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.how-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: .62rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.how-kicker::before {
  content: ''; display: inline-block;
  width: 20px; height: 1px; background: var(--accent); flex-shrink: 0;
}
.how-title {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -.03em;
  color: var(--heading); margin: 0 0 1.1rem;
}
.how-lead {
  font-size: .95rem; line-height: 1.75;
  color: var(--muted); margin: 0 0 2rem;
  max-width: 44ch;
}
.how-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .78rem 1.7rem;
  background: var(--accent); color: #fff;
  border-radius: 5px; text-decoration: none;
  font-size: .83rem; font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 4px 16px rgba(200,128,58,.24);
  transition: opacity .15s, transform .15s;
}
.how-btn:hover { opacity: .88; transform: translateY(-2px); }

.how-steps { display: flex; flex-direction: column; gap: 1.8rem; }
.how-step {
  display: flex; gap: 1.4rem; align-items: flex-start;
}
.how-step-num {
  font-family: var(--font-display, 'Instrument Serif', Georgia, serif);
  font-size: 2.2rem; font-weight: 400; line-height: 1;
  color: var(--accent); opacity: .22; flex-shrink: 0;
  width: 2.8rem;
}
.how-step-title {
  font-size: .9rem; font-weight: 700; color: var(--heading);
  margin-bottom: .3rem;
}
.how-step-desc {
  font-size: .84rem; line-height: 1.7; color: var(--muted);
}

@media (max-width: 1100px) {
  .how-inner { grid-template-columns: 260px 1fr 1.2fr; gap: 3rem; }
}
@media (max-width: 860px) {
  .how-inner { grid-template-columns: 1fr; gap: 2rem; }
  .how-visual { aspect-ratio: 16/9; max-height: 280px; }
  .how-lead { max-width: 100%; }
}
