/* ================================================
   Komponenty podstron landingowych (.landing)
   Styl Slate & Ember, te same kolory co tokens.css.
   Wszystko jest zawężone do .landing, żeby nie ruszać
   reszty bloga. Zasady i lista komponentów: CLAUDE.md.
   ================================================ */

.landing {
  --bg: #ffffff;
  --surface: #f5f5f4;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --block: #1e2a3a;
  --block-text: #f0ede6;
  --accent: #c2400c;
  --accent-subtle: #fff7ed;
  --accent-on-block: #f97316; /* akcent na granatowym bloku: #c2400c ma tu za słaby kontrast (2,8:1) */
  --on-accent: #ffffff;
  --display: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
.landing *, .landing *::before, .landing *::after { box-sizing: border-box; }
.landing { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--body); }
.landing .wrap { max-width: 1152px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.landing a { color: inherit; }
.landing a:focus-visible, .landing .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.landing h1, .landing h2, .landing h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
.landing h1 em, .landing h2 em { font-style: normal; color: var(--accent); }
.landing .block em, .landing .final em { color: var(--accent-on-block); }
.landing .framed { position: relative; }
.landing .framed::before { content: ""; position: absolute; inset: -18px; pointer-events: none; --c: var(--accent); --l: 34px; --w: 3px; background: linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w), linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l), linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w), linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l), linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w), linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l), linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w), linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l); background-repeat: no-repeat; }
.landing .eyebrow, .landing .tag { display: inline-block; font: 700 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); background: var(--accent-subtle); padding: 8px 14px; }
.landing .hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-block: 56px 64px; padding: 24px 8px; }
.landing .hero > * { min-width: 0; }
.landing .block { background: var(--block); color: var(--block-text); padding: clamp(24px, 4vw, 44px); margin-top: 24px; }
.landing .hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.2; }
.landing .lead { font-size: 18px; color: var(--muted); max-width: 34em; margin: 26px 0 28px; }
.landing .lead strong { color: var(--ink); font-weight: 600; }
.landing .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.landing .btn { display: inline-block; text-decoration: none; font: 700 15px/1 var(--mono); padding: 15px 22px; border: 1.5px solid var(--ink); }
.landing .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.landing .btn-ghost { color: var(--ink); }
.landing .btn:hover { transform: translateY(-1px); }
.landing section { padding-block: 64px; border-top: 1px solid var(--line); }
.landing .sec-head { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-bottom: 36px; }
.landing .sec-head > * { min-width: 0; }
.landing .sec-head h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.landing .sec-head p { color: var(--muted); margin: 0; max-width: 36em; }
.landing .symptoms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.landing .symptoms li { background: var(--bg); border: 1.5px dashed var(--muted); padding: 24px; min-width: 0; }
.landing .symptoms q { display: block; font: 700 18px/1.35 var(--display); quotes: "„" "”"; margin-bottom: 10px; }
.landing .symptoms span { color: var(--muted); font-size: 15px; }
.landing .steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.landing .steps li { background: var(--surface); border: 1.5px solid var(--ink); padding: 24px; min-width: 0; counter-increment: s; }
.landing .steps li::before { content: "0" counter(s); display: block; font: 700 14px var(--mono); color: var(--accent); letter-spacing: .1em; margin-bottom: 14px; }
.landing .steps h3 { font-size: 20px; margin-bottom: 8px; }
.landing .steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
.landing .posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.landing .post { background: var(--bg); border: 1.5px solid var(--line); padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: border-color .15s; }
.landing .post:hover { border-color: var(--accent); }
.landing .post h3 { font-size: 17px; line-height: 1.35; }
.landing .post p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.landing .post .meta { align-self: flex-start; font: 700 11px var(--mono); color: var(--accent); background: var(--accent-subtle); padding: 5px 9px; text-transform: uppercase; letter-spacing: .1em; }
.landing .about { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; max-width: 760px; }
.landing .avatar { width: 120px; height: 120px; object-fit: cover; display: block; border: 3px solid var(--accent); }
.landing .about h2 { font-size: 26px; }
.landing .about .role { font: 400 13px var(--mono); color: var(--muted); margin: 6px 0 14px; text-transform: uppercase; letter-spacing: .09em; }
.landing .about p { margin: 0 0 12px; max-width: 36em; }
.landing .final { background: var(--block); color: var(--block-text); padding: 48px; margin-block: 24px 72px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.landing .final > * { min-width: 0; }
.landing .final h2 { font-size: clamp(22px, 2.8vw, 32px); line-height: 1.3; }
.landing .final p { margin: 14px 0 0; opacity: .8; }
.landing .final .btn { background: var(--accent); color: var(--on-accent); border-color: var(--accent); justify-self: end; align-self: center; }
.landing .inline-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border: 1.5px solid var(--ink); background: var(--surface); }
.landing .inline-cta p { margin: 0; font: 700 18px/1.3 var(--display); min-width: 0; }
.landing .sec-head a, .landing .about a { color: var(--accent); font-weight: 600; }
.landing .portrait { margin: 0; justify-self: center; max-width: 300px; width: 100%; }
.landing .portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 1.5px solid var(--ink); }
/* Na komputerze zdjęcie ma wysokość granatowego bloku: elementy lewej kolumny stają się wierszami siatki, blok i zdjęcie zajmują wiersz 2 (wiersz 1 to etykieta albo pusty wiersz) */
@media (min-width: 881px) {
  .landing .hero.framed:has(> .portrait) { row-gap: 0; align-items: start; }
  .landing .hero.framed:has(> .portrait) > div:first-child { display: contents; }
  .landing .hero.framed:has(> .portrait) > div:first-child > * { grid-column: 1; }
  .landing .hero.framed:has(> .portrait) .tag { justify-self: start; margin-bottom: 24px; }
  .landing .hero.framed:has(> .portrait) .block { grid-row: 2; margin-top: 0; }
  .landing .hero.framed:has(> .portrait) .lead { grid-row: 3; }
  .landing .hero.framed:has(> .portrait) .ctas { grid-row: 4; }
  .landing .hero.framed .portrait { grid-column: 2; grid-row: 2; align-self: stretch; display: flex; justify-content: center; }
  .landing .hero.framed .portrait img { height: 100%; aspect-ratio: auto; max-width: 300px; }
}
.landing .portrait figcaption { margin-top: 12px; font: 400 12px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .09em; text-align: center; }
@media (max-width: 880px) {
  .landing .hero, .landing .sec-head, .landing .final { grid-template-columns: 1fr; gap: 28px; }
  .landing .symptoms, .landing .posts, .landing .steps { grid-template-columns: 1fr; }
  .landing .hero { margin-block: 40px; }
  .landing .final { padding: 28px; }
  .landing .final .btn { justify-self: start; }
  .landing .portrait { max-width: 160px; justify-self: start; }
  .landing .portrait img { aspect-ratio: 1 / 1; object-position: top; }
}
@media (max-width: 480px) {
  .landing .about { grid-template-columns: 1fr; }
  .landing .framed::before { inset: -10px; --l: 24px; }
}


