/* ailokalnie.com — „terminal na biurku”.
   Noc: bursztynowy monitor CRT na grafitowym tle. Dzień: biały wydruk z drukarki igłowej (zielone pasy, dziurki prowadzące).
   Nagłówki w JetBrains Mono, tekst w Bricolage Grotesque, przyciski jak klawisze, ruch skokowy (steps) jak w terminalu. */

@font-face { font-family: "Bricolage"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/bricolage-latin.woff2?v=1") 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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/bricolage-latin-ext.woff2?v=1") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("/assets/fonts/jbmono-latin.woff2?v=1") 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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("/assets/fonts/jbmono-latin-ext.woff2?v=1") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  color-scheme: light dark;
  --sans: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --head-h: 60px;

  /* dzień: wydruk */
  --bg: #ffffff;
  --bg-2: #eef5ec;
  --surface: #ffffff;
  --surface-2: #f3f8f1;
  --ink: #111311;
  --ink-2: #363b35;
  --muted: #5c645a;
  --line: #d9e3d5;
  --line-2: #b4c3ad;
  --accent: #e2531a;
  --accent-ink: #b33c0c;
  --accent-2: #c41d70;
  --phos: #1d7a4b;
  --on-accent: #ffffff;
  --focus: #c41d70;
  --key: #f7faf5;
  --key-edge: #b4c3ad;
  --code-bg: #121412;
  --code-ink: #ece6da;
  --code-line: #2b2f2a;
  --shadow: 0 1px 0 rgba(20,40,20,.05), 0 12px 28px -18px rgba(20,40,20,.35);
  --shadow-lg: 0 2px 0 rgba(20,40,20,.05), 0 30px 60px -28px rgba(20,40,20,.45);

  --scr-bg: #ffffff;
  --scr-band: #e8f3e5;
  --scr-ink: #151815;
  --scr-dim: #5b6658;
  --scr-rule: rgba(29,122,75,.16);
  --scr-edge: #cfdcca;

  --c-tekst: #a66a00;
  --c-mowa: #0b7f72;
  --c-obraz: #c41d70;
  --c-kod: #d1490f;
  --c-automatyzacje: #5b3fd1;
  --c-news: #c41d70;

  --r: 6px;
  --wrap: 1200px;
  --pad: clamp(16px, 4.5vw, 40px);
  --ease: cubic-bezier(.2,.8,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d0c;
    --bg-2: #161210;
    --surface: #191512;
    --surface-2: #201a16;
    --ink: #f4e6d4;
    --ink-2: #d9c5ac;
    --muted: #a38c74;
    --line: #2e2620;
    --line-2: #46392f;
    --accent: #ff7a3d;
    --accent-ink: #ff9d69;
    --accent-2: #ff4fa3;
    --phos: #ffb35c;
    --on-accent: #1a0d06;
    --focus: #ffb35c;
    --key: #1e1915;
    --key-edge: #4a3d33;
    --code-bg: #0a0908;
    --code-ink: #efe4d4;
    --code-line: #2a231e;
    --shadow: 0 1px 0 rgba(0,0,0,.4), 0 14px 34px -18px rgba(0,0,0,.8);
    --shadow-lg: 0 2px 0 rgba(0,0,0,.3), 0 40px 70px -30px rgba(0,0,0,.9);

    --scr-bg: #0b0908;
    --scr-band: #0b0908;
    --scr-ink: #ffcf9a;
    --scr-dim: #a6825f;
    --scr-rule: rgba(255,150,80,.14);
    --scr-edge: #2b211b;

    --c-tekst: #f2b544;
    --c-mowa: #3fd0bf;
    --c-obraz: #ff5fae;
    --c-kod: #ff8a4f;
    --c-automatyzacje: #a48bff;
    --c-news: #ff5fae;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 64px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.62 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; overflow-x: clip;
}
img, svg, canvas { max-width: 100%; }
h1, h2, h3, .sec-h { font-family: var(--mono); font-weight: 800; letter-spacing: -.035em; }
a { color: var(--accent-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.mono, code, pre, kbd { font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.ic { display: inline-block; font-weight: 700; transition: transform .2s steps(2); }
kbd { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.6em; padding: 0 .35em; font: 700 .68rem/1 var(--mono); border: 1px solid currentColor; border-bottom-width: 2.5px; border-radius: 4px; }

/* ───────── nagłówek: pasek jak linia statusu */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: var(--head-h); }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 800 1.12rem/1 var(--mono); letter-spacing: -.04em; min-height: 44px; }
.logo-prompt { display: inline-grid; place-items: center; width: 34px; height: 32px; border-radius: 5px; background: var(--ink); color: var(--accent); font-size: .8rem; box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--accent) 55%, var(--ink)); transition: transform .12s steps(2); }
.logo:hover .logo-prompt { transform: translateY(2px); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.logo-slash { color: var(--accent-2); }
.logo-caret { width: .55em; height: 1.05em; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.main-nav { display: flex; gap: 4px; }
.main-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink-2); text-decoration: none; font: 600 .9rem/1 var(--mono); letter-spacing: -.02em; white-space: nowrap; }
.main-nav a::before { content: "["; opacity: 0; margin-right: 2px; color: var(--accent); }
.main-nav a::after { content: "]"; opacity: 0; margin-left: 2px; color: var(--accent); }
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::before, .main-nav a:hover::after, .main-nav a[aria-current="page"]::before, .main-nav a[aria-current="page"]::after, .main-nav a.in::before, .main-nav a.in::after { opacity: 1; }
.main-nav a[aria-current="page"], .main-nav a.in { color: var(--ink); }
@media (max-width: 520px) {
  .logo-caret { display: none; }
  .main-nav { gap: 0; }
  .main-nav a { padding: 0 7px; font-size: .84rem; }
  .logo { font-size: 1rem; }
}
@media (max-width: 400px) { .logo-prompt { display: none; } .main-nav { margin-right: -6px; } .main-nav a { padding: 0 5px; font-size: .8rem; } .main-nav a::before, .main-nav a::after { margin: 0; } .logo { font-size: .94rem; } }
@media (max-width: 340px) { .logo-prompt { display: inline-grid; } .logo-txt { display: none; } }

