/*
Theme Name: Przysłona
Theme URI: https://fotograf.ketrzyn.pl/
Author: AA
Description: Samodzielny, galeryjny motyw katalogu fotografów fotograf.ketrzyn.pl — matowa czerń, złote passe-partout, kadry z przysłoną.
Version: 1.0.0
Requires at least: 7.0
Requires PHP: 8.3
Text Domain: aa-theme
*/

/* =====================================================================
   Fotograf Kętrzyn — wspólny arkusz stylów
   Paleta: matowa czerń + biel + złoty akcent (passe-partout)
   ===================================================================== */

:root {
  /* --- kolory --- */
  --ink:        #0d0d0d;   /* matowa czerń */
  --ink-2:      #16161a;   /* karty / panele */
  --ink-3:      #202028;   /* obwódki / hover */
  --line:       #2c2c34;   /* delikatne linie */
  --paper:      #f6f3ec;   /* biel / kość słoniowa */
  --paper-soft: #d9d5cb;   /* przygaszony tekst */
  --muted:      #a09a8d;   /* podpisy */
  --gold:       #c7a15a;   /* złoty akcent */
  --gold-soft:  #e3c98e;   /* jaśniejsze złoto */
  --gold-deep:  #9c7c3c;   /* ciemne złoto */

  --bg:         var(--ink);
  --fg:         var(--paper);

  /* --- typografia --- */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* --- promienie / cienie / ruch --- */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-1: 0 2px 10px rgba(0,0,0,.35);
  --shadow-2: 0 18px 50px rgba(0,0,0,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
  --t: .3s var(--ease);

  --maxw: 1200px;
}

/* =========================== reset / baza =========================== */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--gold-soft); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--gold); }

h1,h2,h3,h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}

/* dostępność: fokus i skip-link */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--gold);
  color: #1a1408;
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top var(--t);
}
.skip-link:focus { top: 12px; color: #1a1408; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 1rem;
}

/* ============================= header ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: .02em;
}
.brand:hover { color: var(--paper); }
.brand .mark {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  box-shadow: inset 0 0 0 3px rgba(199,161,90,.12);
}
.brand .mark svg { width: 20px; height: 20px; }
.brand b { font-weight: 600; }
.brand .brand-accent { color: var(--gold); }

/* nawigacja desktop */
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .3rem;
  margin: 0; padding: 0;
}
.main-nav a {
  display: inline-block;
  color: var(--paper-soft);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .5rem .85rem;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--paper);
  background: var(--ink-3);
}

/* hamburger (checkbox-hack, działa bez JS) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  position: relative;
  background: var(--ink-2);
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--paper);
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle-label span { top: 50%; margin-top: -1px; }
.nav-toggle-label span::before { top: -6px; }
.nav-toggle-label span::after  { top: 6px; }

/* =============================== hero ============================== */
.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 82% 12%, rgba(199,161,90,.16), transparent 60%),
    radial-gradient(50% 50% at 8% 90%, rgba(199,161,90,.08), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.4rem, 1.6rem + 4vw, 4.6rem);
  letter-spacing: -.01em;
  margin-bottom: .35em;
}
.hero-title .gold { color: var(--gold); }
.hero-lead {
  color: var(--paper-soft);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  max-width: 46ch;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-frame {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

/* ===================== passe-partout / kadr ======================= */
.frame {
  position: relative;
  background: linear-gradient(160deg, #101014, #191920);
  border-radius: var(--r-md);
  padding: clamp(.7rem, 2vw, 1.1rem);
  box-shadow: var(--shadow-2);
}
.frame::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--r-md);
  border: 1px solid rgba(199,161,90,.25);
  pointer-events: none;
}
.frame-mat {
  border: 2px solid var(--gold);
  border-radius: var(--r-sm);
  padding: clamp(.55rem, 1.6vw, .9rem);
  background:
    linear-gradient(135deg, rgba(199,161,90,.06), rgba(199,161,90,0) 55%);
}
.frame-window {
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.frame-window svg { width: 100%; height: 100%; }
.frame-cap {
  margin-top: .7rem;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================= buttons ============================ */
.btn {
  --_bg: var(--gold);
  --_fg: #1a1408;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .03em;
  padding: .8rem 1.45rem;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  background: var(--_bg);
  color: var(--_fg);
  cursor: pointer;
  transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t);
}
.btn:hover {
  color: var(--_fg);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(199,161,90,.28);
}
.btn-ghost {
  --_bg: transparent;
  --_fg: var(--gold-soft);
}
.btn-ghost:hover {
  --_bg: rgba(199,161,90,.1);
  --_fg: var(--gold);
  box-shadow: none;
}
.btn svg { width: 16px; height: 16px; }

/* ============================= sekcje ============================= */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head {
  max-width: 60ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head h2 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
}
.section-head p { color: var(--paper-soft); margin: 0; }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--line); }

