/*
Theme Name: ZMASLO
Theme URI: https://zmaslo.pl
Author: ZMASLO
Author URI: https://zmaslo.pl
Description: Ciemny, techniczny motyw dla kanału ZMASLO — stara i nowa technologia. Akcent żółty, typografia Geist + JetBrains Mono. Stworzony na podstawie projektu Claude Design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zmaslo
Tags: dark, technology, blog, one-column, custom-menu, featured-images, custom-colors
*/

/* =====================================================================
   FONTS — Geist (sans) + JetBrains Mono (mono), zmienne / variable
   ===================================================================== */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================================
   TOKENS
   ===================================================================== */
:root {
  --accent: #e8c84a;
  --bg: #0a0a0a;
  --fg: #f0f0f0;
  --muted: #a8a8a8;
  --muted-2: #9a9a9a;
  --faint: #777;
  --card: #101010;
  --card-2: #141414;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --wrap: 1180px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --font-sans: 'Geist', 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
}

/* =====================================================================
   RESET / BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(232, 200, 74, 0.25); }

@keyframes zm-fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes zm-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.zm-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.zm-fade { animation: zm-fadeIn .3s ease; }
.zm-mono { font-family: var(--font-mono); }
.zm-kicker {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.6rem;
}
.zm-divider {
  height: 1px;
  max-width: var(--wrap);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(232, 200, 74, 0.35), transparent);
}
.zm-accent { color: var(--accent); }

/* Skip link */
.zm-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #0a0a0a; padding: 0.6rem 1rem; border-radius: 0 0 6px 0;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.zm-skip:focus { left: 0; }

/* =====================================================================
   NAV
   ===================================================================== */
.zm-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.zm-nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad);
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.zm-logo {
  font-weight: 700; font-size: 1.25rem; letter-spacing: 0.04em;
  display: inline-flex; align-items: baseline; gap: 1px;
  text-decoration: none; color: var(--fg);
}
.zm-logo__cursor {
  color: var(--accent); font-family: var(--font-mono);
  animation: zm-blink 1.2s step-end infinite;
}
.zm-menu {
  display: flex; align-items: center; gap: 2rem;
  font-size: 0.92rem; list-style: none; margin: 0; padding: 0;
}
.zm-menu a { text-decoration: none; color: var(--fg); transition: color .15s; }
.zm-menu a:hover, .zm-menu .current-menu-item > a { color: var(--accent); }
.zm-menu .zm-soon {
  color: #555; cursor: not-allowed; display: inline-flex; align-items: center; gap: 6px;
}
.zm-badge {
  font-family: var(--font-mono); font-size: 0.62rem; color: #6a6a6a;
  border: 1px solid #333; padding: 1px 5px; border-radius: 3px; letter-spacing: 0.05em;
}
.zm-burger {
  display: none; cursor: pointer; width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none; border: 0; padding: 0;
}
.zm-burger span { width: 22px; height: 2px; background: var(--fg); display: block; }
.zm-mobile-menu { display: none; }

