/* chmurawdomu.pl — design system */

:root {
  /* Kolory — deep navy + bright lime (modern editorial, nie corpo SaaS) */
  --bg:        #fafafa;     /* prawie biały, neutralny */
  --surface:   #ffffff;     /* pure white */
  --paper:     #f4f4f5;     /* delikatny gray dla kontrastu */
  --border:    #e4e4e7;     /* neutralny */
  --text:      #18181b;     /* deep slate / prawie czarny */
  --text-2:    #3f3f46;     /* secondary */
  --muted:     #71717a;     /* tertiary */
  --accent:    #1e3a8a;     /* deep navy — granat, primary brand */
  --accent-2:  #1e40af;     /* lighter navy dla hover */
  --accent-bg: #eef2ff;     /* very subtle blue tint */
  --spot:      #84cc16;     /* lime — spot color, energy accent */
  --spot-2:    #65a30d;     /* darker lime dla kontrastu na białym */
  --ink:       #0f172a;     /* najciemniejszy navy dla nagłówków */
  --success:   #166534;
  --danger:    #b91c1c;
  --warning:   #b45309;

  /* Typografia — Fraunces dla display (literary character) */
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-serif:   "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Spacing */
  --container: 1120px;
  --content: 720px;
  --sidebar: 300px;
  --radius: 4px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow:    0 2px 12px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { font-size: 21px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-2); text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header — terminal-prompt feel ─── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(250, 250, 250, 0.88);
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-title {
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.site-title::before {
  content: "~/";
  color: var(--spot-2);
  font-weight: 500;
}
.site-title::after {
  content: "▊";
  color: var(--spot-2);
  font-weight: 400;
  margin-left: 4px;
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.site-title:hover { color: var(--accent); text-decoration: none; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-mono);
  position: relative;
  padding-bottom: 2px;
}
.site-header nav a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.site-header nav a:hover {
  color: var(--accent);
  text-decoration: none;
}
.site-header nav a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
.site-header nav a.header-admin-link {
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: 4px;
  padding: 3px 12px 4px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.site-header nav a.header-admin-link::before { display: none; }
.site-header nav a.header-admin-link:hover {
  background: var(--danger);
  color: white;
}

/* ─── Main layout (2-column z sidebarem) ─── */
.layout-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar);
  gap: 56px;
  align-items: start;
  min-height: 70vh;
}
.content { min-width: 0; }
.sidebar { position: sticky; top: 96px; }

/* ─── Sidebar widgets ─── */
.sidebar-widget {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 36px;
  box-shadow: none;
  position: relative;
}
.sidebar-widget h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-widget h3::before {
  content: "$";
  color: var(--spot-2);
  font-weight: 600;
}
.sidebar-widget p { margin: 8px 0; font-size: 14px; line-height: 1.55; }
.sidebar-widget p:last-child { margin-bottom: 0; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-list li:first-child { padding-top: 0; }
.sidebar-list a {
  display: block;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
  font-size: 14.5px;
  text-decoration: none;
  margin-bottom: 3px;
}
.sidebar-list a:hover { color: var(--accent); }
.sidebar-cats { list-style: none; padding: 0; margin: 0; }
.sidebar-cats li {
  padding: 6px 0;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
}
.sidebar-cats li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-cats li:first-child { padding-top: 0; }
.sidebar-cats a { color: var(--text); font-weight: 500; }
.sidebar-cats a:hover { color: var(--accent); }
.tag-cloud { line-height: 2.4; }

/* ─── Hero (na stronie głównej) ─── */
.hero {
  margin: 0 0 32px;
  padding: 16px 0 12px;
  position: relative;
}
.hero::before {
  content: "$ cat manifesto.md";
  font-family: var(--font-mono);
  font-size: 0.65em;
  color: var(--spot-2);
  display: block;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2em;
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 12px;
  background: var(--spot);
  opacity: 0.45;
  z-index: -1;
  border-radius: 2px;
}
.hero .lead {
  font-family: var(--font-serif);
  font-size: 1em;
  color: var(--text-2);
  max-width: 580px;
  margin: 0 0 16px;
  line-height: 1.5;
}
.hero-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-top: 12px;
  filter: saturate(0.9) contrast(0.98);
}

/* ─── Index / lista postów ─── */
.page-title {
  font-family: var(--font-display);
  font-size: 36px;
  margin: 0 0 36px;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding-bottom: 14px;
}
.page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: var(--spot);
  border-radius: 2px;
}
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.post-list > li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.post-list > li:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.post-list a { color: inherit; }
.post-list a:hover { text-decoration: none; }
.post-list h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 8px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.post-list a:hover h2 { color: var(--accent); }
.post-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.post-meta time { color: var(--muted); }
.post-meta .dot { color: var(--border); }
.post-meta .tags {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  background: var(--accent-bg);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ─── Tagi / kategorie (klikalne) ─── */
.tag-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  padding: 2px 0;
  margin: 2px 14px 2px 0;
  border: none;
  position: relative;
  transition: color .2s ease, transform .15s ease;
  text-decoration: none;
}
.tag-pill::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--spot);
  opacity: 0.5;
  transition: opacity .2s ease, height .15s ease;
}
.tag-pill:hover {
  color: var(--accent-2);
  text-decoration: none;
  transform: translateY(-1px);
}
.tag-pill:hover::before {
  opacity: 1;
  height: 3px;
}
.cat-link {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted var(--muted);
  transition: color .15s ease, border-color .15s ease;
}
.cat-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}
.post-tags { margin: 4px 0 0; line-height: 1.9; }