/* Wyłączenie domyślnych stylów treści z motywu (.page__content) */
.landing h1, .landing h2, .landing h3 { border-bottom: 0; padding-bottom: 0; color: inherit; }
.landing li { margin: 0; }
.landing blockquote { font-style: normal; }
.landing .btn { border-radius: 0; text-align: center; box-shadow: none; }
/* custom.css zmienia każde h2 w .page__content w małą rdzawą etykietę (z !important) */
.landing h2 { border-top: 0 !important; padding-top: 0; text-transform: none; }
.landing .sec-head h2 { font-size: clamp(26px, 3vw, 36px) !important; }
.landing .about h2 { font-size: 26px !important; }
.landing .final h2 { font-size: clamp(22px, 2.8vw, 32px) !important; }
.landing .prose h2 { font-size: clamp(22px, 2.6vw, 28px) !important; }
.landing .index-year { font-size: 14px !important; }
.landing .btn:hover { opacity: 1; }

/* Animacje: wejście nagłówka, reakcja na kursor, elementy pojawiające się przy przewijaniu.
   Przy włączonym ograniczeniu ruchu w systemie strona jest bez animacji. */
@property --l { syntax: "<length>"; inherits: false; initial-value: 34px; }
@media (prefers-reduced-motion: no-preference) {
  .landing .hero .tag, .landing .hero .lead, .landing .hero .ctas { animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; }
  .landing .hero .block { animation: slide-in 1s cubic-bezier(.16, 1, .3, 1) both; }
  .landing .hero .lead { animation-delay: .25s; }
  .landing .hero .ctas { animation-delay: .4s; }
  .landing .hero .portrait { animation: zoom-in 1.1s .15s cubic-bezier(.16, 1, .3, 1) both; }
  .landing .framed::before { animation: corners .9s .5s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(40px); } }
  @keyframes slide-in { from { opacity: 0; transform: translateX(-60px); } }
  @keyframes zoom-in { from { opacity: 0; transform: scale(.85); } }
  @keyframes corners { from { --l: 0px; } }

  .landing .btn, .landing .post, .landing .steps li { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
  .landing .btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
  .landing .post:hover, .landing .steps li:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--accent); }
}
/* Przy przewijaniu: assets/js/reveal.js dodaje .reveal elementom poniżej ekranu, a .in, gdy na niego wjadą.
   Bez skryptu (albo przy ograniczeniu ruchu) wszystko jest od razu widoczne. */