.progress { position: fixed; left: 0; top: 0; z-index: 60; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); pointer-events: none; }
.linkish { font: inherit; color: var(--accent-ink); background: none; border: 0; padding: 6px 4px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ═════════ HERO: terminal na cały ekran ═════════ */
.crt { position: sticky; top: var(--head-h); z-index: 0; height: calc(100vh - var(--head-h)); height: calc(100svh - var(--head-h)); min-height: 540px; padding: 10px; --leave: 0; --tx: 0; --ty: 0; perspective: 1600px; }
.crt-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 22px / 26px; color: var(--scr-ink);
  background:
    repeating-linear-gradient(180deg, transparent 0 96px, var(--scr-band) 96px 192px),
    var(--scr-bg);
  box-shadow: inset 0 0 0 1px var(--scr-edge), 0 24px 60px -36px rgba(20,40,20,.5);
  transform-origin: 50% 0;
  transform: rotateX(calc(var(--leave) * 12deg + var(--ty) * -1.6deg)) rotateY(calc(var(--tx) * 2deg)) scale(calc(1 - var(--leave) * .08));
  transition: transform .5s var(--ease);
  animation: paperFeed .55s steps(6) both;
}
@keyframes paperFeed { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
/* dziurki prowadzące papieru (tylko w dzień, na szerszych ekranach) */
.crt-screen::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, var(--bg-2) 0 4.5px, var(--scr-edge) 5px, transparent 6px) left 6px top 0 / 22px 26px repeat-y,
    radial-gradient(circle at 50% 50%, var(--bg-2) 0 4.5px, var(--scr-edge) 5px, transparent 6px) right 6px top 0 / 22px 26px repeat-y,
    linear-gradient(90deg, transparent 33px, var(--scr-rule) 33px 34px, transparent 34px calc(100% - 34px), var(--scr-rule) calc(100% - 34px) calc(100% - 33px), transparent 0);
}
.crt-fx { position: absolute; inset: 0; pointer-events: none; z-index: 5; background: radial-gradient(130% 110% at 50% 45%, transparent 60%, rgba(20,40,20,.10) 100%); }
.crt-dim { position: absolute; inset: 0; pointer-events: none; z-index: 6; background: var(--bg); opacity: calc(var(--leave) * .6); }

@media (prefers-color-scheme: dark) {
  .crt-screen {
    background: radial-gradient(120% 95% at 62% 42%, #24160f 0%, #0d0a09 58%, #050404 100%);
    box-shadow: inset 0 0 0 1px var(--scr-edge), inset 0 0 120px rgba(0,0,0,.85), 0 30px 80px -40px rgba(0,0,0,.9);
    animation: crtOn .6s cubic-bezier(.2,.9,.2,1) both;
  }
  .crt-screen::before { display: none; }
  .crt-fx {
    background:
      repeating-linear-gradient(180deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px),
      radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(0,0,0,.7) 100%),
      radial-gradient(60% 40% at 30% 15%, rgba(255,210,170,.05), transparent 70%);
    animation: flicker 5s steps(1) infinite;
  }
  .crt-dim { background: #000; }
}
@keyframes crtOn {
  0% { transform: scale(1, .004); filter: brightness(3); opacity: .6; }
  45% { transform: scale(1, .004); filter: brightness(3); opacity: 1; }
  70% { transform: scale(1, 1.02); filter: brightness(1.6); }
  100% { transform: none; filter: none; }
}
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: .93; } 48% { opacity: 1; } 81% { opacity: .96; } 82% { opacity: 1; } }

.crt-bar { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 22px 0 46px; font-size: .72rem; color: var(--scr-dim); border-bottom: 1px dashed var(--scr-rule); }
.crt-led { width: 8px; height: 8px; border-radius: 50%; background: var(--phos); box-shadow: 0 0 8px var(--phos); animation: blink 2.4s steps(1) infinite; }
.crt-bar-r { margin-left: auto; display: flex; gap: 18px; }

.crt-body { position: absolute; z-index: 2; inset: 34px 0 0 0; padding: clamp(14px, 2.2vw, 30px) clamp(18px, 3vw, 48px) clamp(16px, 2.4vw, 32px) clamp(46px, 4vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr); grid-template-rows: auto 1fr auto; column-gap: clamp(20px, 3vw, 48px); }
.crt-log { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 2; font-size: .8rem; line-height: 1.65; color: var(--scr-dim); }
.crt-l { margin: 0; }
.crt-ps { color: var(--accent-ink); font-weight: 700; }
.crt-cmd { display: inline-block; vertical-align: bottom; overflow: hidden; white-space: nowrap; width: 18ch; color: var(--scr-ink); font-weight: 600; animation: typeIn .45s steps(18) .35s both; }
@keyframes typeIn { from { width: 0; } }
.ok { color: var(--phos); font-weight: 700; }
.l2 { animation: lineIn .01s steps(1) .85s both; }
.l3 { animation: lineIn .01s steps(1) .95s both; }
@keyframes lineIn { from { visibility: hidden; } }

