/* Poradnik oczka.co — statyczne strony poza SPA. Tokeny 1:1 z src/styles/app.css (POUR + ATELIER).
   Fonty z własnego serwera (CSP font-src 'self'), zero JS. Generowane strony: scripts/build_blog.py. */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(/blog/fonts/bricolage-grotesque-latin-ext-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(/blog/fonts/bricolage-grotesque-latin-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/blog/fonts/space-mono-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/blog/fonts/space-mono-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/blog/fonts/space-mono-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/blog/fonts/space-mono-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #fff7ec;
  --paper: #fffdf8;
  --ink: #15121a;
  --mute: #5f5866;
  --line: rgba(21, 18, 26, 0.14);
  --y: #ffe95a;
  --pk: #ffb3e0;
  --hard: 4px 4px 0 var(--ink);
  --hard-lg: 10px 10px 0 var(--ink);
  --fd: 'Bricolage Grotesque Variable', 'Bricolage Grotesque', system-ui, sans-serif;
  --fm: 'Space Mono', ui-monospace, SFMono-Regular, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --measure: 44rem;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--fd);
  font-variation-settings: 'wdth' 92;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.mono {
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--y);
  border: 2px solid var(--ink);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

/* ---------- nawigacja (jak .nav w SPA, ale w przepływie strony) ---------- */
.bnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px var(--gutter);
  border-bottom: 3px solid var(--ink);
  background: var(--cream);
}
.bnav__logo {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-variation-settings: 'wdth' 86;
  font-size: 26px;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  min-height: 44px;
}
.bnav__o {
  /* /blog/logo-o.jpg 96×96 (3 kB) zamiast kadru 640×640 — przegląd N-6 */
  width: 0.92em;
  height: 0.92em;
  margin-right: -0.04em;
  -webkit-mask: radial-gradient(closest-side, transparent 46%, #000 50%, #000 80%, transparent 84%);
  mask: radial-gradient(closest-side, transparent 46%, #000 50%, #000 80%, transparent 84%);
}
.bnav__links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--hard);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bbtn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.bbtn--primary {
  background: var(--ink);
  color: var(--cream);
}
.bbtn--ghost {
  background: var(--y);
}
.bbtn[aria-current='page'] {
  background: var(--y);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* ---------- treść ---------- */
.bmain {
  padding: 24px var(--gutter) 64px;
}
.crumbs ol {
  list-style: none;
  margin: 0 auto 20px;
  padding: 0;
  max-width: var(--measure);
  line-height: 1.7;
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}
.crumbs li {
  display: inline;
}
.crumbs li + li::before {
  content: '/';
  margin: 0 8px;
}
.crumbs li[aria-current] {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.post,
.list__head,
.cards,
.post__back {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}
.post__eyebrow {
  margin: 0 0 12px;
}
.post__title {
  margin: 0 0 24px;
  font-weight: 800;
  font-variation-settings: 'wdth' 86;
  letter-spacing: -0.045em;
  line-height: 0.98;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  overflow-wrap: break-word;
  hyphens: manual;
}
.post__hero {
  margin: 0 0 32px;
}
.post__hero img {
  width: 100%;
  border: 3px solid var(--ink);
  box-shadow: var(--hard-lg);
  background: #fff;
}
.post__hero figcaption {
  margin-top: 16px;
  font-family: var(--fm);
  font-size: 12px;
  color: var(--mute);
}
.post__body {
  overflow-wrap: break-word;
}
.post__body h2 {
  margin: 48px 0 12px;
  font-weight: 800;
  font-variation-settings: 'wdth' 86;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}
.post__body h3 {
  margin: 32px 0 8px;
  font-weight: 800;
  font-variation-settings: 'wdth' 90;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-size: 1.25rem;
}
.post__body p,
.post__body ul,
.post__body ol {
  margin: 0 0 16px;
}
.post__body ul,
.post__body ol {
  padding-left: 1.3em;
}
.post__body li {
  margin: 0 0 8px;
}
.post__body li::marker {
  font-weight: 800;
}
.post__body > p:first-child em {
  font-family: var(--fm);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
/* „Najważniejsze w skrócie”: akapit z samym pogrubieniem + lista zaraz po nim */
.post__body > p > strong:only-child {
  display: inline-block;
  font-family: var(--fm);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--y);
  border: 2px solid var(--ink);
  padding: 6px 10px;
  box-shadow: var(--hard);
}
.post__body .tabela {
  margin: 8px 0 24px;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: var(--hard);
}
.post__body .tabela:focus-visible {
  outline-offset: 4px;
}
.post__body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  line-height: 1.45;
}
.post__body th,
.post__body td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.post__body th {
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.post__body tr:last-child td {
  border-bottom: 0;
}
.post__note {
  margin: 32px 0 0;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: 15px;
}
.post__note p {
  margin: 0;
}
.post__back {
  margin-top: 40px;
}

/* ---------- lista wpisów ---------- */
.list__lead {
  margin: 0 0 32px;
  font-size: 1.15rem;
  max-width: 56ch;
}
.cards {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 28px;
}
.card__link {
  display: grid;
  gap: 8px;
  padding: 16px 16px 20px;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: var(--hard-lg);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card__link:hover {
  transform: translate(-3px, -3px);
  box-shadow: 13px 13px 0 var(--ink);
}
.card__img {
  width: 100%;
  border: 2px solid var(--ink);
  margin-bottom: 8px;
}
.card__title {
  margin: 0;
  font-weight: 800;
  font-variation-settings: 'wdth' 86;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
}
.card__excerpt {
  margin: 0;
}
.card__more {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- stopka (jak .footer w SPA) ---------- */
.bfoot {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 32px;
  padding: 40px var(--gutter) 28px;
  border-top: 3px solid var(--ink);
  background: var(--cream);
}
.bfoot__brand {
  display: grid;
  gap: 14px;
  align-content: start;
}
.bfoot__claim {
  margin: 0;
  font-weight: 800;
  font-variation-settings: 'wdth' 86;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.bfoot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bfoot__cols .mono {
  margin: 0 0 10px;
}
.bfoot__cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  font-weight: 600;
  font-size: 15px;
}
.bfoot__cols li {
  min-height: 32px;
  display: flex;
  align-items: center;
}
.bfoot__cols a {
  text-decoration: none;
  padding: 4px 0;
}
.bfoot__cols a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bfoot__foot {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .bfoot {
    grid-template-columns: 1fr;
  }
  .bfoot__cols {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px) {
  .bnav__links .bbtn {
    padding: 0 12px;
    font-size: 14px;
  }
  .bfoot__cols {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bbtn,
  .card__link {
    transition: none;
  }
}