@media (max-width: 859px) {
  .zm-menu { display: none; }
  .zm-burger { display: flex; }
  .zm-mobile-menu.is-open {
    display: flex; flex-direction: column;
    border-top: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.2rem; gap: 0.2rem;
    animation: zm-fadeIn .2s ease;
  }
  .zm-mobile-menu ul { list-style: none; margin: 0; padding: 0; display: contents; }
  .zm-mobile-menu a, .zm-mobile-menu .zm-soon {
    text-decoration: none; color: var(--fg);
    padding: 0.7rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .zm-mobile-menu .zm-soon { color: #555; display: flex; align-items: center; gap: 8px; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.zm-hero { padding: clamp(2rem, 4.5vw, 3.2rem) var(--pad) clamp(1.8rem, 4vw, 2.6rem); }
.zm-hero__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.zm-hero h1 {
  font-size: clamp(3.4rem, 10vw, 7rem); line-height: 0.92; font-weight: 700;
  letter-spacing: -0.03em; margin: 0 0 1.3rem;
}
.zm-hero p {
  font-size: clamp(1rem, 1.9vw, 1.15rem); color: var(--muted);
  max-width: 54ch; margin: 0 0 1.9rem; text-wrap: pretty;
}
.zm-hero__media {
  aspect-ratio: 4 / 3; border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px; overflow: hidden; background: var(--card-2);
}
.zm-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.zm-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.zm-btn {
  cursor: pointer; text-decoration: none; display: inline-block;
  padding: 0.85rem 1.6rem; border-radius: 6px; font-size: 0.98rem;
  transition: transform .15s, filter .15s, border-color .15s;
}
.zm-btn--primary { background: var(--accent); color: #0a0a0a; font-weight: 600; border: 1px solid var(--accent); }
.zm-btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.zm-btn--ghost { border: 1px solid rgba(255, 255, 255, 0.18); color: var(--fg); background: none; }
.zm-btn--ghost:hover { border-color: var(--accent); }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.zm-section { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--pad); }
.zm-section--tight { padding: clamp(2.2rem, 4.5vw, 3.2rem) var(--pad) clamp(3rem, 7vw, 5rem); }
.zm-section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; margin: 0 0 1.8rem; }

.zm-section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap;
}
.zm-section__head h2 { margin: 0; }
.zm-link-more {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted);
  text-decoration: none; transition: color .15s; white-space: nowrap;
}
.zm-link-more:hover { color: var(--accent); }

/* Grid of cards */
.zm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }

/* Channel cards */
.zm-channel {
  text-decoration: none; color: inherit; display: block;
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 12px;
  padding: 1.8rem; background: var(--card); transition: border-color .15s, transform .15s;
}
.zm-channel:hover { border-color: var(--accent); transform: translateY(-2px); }
.zm-channel__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.zm-channel__avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  background: #1a1a1a; flex-shrink: 0;
}
.zm-channel__name { font-weight: 600; font-size: 1.25rem; }
.zm-channel__platform { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); }
.zm-channel__stat { display: flex; align-items: baseline; gap: 0.5rem; }
.zm-channel__num { font-family: var(--font-mono); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 500; color: var(--accent); }
.zm-channel__label { font-family: var(--font-mono); font-size: 0.8rem; color: #888; }

/* Featured video */
.zm-featured {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.8rem); align-items: center;
}
.zm-featured__thumb {
  position: relative; display: block; aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px;
  overflow: hidden; background: #0e0e0e; text-decoration: none;
}
.zm-featured__thumb:hover { border-color: var(--accent); }
.zm-featured__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zm-featured__thumb::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.28); }
.zm-play {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
}
.zm-play__btn {
  width: 76px; height: 76px; border-radius: 50%; background: rgba(232, 200, 74, 0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}
.zm-play__tri {
  width: 0; height: 0; border-style: solid; border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent #0a0a0a; margin-left: 5px;
}
.zm-featured__meta { font-family: var(--font-mono); color: var(--accent); font-size: 0.8rem; margin-bottom: 0.9rem; }
.zm-featured h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; margin: 0 0 1rem; }
.zm-featured p { color: var(--muted); font-size: 1.05rem; line-height: 1.65; margin: 0; text-wrap: pretty; }

/* Post list (blog rows) */
.zm-posts { border-bottom: 1px solid var(--line); }
.zm-post-row {
  display: flex; align-items: baseline; gap: clamp(0.8rem, 2vw, 1.6rem);
  padding: 1.15rem 0.6rem; border-top: 1px solid var(--line);
  cursor: pointer; text-decoration: none; color: inherit;
  transition: background .15s, padding-left .15s;
}
.zm-post-row:hover { background: rgba(232, 200, 74, 0.045); padding-left: 1.1rem; }
.zm-post-row__tag { font-family: var(--font-mono); color: var(--accent); font-size: 0.82rem; min-width: 6.2rem; }
.zm-post-row__title { flex: 1; text-transform: uppercase; letter-spacing: 0.015em; font-weight: 500; font-size: clamp(0.95rem, 1.7vw, 1.15rem); }
.zm-post-row__date { font-family: var(--font-mono); color: var(--faint); font-size: 0.78rem; white-space: nowrap; }