/* ─── Taxonomy bar (na index, pasek kategorii pod hero) ─── */
.taxonomy-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 0 40px;
  font-size: 15px;
}
.taxonomy-label {
  color: var(--text-2);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.taxonomy-cloud {
  margin: 56px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
}
.taxonomy-cloud h3 {
  font-size: 15px;
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.taxonomy-cloud > div { line-height: 2.2; }
.post-desc { color: var(--text-2); margin: 10px 0 0; font-size: 15px; line-height: 1.6; }

/* ─── Single post ─── */
.post header { margin-bottom: 28px; }
.post header h1 {
  font-family: var(--font-display);
  font-size: 44px;
  margin: 0 0 14px;
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 700;
  color: var(--ink);
}
.post-hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 12px 0 0;
}
.post-caption {
  font-family: var(--font-sans);
  font-size: 0.78em;
  color: var(--muted);
  margin: 6px 0 0;
  text-align: center;
  font-style: italic;
}
.post-body { font-family: var(--font-serif); font-size: 1em; line-height: 1.7; }
.post-body p { margin: 18px 0; }
.post-body h2 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 56px 0 18px;
  padding-top: 8px;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--ink);
}
.post-body h2::before {
  content: "§ ";
  color: var(--spot-2);
  font-weight: 400;
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 36px 0 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.post-body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.post-body blockquote {
  position: relative;
  margin: 28px 0;
  padding: 10px 24px 10px 24px;
  background: var(--paper);
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 1em;
  font-weight: 500;
  line-height: 1.55;
}
.post-body blockquote::before {
  content: "";
}
.post-body blockquote p { margin: 6px 0; padding: 0; }
.post-body blockquote em, .post-body blockquote i { font-style: italic; }
.post-body blockquote strong { font-style: italic; font-weight: 700; }
.post-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.7em;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.post-body blockquote cite::before { content: "— "; }
.post-body code {
  font-family: var(--font-mono);
  background: var(--paper);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.86em;
  border: 1px solid var(--border);
  color: var(--accent);
}
.post-body pre {
  background: var(--paper);
  color: var(--text);
  border-radius: var(--radius);
  padding: 18px 22px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.65;
  margin: 28px 0;
  border: 1px solid var(--border);
  position: relative;
}
.post-body pre code { background: none; border: none; color: inherit; padding: 0; }
.post-body table {
  font-family: var(--font-sans);
  font-size: 15px;
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
}
.post-body th, .post-body td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.post-body th {
  color: var(--text-2);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f5f5f4;
}
.post-body ul, .post-body ol { padding-left: 26px; margin: 16px 0; }
.post-body li { margin: 6px 0; }

/* ─── Newsletter (MailerLite embed, full-width pod kontentem) ─── */
.newsletter-section {
  background: var(--ink);
  color: white;
  padding: 64px 24px 72px;
  border-top: 4px solid var(--spot);
  position: relative;
}
.newsletter-section::before {
  content: "$ subscribe --email you@example.com";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--spot);
  opacity: 0.6;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.newsletter-block {
  max-width: var(--content);
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 0;
  box-shadow: none;
  text-align: center;
}
.newsletter-block h3 {
  font-family: var(--font-display);
  color: white;
  font-size: 28px;
  margin-top: 8px;
  letter-spacing: -0.02em;
}
.newsletter-block p {
  color: rgba(255,255,255,0.78);
  margin: 0 auto 24px;
  font-size: 16px;
  max-width: 480px;
  line-height: 1.6;
}
.ml-embedded { margin: 0 !important; }

/* ─── Comments — card layout ─── */
.comments {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.comments h2 {
  font-size: 1.25em;
  margin: 0 0 22px;
  letter-spacing: -0.015em;
  font-family: var(--font-display);
  font-weight: 700;
}
.comments h3 {
  font-size: 1.05em;
  margin: 36px 0 14px;
  font-weight: 600;
  font-family: var(--font-display);
}

/* Comments — Medium-style: avatar po lewej, czysta typografia, subtelne separatory */
.comment {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  margin: 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  position: relative;
}
.comment:first-of-type { border-top: none; padding-top: 8px; }

.comment-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: block;
}
.comment-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: block;
}
.avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.avatar-initials.small { width: 36px; height: 36px; font-size: 13px; }
.comment-reply .comment-avatar,
.comment-reply .comment-avatar img,
.comment-reply .avatar-initials { width: 36px; height: 36px; }
.comment-reply .avatar-initials { font-size: 13px; }

