
/* ----- RESET MIN ----- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ----- TŁO + TYPOGRAFIA ----- */
:root{
  --bg-top: #eff4f9;         /* jasny chłodny */
  --bg-bottom: #dfe7f1;      /* nieco ciemniejszy */
  --text: #1b1f24;           /* grafit */
  --muted: #5b6773;
  --brand: #1976d2;          /* linki */
  --brand-hover: #0d47a1;
  --card-bg: #ffffff;
  --card-shadow: 0 10px 30px rgba(16,24,40,.08), 0 1px 3px rgba(16,24,40,.08);
  --radius: 14px;
  --maxw: 960px;
}

@media (prefers-color-scheme: dark) {
  :root{
    --bg-top: #0e1a24;       /* chłodny granat */
    --bg-bottom: #0b1620;
    --text: #e8edf2;
    --muted: #a8b3bf;
    --card-bg: #0f1b26;
    --card-shadow: 0 10px 30px rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.35);
  }
}

html, body {
  height: 100%;
}
body{
  background: linear-gradient(to bottom, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--text);
  font: 16px/1.7 "Noto Sans","Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ----- NAGŁÓWEK Z LOGO ----- */
.site-header{
  padding: 28px 16px 18px;
}
.site-header .logo-wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.site-header img{
  max-width: 720px;   /* dostosuj do obecnego PNG */
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
}

/* ----- KONTENER I KARTA TREŚCI ----- */
.container{
  max-width: var(--maxw);
  margin: 24px auto 56px;
  padding: 0 16px;
}
.card{
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 36px 42px;
}
@media (max-width: 640px){
  .card{ padding: 24px 22px; }
}

/* ----- TYPOGRAFIA TREŚCI ----- */
h1,h2,h3{
  margin: 0 0 14px 0;
  line-height: 1.25;
  letter-spacing: .2px;
}
h1{ font-size: 32px; font-weight: 700; }
h2{ font-size: 22px; font-weight: 700; color: var(--muted); }
h3{ font-size: 18px; font-weight: 600; color: var(--muted); }
p{ margin: 0 0 14px 0; }
ul,ol{ margin: 0 0 14px 22px; }

.lead{ font-size: 18px; color: var(--muted); }

/* ----- LINKI ----- */
a{
  color: var(--brand);
  text-decoration: none;
  transition: color .15s ease, opacity .15s ease;
}
a:hover{ color: var(--brand-hover); text-decoration: underline; }

/* ----- LISTA ARCHIWUM ----- */
.archive-year{ margin-top: 28px; }
.archive-list{ list-style: none; padding: 0; margin: 8px 0 0; }
.archive-list li{ padding: 8px 0; border-bottom: 1px dashed rgba(90,110,130,.18); }
.archive-list li:last-child{ border-bottom: 0; }
.archive-list a{ font-weight: 600; }
.archive-list .excerpt{ color: var(--muted); font-weight: 400; }

/* ----- NAWIGACJA POWROTNA ----- */
.backlink{ display: inline-flex; gap: 8px; align-items: center; margin: 8px 0 0; }
.backlink::before{ content: "←"; opacity: .8; }

/* ----- STOPKA ----- */
.site-footer{
  text-align: center;
  color: #fff;
  background: rgba(20,30,45,.92);
  margin-top: 56px;
  padding: 18px 12px;
  font-size: 14px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

/* ----- DRUK (czystość) ----- */
@media print{
  body{ background: #fff !important; }
  .site-header, .site-footer{ display:none !important; }
  .card{ box-shadow: none; padding: 0; }
}
