/* Wspólny arkusz dla podstron statycznych (blog, artykuły).
   Paleta i typografia te same co na stronie głównej. */

:root {
  --cream: #f7f1e7;
  --nav-bar: #eee7dc;
  --sand: #e8dfcf;
  --forest: #3e4639;
  --forest-deep: #3a4235;
  --olive: #5a5945;
  --apricot: #e8b783;
  --ink: #2c322a;
  --muted: #7e7971;
  --muted-dark: #cfd4c8;
  --line: #e2d9c8;
  --white: #fffdf8;
  --sans: "Instrument Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--forest); outline-offset: 4px; border-radius: 4px; }
img { max-width: 100%; }

.skip {
  position: absolute; top: -56px; left: 16px; z-index: 10;
  background: var(--forest); color: #fff; padding: 12px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 64px; }

/* ---------- header ---------- */
.header { background: var(--nav-bar); }
.nav {
  min-height: 72px; display: flex; align-items: center;
  justify-content: space-between; gap: 28px;
}
.wordmark { display: flex; align-items: center; text-decoration: none; }
.wordmark .full { height: 34px; width: auto; display: block; }
.navlinks { display: flex; align-items: center; gap: 28px; }
.navlinks a { text-decoration: none; color: #4a5145; font-size: 15px; }
.navlinks a:hover, .navlinks a[aria-current] { color: #232a22; }
.navlinks .nav-cta {
  background: var(--forest); color: #f4f2ea; padding: 11px 22px;
  border-radius: 999px; font-weight: 600; font-size: 15px;
}
.navlinks .nav-cta:hover { background: var(--forest-deep); color: #fff; }

/* ---------- nagłówek strony ---------- */
.page-head { padding: 64px 0 34px; }
.eyebrow {
  margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
h1 {
  margin: 0; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08;
  font-weight: 700; letter-spacing: -.025em; color: #232a22; max-width: 760px;
}
.lead { margin: 18px 0 0; max-width: 620px; color: #5d6357; font-size: 18px; }

/* ---------- lista wpisów ---------- */
.posts { list-style: none; margin: 0; padding: 10px 0 72px; }
.posts li { border-top: 1px solid var(--line); }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.post-link {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 28px;
  align-items: baseline; padding: 26px 0; text-decoration: none;
  transition: background .18s;
}
.post-link:hover { background: #fffaf2; }
.post-date { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.post-title { font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: #232a22; }
.post-main { display: block; }
.post-excerpt { display: block; margin-top: 6px; color: #5d6357; font-size: 15px; font-weight: 400; }
.post-more { color: var(--forest); font-size: 14px; font-weight: 600; white-space: nowrap; }

.empty {
  border: 1px dashed #d6cbb6; border-radius: 16px; padding: 40px 32px;
  background: var(--white); color: #5d6357; margin-bottom: 72px;
}
.empty h2 { margin: 0 0 8px; font-size: 20px; font-weight: 600; color: #232a22; }
.empty p { margin: 0; font-size: 15px; }

/* ---------- artykuł ---------- */
.article { padding: 56px 0 72px; }
.article-head { max-width: 760px; }
.article h1 { max-width: 760px; }
.article-meta { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.article-body { max-width: 720px; margin: 40px 0 0; }
.article-body h2 {
  margin: 40px 0 14px; font-size: 27px; line-height: 1.22;
  font-weight: 700; letter-spacing: -.015em; color: #232a22;
}
.article-body h3 { margin: 30px 0 10px; font-size: 20px; font-weight: 600; color: #232a22; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 26px 0; padding: 18px 24px; border-left: 4px solid var(--apricot);
  background: var(--white); border-radius: 0 12px 12px 0; color: #3c4438;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body a { color: var(--forest); text-underline-offset: 3px; }
.article-body img { border-radius: 14px; margin: 8px 0 22px; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

.back { display: inline-flex; align-items: center; gap: 8px; margin-top: 44px;
  text-decoration: none; color: var(--forest); font-size: 15px; font-weight: 600; }

/* ---------- stopka ---------- */
.footer { background: var(--nav-bar); padding: 30px 0; }
.footer .inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  color: #4a5145; font-size: 14px;
}
.footer a { text-decoration: none; border-bottom: 1px solid #b9c0ac; }

@media (max-width: 900px) {
  .wrap { padding: 0 36px; }
  .post-link { grid-template-columns: 1fr; gap: 6px; }
  .post-more { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  body { font-size: 16px; }
  .nav { min-height: 64px; flex-wrap: wrap; row-gap: 8px; padding: 12px 0; }
  .wordmark { width: 100%; }
  .wordmark .full { height: 40px; }
  .navlinks { gap: 16px; flex-wrap: wrap; row-gap: 4px; width: 100%; align-items: center; }
  .navlinks a { font-size: 13px; white-space: nowrap; }
  .navlinks .nav-cta { padding: 9px 16px; font-size: 13px; margin-left: auto; }
  .page-head { padding: 42px 0 24px; }
  .lead { font-size: 16px; }
  .post-title { font-size: 19px; }
  .article-body h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