/* węzeł */
.crt-knot { position: absolute; z-index: 1; top: 2%; bottom: 40%; left: 30%; right: 2%; pointer-events: none; }
.knot-static { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; font: 700 min(.85vw, 1.15vh)/1 var(--mono); white-space: pre; color: var(--accent); background: linear-gradient(160deg, var(--accent) 25%, var(--accent-2) 80%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: .9; animation: lineIn .01s steps(1) .6s both; transition: opacity .6s; }
.knot { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .7s; }
.crt.live .knot { opacity: 1; }
.crt.live .knot-static { opacity: 0; }

/* hasło: matryca punktowa */
.crt-title { grid-column: 1; grid-row: 3; align-self: end; position: relative; z-index: 3; }
.crt-title h1 { margin: 0; }
.dm { display: block; font: 800 clamp(3.4rem, 10.6vw, 10.4rem)/.82 var(--mono); letter-spacing: -.07em; text-transform: uppercase;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 52%, transparent 58%); mask-image: radial-gradient(circle at 50% 50%, #000 0 52%, transparent 58%);
  -webkit-mask-size: .058em .058em; mask-size: .058em .058em; padding: .04em 0 .02em; }
.dm-line { display: block; white-space: nowrap; }
.dm .w { display: inline-block; }
.dm .ch { display: inline-block; color: color-mix(in oklab, var(--accent) calc((1 - var(--k)) * 100%), var(--accent-2)); animation: chIn .5s steps(5) calc(.7s + var(--i) * 45ms) both; }
@keyframes chIn { 0% { opacity: 0; transform: translateY(.3em) scaleY(1.9); } 40% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@media (prefers-color-scheme: dark) { .crt-title h1 { filter: drop-shadow(0 0 .1em rgba(255,110,50,.55)) drop-shadow(0 0 .35em rgba(255,60,120,.25)); } }
.h-sub { margin: .9em 0 0; max-width: 34ch; font: 650 clamp(1rem, 1.35vw, 1.3rem)/1.35 var(--mono); letter-spacing: -.03em; color: var(--scr-ink); animation: lineIn .01s steps(1) 1.25s both; text-wrap: balance; }
.cur { display: inline-block; width: .6em; height: 1.05em; margin-left: .25em; vertical-align: -.18em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@media (prefers-color-scheme: dark) { .h-sub { text-shadow: 0 0 10px rgba(255,140,60,.35); } }

/* naklejka */
.sticker { position: absolute; z-index: 4; left: min(62%, 40vw); bottom: calc(100% - .4em); width: clamp(92px, 9vw, 132px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-2); color: #fff; transform: rotate(-12deg); box-shadow: 0 8px 22px -8px rgba(0,0,0,.45), inset 0 0 0 3px rgba(255,255,255,.9);
  animation: stickIn .35s steps(3) 1.45s both; }
@keyframes stickIn { 0% { opacity: 0; transform: rotate(-12deg) scale(1.6); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }
.sticker-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.sticker-ring text { font: 700 10.5px/1 var(--mono); fill: #fff; letter-spacing: .02em; }
@keyframes spin { to { transform: rotate(360deg); } }
.sticker-core { display: grid; place-items: center; line-height: 1; text-align: center; font-family: var(--mono); }
.sticker-core b { font-size: clamp(1.15rem, 1.7vw, 1.6rem); letter-spacing: -.05em; }
.sticker-core small { font-size: .56rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* menu projektów */
.crt-menu { grid-column: 2; grid-row: 2 / 4; align-self: end; position: relative; z-index: 3; padding: 10px; border: 1px solid var(--scr-rule); border-radius: 8px; background: color-mix(in srgb, var(--scr-bg) 82%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.crt-menu-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 2px 6px 8px; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--scr-dim); }
.keys { display: inline-flex; gap: 4px; }
.crt-menu ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.crt-menu li { animation: lineIn .01s steps(1) calc(1s + var(--n) * 60ms) both; }
.crt-menu a { position: relative; display: grid; grid-template-columns: 2.1em minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 4px; color: var(--scr-ink); text-decoration: none; font-size: .92rem; font-weight: 600; letter-spacing: -.02em; }
.crt-menu .n { color: var(--scr-dim); font-weight: 500; }
.crt-menu .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crt-menu .cat { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--cc); }
.crt-menu .cat::before { content: "["; } .crt-menu .cat::after { content: "]"; }
.crt-menu a:hover, .crt-menu a.sel, .crt-menu a:focus-visible { background: var(--accent); color: var(--on-accent); outline: none; }
.crt-menu a:hover .n, .crt-menu a.sel .n, .crt-menu a:focus-visible .n, .crt-menu a:hover .cat, .crt-menu a.sel .cat, .crt-menu a:focus-visible .cat { color: inherit; }
.crt-menu a.sel::before, .crt-menu a:focus-visible::before { content: "▶"; position: absolute; left: -9px; font-size: .6rem; color: var(--accent); }
.crt-menu a:focus-visible { box-shadow: 0 0 0 2px var(--focus); }

.crt.glitch .dm { animation: none; transform: translateX(.02em); text-shadow: -.03em 0 var(--c-mowa), .03em 0 var(--accent-2); }
.crt.glitch .crt-knot { transform: translateX(-6px) skewX(-2deg); }

/* telefony i tablety: wszystko w pionie, cały terminal na pierwszym ekranie */
@media (max-width: 900px) {
  .crt { padding: 6px; min-height: 500px; }
  .crt-screen { border-radius: 14px / 16px; }
  .crt-screen::before { display: none; }
  .crt-bar { height: 30px; padding: 0 14px; font-size: .66rem; }
  .crt-mode { display: none; }
  .crt-body { inset: 30px 0 0 0; display: flex; flex-direction: column; padding: 10px 14px 12px; }
  .crt-log { font-size: .72rem; }
  .crt-log .l2, .crt-log .l3 { display: none; }
  .crt-knot { position: relative; inset: auto; flex: 1 1 auto; width: auto; min-height: 120px; margin: 0 -14px; }
  .knot-static { font-size: min(1.6vw, 1.05vh); }
  .crt-title { margin-top: -26px; }
  .dm { font-size: min(18vw, 9.5vh); }
  .h-sub { font-size: .92rem; margin-top: .7em; max-width: 30ch; }
  .sticker { width: 76px; left: auto; bottom: auto; right: 2px; top: -104px; }
  .sticker-ring text { font-size: 11px; }
  .crt-menu { margin-top: 12px; padding: 6px; }
  .crt-menu-h { margin: 0 4px 4px; font-size: .62rem; }
  .crt-menu ol { grid-template-columns: 1fr 1fr; column-gap: 4px; }
  .crt-menu a { grid-template-columns: 1.7em minmax(0, 1fr); gap: 4px; padding: 0 6px; font-size: .8rem; }
  .crt-menu .cat { display: none; }
  .crt-menu a.sel::before { display: none; }
}
@media (max-width: 900px) and (min-width: 600px) { .dm { font-size: min(12vw, 8vh); } .crt-menu a { font-size: .9rem; } }
@media (hover: none) { .keys { display: none; } }

/* ───────── arkusz z treścią nasuwa się na terminal */
.after-hero { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -30px 50px -30px rgba(0,0,0,.35); padding-bottom: 8px; }
.after-hero::before { content: "── ~/projekty ─────────────────────────────────────────────────────────────────────────────────────────────────────────"; display: block; overflow: hidden; white-space: nowrap; padding: 10px var(--pad) 0; font: 600 .7rem/1 var(--mono); color: var(--line-2); max-width: var(--wrap); margin: 0 auto; }

/* ───────── sekcje */
.block { padding-top: clamp(36px, 5vw, 64px); }
.sec-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; margin-bottom: 18px; }
.sec-top .muted { margin: 0; max-width: 62ch; font-size: .95rem; }
.sec-h { margin: 0; font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.1; }
.sec-h .mono { font-size: .62em; font-weight: 600; color: var(--accent); letter-spacing: -.02em; margin-right: .3em; }

/* filtry: klawisze */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 0 0 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--key-edge); border-bottom-width: 4px; background: var(--key); color: var(--ink-2); font: 650 .86rem/1 var(--mono); letter-spacing: -.02em; cursor: pointer; transition: transform .08s steps(2), border-bottom-width .08s steps(2); -webkit-tap-highlight-color: transparent; }
.filter-row button i { width: 8px; height: 8px; background: var(--cc, var(--ink)); }
.filter-row button:hover { color: var(--ink); border-color: var(--cc, var(--ink)); }
.filter-row button:active { transform: translateY(3px); border-bottom-width: 1px; }
.filter-row button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); transform: translateY(3px); border-bottom-width: 1px; }
.filter-row button[aria-pressed="true"] i { background: var(--cc, var(--bg)); }
.filter-status { margin: 0; font-size: .78rem; color: var(--muted); }
.c-tekst { --cc: var(--c-tekst); } .c-mowa { --cc: var(--c-mowa); } .c-obraz { --cc: var(--c-obraz); } .c-kod { --cc: var(--c-kod); } .c-automatyzacje { --cc: var(--c-automatyzacje); } .c-news { --cc: var(--c-news); }