/* Hardware cards */
.zm-hw {
  text-decoration: none; color: inherit; display: block;
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 12px;
  overflow: hidden; background: var(--card); transition: border-color .15s, transform .15s;
}
.zm-hw:hover { border-color: var(--accent); transform: translateY(-2px); }
.zm-hw__media { aspect-ratio: 16 / 10; overflow: hidden; }
.zm-hw__media img { width: 100%; height: 100%; object-fit: cover; }
.zm-hw__body { padding: 1.4rem; }
.zm-hw__body h3 { margin: 0 0 0.5rem; font-size: 1.25rem; font-weight: 600; }
.zm-hw__body p { margin: 0; color: var(--muted-2); font-size: 0.98rem; line-height: 1.6; text-wrap: pretty; }

/* Article categories */
.zm-cats__intro { max-width: 62ch; margin: 0.4rem 0 2.2rem; }
.zm-cats__intro p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; margin: 0 0 1rem; text-wrap: pretty; }
.zm-cats__intro p:last-child { margin-bottom: 0; color: var(--fg); }
.zm-cats { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.zm-cat {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.7rem 1.25rem; background: var(--card);
  font-size: 0.98rem; font-weight: 500;
  transition: border-color .15s, background .15s, transform .15s, color .15s;
}
.zm-cat:hover { border-color: var(--accent); color: var(--accent); background: rgba(232, 200, 74, 0.06); transform: translateY(-2px); }
.zm-cat__arrow { font-family: var(--font-mono); color: var(--faint); transition: transform .15s, color .15s; }
.zm-cat:hover .zm-cat__arrow { color: var(--accent); transform: translateX(3px); }

/* Latest videos carousel */
.zm-carousel { position: relative; }
.zm-carousel__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 0.4rem 0.2rem 0.6rem;
  /* Pasek przewijania ukryty — nawigacja odbywa się przyciskami lub gestem. */
  scrollbar-width: none; -ms-overflow-style: none;
}
.zm-carousel__track::-webkit-scrollbar { display: none; }
.zm-carousel__nav {
  position: absolute; top: calc(50% - 1.1rem); transform: translateY(-50%);
  z-index: 2; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(10, 10, 10, 0.82);
  color: var(--fg); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: border-color .15s, color .15s, opacity .15s;
}
.zm-carousel__nav svg { width: 18px; height: 18px; display: block; }
.zm-carousel__nav:hover { border-color: var(--accent); color: var(--accent); }
.zm-carousel__nav--prev { left: -0.4rem; }
.zm-carousel__nav--next { right: -0.4rem; }
.zm-carousel__nav[hidden] { display: none; }
@media (max-width: 640px) { .zm-carousel__nav { display: none; } }

.zm-vid {
  scroll-snap-align: start; text-decoration: none; color: inherit; display: block;
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 12px;
  overflow: hidden; background: var(--card); transition: border-color .15s, transform .15s;
}
.zm-vid:hover { border-color: var(--accent); transform: translateY(-2px); }
.zm-vid__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0e0e0e; }
.zm-vid__media img { width: 100%; height: 100%; object-fit: cover; }
.zm-vid__media::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.22); }
.zm-vid__media .zm-play__btn { width: 60px; height: 60px; }
.zm-vid__media .zm-play__tri { border-width: 10px 0 10px 16px; }
.zm-vid__body { padding: 1.1rem 1.2rem 1.3rem; }
.zm-vid__meta { font-family: var(--font-mono); color: var(--accent); font-size: 0.74rem; margin-bottom: 0.55rem; }
.zm-vid__body h3 { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.35; text-wrap: pretty; }

