/* Blog AIpodKlucz.pl v2 (05.10.2026) - ten sam system co strona: porcelana + atrament,
   iris = to, co przygotowało AI; lime = zatwierdzone przez człowieka. */
:root {
  --porcelain: #f1f2ee; --paper: #fbfbf8; --ink: #0e1b17; --ink-2: #26332e; --sage: #5e6b65; --sage-2: #8d9892;
  --glass: #dde4e1; --line: #d9dfdb; --iris: #4d5bff; --iris-soft: #e6e8ff; --lime: #9be22d; --lime-deep: #4f7d0b; --lime-soft: #ecf9d6;
  --red: #b42318; --r-xl: 28px; --r-l: 20px; --r-m: 14px; --r-s: 10px;
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --text: "Geist", -apple-system, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--iris); outline-offset: 3px; border-radius: 6px; }
html { scroll-behavior: smooth; }
body { font-family: var(--text); background: var(--porcelain); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; font-variation-settings: "wdth" 92; }
.label { font-family: var(--display); font-size: 13px; letter-spacing: .03em; color: var(--sage); font-weight: 700; }
.label .lime { color: var(--lime-deep); }

/* NAV */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(241, 242, 238, .85); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(14, 27, 23, .07); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; display: flex; align-items: center; gap: 8px; }
.brand::before { content: ""; width: 28px; height: 28px; border-radius: 8px; background: url(/assets/logo-mark.svg) center / cover no-repeat; flex: none; }
.brand span { display: none; }
.brand small { font-family: var(--text); font-size: 13px; font-weight: 600; color: var(--iris); background: var(--iris-soft); padding: 3px 10px; border-radius: 999px; letter-spacing: 0; margin-left: 4px; }
.nav-links { display: flex; gap: 4px; align-items: center; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { padding: 8px 13px; border-radius: 999px; }
.nav-links a:not(.btn):hover { background: rgba(14, 27, 23, .06); }
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font-family: var(--text); transition: background .15s ease, transform .15s ease; }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-2); }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: #8fd420; }
.btn-ghost { border-color: rgba(14, 27, 23, .25); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* LISTA WPISÓW */
.blog-hero { padding: 72px 0 36px; }
.blog-hero .label { display: none; }
.blog-hero h1 { font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: -0.035em; font-variation-settings: "wdth" 86; margin-bottom: 20px; max-width: 13em; }
.blog-hero h1 mark { background: none; color: var(--iris); }
.blog-hero p { font-size: 19px; color: var(--sage); max-width: 36em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.filter { font-family: var(--text); font-size: 14.5px; font-weight: 600; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink-2); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(14, 27, 23, .08); }
.filter:hover { box-shadow: inset 0 0 0 1px rgba(14, 27, 23, .25); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.posts { padding: 28px 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { border-radius: var(--r-l); overflow: hidden; background: var(--paper); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(14, 27, 23, .45); }
.post-card img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; background: var(--glass); }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { font-size: 13.5px; color: var(--sage); }
.post-meta b { color: var(--iris); font-weight: 600; }
.post-body h2 { font-size: 21px; line-height: 1.18; letter-spacing: -0.02em; font-weight: 700; }
.post-body p { font-size: 15px; color: var(--sage); line-height: 1.55; }
.post-more { margin-top: auto; font-size: 14.5px; font-weight: 600; align-self: flex-start; border-bottom: 2px solid var(--lime); }
.posts .post-card:first-child { grid-column: span 3; display: grid; grid-template-columns: 1.3fr 1fr; border-radius: var(--r-xl); }
.posts .post-card:first-child img { height: 100%; aspect-ratio: auto; min-height: 380px; }
.posts .post-card:first-child .post-body { padding: 44px; justify-content: center; gap: 14px; }
.posts .post-card:first-child h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.02; letter-spacing: -0.03em; font-variation-settings: "wdth" 88; }
.posts .post-card:first-child p { font-size: 17px; }
.blog-empty { padding: 48px 0; color: var(--sage); }

.band-cta { margin: 48px 0 0; background: var(--ink); color: var(--paper); border-radius: var(--r-xl); padding: 52px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.band-cta .label { display: none; }
.band-cta h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; margin-bottom: 12px; }
.band-cta p { color: #a9b6b0; font-size: 16px; }
.band-cta .acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.band-cta .btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--paper); }