/* karty: wydruki z paskiem tytułu */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 262px), 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transition: transform .4s var(--ease), box-shadow .3s, border-color .3s; }
.card-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--cc) 14%, transparent), transparent 60%); transition: opacity .3s; }
.card:hover { --ty: -3px; box-shadow: var(--shadow-lg); border-color: var(--cc); }
.card:hover .card-glow { opacity: 1; }
.card:focus-within { border-color: var(--cc); }
.card-bar { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--ink); color: var(--bg); }
.card-bar::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--cc); }
.card-path { font: 500 .7rem/1.3 var(--mono); color: color-mix(in srgb, var(--bg) 70%, transparent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-path b { color: var(--bg); font-weight: 700; }
.card-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; }
.card-body .chips { margin-bottom: 6px; }
.chip { font: 700 .7rem/1.4 var(--mono); color: var(--cc); text-transform: lowercase; }
.chip::before { content: "["; } .chip::after { content: "]"; }
.card-title { margin: 0; font-size: 1.12rem; line-height: 1.18; text-wrap: balance; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-desc { margin: 8px 0 12px; color: var(--ink-2); font-size: .93rem; line-height: 1.5; }
.card-spec { margin: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.card-spec .wide, .spec .wide { grid-column: 1 / -1; }
.card-spec dt, .spec dt { font: 600 .64rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.card-spec dd, .spec dd { margin: 0; font-size: .85rem; font-weight: 600; color: var(--ink); line-height: 1.35; display: flex; align-items: center; gap: 8px; }
.meter { display: inline-flex; gap: 2px; }
.meter i { width: 10px; height: 10px; background: var(--line); }
.meter i.on { background: var(--cc, var(--accent)); }
.card.is-hidden { display: none; }
.empty { padding: 24px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-2); }

/* przegląd tygodnia */
.digest-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(12px, 1.6vw, 18px); }
.digest-card { position: relative; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.digest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.digest-card h3 { margin: 8px 0 6px; font-size: 1.12rem; line-height: 1.2; text-wrap: balance; }
.digest-card h3 a { color: var(--ink); text-decoration: none; }
.digest-card h3 a::after { content: ""; position: absolute; inset: 0; }
.digest-card p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.digest-card .more { margin-top: 12px; font-size: .78rem; color: var(--accent-ink); }
.digest-card:hover .more .ic { transform: translateX(4px); }
.digest-card.big { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.digest-card.big h3 a, .digest-card.big p { color: var(--bg); }
.digest-card.big p { opacity: .85; }
.digest-card.big .more { color: var(--accent); }
.digest-card.big .digest-week span { background: var(--accent); color: var(--on-accent); }
.digest-card.big h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); }
.digest-week { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: .74rem; color: inherit; opacity: .9; }
.digest-week span { padding: 2px 8px; background: var(--ink); color: var(--bg); font-weight: 700; }

.how-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(16px, 3vw, 40px); align-items: start; }
.how-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.how-list li { padding-left: 1.6em; position: relative; }
.how-list li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.how-list b { color: var(--ink); }
.start-box { padding: clamp(18px, 3vw, 28px); border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); border-left: 6px solid var(--accent-2); }
.start-box h2 { margin: 0 0 8px; font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.start-box p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.start-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; color: var(--ink-2); }
.start-list li { position: relative; padding-left: 1.4em; }
.start-list li::before { content: ">"; position: absolute; left: 0; font: 800 .95em/1.6 var(--mono); color: var(--accent-2); }
.start-list b { color: var(--ink); }
.start-box a { font-weight: 700; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }

/* ───────── nagłówek artykułu */
.post-head { padding: clamp(18px, 3vw, 36px) 0 clamp(16px, 2.4vw, 26px); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.post-head h1 { margin: 12px 0 0; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.06; max-width: 26ch; text-wrap: balance; }
.post-head .lead { margin: 12px 0 0; max-width: 64ch; color: var(--ink-2); font-size: 1.02rem; }
.crumbs { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 0 12px; min-height: 44px; background: var(--ink); color: var(--bg); font-size: .76rem; border-radius: 4px; overflow: hidden; }
.crumbs-ps { color: var(--accent); font-weight: 700; flex: none; }
.crumbs ol { list-style: none; display: flex; align-items: center; flex-wrap: nowrap; gap: 0; margin: 0; padding: 0; min-width: 0; overflow: hidden; white-space: nowrap; }
.crumbs li { display: flex; align-items: center; min-width: 0; min-height: 44px; }
.crumbs li + li::before { content: "/"; color: color-mix(in srgb, var(--bg) 45%, transparent); }
.crumbs li:last-child { overflow: hidden; }
.crumbs li:last-child > span[aria-hidden] { overflow: hidden; text-overflow: ellipsis; }
.crumbs a { color: color-mix(in srgb, var(--bg) 78%, transparent); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--bg); font-weight: 700; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 12px 0 0; font-size: .76rem; color: var(--muted); }
.post-meta a { color: inherit; }

.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(28px, 5vw, 64px); padding-top: clamp(18px, 3vw, 32px); }
.post-main { min-width: 0; max-width: 72ch; }
.toc-side { position: sticky; top: calc(var(--head-h) + 24px); max-height: calc(100vh - var(--head-h) - 40px); overflow: auto; padding-left: 14px; border-left: 1px solid var(--line); }
.toc-h { margin: 0 0 8px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc-side ol, .toc-sheet ol { list-style: none; margin: 0; padding: 0; }
.toc-side a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 4px 0; color: var(--ink-2); text-decoration: none; font-size: .86rem; line-height: 1.3; }
.toc-side a:hover { color: var(--ink); }
.toc-side a.on { color: var(--accent-ink); font-weight: 700; }
.toc-side a.on::before { content: "▶"; position: absolute; left: -15px; font-size: .55rem; top: 50%; margin-top: -.4em; color: var(--accent); }
.toc-chip { display: none; }
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-side { display: none; }
  .post-main { max-width: 74ch; margin: 0 auto; width: 100%; }
  .toc-chip { display: block; position: sticky; top: calc(var(--head-h) + 6px); z-index: 30; margin: 0 0 12px; }
  .toc-chip summary { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; list-style: none; cursor: pointer; border-radius: 6px; background: color-mix(in srgb, var(--ink) 94%, transparent); color: var(--bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow); overflow: hidden; font-size: .86rem; }
  .toc-chip summary::-webkit-details-marker { display: none; }
  .toc-ic { color: var(--accent); font-weight: 800; }
  .toc-now { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 650; font-family: var(--mono); letter-spacing: -.02em; }
  .toc-count { font-size: .72rem; opacity: .7; }
  .toc-count::after { content: " ▾"; }
  .toc-chip[open] .toc-count::after { content: " ▴"; }
  .toc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
  .toc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
  .toc-sheet { position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: min(60vh, 460px); overflow: auto; padding: 4px 14px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
  .toc-sheet a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .92rem; line-height: 1.3; }
  .toc-sheet li:first-child a { border-top: 0; }
  .toc-sheet a.on { color: var(--accent-ink); font-weight: 700; }
}