/* Brands */
.zm-brands--head { text-align: center; }
.zm-brands--head h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 500; color: #c8c8c8; margin: 0 0 2rem; }
.zm-brands { display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; justify-content: center; }
.zm-brands img {
  height: 26px; width: auto; opacity: 0.55;
  filter: brightness(0) invert(0.7); transition: opacity .15s, filter .15s;
}
.zm-brands img.zm-brand--tall { height: 40px; }
.zm-brands img:hover { opacity: 1; filter: brightness(0) invert(0.92); }
.zm-brands__text {
  font-size: clamp(1.3rem, 2.8vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em;
  color: var(--muted-2); opacity: 0.75; transition: color .15s, opacity .15s;
}
.zm-brands__text:hover { color: var(--fg); opacity: 1; }

/* Contact CTA box */
.zm-cta {
  border: 1px solid rgba(232, 200, 74, 0.3); border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 200, 74, 0.07), rgba(232, 200, 74, 0.01));
  padding: clamp(2rem, 5vw, 3.5rem); text-align: center;
}
.zm-cta h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 600; margin: 0 auto 1.6rem; max-width: 32ch; line-height: 1.25; text-wrap: balance; }
.zm-mail {
  display: inline-block; text-decoration: none; font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.6vw, 1.5rem); color: var(--accent);
  border: 1px solid rgba(232, 200, 74, 0.4); border-radius: 8px;
  padding: 0.85rem 1.5rem; transition: background .15s;
}
.zm-mail:hover { background: rgba(232, 200, 74, 0.08); }

/* About page (Łukasz Zmysło / ZMASLO) */
.zm-about .zm-about__hero h1 { font-size: clamp(2.1rem, 6vw, 4rem); line-height: 1.03; }
.zm-about .zm-about__tagline {
  font-size: clamp(1.15rem, 2.8vw, 1.6rem); color: var(--fg); font-weight: 600;
  line-height: 1.35; margin: 0 0 1.8rem; max-width: 22ch; text-wrap: balance;
}
.zm-about .zm-about__cue { color: var(--muted); margin: 0 0 0.35rem; }
.zm-about .zm-about__bigq {
  font-family: var(--font-mono); color: var(--accent); font-weight: 500;
  font-size: clamp(1.3rem, 3.4vw, 1.5rem); letter-spacing: -0.01em; margin: 0 0 1rem;
}
.zm-about .zm-about__aside { color: var(--muted-2); font-style: italic; margin: 0; max-width: 46ch; }
.zm-about .zm-cta .zm-kicker { text-align: center; }
/* Tekst + zdjęcie obok siebie; --flip przenosi zdjęcie na prawą stronę. */
.zm-split {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center;
}
.zm-split--flip .zm-split__media { order: 2; }
.zm-split__media {
  aspect-ratio: 4 / 3; border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px; overflow: hidden; background: var(--card-2);
}
.zm-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zm-split__body { min-width: 0; }
.zm-split__body > :last-child { margin-bottom: 0; }
@media (max-width: 859px) {
  /* Jedna kolumna — zdjęcie zawsze nad tekstem, także w sekcjach --flip. */
  .zm-split { grid-template-columns: 1fr; }
  .zm-split--flip .zm-split__media { order: 0; }
}

.zm-qlist, .zm-clist {
  list-style: none; margin: 1.4rem 0 2rem; padding: 0; max-width: 760px;
  display: grid; gap: 0.7rem;
}
.zm-qlist li, .zm-clist li {
  position: relative; padding: 0.75rem 1.1rem 0.75rem 2.5rem;
  border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 8px;
  background: var(--card); color: var(--fg); font-size: 1.04rem; line-height: 1.5;
}
.zm-qlist li::before, .zm-clist li::before {
  position: absolute; left: 0.9rem; top: 0.75rem;
  font-family: var(--font-mono); color: var(--accent); font-weight: 700;
}
.zm-qlist li::before { content: '?'; }
.zm-clist li::before { content: '▸'; }