/* ===================== siatka kart fotografów ===================== */
.photographers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(199,161,90,.5);
  box-shadow: var(--shadow-2);
}
.card-media {
  padding: 1.1rem 1.1rem 0;
}
.card-media .frame { box-shadow: var(--shadow-1); }
.card-media .frame-window { aspect-ratio: 3 / 2; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-cat {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold);
  border: 1px solid rgba(199,161,90,.4);
  border-radius: 999px;
  padding: .25rem .7rem;
  margin-bottom: .9rem;
}
.card-cat:hover { background: rgba(199,161,90,.12); color: var(--gold); }
.card-title {
  font-size: 1.5rem;
  margin-bottom: .6rem;
}
.card-title a { color: var(--paper); }
.card-title a:hover { color: var(--gold-soft); }
.card-desc {
  color: var(--paper-soft);
  font-size: .96rem;
  line-height: 1.65;
  margin: 0 0 1.3rem;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: auto;
}
.card-actions .btn { padding: .65rem 1.2rem; font-size: .86rem; }

/* ===================== indeksy: chipy / kolumny =================== */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.index-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.7rem;
}
.index-card h3 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--paper);
  margin-bottom: 1.1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
}
.index-card h3 svg { width: 18px; height: 18px; color: var(--gold); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips a {
  display: inline-block;
  padding: .5rem .95rem;
  border-radius: 999px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  color: var(--paper-soft);
  font-size: .9rem;
  font-weight: 600;
  transition: color var(--t), background var(--t), border-color var(--t), transform var(--t);
}
.chips a:hover {
  color: var(--gold);
  border-color: rgba(199,161,90,.5);
  background: rgba(199,161,90,.08);
  transform: translateY(-2px);
}

/* pole wyszukiwania */
.searchbox {
  display: flex;
  gap: .5rem;
  max-width: 420px;
}
.searchbox input[type="search"] {
  flex: 1;
  min-width: 0;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  padding: .7rem 1.1rem;
  font: inherit;
  font-size: .95rem;
}
.searchbox input::placeholder { color: var(--muted); }
.searchbox .btn { padding: .7rem 1.2rem; }

/* ============================ artykuł ============================= */
.post-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}
.post-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 85% 0%, rgba(199,161,90,.14), transparent 60%);
  pointer-events: none;
}
.breadcrumb {
  position: relative;
  font-size: .82rem;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--paper-soft); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--muted); padding: 0 .35rem; }
.post-title {
  position: relative;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem);
}
.post-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: .86rem;
  letter-spacing: .03em;
}
.post-meta b { color: var(--paper-soft); font-weight: 600; }
.post-meta .cat {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
  font-size: .74rem;
}