.tldr { position: relative; margin: 0 0 16px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); border-left: 6px solid var(--accent); }
.tldr-h { margin: 0 0 6px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.tldr p { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--ink); }
.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; margin: 0 0 20px; padding: 12px 16px; border-radius: var(--r); border: 1.5px dashed var(--line-2); background: var(--surface-2); }
@media (max-width: 560px) { .spec { grid-template-columns: 1fr 1fr; } .spec > div:nth-child(3) { grid-column: 1 / -1; } }

/* treść */
.prose { color: var(--ink); }
.prose > * { margin-top: 0; margin-bottom: .95em; }
.prose p, .prose li { text-wrap: pretty; }
.prose h2 { position: relative; margin: 1.8em 0 .55em; font-size: clamp(1.3rem, 2.1vw, 1.65rem); line-height: 1.18; text-wrap: balance; }
.prose h2::before { content: "## "; color: var(--accent); font-weight: 600; }
.prose h3 { margin: 1.4em 0 .45em; font-size: 1.08rem; line-height: 1.3; letter-spacing: -.025em; }
.hlink { margin-left: .35em; color: var(--line-2); text-decoration: none; opacity: 0; font-weight: 600; }
h2:hover .hlink { opacity: 1; }
@media (hover: none) { .hlink { display: none; } }
.prose ul, .prose ol:not(.steps) { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose :not(pre) > code { font: 500 .86em/1.4 var(--mono); padding: .1em .35em; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose a { overflow-wrap: anywhere; }
.prose blockquote { margin: 1.2em 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--accent-2); color: var(--ink-2); }

.prose ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.2em 0 1.4em; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 4px 52px; margin: 0; }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 38px; height: 34px; display: grid; place-items: center; border-radius: 5px; font: 800 .9rem/1 var(--mono); color: var(--on-accent); background: var(--accent); box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--accent) 60%, #000); }
.steps > li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 6px; width: 2px; background: repeating-linear-gradient(var(--line-2) 0 4px, transparent 4px 8px); }
.steps > li:last-child::after { display: none; }
.steps > li > h3 { margin: 5px 0 .45em; }
.steps > li > *:last-child { margin-bottom: 1.2em; }

.callout { position: relative; margin: 1.2em 0; padding: 12px 16px 12px 46px; border-radius: var(--r); border: 1px solid var(--cl); background: color-mix(in srgb, var(--cl) 7%, var(--surface)); font-size: .97rem; }
.callout::before { position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 3px; font: 800 .8rem/1 var(--mono); color: var(--surface); background: var(--cl); }
.callout p { margin: 0 0 .5em; } .callout > :last-child { margin-bottom: 0; }
.callout.tip { --cl: var(--c-mowa); } .callout.tip::before { content: "✓"; }
.callout.warn { --cl: var(--accent); } .callout.warn::before { content: "!"; }
.callout.info { --cl: var(--c-automatyzacje); } .callout.info::before { content: "i"; }

