/*
Theme Name: Lazurowy Katalog
Theme URI: https://www.faxsharp.pl
Author: AA
Version: 1.0.0
Text Domain: aa-faxsharp-katalog
*/
/* ================================================================
   Fax Sharp — arkusz wspólny
   Kierunek: neutralna stal + rubinowy akcent, przemysłowa precyzja
   ================================================================ */

/* ---- Design tokens ---- */
:root {
  /* Stal */
  --ink:        #14181d;
  --steel-900:  #1c2128;
  --steel-800:  #262c34;
  --steel-700:  #3a424c;
  --steel-500:  #67707b;
  --steel-400:  #8a929c;
  --steel-300:  #c3c9d0;
  --steel-200:  #dde1e6;
  --steel-100:  #eceef1;
  --paper:      #f5f6f8;
  --white:      #ffffff;

  /* Rubin */
  --ruby:       #c01933;
  --ruby-dark:  #97102a;
  --ruby-tint:  #fbe9ec;

  /* Role */
  --bg:            var(--paper);
  --surface:       var(--white);
  --surface-alt:   var(--steel-100);
  --text:          var(--ink);
  --text-soft:     var(--steel-500);
  --border:        var(--steel-200);
  --accent:        var(--ruby);
  --accent-strong: var(--ruby-dark);

  /* Typografia */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono",
          Menlo, Consolas, monospace;

  /* Skala */
  --radius:    14px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20,24,29,.06), 0 2px 6px rgba(20,24,29,.05);
  --shadow-md: 0 6px 18px rgba(20,24,29,.09), 0 2px 6px rgba(20,24,29,.06);
  --shadow-lg: 0 18px 44px rgba(20,24,29,.14);

  --ring: 0 0 0 3px rgba(192,25,51,.35);

  --ease: cubic-bezier(.2,.7,.3,1);

  --wrap: 1220px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

/* ---- Reset uzupełniający ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 520px at 100% -10%, rgba(192,25,51,.05), transparent 60%),
    var(--bg);
  line-height: 1.65;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-decoration-thickness: .06em; text-underline-offset: .15em; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.01em; margin: 0; }

:focus-visible {
  outline: 3px solid var(--ruby);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 1rem; color:#fff; }

/* ---- Utilities ---- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.eyebrow {
  display:inline-flex; align-items:center; gap:.5rem;
  font-size:.74rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color: var(--accent-strong);
}
.eyebrow::before {
  content:""; width:26px; height:2px; background:var(--accent); border-radius:2px;
}

/* ================================================================
   HEADER / NAV
   ================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 40px; height: 40px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--steel-800), var(--steel-900));
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.08);
}
.brand__mark svg { width: 23px; height: 23px; }
.brand small {
  display:block; font-size:.66rem; font-weight:600; letter-spacing:.03em;
  color: var(--text-soft); margin-top: -2px;
}

/* Nav */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  align-items: center; gap: .5rem;
  cursor: pointer; user-select: none;
  padding: .55rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 600; font-size: .92rem;
  box-shadow: var(--shadow-sm);
}
.nav-toggle-label .bars {
  width: 18px; height: 12px; position: relative; display:inline-block;
}
.nav-toggle-label .bars::before,
.nav-toggle-label .bars::after,
.nav-toggle-label .bars span {
  content:""; position:absolute; left:0; right:0; height:2px;
  background: var(--ink); border-radius:2px;
}
.nav-toggle-label .bars::before { top:0; }
.nav-toggle-label .bars span { top:5px; }
.nav-toggle-label .bars::after { top:10px; }