.landing .reveal { opacity: 0; transform: translateY(70px) scale(.94); }
.landing .reveal.in { opacity: 1; transform: none; transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 150ms); }

/* Elementy tylko strony /twoj-zespol-moze-wiecej/ */
.landing .day { background: var(--bg); border: 1.5px solid var(--ink); padding: 18px; }
.landing .day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; font-family: var(--mono); }
.landing .day-head span { font: 400 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }
.landing .cal { display: grid; grid-template-columns: 40px 1fr 1fr; grid-template-rows: repeat(16, 22px); column-gap: 6px; row-gap: 2px; position: relative; }
.landing .cal .t { grid-column: 1; font: 400 10.5px/22px var(--mono); color: var(--muted); }
.landing .ev { padding: 3px 7px; font: 400 11px/1.25 var(--mono); overflow: hidden; min-width: 0; background: var(--surface); color: var(--ink); border: 1px dashed var(--muted); }
.landing .ev.work { background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); font-weight: 700; }
.landing .ev.urgent { border: 1.5px solid var(--ink); font-weight: 700; }
.landing .ping { position: absolute; right: 0; display: inline-flex; align-items: center; gap: 4px; font: 700 10px/1 var(--mono); color: var(--block-text); background: var(--block); padding: 4px 7px; white-space: nowrap; }
.landing .day-foot { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; border-top: 1px solid var(--line); padding-top: 12px; }
.landing .day-foot div { font: 400 11px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.landing .day-foot b { display: block; font: 700 28px/1.1 var(--display); color: var(--ink); }
.landing .day-foot .zero b { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .landing .ping { animation: pop 2.4s ease-in-out infinite; }
  .landing .ping:nth-of-type(2n) { animation-delay: .8s; }
  .landing .ping:nth-of-type(3n) { animation-delay: 1.6s; }
  @keyframes pop { 0%, 80%, 100% { transform: scale(1); } 88% { transform: scale(1.12); } }
}

/* Elementy tylko strony /inzynier-produktu/ */
/* Ilustracja z prezentacji z podpisem zamiast zdjęcia: cała, bez kadrowania do kwadratu na telefonie */
.landing .portrait.graphic img, .landing .hero.framed .portrait.graphic img { height: auto; aspect-ratio: 4 / 5; max-width: 340px; border-color: var(--ink); }
.landing .portrait.graphic figcaption { margin-top: 16px; font: 700 17px/1.4 var(--display); color: var(--ink); text-transform: none; letter-spacing: 0; text-align: left; }
.landing .portrait.graphic figcaption em { font-style: normal; color: var(--accent); }
@media (min-width: 881px) {
  .landing .hero.framed .portrait.graphic { grid-row: 1 / 5; align-self: center; max-width: 420px; }
  .landing .hero.framed .portrait.graphic img { max-width: 420px; }
}
@media (max-width: 880px) {
  .landing .portrait.graphic { max-width: 300px; }
}

/* Elementy tylko strony /o-mnie/ */
/* Pasek faktów pod nagłówkiem */
.landing .facts { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); }
.landing .facts li { padding: 22px; min-width: 0; border-left: 1px solid var(--line); }
.landing .facts li:first-child { border-left: 0; }
.landing .facts b { display: block; font: 700 20px/1.25 var(--display); color: var(--accent); margin-bottom: 6px; }
.landing .facts span { font-size: 15px; color: var(--muted); }
@media (max-width: 880px) { .landing .facts { grid-template-columns: 1fr 1fr; } .landing .facts li:nth-child(3) { border-left: 0; } .landing .facts li:nth-child(n+3) { border-top: 1px solid var(--line); } }
/* Karty „W co wierzę”: sam tekst, bez cytatu w nagłówku */
.landing .beliefs span { color: var(--ink); font-size: 18px; line-height: 1.5; }