/* układ dwukolumnowy artykuł + sidebar */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.prose { max-width: 68ch; }
.prose > .frame { margin: 0 0 2rem; max-width: 480px; }
.prose p { margin: 0 0 1.15rem; color: var(--paper); }
.prose .lead { font-size: 1.2rem; color: var(--paper); }
.prose h2 {
  font-size: 1.5rem;
  margin: 2rem 0 .8rem;
  color: var(--gold-soft);
  letter-spacing: .04em;
}
.prose .label {
  display: inline-block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  margin: 1.8rem 0 .7rem;
}
.prose ul.services {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .5rem;
}
.prose ul.services li {
  position: relative;
  padding: .5rem .5rem .5rem 1.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--paper-soft);
}
.prose ul.services li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.prose .region {
  color: var(--paper-soft);
  margin-bottom: 1.6rem;
}

/* tabela kontaktowa */
.contact-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.contact-table th,
.contact-table td {
  text-align: left;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.contact-table tr:last-child th,
.contact-table tr:last-child td { border-bottom: 0; }
.contact-table th {
  width: 40%;
  font-weight: 600;
  color: var(--paper-soft);
  background: var(--ink-2);
  font-family: var(--sans);
}
.contact-table th a { color: var(--paper-soft); }
.contact-table th a:hover { color: var(--gold); }
.contact-table td { color: var(--paper); word-break: break-word; overflow-wrap: anywhere; }

/* nawigacja poprzedni/następny wpis */
.post-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.post-nav a {
  display: inline-flex;
  flex-direction: column;
  gap: .2rem;
  padding: .8rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--paper);
  transition: border-color var(--t), background var(--t);
}
.post-nav a:hover { border-color: rgba(199,161,90,.5); background: var(--ink-2); }
.post-nav a.next { text-align: right; margin-left: auto; }
.post-nav small { color: var(--muted); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }

/* =========================== sidebar ============================= */
.sidebar { display: flex; flex-direction: column; gap: 1.4rem; position: sticky; top: 96px; }
.widget {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
}
.widget h3 {
  font-size: 1.05rem;
  color: var(--paper);
  margin-bottom: 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: .5rem;
}
.widget h3 svg { width: 16px; height: 16px; color: var(--gold); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { margin: 0; }
.widget ul li + li { border-top: 1px solid var(--line); }
.widget ul a {
  display: block;
  padding: .6rem 0;
  color: var(--paper-soft);
  font-weight: 600;
  font-size: .94rem;
}
.widget ul a:hover { color: var(--gold); padding-left: .3rem; }

/* ===================== archiwum / lista wpisów =================== */
.archive-item {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
}
.archive-item:last-of-type { border-bottom: 0; }
.archive-media .frame { box-shadow: var(--shadow-1); }
.archive-media .frame-window { aspect-ratio: 4 / 3; }
.archive-body h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-bottom: .5rem; }
.archive-body h2 a { color: var(--paper); }
.archive-body h2 a:hover { color: var(--gold-soft); }
.archive-body .card-cat { margin-bottom: .9rem; }
.archive-body p { color: var(--paper-soft); margin: 0 0 1.2rem; }
.archive-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.archive-actions .btn { padding: .6rem 1.15rem; font-size: .85rem; }

/* ========================== paginacja ============================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2.5rem;
}
.pagination a, .pagination span {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-weight: 700;
  color: var(--paper-soft);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1408;
}
.pagination .disabled { opacity: .4; }

/* ============================= stopka ============================= */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); max-width: 34ch; margin: 0; font-size: .93rem; }
.footer-col h4 {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: var(--paper-soft); font-size: .93rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem;
  color: var(--muted);
  font-size: .84rem;
}
.footer-bottom .copyright { color: var(--paper-soft); font-weight: 600; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--gold); }

/* ============================ responsywność ======================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-frame { order: -1; max-width: 340px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .archive-item { grid-template-columns: 1fr; }
  .archive-media { max-width: 340px; }
}

@media (max-width: 720px) {
  .nav-toggle-label { display: block; }
  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t);
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem;
  }
  .main-nav a { padding: .85rem 1rem; border-radius: var(--r-sm); }
  .nav-toggle:checked ~ .main-nav { max-height: 60vh; }
  .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked ~ .nav-toggle-label span::before { transform: translateX(-50%) rotate(45deg); top: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span::after  { transform: translateX(-50%) rotate(-45deg); top: 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .post-nav a.next { margin-left: 0; }
  .hero-actions .btn, .card-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   WORDPRESS — spoiwo motywu (poza makietą)
   ========================================================= */