.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: .3rem;
}
.primary-nav a {
  display: inline-flex; align-items: center;
  padding: .55rem .85rem;
  border-radius: var(--radius-sm);
  color: var(--steel-700);
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.primary-nav a:hover { background: var(--surface-alt); color: var(--ink); }
.primary-nav a[aria-current="page"] {
  color: var(--accent-strong);
  background: var(--ruby-tint);
}

@media (max-width: 820px) {
  .nav-toggle-label { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height .28s var(--ease);
  }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: .6rem var(--gutter) 1rem; gap: .15rem; }
  .primary-nav a { padding: .85rem 1rem; font-size: 1.02rem; }
  .nav-toggle:checked ~ .primary-nav { max-height: 340px; }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(720px 380px at 12% 0%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(158deg, var(--steel-900), var(--ink) 60%, #0f1216);
  color: #eef1f4;
}
.hero::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 46px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  padding-block: clamp(2.6rem, 6vw, 4.6rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; }
}
.hero .eyebrow { color: #ff8ea0; }
.hero .eyebrow::before { background: var(--ruby); }
.hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.2rem);
  font-weight: 850;
  margin: .55rem 0 .3rem;
  letter-spacing: -.03em;
}
.hero h1 a { color: inherit; text-decoration: none; }
.hero__tagline {
  font-size: clamp(1.05rem, .98rem + .7vw, 1.5rem);
  color: #c7cdd5; font-weight: 500; max-width: 40ch;
  margin: 0 0 1.6rem;
}
.hero__promo {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.12);
  border-left: 3px solid var(--ruby);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
}
.hero__promo h2 {
  font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem);
  color: #fff; margin-bottom: .9rem; font-weight: 700;
}
.hero__disclaimer {
  font-size: .84rem; color: #99a2ac; max-width: 62ch; margin: 0;
}
.hero__visual {
  display: grid; place-items: center;
}
.hero__visual .fax-illu {
  width: 100%; max-width: 420px;
  filter: drop-shadow(0 24px 46px rgba(0,0,0,.45));
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: .93rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--accent {
  background: var(--ruby); color: #fff;
  box-shadow: 0 8px 20px rgba(192,25,51,.35);
}
.btn--accent:hover { background: var(--ruby-dark); color:#fff; box-shadow: 0 12px 26px rgba(192,25,51,.42); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface-alt); color: var(--ink); }
.btn svg { width: 15px; height: 15px; }

/* ================================================================
   ECOSYSTEM STRIP
   ================================================================ */
.ecosystem { padding-block: clamp(2rem, 5vw, 3.2rem); }
.ecosystem__head { margin-bottom: 1.4rem; }
.ecosystem__head h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); margin-top:.5rem; font-weight: 800;
}
.eco-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 540px) { .eco-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .eco-grid { grid-template-columns: repeat(4, 1fr); } }
.eco-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.eco-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--steel-300);
  color: inherit;
}
.eco-card__media { aspect-ratio: 16/10; background: var(--steel-900); }
.eco-card__media svg { width: 100%; height: 100%; }
.eco-card__body {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .95rem 1.1rem;
}
.eco-card__body h3 { font-size: 1.02rem; font-weight: 700; }
.eco-card__body .arrow {
  width: 30px; height: 30px; flex:0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-alt); color: var(--accent-strong);
  transition: background .16s var(--ease), transform .16s var(--ease);
}
.eco-card:hover .arrow { background: var(--ruby); color:#fff; transform: translateX(2px); }
.eco-card__body .arrow svg { width: 14px; height: 14px; }

/* ================================================================
   LAYOUT: main + aside
   ================================================================ */
.content-wrap {
  display: grid; gap: clamp(1.5rem, 4vw, 2.6rem);
  padding-block: clamp(1.6rem, 4vw, 2.6rem) clamp(2.6rem, 6vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 1040px) {
  .content-wrap { grid-template-columns: minmax(0,1fr) 320px; align-items: start; }
}

.section-head { margin-bottom: 1.5rem; }
.section-head h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-top:.5rem; font-weight: 850;
  letter-spacing:-.02em;
}
.section-head p { color: var(--text-soft); margin:.5rem 0 0; max-width: 60ch; }

/* ---- Model cards grid ---- */
.model-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 560px) { .model-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1360px){ .model-grid { grid-template-columns: repeat(3, 1fr); } }

.model-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.model-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--steel-300);
}
.model-card__media {
  position: relative;
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, var(--steel-100), #fff 55%, var(--steel-200));
  border-bottom: 1px solid var(--border);
}
.model-card__media svg { width: 100%; height: 100%; }
.model-card__tag {
  position: absolute; top: .8rem; left: .8rem;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .65rem;
  background: var(--ink); color: #fff;
  border-radius: var(--radius-pill);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.model-card__tag::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--ruby); }
.model-card__body {
  display: flex; flex-direction: column; flex: 1;
  padding: 1.1rem 1.2rem 1.25rem;
}
.model-card__body h3 { font-size: 1.16rem; font-weight: 800; margin-bottom: .55rem; letter-spacing:-.01em; }
.model-card__body h3 a { color: var(--ink); text-decoration: none; }
.model-card__body h3 a:hover { color: var(--accent-strong); }
.model-card__desc { color: var(--steel-700); font-size: .95rem; margin: 0 0 1.1rem; flex: 1; }
.model-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap:.6rem;
  padding-top: .9rem; border-top: 1px dashed var(--border);
}
.readmore {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .9rem; color: var(--accent-strong); text-decoration: none;
}
.readmore svg { width: 14px; height: 14px; transition: transform .16s var(--ease); }
.readmore:hover svg { transform: translateX(3px); }
.model-card__spec {
  font-family: var(--mono); font-size: .72rem; color: var(--text-soft);
  letter-spacing: .02em;
}

