:root{--ink:#172320;--muted:#6d746e;--cream:#f5f3ed;--off:#ebece4;--line:#d7d9cf;--orange:#db9258;--warm:#e7c29d;--deep:#15201e;--serif:'Playfair Display',Georgia,serif;--sans:'DM Sans',Arial,sans-serif;--read-size:17px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);font-family:var(--sans);color:var(--ink);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,select{font:inherit}button{cursor:pointer}.site-header{height:78px;padding:0 max(5vw,24px);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:40;background:rgba(245,243,237,.96);border-bottom:1px solid #d7d9cf;backdrop-filter:blur(12px)}.brand{font-size:17px;font-weight:700;display:inline-flex;gap:13px;align-items:center;letter-spacing:-.04em;white-space:nowrap}.brand-light{font-weight:400}.brand-mark{background:var(--ink);color:var(--cream);padding:9px 11px;border-radius:999px;font:700 15px var(--sans);letter-spacing:-.06em}.site-header nav{display:flex;gap:32px}.site-header nav a{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;transition:color .2s}.site-header nav a:hover{color:#a55d2e}.menu-toggle{display:none;background:none;border:none;font-size:25px}.read-progress{position:fixed;top:0;left:0;height:3px;background:var(--orange);width:0;z-index:100}.hero{height:min(840px,calc(100svh - 78px));min-height:660px;background:#222;position:relative;color:#fff;isolation:isolate}.hero-image{position:absolute;inset:0;background:linear-gradient(90deg,#1a272a 0%,rgba(23,35,30,.20) 100%),url('/assets/hero-road.webp') 52% 52%/cover no-repeat;filter:saturate(.92);z-index:-2}.hero-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(7,15,14,.90),transparent 45%),linear-gradient(90deg,rgba(8,20,17,.80),rgba(8,20,17,.12) 90%);z-index:-1}.hero-inner{max-width:1440px;height:100%;margin:auto;padding:100px max(6vw,26px) 38px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.eyebrow,.small-label{font-size:11px;font-weight:700;letter-spacing:.21em;text-transform:uppercase}.eyebrow{color:#ead9be;display:flex;align-items:center;gap:16px}.eyebrow-line{height:1px;width:34px;background:var(--orange)}h1,h2,h3,p{margin-top:0}.hero h1{font:500 clamp(70px,9.4vw,148px)/.99 var(--serif);letter-spacing:-.055em;margin:40px 0 28px}.hero h1 em,.section h2 em,.gallery-head h2 em{font-weight:400;color:#e6b67f}.hero p{max-width:545px;font-size:17px;line-height:1.75;color:#eeede6}.hero-actions{display:flex;gap:14px;margin-top:18px}.primary-btn,.outline-btn{padding:18px 24px;border:1px solid var(--cream);font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;display:inline-flex;gap:37px;align-items:center;justify-content:space-between}.primary-btn{background:var(--cream);color:var(--ink)}.outline-btn{background:transparent}.primary-btn:hover{background:var(--warm)}.outline-btn:hover{background:#ffffff22}.hero-bottom{position:absolute;bottom:0;left:0;right:0;max-width:1440px;margin:auto;padding:25px max(6vw,26px);display:flex;gap:25px;justify-content:space-between;font-weight:700;font-size:10px;letter-spacing:.15em;border-top:1px solid #ffffff66;color:#f0e8dc}.section{max-width:1370px;margin:auto;padding:124px max(5vw,25px)}.intro{display:grid;grid-template-columns:28% 1fr;gap:50px}.intro-aside{display:flex;flex-direction:column;align-items:flex-start;gap:60px}.small-label{color:#a16b43}.stamp{border:2px solid #ccbea9;border-radius:50%;width:150px;height:150px;padding:22px;transform:rotate(-14deg);font-weight:800;line-height:1.07;font-size:13px;letter-spacing:.04em;color:#a67552;display:flex;flex-direction:column;justify-content:center;position:relative}.stamp span{font-size:25px;align-self:flex-end}.intro h2,.section h2,.gallery-head h2{font:500 clamp(43px,5vw,78px)/1.17 var(--serif);letter-spacing:-.05em}.intro h2{max-width:680px}.section h2 em,.gallery-head h2 em{color:#a87850}.intro-text>p{max-width:690px;font-size:17px;line-height:1.9;color:#586058}.text-link{display:inline-flex;gap:35px;padding-bottom:12px;border-bottom:1px solid var(--ink);font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;margin-top:20px}.quote-band{background:#243632;color:#f7f2e9;text-align:center;padding:104px 24px 105px}.quote-mark{font:100px var(--serif);color:#ba8a61;line-height:.6}.quote-band blockquote{font:400 clamp(30px,4vw,64px)/1.25 var(--serif);max-width:940px;margin:25px auto 28px;letter-spacing:-.035em}.quote-band p{font-size:10px;font-weight:700;letter-spacing:.15em;color:#d6c8b1}.section-top{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:40px}.section-top h2{margin:18px 0 0}.section-top>p{max-width:260px;font-size:14px;line-height:1.8;color:var(--muted)}.chapter-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.chapter-card{border:1px solid var(--line);background:#fff;min-height:310px;display:flex;flex-direction:column;transition:transform .18s, box-shadow .18s;overflow:hidden}.chapter-card:hover{transform:translateY(-4px);box-shadow:0 18px 30px rgba(18,27,24,.08)}.chapter-card-cover{aspect-ratio:16/9;overflow:hidden;background:#c3c1b5}.chapter-card-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s}.chapter-card:hover .chapter-card-cover img{transform:scale(1.04)}.chapter-card-copy{padding:22px 22px 20px;height:100%;display:flex;flex-direction:column}.card-num{font-size:11px;color:#a7734b;font-weight:700;letter-spacing:.17em}.chapter-card h3{font:500 28px/1.25 var(--serif);letter-spacing:-.04em;margin:18px 0 12px}.chapter-card p{color:var(--muted);font-size:13px;line-height:1.6}.card-bottom{margin-top:auto;border-top:1px solid var(--line);display:flex;padding-top:16px;justify-content:space-between;align-items:center;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.card-bottom span:last-child{font-size:24px}.reader{border-top:1px solid var(--line)}.reader-header{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:52px}.reader-controls{display:flex;align-items:center;gap:16px}.reader-controls label{font-size:10px;font-weight:700;letter-spacing:.1em}.reader-controls select{border:1px solid var(--line);background:#fff;padding:12px 16px;max-width:290px;font-size:13px}.reader-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:clamp(35px,6vw,120px)}.reader-aside{border-right:1px solid var(--line);padding-right:24px}.aside-sticky{position:sticky;top:112px}.aside-sticky .small-label{display:block;margin-bottom:28px}#toc{display:grid;gap:0}#toc button{border:0;background:transparent;color:#778079;font-size:13px;text-align:left;line-height:1.45;padding:11px 0;border-bottom:1px solid var(--line)}#toc button.active{color:var(--ink);font-weight:700}#toc button:hover{color:#a16b43}.reading-utility{display:flex;flex-wrap:wrap;gap:7px;margin-top:32px}.reading-utility button{padding:7px 10px;border:1px solid var(--line);background:transparent;font-size:12px}.reader-body{max-width:760px;margin:0 auto;min-width:0}.reader-body .chapter-kicker{font-size:11px;letter-spacing:.14em;color:#a16b43;font-weight:700;text-transform:uppercase;margin-bottom:24px}.reader-body h2{font:500 clamp(44px,5vw,73px)/1.18 var(--serif);letter-spacing:-.05em;margin:0 0 50px}.reader-body h3{font:500 33px/1.25 var(--serif);letter-spacing:-.035em;margin:55px 0 22px}.reader-body p{font:400 var(--read-size)/1.91 var(--serif);color:#38413b;margin-bottom:23px}.reader-body figure{margin:56px 0 60px}.story-photo img{width:100%;max-height:690px;object-fit:cover;display:block;border-radius:2px}.story-photo figcaption{font:12px/1.6 var(--sans);color:#5e6660;margin-top:11px}.story-photo figcaption span{display:block;font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#a16b43;margin-bottom:4px}.reader-body blockquote{font:500 32px/1.35 var(--serif);margin:40px 0;padding:15px 0 15px 28px;border-left:3px solid #bf8c5d;color:#3d4e42}.reader-body .tip-box{background:#e9e7dd;padding:30px 34px;margin:70px 0 30px}.tip-box h3{margin:0 0 18px;font-size:23px}.tip-box p{font:14px/1.85 var(--sans);color:#4f5b55;margin-bottom:12px}.tip-box p:last-child{margin-bottom:0}.reader-footer{display:flex;justify-content:space-between;margin-left:calc(250px + clamp(35px,6vw,120px));max-width:760px;gap:10px;margin-top:45px}.chapter-switch{border:1px solid var(--ink);background:transparent;padding:14px 20px;font-weight:700;font-size:12px;letter-spacing:.05em}.chapter-switch:disabled{opacity:.3;cursor:not-allowed}.chapter-switch:not(:disabled):hover{background:var(--ink);color:#fff}.gallery-section{background:#e3e1d8;padding:110px max(5vw,25px)}.gallery-head{max-width:1370px;margin:0 auto 40px;display:flex;justify-content:space-between;gap:40px;align-items:flex-end}.gallery-head h2{margin:18px 0 0}.gallery-head>p{max-width:260px;line-height:1.7;font-size:13px;color:var(--muted)}.gallery-grid{max-width:1370px;margin:auto;display:grid;grid-template-columns:repeat(12,1fr);gap:18px}.gallery-card{grid-column:span 4;position:relative;cursor:pointer;overflow:hidden;background:#a1a093;min-height:280px}.gallery-card.is-featured{grid-column:span 6}.gallery-card img{width:100%;height:100%;min-height:280px;object-fit:cover;display:block;transition:transform .4s}.gallery-card.is-featured{min-height:430px}.gallery-card.is-featured img{min-height:430px}.gallery-card:hover img{transform:scale(1.035)}.gallery-card .gallery-caption{position:absolute;bottom:0;left:0;right:0;padding:38px 20px 15px;font-size:12px;font-weight:700;color:white;background:linear-gradient(transparent,#000b)}.gallery-card .gallery-caption span{display:block;font-size:10px;letter-spacing:.15em;color:#efcfaf;margin-bottom:6px}.about-section{padding-top:145px;padding-bottom:145px}.about-section h2{margin:28px 0 42px}.about-columns{display:grid;grid-template-columns:1fr 1fr;gap:75px;max-width:940px}.about-columns p{font-size:17px;line-height:1.9;color:#67716b}.about-tag{margin-top:60px;font-size:11px;font-weight:700;letter-spacing:.14em}.about-tag span{margin:0 14px;color:#ab8060}.footer{background:var(--ink);color:#f5f3ed;padding:60px max(5vw,25px) 25px}.footer-top,.footer-bottom{max-width:1370px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}.footer-top>span:last-child{font:italic 23px var(--serif)}.footer .brand-mark{background:#d1a16e;color:#1e2724}.footer-bottom{border-top:1px solid #ffffff33;padding-top:25px;margin-top:70px;font-size:11px;letter-spacing:.03em;color:#a6b2aa}.lightbox{position:fixed;inset:0;z-index:99;background:rgba(7,13,12,.96);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px}.lightbox[hidden]{display:none}.lightbox img{max-width:min(90vw,1300px);max-height:78vh;object-fit:contain}.lightbox-meta{max-width:min(90vw,900px);color:white;margin-top:14px}.lightbox-meta strong{display:block;font-size:13px;letter-spacing:.05em}.lightbox-meta p{font-size:13px;line-height:1.6;color:#d7ddd7;margin-top:8px}.lightbox button{position:absolute;right:26px;top:17px;font-size:36px;border:0;background:none;color:white}@media(max-width:950px){.site-header nav{gap:16px}.reader-layout{grid-template-columns:200px 1fr;gap:38px}.reader-footer{margin-left:238px}.chapter-cards{grid-template-columns:repeat(2,1fr)}.hero h1{font-size:clamp(60px,10vw,100px)}}@media(max-width:700px){.site-header{height:66px}.site-header nav{display:none;position:absolute;top:66px;left:0;right:0;background:var(--cream);padding:18px 25px 25px;flex-direction:column;box-shadow:0 10px 10px #0002}.site-header nav.open{display:flex}.menu-toggle{display:block}.hero{height:760px;min-height:680px}.hero-inner{padding:70px 25px 80px}.hero h1{font-size:clamp(56px,12vw,86px);margin:30px 0}.hero p{font-size:15px;max-width:95%}.hero-actions{gap:7px;flex-wrap:wrap}.primary-btn,.outline-btn{padding:14px 16px;font-size:10px;gap:10px}.hero-bottom{padding:18px 25px;gap:8px;flex-wrap:wrap;justify-content:flex-start;font-size:9px}.section{padding:80px 24px}.intro{display:block}.intro-aside{margin-bottom:35px}.stamp{display:none}.intro h2,.section h2,.gallery-head h2{font-size:44px}.intro-text>p,.about-columns p{font-size:15px}.quote-band{padding:70px 24px}.quote-band blockquote{font-size:34px}.section-top,.gallery-head{display:block}.section-top>p,.gallery-head>p{margin-top:18px}.chapter-cards{grid-template-columns:1fr}.chapter-card{min-height:190px}.chapter-card h3{margin:18px 0;font-size:26px}.reader-header{display:block;margin-bottom:30px}.reader-controls{margin-top:16px;display:block}.reader-controls label{display:block;margin-bottom:8px}.reader-controls select{max-width:100%;width:100%}.reader-layout{display:block}.reader-aside{border:0;padding:0 0 20px}.aside-sticky{position:static}.aside-sticky>.small-label,#toc{display:none}.reading-utility{margin-top:0}.reader-body h2{font-size:41px;margin-bottom:32px}.reader-body h3{font-size:28px;margin:40px 0 17px}.reader-body p{font-size:calc(var(--read-size) - 1px)}.reader-body blockquote{font-size:27px}.reader-body .tip-box{padding:22px}.reader-footer{margin-left:0}.gallery-section{padding:70px 18px}.gallery-grid{grid-template-columns:repeat(2,1fr);gap:9px}.gallery-card,.gallery-card.is-featured,.gallery-card:nth-child(n){grid-column:span 1;min-height:200px}.gallery-card:nth-child(3n+1){grid-column:span 2}.gallery-card img,.gallery-card.is-featured img{min-height:200px}.gallery-card:nth-child(3n+1),.gallery-card.is-featured:nth-child(odd){grid-column:span 2;min-height:300px}.gallery-card:nth-child(3n+1) img,.gallery-card.is-featured:nth-child(odd) img{min-height:300px}.about-columns{grid-template-columns:1fr;gap:12px}.footer-top,.footer-bottom{align-items:flex-start;flex-direction:column}.footer-top>span:last-child{font-size:19px}.footer-bottom{margin-top:40px}.hero-image{background-position:55% center}}
/* Klikalne przyciski ponad elementami dekoracyjnymi strony głównej */
.hero-image,.hero-shade{pointer-events:none}
.hero-inner{position:relative;z-index:2}
.hero-actions{position:relative;z-index:5;flex-shrink:0}
.hero-actions a{position:relative;z-index:6;min-height:52px;cursor:pointer;pointer-events:auto;transition:background-color .2s ease,color .2s ease,transform .2s ease}
.hero-actions a:hover,.hero-actions a:focus-visible{transform:translateY(-2px)}
.hero-actions .primary-btn:hover,.hero-actions .primary-btn:focus-visible{background:var(--warm);color:var(--ink)}
.hero-actions .outline-btn:hover,.hero-actions .outline-btn:focus-visible{background:rgba(255,255,255,.18);color:white}
.hero-actions a:focus-visible{outline:3px solid var(--warm);outline-offset:4px}
.hero-bottom{z-index:1;pointer-events:none}
.hero-image{background-image:linear-gradient(90deg,#1a272a 0%,rgba(23,35,30,.20) 100%),var(--hero-image,url('/assets/hero-road.webp'))}

/* Rozmiar i położenie fotografii w treści — ustawiane w Pages CMS.
   Nie dotyczy rozmiaru kafelków galerii ani zdjęcia okładkowego. */
.reader-body figure.story-photo { box-sizing:border-box; max-width:100%; }
.reader-body figure.story-photo.size-small { width:45%; }
.reader-body figure.story-photo.size-medium { width:70%; }
.reader-body figure.story-photo.size-large { width:100%; }
.reader-body figure.story-photo.align-left { margin-left:0; margin-right:auto; }
.reader-body figure.story-photo.align-center { margin-left:auto; margin-right:auto; }
.reader-body figure.story-photo.align-right { margin-left:auto; margin-right:0; }
.reader-body figure.story-photo img { height:auto; max-width:100%; }
@media (max-width:700px) {
  .reader-body figure.story-photo.size-small { width:70%; }
  .reader-body figure.story-photo.size-medium { width:88%; }
}

/* Układ zdjęcia zapisany w konkretnym rozdziale; globalna galeria jest tylko wartością domyślną */
.reader-body figure.story-photo[data-layout="custom"]{width:var(--photo-width);max-width:100%}
.photo-layout-link{color:#a16b43;border-bottom:1px solid currentColor;text-transform:none;letter-spacing:normal}
.photo-layout-toolbar{position:sticky;top:78px;z-index:30;background:#f5f3ed;border:1px solid #d7d9cf;box-shadow:0 8px 22px #0002;padding:14px 18px;margin:0 0 24px;max-width:100%;font:13px/1.5 var(--sans)}
.photo-layout-toolbar strong{display:block;font-size:15px;margin-bottom:3px}
.photo-layout-toolbar p{margin:0 0 8px;font:12px/1.5 var(--sans);color:#5d665e}
.photo-layout-tools{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.photo-layout-tools input{width:130px;accent-color:#a16b43}
.photo-layout-tools button{padding:8px 11px;font-size:12px;font-weight:700;cursor:pointer;border:1px solid #aab0a6;background:#fff;color:#172320}
.photo-layout-tools button[aria-pressed="true"]{background:#172320;color:#fff}
.photo-layout-tools button.photo-layout-save{background:#172320;color:white;margin-left:auto}
.photo-layout-status{font-size:12px;color:#82532f;margin-top:8px}
.reader-body figure.story-photo.photo-editable{position:relative;cursor:pointer;outline:2px dashed #9d8570;outline-offset:5px}
.reader-body figure.story-photo.photo-selected{outline:3px solid #bb7e4d;outline-offset:5px}
.photo-resize-handle{position:absolute;bottom:30px;right:-10px;z-index:4;background:#172320;color:white;border:2px solid white;border-radius:5px;width:30px;height:30px;font-size:18px;touch-action:none;cursor:nwse-resize;display:none;align-items:center;justify-content:center}
.photo-selected .photo-resize-handle{display:flex}
@media(max-width:700px){
 .reader-body figure.story-photo[data-layout="custom"]{width:max(70%,var(--photo-width));max-width:100%}
 .photo-layout-toolbar{top:65px;padding:10px}
 .photo-layout-tools input{width:95px}
 .photo-layout-tools button.photo-layout-save{margin-left:0}
}