/* Realne fotografie w oknach passe-partout: kafle kadrują (cover),
   figury w treści przyjmują proporcje zdjęcia (bez martwych pasów). */
.frame-window img.przyslona-foto { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.card-media .frame-window, .archive-media .frame-window { aspect-ratio: 3 / 2; }
.prose .frame .frame-window { aspect-ratio: auto; }
.prose .frame .frame-window img { width: 100%; height: auto; }

/* Tabela kontaktowa: etykiety wierszy (w bazie to <td>, w makiecie <th>)
   nigdy nie łamią się co literę; wartości mogą łamać w dowolnym miejscu. */
.contact-table th,
.contact-table tr > td:first-child { white-space: nowrap; width: auto; padding-right: 1rem; }
.contact-table tr > td:last-child { overflow-wrap: anywhere; width: 100%; }

/* Twarda blokada przewijania poziomego (lekcja serii) */
html, body { overflow-x: clip; }
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }
.sidebar, .widget { max-width: 100%; min-width: 0; }
.layout > * { min-width: 0; }

/* Pusty stan archiwum/wyszukiwania na całą kolumnę */
.archive-item--empty { display: block; }

/* Formularz komentarzy spójny z designem (searchbox) */
.comment-form { display: grid; gap: 1rem; margin-top: 1.2rem; }
.comment-form label { display: block; margin-bottom: .35rem; font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; background: #101014; color: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .7rem .9rem; font: inherit;
}
.comment-form input:focus-visible, .comment-form textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.comment-form .form-submit { margin: 0; }
.comment-form input[type="submit"] {
  display: inline-block; cursor: pointer; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-2, #e3c98e), var(--gold, #c7a15a));
  color: #1a1408; font-weight: 700; padding: .8rem 1.6rem; font-family: var(--sans);
}
.comment-form input[type="submit"]:hover { filter: brightness(1.06); }
.comment-form .comment-notes, .comment-form .logged-in-as { color: var(--muted); font-size: .85rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: baseline; }
.comment-form .comment-form-cookies-consent label { display: inline; text-transform: none; letter-spacing: 0; }

/* Paginacja WordPress (aa_pagination → ul.page-numbers) */
.pagination ul.page-numbers {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  background: transparent; border: 0; border-radius: 0; min-width: 0; height: auto;
}
.pagination ul.page-numbers li { display: inline-flex; }

/* Tabela kontaktowa: kolory linków przejmuje motyw (histor. #404040 zdjęty
   w strzeżonej transformacji; tu domykamy kontrast na czerni). */
.prose table a { color: var(--gold-2, #e3c98e); }
.prose table a:hover { color: var(--gold, #c7a15a); }

/* Komentarze (rdzeń: section.aa-comments) */
.aa-comments { margin-top: 2.5rem; border-top: 1px solid var(--line, #2c2c34); padding-top: 1.5rem; }
.aa-comments > h2 { font-size: 1.2rem; }
.aa-comment-list { list-style: none; margin: 0; padding: 0; }
.aa-comment-list li.comment { border-top: 1px solid var(--line, #2c2c34); padding: 1rem 0; }
.aa-comment-list li.comment:first-child { border-top: 0; }
.aa-comment-list .reply { display: none; }

/* Obrazy w treści (gdyby kiedyś doszły) */
.prose-body img { max-width: 100%; height: auto; }

/* 404 */
.error-404 .searchbox { max-width: 420px; margin: 1rem 0 1.4rem; }

/* Myślniki źródłowe pozycji usług zostają w HTML (kontrakt treści),
   wizualnie zastępuje je znacznik listy makiety. */
.services .svc-dash { display: none; }