/* tabele: przewijane, pierwsza kolumna przyklejona */
.table-wrap { margin: 1.2em 0; overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; line-height: 1.42; }
caption { caption-side: top; text-align: left; padding: 10px 14px 0; font: 600 .74rem/1.4 var(--mono); color: var(--muted); }
th, td { text-align: left; vertical-align: top; padding: 9px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); font: 700 .7rem/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
thead tr > :first-child { background: var(--surface-2); }
td code, th code { white-space: nowrap; }
.compare th[scope="row"] a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* kod */
.code { position: relative; margin: 1.1em 0 1.3em; border-radius: var(--r); background: var(--code-bg); border: 1px solid var(--code-line); overflow: hidden; color: var(--code-ink); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 4px 0 12px; border-bottom: 1px dashed var(--code-line); }
.code-lang { display: inline-flex; align-items: center; gap: 8px; font: 600 .72rem/1 var(--mono); color: #a39684; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.code-lang::before { content: "$"; color: #ff8a4f; font-weight: 800; }
.code-file { color: #efe6d8; font-weight: 700; }
.code-sep { color: #5b5047; }
.copy { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 5px; border: 1px solid #40372f; border-bottom-width: 3px; background: #1d1916; color: #e9dfd0; font: 700 .74rem/1 var(--mono); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy:hover { border-color: #ff8a4f; color: #fff; }
.copy:active { transform: translateY(2px); border-bottom-width: 1px; }
.copy.ok { background: #13342a; border-color: #3fd0bf; color: #9ff0e2; }
.copy.err { border-color: #ff6b8a; color: #ffb1c2; }
.code pre { margin: 0; padding: 13px 16px 15px; overflow-x: auto; font: 450 .84rem/1.58 var(--mono); tab-size: 4; -webkit-overflow-scrolling: touch; scrollbar-color: #4a4038 transparent; }
.code pre:focus-visible { outline-offset: -3px; }
.code code { font: inherit; white-space: pre; }
.code.clamped pre { max-height: 330px; overflow-y: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.code-more { display: block; width: 100%; min-height: 44px; border: 0; border-top: 1px dashed var(--code-line); background: #15120f; color: #ffb36b; font-size: .78rem; font-weight: 700; cursor: pointer; }
.code-more:hover { color: #fff; }
.t-cmd { color: #ffb36b; font-weight: 600; } .t-flag { color: #9fd3ff; } .t-str { color: #b5e48c; } .t-com { color: #8a7e70; font-style: italic; }
.t-var { color: #ff8fc4; } .t-kw { color: #ff7ab8; font-weight: 600; } .t-fn { color: #ffcf70; } .t-num, .t-lit { color: #c4a7ff; }
.t-key { color: #7fd8ff; } .t-dec { color: #ff9a66; } .t-sec { color: #ffb36b; font-weight: 700; }

/* FAQ */
.faq { margin-top: 2em; }
.faq > h2 { margin: 0 0 .5em; font-size: clamp(1.3rem, 2.1vw, 1.65rem); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { position: relative; display: block; cursor: pointer; list-style: none; padding: 12px 40px 12px 0; min-height: 44px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; display: grid; place-items: center; border: 1px solid var(--key-edge); border-bottom-width: 3px; border-radius: 4px; font: 700 1rem/1 var(--mono); color: var(--accent-ink); background: var(--key); }
.qa[open] summary::after { content: "−"; }
.qa h3 { display: inline; margin: 0; font-size: 1rem; line-height: 1.4; letter-spacing: -.02em; }
.qa p { margin: 0 0 14px; color: var(--ink-2); }
.qa summary:hover h3 { color: var(--accent-ink); }

/* źródła: zwinięte */
.sources { margin-top: 1.6em; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); }
.sources summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px; cursor: pointer; list-style: none; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary h2 { margin: 0; font-size: 1.15rem; }
.src-n { display: inline-grid; place-items: center; min-width: 1.8em; height: 1.5em; margin-left: .3em; font-size: .72rem; background: var(--ink); color: var(--bg); border-radius: 3px; vertical-align: .15em; }
.src-hint::after { content: "pokaż ▾"; font-size: .78rem; color: var(--accent-ink); font-weight: 700; }
.sources[open] .src-hint::after { content: "ukryj ▴"; }
.sources > .muted { margin: 0 16px 8px; font-size: .88rem; }
.sources ol { margin: 0; padding: 0 16px 14px 2.4em; }
.sources li { margin: .4em 0; font-size: .92rem; line-height: 1.42; overflow-wrap: anywhere; }
.sources li::marker { font: 600 .78rem var(--mono); color: var(--muted); }
.src-host { display: inline-block; margin-left: 4px; font-size: .72rem; color: var(--muted); }
.fix-note { margin: 16px 0 0; font-size: .88rem; color: var(--muted); }
.related { padding-top: clamp(32px, 4vw, 52px); }
.related .sec-h { margin-bottom: 16px; }

/* przegląd tygodnia */
.digest .prose .news { position: relative; margin: 0 0 1.3em; padding: 16px 18px 4px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); }
.digest .prose .news h2 { margin: 0 0 .4em; font-size: clamp(1.12rem, 1.8vw, 1.35rem); }
.digest .prose .news h2::before { content: none; }
.news-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 500 .76rem/1.5 var(--mono); color: var(--muted); }
.news-meta a { color: var(--accent-ink); }
.news .for-you { padding: 10px 14px; border-radius: 4px; background: var(--bg-2); border-left: 3px solid var(--c-mowa); font-size: .95rem; }
.news .for-you strong { color: var(--c-mowa); }
.issues { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.issue { padding: clamp(16px, 2.4vw, 24px); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); }
.issue h2 { margin: 10px 0 6px; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.15; }
.issue h2 a { display: block; padding: 7px 0; color: var(--ink); text-decoration: none; }
.issue h2 a:hover { color: var(--accent-ink); }
.issue > p { color: var(--ink-2); margin: 0 0 12px; max-width: 72ch; font-size: .95rem; }
.issue-toc { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.issue-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 4px; background: var(--key); border: 1px solid var(--key-edge); border-bottom-width: 3px; color: var(--ink-2); text-decoration: none; font-size: .84rem; line-height: 1.3; }
.issue-toc a:hover { border-color: var(--accent); color: var(--ink); }

.page-prose { max-width: 72ch; padding: clamp(20px, 3vw, 32px) 0 10px; }

/* 404 */
.nf { padding-top: clamp(24px, 5vw, 56px); padding-bottom: 24px; max-width: 760px; }
.term { border-radius: 8px; background: #120f0d; color: #e9dfd0; border: 1px solid #3a322b; box-shadow: var(--shadow-lg); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px dashed #3a322b; font: 600 .72rem/1 var(--mono); color: #a89a88; }
.term-bar span { display: none; }
.term-bar b::before { content: "■ "; color: #ff8a4f; }
.term pre { margin: 0; padding: 12px 14px 14px; font: 500 .8rem/1.55 var(--mono); white-space: pre-wrap; }
.t-prompt { color: #ff8a4f; } .t-dim { color: #8f8475; } .t-err { color: #ff6b8a; }
.blink { animation: blink 1s steps(1) infinite; color: #ff8a4f; }
.nf-term { max-width: 520px; margin-bottom: 26px; }
.nf h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0; line-height: 1.05; }
.lead { font-size: 1.05rem; color: var(--ink-2); }
.nf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.nf-list a { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border-radius: 5px; background: var(--key); border: 1px solid var(--key-edge); border-bottom-width: 3px; color: var(--ink); text-decoration: none; font: 650 .9rem/1.3 var(--mono); }
.nf-list a:hover { border-color: var(--accent); }

/* ───────── stopka */
.site-foot { position: relative; z-index: 2; margin-top: clamp(40px, 6vw, 80px); padding: clamp(28px, 4vw, 48px) 0 calc(18px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--bg); }
.site-foot .logo { color: var(--bg); }
.site-foot .logo-prompt { background: var(--bg); color: var(--accent-ink); box-shadow: inset 0 -4px 0 var(--line-2); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 24px; }
.foot-brand p { margin: 12px 0 0; color: color-mix(in srgb, var(--bg) 70%, transparent); font-size: .92rem; max-width: 36ch; }
.foot-col h2 { margin: 0 0 8px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { font-size: .9rem; color: color-mix(in srgb, var(--bg) 82%, transparent); }
.foot-col a { display: inline-flex; align-items: center; min-height: 40px; color: color-mix(in srgb, var(--bg) 88%, transparent); text-decoration: none; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--accent); text-decoration: underline; }
.foot-note { margin: 8px 0 0; font-size: .82rem; color: color-mix(in srgb, var(--bg) 62%, transparent); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 24px; padding-top: 14px; border-top: 1px dashed color-mix(in srgb, var(--bg) 25%, transparent); font-size: .78rem; color: color-mix(in srgb, var(--bg) 62%, transparent); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ───────── telefony: zwięźle */
@media (max-width: 760px) {
  body { font-size: 1rem; line-height: 1.58; }
  .block { padding-top: 34px; }
  .sec-top { margin-bottom: 12px; }
  .sec-top .muted { font-size: .88rem; }
  .filters { margin-bottom: 12px; gap: 6px; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 6px; scrollbar-width: none; width: calc(100% + 2 * var(--pad)); }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row button { flex: none; }
  .filter-status { display: none; }
  /* karuzele z podglądem następnej karty */
  .rail { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad); margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 10px; gap: 10px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
  .digest-row.rail { grid-auto-columns: 84%; }
  .post-head { padding: 14px 0 14px; }
  .post-head h1 { font-size: 1.6rem; margin-top: 10px; }
  .post-meta { margin-top: 8px; font-size: .72rem; gap: 2px 12px; }
  .post-grid { padding-top: 14px; }
  .tldr { padding: 12px 14px; margin-bottom: 12px; }
  .tldr p { font-size: .97rem; }
  .spec { padding: 10px 12px; gap: 8px 12px; margin-bottom: 14px; }
  .prose > * { margin-bottom: .85em; }
  .prose h2 { margin: 1.5em 0 .45em; font-size: 1.24rem; }
  .prose h3 { margin: 1.2em 0 .35em; font-size: 1.02rem; }
  .prose ul, .prose ol:not(.steps) { padding-left: 1.15em; }
  .steps > li { padding-left: 0; }
  .steps > li::before { position: relative; float: left; width: 30px; height: 28px; margin: 0 10px 0 0; font-size: .78rem; }
  .steps > li::after { display: none; }
  .steps > li > h3 { margin: 3px 0 .5em; min-height: 28px; }
  .steps > li > *:last-child { margin-bottom: 1em; }
  .callout { padding: 10px 12px 10px 40px; font-size: .93rem; }
  .callout::before { left: 11px; top: 11px; width: 20px; height: 20px; }
  .code { margin-left: calc(-1 * var(--pad) / 2); margin-right: calc(-1 * var(--pad) / 2); }
  .code pre { font-size: .76rem; padding: 11px 12px 13px; line-height: 1.52; }
  .code.clamped pre { max-height: 250px; }
  th, td { padding: 8px 10px; }
  table { font-size: .84rem; }
  td { min-width: 12em; }
  tr > :first-child { min-width: 7.5em; max-width: 9.5em; }
  .faq { margin-top: 1.4em; }
  .qa summary { padding: 10px 40px 10px 0; }
  .qa h3 { font-size: .96rem; }
  .digest .prose .news { padding: 12px 14px 2px; }
  .news .for-you { font-size: .92rem; }
  .site-foot { margin-top: 36px; padding-top: 24px; }
  .foot-brand p { display: none; }
  .f-proj { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .foot-col a { min-height: 44px; }
}

/* ───────── pojawianie się przy przewijaniu (tylko z JS) */
.rv [data-reveal] { opacity: 0; translate: 0 14px; transition: opacity .45s var(--ease), translate .45s var(--ease); transition-delay: var(--delay, 0s); }
.rv [data-reveal].in { opacity: 1; translate: 0 0; }
.rv .rail [data-reveal] { opacity: 1; translate: none; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s steps(3) both; }
::view-transition-new(root) { animation: vt-in .24s steps(4) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } }
.site-head { view-transition-name: head; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv [data-reveal] { opacity: 1; translate: none; }
  .card, .crt-screen { transform: none !important; }
  .cur, .logo-caret, .crt-led, .blink { animation: none !important; }
  @view-transition { navigation: none; }
}
@media (hover: none) { .card { transform: none; } }
@media print {
  .site-head, .site-foot, .post-side, .toc-chip, .copy, .related, .progress, .crt-fx { display: none !important; }
  body { background: #fff; color: #000; }
  .code.clamped pre { max-height: none; -webkit-mask-image: none; mask-image: none; }
}