/* ================================================================
   SIDEBAR / ASIDE
   ================================================================ */
.sidebar { display: grid; gap: 1.15rem; }
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.widget h2, .widget h3 {
  font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em;
  color: var(--steel-700);
  padding-bottom: .7rem; margin-bottom: .85rem;
  border-bottom: 2px solid var(--surface-alt);
  position: relative;
}
.widget h2::after, .widget h3::after {
  content:""; position:absolute; left:0; bottom:-2px; width:38px; height:2px; background: var(--ruby);
}
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] {
  flex: 1; min-width: 0;
  padding: .6rem .8rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; font-size: .92rem; background: var(--bg); color: var(--text);
}
.search-form input::placeholder { color: var(--steel-500); opacity: 1; }
.search-form button {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 42px;
  border: none; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; cursor: pointer;
  transition: background .16s var(--ease);
}
.search-form button:hover { background: var(--ruby); }
.search-form button svg { width: 16px; height: 16px; }

.list-links { list-style: none; margin: 0; padding: 0; }
.list-links li + li { border-top: 1px solid var(--surface-alt); }
.list-links a {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem 0;
  color: var(--steel-700); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: color .16s var(--ease), padding .16s var(--ease);
}
.list-links a::before {
  content:""; width: 6px; height: 6px; flex:0 0 auto;
  border-radius: 2px; background: var(--steel-300); transform: rotate(45deg);
  transition: background .16s var(--ease);
}
.list-links a:hover { color: var(--accent-strong); padding-left: .3rem; }
.list-links a:hover::before { background: var(--ruby); }

.cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .8rem;
  border-radius: var(--radius-pill);
  background: var(--surface-alt); color: var(--steel-700);
  text-decoration: none; font-weight: 700; font-size: .85rem;
  border: 1px solid transparent;
  transition: all .16s var(--ease);
}
.chip:hover { background: var(--ruby-tint); color: var(--accent-strong); border-color: rgba(192,25,51,.25); }
.chip .count {
  font-size: .72rem; background: #fff; color: var(--steel-500);
  padding: 0 .45rem; border-radius: var(--radius-pill); font-family: var(--mono);
}

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  margin-top: 2rem;
}
.pagination a, .pagination span {
  display: grid; place-items: center;
  min-width: 42px; height: 42px; padding: 0 .7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  font-weight: 700; font-size: .92rem; color: var(--steel-700); text-decoration: none;
  transition: all .16s var(--ease);
}
.pagination a:hover { border-color: var(--steel-300); background: var(--surface-alt); }
.pagination [aria-current="page"] {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* ================================================================
   ARTICLE / PODSTRONA (typografia treści)
   ================================================================ */
.page-head {
  background:
    radial-gradient(600px 300px at 90% -20%, rgba(192,25,51,.06), transparent 60%),
    var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(1.8rem, 4vw, 2.8rem);
}
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  font-size: .84rem; color: var(--text-soft); margin-bottom: .9rem;
  list-style: none; padding: 0;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumbs li:not(:last-child)::after { content:"/"; color: var(--steel-300); }
.breadcrumbs a { color: var(--steel-500); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { color: var(--accent-strong); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }

.page-head h1 {
  font-size: clamp(1.9rem, 1.4rem + 2.6vw, 3rem); font-weight: 850; letter-spacing: -.025em;
}
.post-meta {
  display: flex; flex-wrap: wrap; gap: .55rem .9rem; align-items: center;
  margin-top: 1rem; font-size: .85rem; color: var(--text-soft);
}
.post-meta .pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border); font-weight: 600;
}
.post-meta .pill svg { width: 13px; height: 13px; color: var(--accent-strong); }
.post-meta .pill--cat { background: var(--ruby-tint); border-color: rgba(192,25,51,.2); color: var(--accent-strong); }

.prose {
  max-width: 72ch;
  font-size: clamp(1.02rem, .99rem + .2vw, 1.12rem);
}
.prose > * + * { margin-top: 1.15rem; }
.prose h2 {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem); font-weight: 800; margin-top: 2.2rem;
  letter-spacing:-.015em;
}
.prose h3 { font-size: 1.25rem; font-weight: 800; margin-top: 1.8rem; }
.prose strong { color: var(--ink); font-weight: 800; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .5rem; }
.prose a { font-weight: 600; }