/* ================================================
   Blog: lista wpisów (/blog/) i widok wpisu
   Layouty: _layouts/blog-list.html, _layouts/post.html
   ================================================ */
.landing .post time { font: 400 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }
.landing .post-page { max-width: 760px; margin: 0 auto; }
.landing .post-date { font: 400 13px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .09em; margin: 16px 0 0; }
.landing .prose { font-size: 18px; line-height: 1.7; margin-top: 36px; }
.landing .prose > * { max-width: 100%; }
.landing .prose p { margin: 0 0 1.1em; }
.landing .prose h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; margin: 1.8em 0 .6em; }
.landing .prose h3 { font-size: 20px; line-height: 1.3; margin: 1.6em 0 .5em; }
.landing .prose a { color: var(--accent); }
.landing .prose ul, .landing .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.landing .prose li { margin: 0 0 .4em; }
.landing .prose img { display: block; max-width: 100%; height: auto; margin: 28px auto; }
.landing .prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.landing .prose blockquote:not(.quote-block__quote) { margin: 28px 0; padding: 18px 24px; background: var(--surface); border-left: 4px solid var(--accent); }
.landing .prose blockquote p:last-child { margin-bottom: 0; }
.landing .prose table { display: block; overflow-x: auto; }
.landing .prose .quote-block { margin: 28px 0; }
.landing .post-tags { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.landing .post-tags li { font: 700 11px var(--mono); color: var(--accent); background: var(--accent-subtle); padding: 5px 9px; text-transform: uppercase; letter-spacing: .1em; }
.landing .post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.landing .post-nav .next { grid-column: 2; text-align: right; }
.landing .post-nav .next .meta { align-self: flex-end; }
.landing .post-author { margin-top: 48px; padding-block: 48px 72px; }
@media (max-width: 880px) {
  .landing .post-nav { grid-template-columns: 1fr; }
  .landing .post-nav .next { grid-column: auto; }
  .landing .prose { font-size: 17px; }
}
/* Wariant B */
.landing .blog-head { margin-block: 56px 48px; max-width: 820px; }
.landing .blog-head h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.2; margin-top: 20px; }
.landing .blog-head .lead { margin-bottom: 0; }
.landing .index { padding-block: 40px; }
.landing .index-year { font-size: 14px; color: var(--accent); letter-spacing: .12em; margin-bottom: 8px; }
.landing .index-list { list-style: none; margin: 0; padding: 0; }
.landing .index-list li { display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.landing .index-list time { font: 400 14px var(--mono); color: var(--muted); }
.landing .index-list a { text-decoration: none; min-width: 0; }
.landing .index-list h3 { font-size: 21px; line-height: 1.3; }
.landing .index-list a:hover h3 { color: var(--accent); }
.landing .index-list p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.landing .index-list .meta { font: 700 11px var(--mono); color: var(--accent); background: var(--accent-subtle); padding: 5px 9px; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
@media (max-width: 880px) {
  .landing .index-list li { grid-template-columns: 1fr; gap: 6px; }
  .landing .index-list .meta { justify-self: start; }
  .landing .index-list h3 { font-size: 19px; }
}
.landing .post-head { margin-block: 56px 8px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.landing .post-head h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.2; }
.landing .post-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 20px; font: 400 13px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }
.landing .post-head .lead { margin: 20px 0 0; font-size: 20px; }
