
/*
Theme Name: Księstwo Warszawskie
Theme URI: https://example.com
Author: Projekt edukacyjny
Description: Historyczny motyw poświęcony Księstwu Warszawskiemu.
Version: 1.0.0
Text Domain: ksiestwo-warszawskie
*/

:root {
  --forest: #20352e;
  --forest2: #304b3f;
  --paper: #f5efe3;
  --white: #fffaf1;
  --gold: #b99355;
  --ink: #2e342e;
  --muted: #716d62;
  --line: #ddd0b7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.7 Georgia, "Times New Roman", serif;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1,h2,h3 { line-height: 1.2; font-weight: 500; }
h1 { font-size: clamp(44px, 6vw, 78px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 24px; }
p { margin: 0 0 18px; }

.kw-container {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}
.kw-skip {
  position: absolute;
  left: -9999px;
}
.kw-skip:focus {
  left: 15px;
  top: 15px;
  z-index: 999;
  background: white;
  color: black;
  padding: 10px;
}

.kw-header {
  background: var(--forest);
  color: var(--white);
  border-bottom: 1px solid #6e6550;
}
.kw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 84px;
}
.kw-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.kw-brand-mark {
  color: var(--gold);
  font-size: 32px;
}
.kw-brand strong {
  display: block;
  font-size: 21px;
  line-height: 1.2;
}
.kw-brand small {
  display: block;
  color: #d4b984;
  font: 10px Arial, sans-serif;
  letter-spacing: 2px;
  margin-top: 6px;
}
.kw-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.kw-nav a {
  font: 13px Arial, sans-serif;
  text-decoration: none;
  color: #eee5d5;
}
.kw-nav a:hover,
.kw-nav a:focus { color: #e8bd72; }

.kw-hero {
  background:
    radial-gradient(circle at 17% 45%, #3a5244, transparent 60%),
    var(--forest);
  color: var(--white);
  padding: 76px 0;
}
.kw-hero-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 65px;
}
.kw-eyebrow {
  color: var(--gold);
  font: bold 12px Arial, sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.kw-hero h1 {
  margin: 20px 0;
  color: #fff6e5;
}
.kw-lead {
  font-size: 21px;
  color: #e8dfce;
  max-width: 540px;
}
.kw-btn {
  display: inline-block;
  padding: 14px 24px;
  margin-top: 20px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #152b23;
  font: bold 13px Arial, sans-serif;
  text-decoration: none;
  transition: .2s ease;
}
.kw-btn:hover { background: #e3bc7a; }
.kw-hero-art {
  padding: 12px;
  border: 1px solid #9a8156;
  background: #17291f;
  box-shadow: 16px 16px 0 #14261e;
}
.kw-hero-art img {
  width: 100%;
  height: 460px;
  display: block;
  object-fit: cover;
  object-position: center;
}
.kw-caption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}
.kw-hero .kw-caption { color: #d2bf9b; }

.kw-stats {
  background: #eadcc4;
  border-bottom: 1px solid var(--line);
}
.kw-stats-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.kw-stat {
  text-align: center;
  padding: 28px 12px;
  border-right: 1px solid #d1bea0;
}
.kw-stat:last-child { border: 0; }
.kw-stat strong {
  display: block;
  font-size: 37px;
  color: var(--forest);
  line-height: 1.1;
}
.kw-stat span {
  display: block;
  font: 12px Arial, sans-serif;
  color: #71634e;
  margin-top: 8px;
}

.kw-section { padding: 88px 0; }
.kw-section:nth-of-type(even) { background: #fcf8ef; }
.kw-section-heading { margin-bottom: 35px; }
.kw-section-heading h2 { margin: 12px 0 18px; }
.kw-section-heading p { max-width: 720px; }
.kw-prose { max-width: 790px; font-size: 19px; }

.kw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.kw-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px #33281008;
}
.kw-card .kw-number {
  color: var(--gold);
  font-size: 36px;
  line-height: 1;
}
.kw-card h3 { margin: 18px 0 12px; }
.kw-card p { color: #625f56; }
.kw-card a { color: #365846; }

.kw-timeline { border-left: 2px solid var(--gold); }
.kw-event {
  position: relative;
  padding: 0 0 30px 30px;
}
.kw-event::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
}
.kw-event time {
  color: #996f39;
  font: bold 15px Arial, sans-serif;
}
.kw-event h3 { margin: 8px 0 7px; }
.kw-event p { margin: 0; max-width: 800px; }

.kw-people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.kw-person {
  padding: 30px;
  border: 1px solid var(--line);
  background: #fffaf1;
}
.kw-person h3 { margin: 0 0 12px; }
.kw-person .kw-role {
  font: 12px Arial, sans-serif;
  color: #a47a41;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.kw-map-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.kw-map-image {
  background: #e5d5b7;
  border: 8px solid #eadbc3;
}
.kw-map-image img {
  display: block;
  width: 100%;
  max-height: 510px;
  object-fit: contain;
}

.kw-footer {
  background: #1b2e27;
  color: #efe5d4;
  padding: 40px 0;
}
.kw-footer a { color: #e6c58d; }
.kw-footer p { font-size: 14px; }
.kw-standard { min-height: 65vh; padding: 70px 0; }
.kw-post { max-width: 850px; margin-bottom: 55px; }
.kw-post h1 { font-size: clamp(34px, 4vw, 55px); }
.kw-post h2 { font-size: 32px; }
.kw-post a { color: #356047; }
.kw-post img { border-radius: 4px; }
.kw-extra { border-top: 1px solid var(--line); }
.wp-block-image img { max-width: 100%; }

@media (max-width: 850px) {
  .kw-header-inner { flex-direction: column; padding: 18px 0; }
  .kw-nav { justify-content: center; gap: 14px; }
  .kw-hero-layout,
  .kw-map-layout { grid-template-columns: 1fr; }
  .kw-hero { padding: 55px 0; }
  .kw-hero-art img { height: 360px; }
  .kw-grid, .kw-people { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .kw-grid, .kw-people { grid-template-columns: 1fr; }
  .kw-hero-art img { height: 300px; }
  .kw-hero-layout { gap: 30px; }
  .kw-stat strong { font-size: 26px; }
  .kw-section { padding: 55px 0; }
  .kw-nav { gap: 12px; }
  .kw-nav a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