/* Contact page */
.zm-contact__lead {
  font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--fg); font-weight: 600;
  line-height: 1.35; margin: 0 0 1.4rem; max-width: 30ch; text-wrap: balance;
}
.zm-contact__note {
  display: inline-block; font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--accent); border: 1px solid rgba(232, 200, 74, 0.35);
  background: rgba(232, 200, 74, 0.05); border-radius: 8px;
  padding: 0.7rem 1rem; margin: 0 0 1.8rem;
}
/* Channel card variant with a description instead of stats (contact page) */
.zm-channel--card { display: flex; flex-direction: column; }
.zm-channel__desc { color: var(--muted-2); font-size: 0.98rem; line-height: 1.6; margin: 0; text-wrap: pretty; }

/* FAQ */
.zm-faq { max-width: 820px; margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) var(--pad) clamp(4rem, 8vw, 6rem); }
.zm-faq h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 2rem; }
.zm-faq__list { border-top: 1px solid var(--line); }
.zm-faq__item { border-bottom: 1px solid var(--line); }
.zm-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0.4rem; cursor: pointer; list-style: none;
  font-weight: 500; font-size: clamp(1rem, 1.9vw, 1.15rem);
}
.zm-faq__q::-webkit-details-marker { display: none; }
.zm-faq__q .zm-faq__sign { font-family: var(--font-mono); color: var(--accent); font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.zm-faq__item[open] .zm-faq__sign-plus { display: none; }
.zm-faq__sign-minus { display: none; }
.zm-faq__item[open] .zm-faq__sign-minus { display: inline; }
.zm-faq__a { margin: 0; padding: 0 0.4rem 1.4rem; color: #a0a0a0; font-size: 1.02rem; line-height: 1.7; max-width: 64ch; text-wrap: pretty; }

/* =====================================================================
   BLOG / ARCHIVE PAGE HEADER
   ===================================================================== */
.zm-page-head { padding: clamp(3rem, 7vw, 5rem) var(--pad) 0; max-width: var(--wrap); margin: 0 auto; }
.zm-page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.8rem; }
.zm-page-head p { color: var(--muted-2); max-width: 50ch; margin: 0; }

/* Pagination */
.zm-pagination { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 2.4rem; font-family: var(--font-mono); font-size: 0.9rem; }
.zm-pagination .page-numbers {
  text-decoration: none; color: var(--muted); border: 1px solid var(--line);
  padding: 0.5rem 0.85rem; border-radius: 6px; transition: border-color .15s, color .15s;
}
.zm-pagination .page-numbers:hover, .zm-pagination .current {
  border-color: var(--accent); color: var(--accent);
}
.zm-pagination .current { background: rgba(232, 200, 74, 0.08); }

/* =====================================================================
   ARTICLE / SINGLE
   ===================================================================== */
.zm-article { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--pad) clamp(4rem, 8vw, 6rem); }
.zm-back {
  font-family: var(--font-mono); font-size: 0.82rem; color: #8a8a8a;
  display: inline-block; margin-bottom: 2.2rem; text-decoration: none; transition: color .15s;
}
.zm-back:hover { color: var(--accent); }
.zm-article__meta { display: flex; align-items: center; gap: 1rem; font-family: var(--font-mono); font-size: 0.82rem; margin-bottom: 1.2rem; }
.zm-article__meta .zm-tag { color: var(--accent); }
.zm-article__meta .zm-date { color: var(--faint); }
.zm-article h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 2rem; text-transform: uppercase; }
.zm-article__lead { font-size: 1.18rem; color: #e2e2e2; line-height: 1.7; margin: 0 0 2rem; text-wrap: pretty; }
.zm-article__hero { aspect-ratio: 16 / 9; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 8px; overflow: hidden; margin: 0 0 2.4rem; }
.zm-article__hero img { width: 100%; height: 100%; object-fit: cover; }
.zm-placeholder {
  aspect-ratio: 16 / 9; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 8px;
  background-color: var(--card-2);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 12px, transparent 12px 24px);
  display: flex; align-items: center; justify-content: center; margin: 0 0 2.4rem;
}
.zm-placeholder span { font-family: var(--font-mono); font-size: 0.8rem; color: #5e5e5e; letter-spacing: 0.08em; }

/* Article rich content (the_content) */
.zm-content { color: #b8b8b8; }
.zm-content > * { max-width: 100%; }
.zm-content p { font-size: 1.08rem; line-height: 1.75; margin: 0 0 1.4rem; text-wrap: pretty; }
.zm-content h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--fg); font-weight: 700; letter-spacing: -0.01em; margin: 2.4rem 0 1rem; }
.zm-content h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--fg); font-weight: 600; margin: 2rem 0 0.8rem; }
.zm-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.zm-content img, .zm-content figure { border-radius: 8px; margin: 1.8rem 0; }
.zm-content figure img { margin: 0; }
.zm-content figcaption { font-family: var(--font-mono); font-size: 0.78rem; color: var(--faint); margin-top: 0.5rem; text-align: center; }
.zm-content ul, .zm-content ol { color: #b8b8b8; font-size: 1.08rem; line-height: 1.8; padding-left: 1.4rem; margin: 0 0 1.4rem; }
.zm-content blockquote {
  border-left: 3px solid var(--accent); margin: 1.8rem 0; padding: 0.4rem 0 0.4rem 1.4rem;
  color: #c8c8c8; font-style: italic;
}
.zm-content pre {
  background: #0e0e0e; border: 1px solid var(--line); border-radius: 8px;
  padding: 1.1rem 1.3rem; overflow-x: auto; font-family: var(--font-mono); font-size: 0.9rem; margin: 0 0 1.4rem;
}
.zm-content code { font-family: var(--font-mono); font-size: 0.92em; background: rgba(255, 255, 255, 0.06); padding: 0.1em 0.35em; border-radius: 4px; }
.zm-content pre code { background: none; padding: 0; }
.zm-content .wp-block-embed, .zm-content iframe { margin: 2rem 0; }
.zm-content iframe { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }

/* =====================================================================
   PAGE (O mnie / Kontakt / generic)
   ===================================================================== */
.zm-page { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--pad); }
.zm-page__narrow { max-width: 760px; }
.zm-page h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 1.4rem; line-height: 1.1; }
.zm-page .zm-content { color: #b0b0b0; }
.zm-page .zm-content p { font-size: 1.08rem; line-height: 1.7; }
.zm-socials { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0; }
.zm-social {
  font-family: var(--font-mono); font-size: 0.85rem; text-decoration: none; color: var(--fg);
  border: 1px solid var(--line-strong); padding: 0.6rem 1.1rem; border-radius: 6px;
  transition: border-color .15s, color .15s;
}
.zm-social:hover { border-color: var(--accent); color: var(--accent); }

/* =====================================================================
   GEAR PAGE (Sprzęt codzienny / Kolekcja sprzętu)
   ===================================================================== */
.zm-gearpage__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 1.2rem; }
.zm-gearpage__intro { max-width: 70ch; margin-bottom: 2rem; }
.zm-gearpage__group {
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
  margin: 2.6rem 0 1.2rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line);
}
.zm-gearpage__group:first-child { margin-top: 0; }
.zm-gearpage__empty { color: var(--muted); padding: 1.4rem 0; border-top: 1px solid var(--line); }