/* ARTYKUŁ */
.article { padding: 48px 0 24px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 740px) 270px; gap: 64px; justify-content: center; }
.crumbs { font-size: 14px; color: var(--sage); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs .rub { color: var(--iris); font-weight: 600; }
.article h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -0.035em; font-variation-settings: "wdth" 88; margin: 16px 0 18px; }
.article h1 em { font-style: normal; color: var(--iris); }
.article-lead { font-size: 20px; color: var(--ink-2); line-height: 1.55; }
.byline { display: flex; gap: 14px; align-items: center; margin: 24px 0 28px; font-size: 15px; color: var(--sage); }
.byline img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--paper); box-shadow: 0 6px 18px -8px rgba(14, 27, 23, .45); }
.byline strong { color: var(--ink); font-size: 16px; }
.hero-figure img { width: 100%; height: auto; border-radius: var(--r-xl); aspect-ratio: 16/9; object-fit: cover; background: var(--glass); }

.tldr { margin: 30px 0 10px; background: var(--paper); border-radius: var(--r-l); padding: 24px 26px; box-shadow: inset 4px 0 0 var(--iris); }
.tldr .label { color: var(--iris); display: block; margin-bottom: 10px; }
.tldr ul { padding-left: 18px; }
.tldr li { font-size: 16.5px; margin: 6px 0; color: var(--ink-2); }