/* Spec sheet (wpis) */
.spec-figure {
  margin: 0 0 1.6rem;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--steel-100), #fff 55%, var(--steel-200));
  box-shadow: var(--shadow-sm);
}
.spec-figure .frame { aspect-ratio: 16/10; }
.spec-figure .frame svg { width:100%; height:100%; }
.spec-figure figcaption {
  padding: .7rem 1rem; font-size: .8rem; color: var(--text-soft);
  border-top: 1px solid var(--border); background: var(--surface);
  font-family: var(--mono);
}
.spec-list {
  list-style: none; margin: 1.3rem 0 0; padding: 0;
  display: grid; gap: .1rem;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
}
.spec-list li {
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.1rem;
  background: var(--surface);
}
.spec-list li:nth-child(even) { background: var(--bg); }
.spec-list li::before {
  content:""; flex:0 0 auto; width: 10px; height: 10px; border-radius: 3px;
  background: var(--ruby); transform: rotate(45deg);
}
.spec-list li + li { margin-top: 0; }

.note-box {
  border: 1px solid var(--border); border-left: 3px solid var(--ruby);
  background: var(--surface); border-radius: var(--radius);
  padding: 1.05rem 1.2rem; box-shadow: var(--shadow-sm);
}
.note-box p { margin: 0; font-size: .92rem; color: var(--steel-700); }

/* File-format chips row inside prose */
.format-row { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.4rem; }
.format-row .fmt {
  font-family: var(--mono); font-size:.78rem; font-weight:600;
  padding:.3rem .6rem; border-radius:var(--radius-sm);
  background: var(--surface-alt); border:1px solid var(--border); color: var(--steel-700);
}

/* ================================================================
   CATEGORY LIST (kategoria.html)
   ================================================================ */
.cat-hero {
  background: linear-gradient(158deg, var(--steel-900), var(--ink));
  color:#eef1f4;
  padding-block: clamp(2rem,5vw,3.4rem);
}
.cat-hero .eyebrow { color:#ff8ea0; }
.cat-hero .eyebrow::before { background: var(--ruby); }
.cat-hero h1 { font-size: clamp(2rem,1.5rem+3vw,3.2rem); font-weight:850; margin:.5rem 0 .5rem; }
.cat-hero p { color:#c7cdd5; max-width: 60ch; margin:0; }
.cat-hero .meta-count {
  display:inline-flex; align-items:center; gap:.5rem; margin-top:1.1rem;
  font-family:var(--mono); font-size:.82rem; color:#aeb6bf;
  padding:.35rem .8rem; border:1px solid rgba(255,255,255,.14); border-radius:var(--radius-pill);
}

.list-row {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 720px) {
  .list-item { grid-template-columns: 150px 1fr auto; }
}
.list-item {
  display: grid; gap: 1rem; align-items: center;
  grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}
.list-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--steel-300); }
.list-item__media {
  aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(135deg, var(--steel-100), #fff 55%, var(--steel-200));
  border: 1px solid var(--border);
}
.list-item__media svg { width:100%; height:100%; }
.list-item__body h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: .35rem; }
.list-item__body h3 a { color: var(--ink); text-decoration: none; }
.list-item__body h3 a:hover { color: var(--accent-strong); }
.list-item__body p { margin: 0; color: var(--steel-700); font-size: .93rem; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--ink); color: #b8c0c9;
  padding-block: clamp(2.4rem, 5vw, 3.4rem);
  margin-top: auto;
}
.site-footer__grid {
  display: grid; gap: 1.8rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer h2, .site-footer h3 {
  color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .13em;
  margin-bottom: 1rem; font-weight: 800;
}
.site-footer .brand--footer {
  display:inline-flex; align-items:center; gap:.6rem;
  font-size: 1.3rem; font-weight: 800; color:#fff; text-decoration:none; margin-bottom: .9rem;
}
.site-footer .brand--footer .brand__mark { background: rgba(255,255,255,.08); }
.site-footer p { font-size: .9rem; max-width: 46ch; margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .55rem; }
.site-footer a { color: #c3cbd4; text-decoration: none; font-weight: 500; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.site-footer__bar {
  margin-top: 2.2rem; padding-top: 1.3rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; justify-content: space-between;
  font-size: .82rem; color: #8994a0;
}
.site-footer__bar a { color:#98a2ad; text-decoration: underline; text-underline-offset:.15em; }
.site-footer__bar a:hover { color:#fff; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Page shell to keep footer down */
.page { min-height: 100dvh; display: flex; flex-direction: column; }
.page main { flex: 1; }