/* Zakładki */
.zm-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; }
.zm-tab {
  text-decoration: none; color: var(--muted); background: none;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.7rem 1.4rem; font-size: 0.98rem;
  transition: border-color .15s, color .15s, background .15s;
}
.zm-tab:hover { border-color: var(--accent); color: var(--fg); }
.zm-tab.is-active {
  background: var(--accent); border-color: var(--accent);
  color: #0a0a0a; font-weight: 600;
}
.zm-tabpanel[hidden] { display: none; }
.zm-tabpanel { padding-top: 0; }

/* Kafelki sprzętu */
.zm-gear-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.zm-gear {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  transition: border-color .15s, transform .15s;
}
.zm-gear:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.zm-gear__media {
  aspect-ratio: 16 / 10; background: var(--card-2); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.zm-gear__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Zdjęcie zastępcze — przygaszone, żeby odróżniało się od prawdziwych zdjęć sprzętu. */
.zm-gear__fallback { opacity: 0.45; filter: grayscale(0.4); }
.zm-gear__body { padding: 1.1rem 1.2rem 1.3rem; }
.zm-gear__name { font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin: 0; color: var(--fg); }
.zm-gear__desc { font-size: 0.95rem; line-height: 1.6; color: var(--muted); margin: 0.6rem 0 0; text-wrap: pretty; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.zm-footer { border-top: 1px solid var(--line); margin-top: 2rem; }
.zm-footer__inner {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) var(--pad);
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
}
.zm-footer__logo { display: flex; align-items: baseline; gap: 1px; font-weight: 700; letter-spacing: 0.04em; }
.zm-footer__links { display: flex; gap: 1.4rem; font-family: var(--font-mono); font-size: 0.8rem; }
.zm-footer__links a { color: #8a8a8a; text-decoration: none; transition: color .15s; }
.zm-footer__links a:hover { color: var(--accent); }
.zm-footer__copy { font-family: var(--font-mono); font-size: 0.78rem; color: #666; }

/* =====================================================================
   WP CORE / COMMENTS / MISC
   ===================================================================== */
.zm-comments { max-width: 760px; margin: 0 auto; padding: 0 var(--pad) clamp(3rem, 6vw, 5rem); }
.zm-comments h3 { font-family: var(--font-mono); color: var(--accent); font-size: 0.9rem; letter-spacing: 0.1em; margin: 2.5rem 0 1.5rem; }
.zm-comments ol { list-style: none; padding: 0; margin: 0; }
.zm-comments .comment-body { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.zm-comments textarea, .zm-comments input[type="text"], .zm-comments input[type="email"], .zm-comments input[type="url"] {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  color: var(--fg); padding: 0.7rem 0.9rem; font-family: var(--font-sans); margin-bottom: 1rem;
}
.zm-comments .submit, .zm-comments input[type="submit"] {
  background: var(--accent); color: #0a0a0a; font-weight: 600; border: 0;
  padding: 0.75rem 1.4rem; border-radius: 6px; cursor: pointer; font-family: var(--font-sans);
}

.zm-search { padding: clamp(3rem, 7vw, 5rem) var(--pad) 1rem; max-width: var(--wrap); margin: 0 auto; }
.zm-searchform { display: flex; gap: 0.6rem; max-width: 480px; margin-top: 1.2rem; }
.zm-searchform input[type="search"] {
  flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  color: var(--fg); padding: 0.7rem 0.9rem; font-family: var(--font-sans);
}
.zm-searchform button {
  background: var(--accent); color: #0a0a0a; font-weight: 600; border: 0;
  padding: 0.7rem 1.2rem; border-radius: 6px; cursor: pointer;
}

.zm-notfound { text-align: center; padding: clamp(4rem, 10vw, 8rem) var(--pad); max-width: 640px; margin: 0 auto; }
.zm-notfound h1 { font-size: clamp(3rem, 12vw, 6rem); font-weight: 700; margin: 0 0 1rem; }
.zm-notfound p { color: var(--muted); margin: 0 0 2rem; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* WP alignment helpers */
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligned, .wp-caption { max-width: 100%; }