.prose { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); margin-top: 52px; scroll-margin-top: 90px; }
.prose h3 { font-size: 22px; line-height: 1.25; color: var(--ink); margin-top: 34px; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--iris); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { color: var(--iris); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 4px solid var(--lime); padding: 4px 0 4px 20px; color: var(--ink); font-size: 20px; }
.prose code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .86em; background: var(--glass); padding: 2px 7px; border-radius: 6px; }
.prose pre { background: var(--ink); color: #dfe7e3; padding: 22px 24px; border-radius: var(--r-l); overflow-x: auto; font-size: 14.5px; line-height: 1.65; position: relative; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; background: var(--paper); border-radius: var(--r-m); }
.prose th { text-align: left; font-size: 13.5px; font-weight: 600; color: var(--sage); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prose td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose figure img { border-radius: var(--r-l); }
.prose figcaption { font-size: 14px; color: var(--sage); margin-top: 8px; }

.box { border-radius: var(--r-l); padding: 22px 24px; font-size: 17px; line-height: 1.65; }
.box .label { display: block; margin-bottom: 8px; }
.box-firm { background: var(--ink); color: #dfe7e3; }
.box-firm .label { color: var(--lime); }
.box-firm strong { color: var(--paper); }
.box-firm a { color: var(--paper); }
.box-warn { background: #fff7e6; }
.box-warn .label { color: #a15c07; }
.box-tip { background: var(--iris-soft); }
.box-tip .label { color: var(--iris); }
.verdict { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .02em; padding: 5px 12px; border-radius: 999px; }
.v-teraz { background: var(--lime); color: var(--ink); }
.v-sprawdz { background: var(--lime-soft); color: var(--lime-deep); }
.v-obserwuj { background: var(--iris-soft); color: var(--iris); }
.v-pomin { background: var(--glass); color: var(--sage); }
.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 52px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--iris); color: #fff; font-family: var(--display); font-weight: 700; font-size: 16px; display: grid; place-items: center; }

.faq-block h2 { margin-bottom: 6px; }
.faq-block details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-block summary { cursor: pointer; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 19px; letter-spacing: -0.015em; }
.faq-block details p { margin-top: 10px; }

.sources { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--sage); }
.sources h2 { font-size: 18px !important; margin: 0 0 10px !important; color: var(--ink); }
.sources ol { padding-left: 20px; }
.sources li { margin: 4px 0; word-break: break-word; }
.sources a { text-decoration-color: var(--line); }
.updated, .how { margin-top: 14px; font-size: 14px; color: var(--sage); }

.author-box { margin-top: 40px; display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; background: var(--paper); border-radius: var(--r-l); padding: 24px; }
.author-box img { width: 96px; height: 96px; border-radius: 50%; }
.author-box b { font-family: var(--display); font-size: 20px; }
.author-box p { font-size: 15px; color: var(--sage); margin-top: 4px; line-height: 1.6; }

.cta-box { margin-top: 36px; background: var(--ink); color: var(--paper); border-radius: var(--r-xl); padding: 40px; }
.cta-box .label { color: var(--lime); }
.cta-box h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.08; margin: 10px 0; }
.cta-box p { color: #a9b6b0; font-size: 16.5px; }
.cta-box .acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.cta-box .btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--paper); }

.toc { position: sticky; top: 96px; align-self: start; font-size: 14.5px; }
.toc .label { display: block; margin-bottom: 10px; }
.toc ol { list-style: none; }
.toc a { display: block; padding: 7px 12px; color: var(--sage); line-height: 1.4; border-radius: var(--r-s); }
.toc a:hover, .toc a.on { color: var(--ink); background: var(--paper); }
.toc a.on { box-shadow: inset 3px 0 0 var(--iris); }
.toc .side-cta { margin-top: 24px; background: var(--paper); border-radius: var(--r-l); padding: 20px; }
.toc .side-cta b { display: block; font-family: var(--display); font-size: 18px; margin-bottom: 6px; }
.toc .side-cta p { color: var(--sage); font-size: 14px; margin-bottom: 14px; }

.related { padding: 40px 0 0; }
.related h2 { font-size: 26px; margin-bottom: 18px; }

footer { background: var(--ink); color: #a9b6b0; padding: 40px 0; margin-top: 80px; font-size: 14.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a:hover { color: var(--lime); }

.todo-szymon { display: none; }

@media screen and (max-width: 1000px) {
  .article-grid { grid-template-columns: minmax(0, 740px); }
  .toc { display: none; }
  .posts { grid-template-columns: 1fr 1fr; }
  .posts .post-card:first-child { grid-column: span 2; }
}
@media screen and (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn { padding: 9px 15px; font-size: 14px; }
  .brand { font-size: 18px; }
  .brand small { font-size: 11.5px; padding: 2px 8px; }
  .blog-hero { padding: 44px 0 24px; }
  .blog-hero p { font-size: 17px; }
  .posts { grid-template-columns: 1fr; }
  .posts .post-card:first-child { grid-column: auto; display: flex; }
  .posts .post-card:first-child img { min-height: 0; height: auto; aspect-ratio: 16/9; }
  .posts .post-card:first-child .post-body { padding: 22px; }
  .band-cta { grid-template-columns: 1fr; padding: 30px 22px; }
  .band-cta .acts { justify-content: flex-start; }
  .article { padding-top: 28px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 26px; }
  .article-lead { font-size: 18px; }
  .cta-box { padding: 28px 22px; }
  .author-box { grid-template-columns: 72px 1fr; }
  .author-box img { width: 72px; height: 72px; }
}

@media screen and (max-width: 380px) { .brand small { display: none; } }

/* NEWSLETTER „Czy to dla mnie?” (wspólny z blogiem) */
.nl-box { background: var(--ink); color: var(--paper); border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.nl-box h2, .nl-box h3 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.02; margin-bottom: 12px; color: var(--paper); }
.nl-box p { color: #a9b6b0; font-size: 16px; }
.nl-box .nl-name { color: var(--lime); }
.nl { display: grid; gap: 12px; }
.nl-row { display: flex; gap: 8px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 6px; }
.nl-row input[type="email"] { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--paper); font-family: inherit; font-size: 16px; padding: 10px 14px; }
.nl-row input[type="email"]::placeholder { color: #8d9892; }
.nl-row input[type="email"]:focus { outline: none; }
.nl-row:focus-within { box-shadow: 0 0 0 3px rgba(155,226,45,.45); }
.nl-row button { flex: none; background: var(--lime); color: var(--ink); border: 0; border-radius: 999px; padding: 12px 20px; font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; }
.nl-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #a9b6b0; line-height: 1.5; cursor: pointer; }
.nl-consent input { margin-top: 3px; accent-color: var(--lime); width: 16px; height: 16px; flex: none; }
.nl-consent a { color: var(--paper); text-decoration: underline; }
.nl-msg { font-size: 15px; font-weight: 600; color: var(--lime); }
.nl-msg.err { color: #ffb4a8; }
.nl .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media screen and (max-width: 760px) {
  .nl-box { grid-template-columns: 1fr; padding: 28px 22px; gap: 20px; }
  .nl-row { border-radius: 14px; flex-direction: column; background: transparent; padding: 0; }
  .nl-row input[type="email"] { background: rgba(255,255,255,.08); border-radius: 14px; padding: 14px 16px; }
  .nl-row button { padding: 14px; }
}

@media screen and (max-width: 700px) { .filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; } .filters::-webkit-scrollbar { display: none; } .filter { flex: none; } }
