
/*
Theme Name: Obrona Życia
Theme URI: https://obronazycia.pl/
Author: Redakcja Obrona Życia
Author URI: https://obronazycia.pl/
Description: Motyw klasyczny dla ObronaŻycia.pl – pomoc, sztuka i kalendarz inicjatyw. Zawiera stronę główną, rejestry CPT (wydarzenia, organizacje, sztuka, teksty zachęty) oraz lekkie style i skrypty.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: obronazycia
*/
:root{
  --bg:#0f172a;--panel:#111827;--muted:#94a3b8;--text:#e5e7eb;--brand:#22d3ee;--accent:#f472b6;--good:#34d399;--warn:#f59e0b;--danger:#ef4444;--card:#0b1220;--border:#1f2937
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;background:linear-gradient(180deg,#0b1020 0%, #0f172a 100%);color:var(--text)}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px;margin-inline:auto;padding:0 20px}
header.site-header{position:sticky;top:0;z-index:50;background:rgba(15,23,42,.85);backdrop-filter:saturate(140%) blur(8px);border-bottom:1px solid var(--border)}
.nav{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:10px 0}
.logo{display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:.2px}
.logo .mark{width:28px;height:28px;border-radius:50%;background:radial-gradient(circle at 60% 30%,var(--accent),var(--brand));box-shadow:0 0 0 2px #ffffff22}
nav ul{display:flex;gap:14px;list-style:none;padding:0;margin:0;flex-wrap:wrap}
nav a{display:inline-block;padding:8px 10px;border-radius:999px}
nav a:hover, nav a:focus{background:#ffffff12;outline:none}
.hero{padding:64px 0 40px;border-bottom:1px dashed var(--border);background:linear-gradient(180deg,#0f172a00, #0f172a66)}
.hero h1{font-size:clamp(28px,5vw,44px);line-height:1.15;margin:0 0 8px}
.sub{color:var(--muted);max-width:60ch}
.cta{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}
.btn{border:1px solid var(--border);background:#ffffff10;color:var(--text);padding:10px 14px;border-radius:12px;cursor:pointer;font-weight:600}
.btn.primary{background:linear-gradient(135deg,var(--brand),var(--accent));border:none;color:#0b1020}
.btn.good{background:linear-gradient(135deg,#34d399,#22d3ee);border:none;color:#0b1020}
.btn:hover{transform:translateY(-1px)}
section{padding:48px 0;border-bottom:1px dashed var(--border)}
h2{font-size:clamp(22px,3.2vw,32px);margin:0 0 8px}
.lead{color:var(--muted);margin:0 0 24px}
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}
.card{grid-column:span 12;background:linear-gradient(180deg, #0b1220, #0c1322);border:1px solid var(--border);border-radius:16px;padding:16px}
.card h3{margin:0 0 6px}
.card .muted{color:var(--muted)}
@media(min-width:680px){
  .col-4{grid-column:span 4}.col-6{grid-column:span 6}.col-8{grid-column:span 8}.col-3{grid-column:span 3}
}
.badge{display:inline-block;background:#ffffff10;border:1px solid var(--border);padding:4px 8px;border-radius:999px;font-size:12px;margin-right:6px}
.kicker{letter-spacing:.12em;text-transform:uppercase;color:#a5b4fc;font-size:12px;font-weight:700}
.list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:14px}
.two{display:grid;gap:16px}
@media(min-width:900px){.two{grid-template-columns:1fr 1fr}}
.pill{display:inline-flex;align-items:center;gap:8px;background:#ffffff0f;border:1px solid var(--border);border-radius:999px;padding:6px 10px}
.input, select, textarea{width:100%;padding:10px 12px;border-radius:10px;border:1px solid var(--border);background:#0a0f1d;color:var(--text)}
label{font-weight:600;font-size:14px}
form .row{display:grid;gap:12px;margin-bottom:12px}
.note{font-size:14px;color:var(--muted)}
.success{border:1px solid #065f46;background:#065f4611;color:#a7f3d0;padding:12px;border-radius:12px}
.danger{border:1px solid #7f1d1d;background:#7f1d1d11;color:#fecaca;padding:12px;border-radius:12px}
.footer{padding:30px 0;color:#cbd5e1}
.table{width:100%;border-collapse:separate;border-spacing:0 6px}
.table td{padding:8px 10px;background:#0b1220;border:1px solid var(--border)}
.table tr td:first-child{border-radius:10px 0 0 10px}
.table tr td:last-child{border-radius:0 10px 10px 0}
.sticky-tools{position:sticky;top:58px;z-index:40;background:#0b1220e0;border:1px solid var(--border);border-radius:14px;padding:10px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
img{max-width:100%;height:auto;border-radius:12px}
/* WordPress basics */
.alignwide{max-width:1200px;margin-inline:auto}
.alignfull{width:100vw;margin-left:50%;transform:translateX(-50%)}
.screen-reader-text{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
