:root {
  --bg: #eef1dc;
  --surface: #fffcf0;
  --text: #27301f;
  --accent: #c28a0b;
  --accent2: #3e6b2d;
  --muted: #59604b;
  --rule: #bfc4a5;
  --rail: 230px;
  --heading: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 clamp(1rem, .95rem + .2vw, 1.125rem)/1.75 var(--body); }
.page { min-width: 0; }
.page-home, .page-sub { padding-left: var(--rail); }
main { min-width: 0; }
::selection { background: #eed38c; color: var(--text); }
a { color: var(--accent2); text-underline-offset: .22em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent2); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading); font-weight: 400; line-height: 1.13; text-wrap: balance; overflow-wrap: break-word; }
h1 { margin: 0 0 .5em; font-size: clamp(2.5rem, 4.6vw, 4.75rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 2.7vw, 2.8rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.4rem, 1.8vw, 1.85rem); }
h4, h5, h6 { font-size: 1.25rem; }
p { margin: 0 0 1.25em; }
ul, ol { padding-left: 1.4em; }
li { padding-left: .15em; }
strong, b { font-weight: 650; }
small { font-size: .8em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
blockquote { margin: 2rem 0; padding: .5rem 1.5rem; border-left: 3px solid var(--accent); font-family: var(--heading); font-size: 1.35em; }
table { width: 100%; border-collapse: collapse; font-size: .9em; }
th, td { padding: .65em; border: 1px solid var(--rule); text-align: left; overflow-wrap: anywhere; }
code, pre { font-family: ui-monospace, monospace; background: var(--bg); overflow-wrap: anywhere; }
pre { white-space: pre-wrap; padding: 1rem; }
input, button, select, textarea { max-width: 100%; font: inherit; color: inherit; }
.wrap { width: min(100% - 96px, 1120px); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: .7rem 1rem; background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: fixed; inset: 0 auto 0 0; z-index: 10; width: var(--rail); overflow-y: auto; border-right: 1px solid var(--rule); background: var(--surface); }
.header-inner { width: auto; min-height: 100%; padding: 40px 23px 24px; display: flex; flex-direction: column; }
.brand { display: block; color: var(--text); font: 400 2rem/1.05 var(--heading); letter-spacing: -.04em; text-decoration: none; padding: 0 0 30px; border-bottom: 4px solid var(--accent); }
.brand::before { content: ''; display: block; width: 31px; height: 31px; margin-bottom: 19px; border: 1px solid var(--accent2); border-radius: 50%; background: linear-gradient(90deg, transparent 47%, var(--accent2) 48%, var(--accent2) 52%, transparent 53%), linear-gradient(transparent 47%, var(--accent2) 48%, var(--accent2) 52%, transparent 53%); box-shadow: inset 0 0 0 6px var(--surface); }
.site-nav { margin-top: 35px; }
.site-nav::before { content: 'SPIS MIEJSC'; display: block; margin-bottom: 13px; color: var(--muted); font-size: .65rem; font-weight: 650; letter-spacing: .2em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; counter-reset: chapter; }
.site-nav li { padding: 0; border-top: 1px solid var(--rule); counter-increment: chapter; }
.site-nav li:last-child { border-bottom: 1px solid var(--rule); }
.site-nav a { display: grid; grid-template-columns: 24px 1fr; gap: 7px; align-items: baseline; padding: 15px 2px; font-size: .8rem; line-height: 1.45; color: var(--text); text-decoration: none; transition: background-color .2s, color .2s; }
.site-nav a::before { content: counter(chapter, decimal-leading-zero); color: var(--accent2); font-family: var(--heading); font-size: .85rem; }
.site-nav a:hover, .site-nav a[aria-current='page'], .page-home .site-nav li:first-child a { background: #f1e6b7; color: var(--text); }
.header-inner::after { content: 'ZABYTKI / PRZYRODA'; padding-top: 48px; margin-top: auto; font-size: .6rem; letter-spacing: .16em; color: var(--muted); }
.hero { padding: clamp(36px, 5vw, 76px) 0 32px; }
.hero-inner { display: grid; gap: 36px; }
.hero-text { max-width: 970px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: .72rem; color: var(--accent2); font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 32px; height: 3px; background: var(--accent); }
.lead { max-width: 80ch; font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.8; }
.hero-actions { margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 48px; padding: 12px 21px; border: 1px solid var(--text); text-decoration: none; font-size: .85rem; font-weight: 650; transition: background-color .2s, transform .2s; }
.btn::after { content: '\2197'; font-size: 1.2em; }
.btn-primary { background: var(--accent); color: #192012; border-color: var(--accent); }
.btn:hover { background: #e2b748; transform: translateY(-2px); }
.hero-media, .split-media, .article-figure { padding: 8px; background: var(--surface); border: 1px solid var(--rule); }
.hero-media img { width: 100%; aspect-ratio: 2.12; object-position: center 55%; }
.hero-media::after, .split-media::after, .article-figure::after { display: block; padding: 10px 5px 3px; color: var(--muted); font-size: .65rem; letter-spacing: .13em; text-transform: uppercase; }
.hero-media::after { content: 'TABLICA 01 / RÓWNINA PYRZYCKA'; }
.split-media::after { content: 'TABLICA 02 / KRAJOBRAZ REGIONU'; }
.article-figure::after { content: 'ATLAS PYRZYCKI / TABLICA KRAJOBRAZOWA'; }
.section { padding: clamp(40px, 5vw, 76px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-title { max-width: 27ch; margin: 0 0 26px; }
.section-title::before { content: ''; display: block; width: 38px; height: 4px; background: var(--accent); margin-bottom: 22px; }
.section .wrap > p { max-width: 75ch; }
.section-intro { color: var(--muted); max-width: 65ch; }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: clamp(26px, 4vw, 64px); }
.split-text { min-width: 0; }
.split-text p:last-child { margin-bottom: 0; }
.split-media { transform: rotate(1.5deg); margin: 8px; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; counter-reset: card; margin-top: 38px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.card { position: relative; min-width: 0; padding: 27px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface); counter-increment: card; display: flex; flex-direction: column; align-items: flex-start; transition: background-color .2s; }
.card::before { content: counter(card, decimal-leading-zero); color: var(--accent2); font: italic 1.55rem/1 var(--heading); margin-bottom: 24px; }
.card:hover { background: #f6efcf; }
.card-title { margin: 0 0 14px; }
.card-text { font-size: .95rem; color: var(--muted); }
.card-link { margin-top: auto; padding-top: 14px; font-size: .8rem; font-weight: 650; }
.card-link::after { content: ' \2192'; margin-left: 12px; }
.fact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin: 26px 0; padding: 0; list-style: none; }
.fact { border-top: 3px solid var(--accent); padding: 16px 0; }
.fact strong { display: block; font: 400 2rem var(--heading); }
.section-partners { background: #e6eacf; }
.partner-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 30px 0 0; padding: 0; counter-reset: partner; }
.partner { min-width: 0; padding: 18px; border: 1px solid var(--rule); background: var(--surface); counter-increment: partner; }
.partner::before { content: counter(partner, decimal-leading-zero); display: block; font-size: .65rem; color: var(--muted); letter-spacing: .1em; margin-bottom: 10px; }
.partner-link { display: block; overflow-wrap: anywhere; word-break: normal; font-size: .75rem; line-height: 1.6; font-weight: 650; }
.partner-phrase { font: 400 1.12rem/1.3 var(--heading); margin: 14px 0 9px; overflow-wrap: anywhere; }
.partner-desc { margin: 0; font-size: .78rem; line-height: 1.65; color: var(--muted); }
.article { padding: 42px 0 80px; background: var(--surface); }
.article > .wrap { max-width: 960px; }
.breadcrumb { color: var(--muted); font-size: .75rem; margin-bottom: 35px; overflow-wrap: anywhere; }
.breadcrumb a { margin-right: 7px; }
.breadcrumb span { margin-left: 7px; }
.page-header { padding-bottom: 24px; border-bottom: 1px solid var(--rule); margin-bottom: 30px; }
.page-header h1 { font-size: clamp(2.25rem, 3.8vw, 4rem); max-width: 24ch; margin: 0; }
.article-figure { margin: 0 0 40px; background: var(--bg); }
.article-figure img { width: 100%; aspect-ratio: 1.9; }
.prose { max-width: 66ch; margin-inline: auto; font-size: clamp(1rem, 1.15vw, 1.125rem); line-height: 1.9; overflow-wrap: anywhere; }
.prose > p:first-child { font-size: 1.1em; color: var(--accent2); }
.prose h2 { margin: 1.6em 0 .65em; font-size: clamp(1.65rem, 2.2vw, 2.2rem); }
.prose h3 { margin-top: 1.6em; }
.prose li { margin-bottom: .6em; }
.note { background: var(--bg); border-left: 4px solid var(--accent); padding: 22px 26px; margin: 30px 0; font-size: .92em; }
.note p:last-child { margin-bottom: 0; }
.site-footer { border-top: 4px solid var(--accent); background: var(--text); color: var(--surface); padding: 42px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-note { max-width: 48ch; margin: 0; font-size: .8rem; line-height: 1.8; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.footer-nav li { padding: 0; }
.footer-nav a { color: var(--surface); font-size: .75rem; }
.site-footer a:focus-visible { outline-color: #e2b748; }
@media (min-width: 1450px) {
  :root { --rail: 250px; }
  .header-inner { padding-inline: 30px; }
  .hero-text { display: grid; grid-template-columns: 1.05fr 1fr; column-gap: 44px; }
  .hero-text .eyebrow { grid-column: 1 / -1; }
  .hero-text h1 { grid-row: 2 / 4; }
  .hero-text .lead { font-size: 1rem; margin-bottom: 0; }
  .hero-actions { grid-column: 2; }
}
@media (max-width: 1100px) {
  :root { --rail: 200px; }
  .header-inner { padding-inline: 18px; }
  .wrap { width: calc(100% - 56px); }
  .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .page-home, .page-sub { padding-left: 0; }
  .site-header { position: relative; width: 100%; overflow: visible; border-right: 0; border-bottom: 1px solid var(--rule); }
  .header-inner { padding: 22px 24px 18px; }
  .brand { display: flex; align-items: center; gap: 13px; font-size: 1.9rem; padding-bottom: 18px; border-bottom-width: 3px; }
  .brand::before { margin: 0; width: 26px; height: 26px; flex-shrink: 0; }
  .site-nav { margin-top: 15px; }
  .site-nav::before, .header-inner::after { display: none; }
  .site-nav ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 15px; }
  .site-nav a { grid-template-columns: 18px 1fr; gap: 3px; font-size: .72rem; padding: 10px 0; }
  .site-nav li:last-child { border-bottom: 0; }
  .wrap { width: calc(100% - 40px); }
  .hero-inner { gap: 26px; }
  .hero-media img { aspect-ratio: 1.6; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split-media { width: min(100% - 16px, 380px); justify-self: center; }
  .split-media img { aspect-ratio: 1; }
  .article { padding-top: 25px; }
  .article-figure img { aspect-ratio: 1.5; }
  .breadcrumb { margin-bottom: 24px; }
}
@media (max-width: 440px) {
  .site-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav a { min-height: 44px; align-items: center; }
  .card-grid, .partner-list { grid-template-columns: 1fr; }
  .card { padding: 23px; }
  .partner { padding: 17px; }
  .hero-media::after, .split-media::after, .article-figure::after { font-size: .58rem; letter-spacing: .08em; }
  .footer-nav ul { gap: 12px; }
  .note { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}
@media print {
  .page-home, .page-sub { padding: 0; }
  .site-header, .skip-link, .hero-actions, .site-footer { display: none; }
  body, .article, .section-partners { background: white; color: black; }
  .wrap { width: 100%; }
  .section, .article { padding-block: 20px; }
  figure, .card, .partner { break-inside: avoid; }
  .prose { max-width: none; }
}
.section-feature { background: var(--surface); border-top: 1px solid var(--rule); }