.comment-content {
  flex: 1;
  min-width: 0;
}
.comment-meta {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  letter-spacing: normal;
}
.comment-meta strong {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: normal;
}
.comment-meta time { color: var(--muted); font-size: 13px; }

.comment-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
  color: var(--text);
  font-size: 16px;
  font-family: var(--font-sans);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.comment-body p { margin: 6px 0; }

.comment-actions {
  margin: 10px 0 0;
  font-size: 13px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
}
.reply-link {
  color: var(--muted);
  font-family: var(--font-sans);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.reply-link:hover { color: var(--accent); text-decoration: underline; }

/* Reply — wcięty + subtle thread line */
.comment-reply {
  margin: 0 0 0 58px;
  padding: 16px 0 16px 0;
  background: transparent;
  border-top: 1px solid var(--border);
  border-left: none;
  border-radius: 0;
  position: relative;
}

.comment.pending {
  background: #fffbeb;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: var(--radius);
  border-top-color: transparent;
}
.comment.pending + .comment { border-top: none; }
.badge-pending {
  background: var(--warning);
  color: white;
  font-family: var(--font-sans);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Admin inline actions (per-comment) */
.inline-form { display: inline; margin: 0; }
.admin-mini-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  line-height: 1.3;
  letter-spacing: 0.03em;
}
.admin-mini-approve { color: var(--success); border-color: #bbf7d0; }
.admin-mini-approve:hover { background: #dcfce7; }
.admin-mini-delete { color: var(--danger); border-color: #fecaca; }
.admin-mini-delete:hover { background: #fee2e2; }

/* Delete button — direct child .comment, position absolute w prawym górnym rogu */
.comment-delete-corner {
  position: absolute;
  top: 12px;
  right: 0;
  margin: 0;
  z-index: 2;
}
.comment-delete-corner button {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
}
.comment-delete-corner button:hover {
  background: var(--danger);
  color: white;
}

/* Zarezerwuj miejsce na buttoner X w prawym górnym rogu — meta nie wchodzi pod niego */
.comment:has(.comment-delete-corner) > .comment-content { padding-right: 36px; }

/* Hint pod input (np. "(optional, for gravatar)") */
.comment-form .field-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* Edit post link (na meta line) */
.admin-inline-link {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9em;
  text-decoration: none;
  padding: 1px 6px;
  border: 1px solid var(--accent);
  border-radius: 3px;
}
.admin-inline-link:hover { background: var(--accent); color: white; text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error {
  background: #fef2f2;
  border-left: 3px solid var(--danger);
  padding: 12px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0;
  color: var(--danger);
}
.success-msg {
  background: #dcfce7;
  border-left: 3px solid var(--success);
  padding: 12px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0;
  color: var(--success);
  font-weight: 500;
}

/* ─── Comment form — spójny z admin-form (terminal-mono labelki, accent focus) ─── */
.comment-form {
  display: grid;
  gap: 16px;
  background: var(--paper);
  padding: 22px 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
  position: relative;
}
.comment-form::before {
  content: "$ write --reply";
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--bg);
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--spot-2);
  letter-spacing: 0.05em;
  font-weight: 600;
}
.comment-form-row-name-email {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) {
  .comment-form-row-name-email { grid-template-columns: 1fr; }
}
.comment-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.comment-form label .muted.small {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
  color: var(--muted);
}
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.comment-form textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
  font-size: 15px;
  font-family: var(--font-sans);
}
.comment-form .muted {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin: 0;
}
.comment-form button {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  align-self: start;
  border-radius: var(--radius);
  background: var(--accent);
  color: white;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.comment-form button:hover { background: var(--accent-2); }

button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
  font-family: inherit;
}
button:hover { background: var(--accent-2); }
button:active { transform: scale(.98); }
button.btn-approve { background: var(--success); }
button.btn-approve:hover { background: #15803d; }
button.btn-reject { background: var(--danger); margin-left: 8px; }
button.btn-reject:hover { background: #b91c1c; }

/* ─── Footer — z signature ─── */
.site-footer {
  border-top: 0;
  padding: 40px 0 36px;
  color: var(--text-2);
  font-size: 14px;
  text-align: center;
  background: var(--paper);
  font-family: var(--font-mono);
}
.site-footer p { margin: 6px 0; }
.site-footer a { color: var(--ink); text-decoration: underline; }
.site-footer a:hover { color: var(--accent); }
.site-footer::before {
  content: "// fin.";
  display: block;
  color: var(--spot-2);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.signature {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.signature span::before { content: "❯ "; color: var(--spot-2); }

/* ─── Admin page — pełna szerokość, bez sidebara/newslettera ─── */
body.admin-page .sidebar { display: none; }
body.admin-page .newsletter-section { display: none; }
body.admin-page .layout-wrap {
  grid-template-columns: 1fr;
  max-width: 1200px;
}
body.admin-page .site-footer { margin-top: 0; }

/* ─── Admin panel ─── */
.admin-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  flex-wrap: wrap;
}
.admin-nav a, .admin-nav .active, .admin-nav button {
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-2);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.admin-nav a:hover { background: var(--surface); color: var(--accent); text-decoration: none; border-color: var(--border); }
.admin-nav .active { background: var(--accent); color: white; }
.admin-nav .admin-btn-primary {
  background: var(--accent); color: white; border-color: var(--accent); margin-left: auto;
}
.admin-nav .admin-btn-primary:hover { background: var(--accent-2); color: white; }
.admin-btn-secondary {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  padding: 7px 13px; border-radius: 4px; font-size: 13px; font-family: var(--font-mono);
  cursor: pointer; text-decoration: none; display: inline-block;
}
.admin-btn-secondary:hover { background: var(--paper); text-decoration: none; }
.admin-btn-primary {
  background: var(--accent); color: white; border: 1px solid var(--accent);
  padding: 9px 18px; border-radius: 4px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-block; font-family: var(--font-mono);
}
.admin-btn-primary:hover { background: var(--accent-2); color: white; text-decoration: none; }
.admin-btn-danger {
  background: var(--danger); color: white; border: none;
  padding: 7px 13px; border-radius: 4px; font-size: 13px; font-family: var(--font-mono);
  cursor: pointer;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: var(--paper); }
.admin-table .actions { display: flex; gap: 6px; flex-wrap: wrap; }

.badge-kind, .badge-draft, .badge-published {
  font-family: var(--font-mono); font-size: 11px;
  padding: 2px 8px; border-radius: 3px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-kind { background: var(--accent-bg); color: var(--accent); }
.badge-draft { background: #fef3c7; color: var(--warning); }
.badge-published { background: #dcfce7; color: var(--success); }

.admin-form { max-width: 100%; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 28px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row-wide { grid-column: 1 / -1; }
.form-row span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.form-row input[type=text], .form-row input[type=datetime-local], .form-row select {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus, .form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.form-row.form-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.form-row.form-checkbox span { text-transform: none; letter-spacing: 0; font-size: 14px; }
.form-row.form-checkbox input { width: 18px; height: 18px; }
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

#editor { margin-top: 8px; }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .layout-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sidebar { position: static; }
}
@media (max-width: 640px) {
  html { font-size: 19px; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-table { font-size: 13px; }
  .admin-table .actions { flex-direction: column; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 17px; }
  .post header h1 { font-size: 28px; }
  .page-title { font-size: 26px; }
  .post-body { font-size: 17px; }
  .post-list > li { padding: 20px 22px; }
  .site-header nav { gap: 16px; }
  .newsletter-block { padding: 28px 22px; }
  .newsletter-section { padding: 40px 16px; }
  .layout-wrap { padding: 40px 16px; }
}
