/* Values follow Design/PhotoBook.dc.html (1280px artboard), made fluid. */
/* Fonts: Archivo and EB Garamond (SIL Open Font License, see fonts/README.md), served from this site.
   One file per style with Latin plus Polish letters, so every page needs at most three
   font files and all of them are preloaded (partials/head.html). Variable fonts: one
   file covers every weight. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(../fonts/archivo.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/eb-garamond.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url(../fonts/eb-garamond-italic.woff2) format('woff2'); }

/* Fallbacks sized to match the web fonts, so the page doesn't jump when they arrive
   (layout shift / CLS). Times New Roman, Liberation Serif and Tinos share the same
   metrics, as do Arial, Liberation Sans and Arimo. Values measured in Chrome. */
@font-face { font-family: 'EB Garamond Fallback'; font-style: normal;
  src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'), local('Tinos');
  size-adjust: 93.07%; ascent-override: 108.53%; descent-override: 32.24%; line-gap-override: 0%; }
@font-face { font-family: 'EB Garamond Fallback'; font-style: italic;
  src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT'), local('Liberation Serif Italic'), local('Tinos Italic');
  size-adjust: 92.15%; ascent-override: 109.6%; descent-override: 32.55%; line-gap-override: 0%; }
@font-face { font-family: 'Archivo Fallback'; font-weight: 100 650;
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo');
  size-adjust: 99.68%; ascent-override: 88.28%; descent-override: 21.07%; line-gap-override: 0%; }
@font-face { font-family: 'Archivo Fallback'; font-weight: 651 850;
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arimo Bold');
  size-adjust: 103.85%; ascent-override: 84.74%; descent-override: 20.22%; line-gap-override: 0%; }
@font-face { font-family: 'Archivo Fallback'; font-weight: 851 900;
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arimo Bold');
  size-adjust: 108.49%; ascent-override: 81.11%; descent-override: 19.36%; line-gap-override: 0%; }

:root {
  --ink: #111111;
  --ink-soft: #555555;
  --accent: #D7261E;  /* link underline */
  --rule: #DDDDDD;
  --paper: #FFFFFF;
  --night: #111111;
  --night-soft: #CCCCCC;

  --sans: 'Archivo', 'Archivo Fallback', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'EB Garamond', 'EB Garamond Fallback', Garamond, Georgia, serif;

  --edge: 64px;   /* left/right padding of every section */
  --pad: 96px;    /* top/bottom section padding */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
/* Buttons start plain everywhere: no browser look (iOS adds rounded corners, a grey fill and blue icons). */
button {
  -webkit-appearance: none; appearance: none; border-radius: 0; margin: 0;
  font: inherit; color: inherit; -webkit-tap-highlight-color: transparent;
}
/* Text links: red underline. Image links, the logo and the menu turn it off below. */
a {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
a:hover { color: var(--ink-soft); }
/* Image links: a 2px red line under the photo on hover. */
.plate a:hover img, .plate-slide:hover img, .story-card:hover img, .series-start:hover img {
  box-shadow: 0 2px 0 var(--accent);
}

.wrap { margin: 0 auto; }

/* Type */
.display {
  font-family: var(--sans); font-weight: 900; text-transform: uppercase;
  font-size: clamp(42px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.02em;
  margin: 0;
}
.h2 {
  font-family: var(--sans); font-weight: 900; text-transform: uppercase;
  font-size: clamp(30px, 3.2vw, 40px); letter-spacing: -0.01em; margin: 0;
}
.num { font-family: var(--sans); font-weight: 800; font-size: 14px; }
.cap { font-size: 19px; font-style: italic; }
.cap-soft { font-size: 16px; font-style: italic; color: var(--ink-soft); }
.lede { margin: 0; font-size: 21px; line-height: 1.6; }
.dropcap {
  float: left; font-family: var(--sans); font-weight: 900;
  font-size: 74px; line-height: .82; padding: 6px 10px 0 0;
}

/* Header */
.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px var(--edge);
}
.brand {
  font-family: var(--sans); font-weight: 900; font-size: 15px;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: 36px; font-size: 17px; margin-left: auto; }
.nav-icon { display: flex; align-items: center; }
.nav-icon svg { display: block; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
/* "O fotografii" menu (52 tygodnie fotografii, Poradniki): opens on hover and on click / tap */
.nav-menu { position: relative; }
.nav-top { position: relative; z-index: 61; padding: 0; border: 0; background: none; font-size: inherit; line-height: inherit; cursor: pointer; }
.nav-top:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.nav-menu:has([aria-current]) .nav-top { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
/* While the menu is open, the current entry inside it carries the underline */
.nav-menu.is-open .nav-top { text-decoration: none; }
@media (hover: hover) { .nav-menu:hover .nav-top { text-decoration: none; } }
/* The list starts right under the button (padding instead of a gap), so the pointer can move onto it */
.nav-sub {
  visibility: hidden; opacity: 0; transition: all ease .3s; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 220px;
  margin: 0; padding: 10px 0 0; list-style: none; background: var(--paper);
}
.nav-menu.is-open .nav-sub { visibility: visible; opacity: 1; }
@media (hover: hover) { .nav-menu:hover .nav-sub { visibility: visible; opacity: 1; } }
.nav-sub li + li { margin-top: 6px; }
.nav-sub a { display: inline-block; padding: 4px 0; white-space: nowrap; }
.home .brand { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: min(900px, 92vh); }
.hero-text {
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
  padding: 120px var(--edge) 56px;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 420px; }
.hero-note { font-size: 15px; font-style: italic; color: var(--ink-soft); }
.hero-head { display: flex; flex-direction: column; gap: 20px; }

/* Buttons (links styled like the contact form's send button) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  height: 52px; padding: 0 28px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none; white-space: nowrap;
}
.btn--ghost { background: transparent; color: var(--ink); }
.btn--small { height: 40px; padding: 0 18px; font-size: 13px; }
@media (hover: hover) { .btn:hover { opacity: .8; } }
.site-nav a.btn { text-decoration: none; }

/* How a session works + price (home page) */
.how { border-top: 1px solid var(--rule); padding: var(--pad) var(--edge); display: flex; flex-direction: column; gap: 56px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.how-steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.how-title { margin: 0; font-family: var(--sans); font-weight: 900; font-size: 20px; text-transform: uppercase; letter-spacing: -0.01em; }
.how-steps p { margin: 0; font-size: 19px; line-height: 1.6; }
/* price: left the price and the button, right the notes as ruled rows (like .facts on About) */
.price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; padding-top: 32px; border-top: 1.5px solid var(--ink); }
.price-main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.price-main p { margin: 0; }
.price-main .btn { margin-top: 26px; }
.price-label { font-size: 19px; font-style: italic; color: var(--ink-soft); }
.price-value { font-family: var(--sans); font-weight: 900; font-size: clamp(36px, 4vw, 52px); letter-spacing: -0.02em; }
.price-value span { font-family: var(--serif); font-weight: 400; font-size: 21px; font-style: italic; letter-spacing: 0; }
.price-notes { list-style: none; margin: 0; padding: 0; font-size: 19px; font-style: italic; }
.price-notes li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.price-notes li:first-child { padding-top: 0; }

/* Plates (featured photos on the home page) */
.plate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.plate-img { padding: var(--pad) var(--edge); display: flex; align-items: center; justify-content: center; }
.plate-img img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.plate-meta {
  padding: 0 var(--edge) var(--pad); display: flex; flex-direction: column;
  justify-content: flex-end; gap: 8px;
}
.plate--right .plate-meta { order: 2; align-items: flex-end; }
.plate-meta .cap { font-size: 15px; }
.plate a { text-decoration: none; }

.plate--wide { display: flex; flex-direction: column; gap: 20px; padding: var(--pad) var(--edge); }
.plate--wide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.plate--wide .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }

/* Testimonials */
.testimonials {
  border-top: 1px solid var(--rule); padding: var(--pad) var(--edge);
  display: flex; flex-direction: column; gap: 56px;
}
.t-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.t-slides { display: grid; }
.t-slide {
  grid-area: 1 / 1; margin: 0; padding-bottom: 20px;
  display: flex; flex-direction: column; gap: 40px; max-width: 880px;
  opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s;
}
.t-slide.is-active { opacity: 1; visibility: visible; }
.t-quote { margin: 0; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.4; }
.t-quote p { margin: 0 0 .6em; }
.t-quote p:last-child { margin-bottom: 0; }
.t-meta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.t-author { display: flex; align-items: center; gap: 20px; }
/* the author's photo as a small polaroid, tilted to the right */
.t-polaroid {
  flex: none; width: 60px; padding: 4px 4px 14px; background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .12);
  transform: rotate(4deg);
}
.t-polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #F2F2F2; }
.t-name { font-family: var(--sans); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }

.t-progress { width: 96px; height: 2px; margin-bottom: 12px; background: linear-gradient(var(--ink), var(--ink)) left / 0% 100% no-repeat, var(--rule); }
.t-progress.is-running { animation: t-fill var(--t-duration, 8s) linear forwards; }
/* pause only while reading: pointer over the quote, or keyboard focus inside it (not on the arrows) */
.testimonials:has(.t-quote:hover) .t-progress,
.testimonials:has(.t-slides :focus-visible) .t-progress { animation-play-state: paused; }
/* previous / next: plain arrows in the bottom-right corner of the section */
.testimonials { position: relative; }
.t-nav { position: absolute; right: var(--edge); bottom: var(--pad); display: flex; gap: 4px; }
.t-nav[hidden] { display: none; }
.t-arrow { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; transition: opacity .2s; }
@media (hover: hover) { .t-arrow:hover { opacity: .5; } }
.t-arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@keyframes t-fill { to { background-size: 100% 100%, auto; } }
@media (prefers-reduced-motion: reduce) { .t-slide { transition: none; } }

/* Stories carousel */
.stories {
  border-top: 1px solid var(--rule);
  padding: var(--pad) 0 var(--pad) var(--edge);
  display: flex; flex-direction: column; gap: 40px;
}
.stories-head { display: flex; justify-content: space-between; align-items: flex-end; padding-right: var(--edge); }
.plate-btn {
  width: 48px; height: 48px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
@media (hover: hover) {
  .plate-btn:hover { background: var(--ink); color: var(--paper); }
  .lightbox .plate-btn:hover { background: none; color: var(--ink); opacity: .5; }
}
.plate-btn:disabled { opacity: .25; cursor: default; background: var(--paper); color: var(--ink); }

.plates-track {
  --per: 3.5; --gaps: 3; --gap: 24px;
  display: flex; gap: var(--gap); overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.plates-track::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .plates-track { cursor: grab; } }
.plates-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.plates-track.is-dragging a { pointer-events: none; }
.plate-slide {
  flex: 0 0 calc((100% - var(--gaps) * var(--gap)) / var(--per));
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.plate-slide img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #F2F2F2; }
.plate-slide .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.track-end { flex: 0 0 40px; }

.all-link { font-size: 17px; }

/* All sessions page (sesje/) */
.story-grid {
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 24px;
  padding: 72px var(--edge) var(--pad);
}
.story-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.story-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #F2F2F2; margin-bottom: 6px; }
.story-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.story-card-title {
  font-family: var(--sans); font-weight: 900; text-transform: uppercase;
  font-size: 22px; letter-spacing: -0.01em; line-height: 1.05; margin-top: 4px;
}

/* About page */
.about-side {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 40px;
  padding: 120px var(--edge) 56px 0;
}
.about-portrait { display: block; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-left: auto; }
.about-sub { margin: 0; font-size: 17px; font-style: italic; color: var(--ink-soft); }
.about-more {
  border-top: 1px solid var(--rule); padding: var(--pad) var(--edge);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px var(--pad); align-items: start;
}
.about-block { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.about-block .h2 { margin: 0; }
.offer { margin: 8px 0 0; display: flex; flex-direction: column; }
.offer div { padding: 18px 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.offer div:last-child { border-bottom: 1px solid var(--rule); }
.offer dt { font-family: var(--sans); font-weight: 800; font-size: 15px; }
.offer dd { margin: 0; font-size: 18px; line-height: 1.55; }
.facts { margin: 0 0 0 auto; display: flex; flex-direction: column; max-width: 420px; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 0; border-top: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--sans); font-weight: 800; font-size: 14px; }
.facts dd { margin: 0; font-size: 19px; font-style: italic; text-align: right; }

/* Instagram page: header and section fill the first screen exactly (whatever the header's height),
   and the footer is taken out of the flow and placed just below it */
body:has(.ig-page) { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
/* .wrap's auto margins would shrink these to their content and centre them in a flex column */
body:has(.ig-page) > header, body:has(.ig-page) > main { width: 100%; }
body:has(.ig-page) > main { flex: 1; display: flex; flex-direction: column; }
body:has(.ig-page) > footer { position: absolute; top: 100%; left: 0; right: 0; }
.hero.ig-page { flex: 1; min-height: 0; }
/* the QR code, as wide as the text column on other pages */
.ig-qr { display: flex; align-items: center; }
.ig-qr a { display: block; width: 100%; max-width: 420px; border: 16px solid #111111; }
.ig-qr svg { display: block; width: 100%; height: auto; }

/* Contact page */
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; font-size: 19px; }
.contact-direct { display: flex; flex-direction: column; gap: 16px; }
.contact-phone { margin: 0; font-size: 19px; }
.contact-phone a { white-space: nowrap; }
.form-side { display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--edge) 56px 0; }
.contact-form { display: flex; flex-direction: column; gap: 28px; max-width: 520px; width: 100%; margin-left: auto; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-family: var(--sans); font-weight: 800; font-size: 14px; }
.field input, .field textarea {
  font: inherit; font-size: 21px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 6px 0; outline: none;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-bottom-width: 3px; padding-bottom: 4.5px; }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.send-btn {
  font-family: var(--sans); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  height: 52px; padding: 0 28px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; margin-left: auto;
}
.send-btn:hover { background: var(--paper); color: var(--ink); }
.send-btn:disabled { opacity: .4; cursor: default; }
.form-status { margin: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- 52 tygodnie fotografii (fotografia/) ---------- */
.s-page { padding-bottom: var(--pad); }
.kicker {
  margin: 0; font-family: var(--sans); font-weight: 800; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase;
}
.status { font-style: italic; color: var(--ink-soft); }

/* No red underlines in the series: links are plain and underline on hover;
   links inside article text keep a thin grey underline so they stay recognisable. */
.s-page a { text-decoration: none; }
.s-page a:hover { text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; }
.s-page .prose a { text-decoration: underline; text-decoration-color: var(--ink-soft); text-decoration-thickness: 1px; }

.crumbs { padding: 12px var(--edge) 0; font-size: 15px; color: var(--ink-soft); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: '/'; margin: 0 10px; color: var(--rule); }
.crumbs a { color: var(--ink-soft); }

/* Series landing and part pages */
.s-head { padding: 72px var(--edge) 56px; display: flex; flex-direction: column; gap: 20px; max-width: 1000px; }
.s-sub { margin: -8px 0 0; font-size: 21px; font-style: italic; color: var(--ink-soft); }
.s-lead { margin: 0; font-size: clamp(21px, 2vw, 26px); line-height: 1.45; max-width: 760px; }
.s-intro { padding: 0 var(--edge) 72px; }
.s-intro-text { max-width: 760px; }
.s-intro-text p { margin: 0 0 1em; font-size: 19px; line-height: 1.6; }
.s-page .s-intro-text a { text-decoration: underline; text-decoration-color: var(--ink-soft); text-decoration-thickness: 1px; }
/* Poradniki list page: the list of guides, with the same side margins as the rest of the page */
.guides { padding: 0 var(--edge); }
.guides .wk-list { max-width: 900px; }
.series-start { display: flex; flex-direction: column; gap: 8px; margin-top: 40px; text-decoration: none; color: var(--ink); }
.series-start img { width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; margin-bottom: 8px; background: #F2F2F2; }
.series-start-title {
  font-family: var(--sans); font-weight: 900; text-transform: uppercase; font-size: 22px; line-height: 1.1;
}
.series-start:hover .series-start-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.series-start-desc { font-size: 17px; line-height: 1.5; color: var(--ink-soft); }

.series-part {
  border-top: 1px solid var(--rule); padding: 56px var(--edge);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px var(--edge);
}
.series-part-head { display: flex; flex-direction: column; gap: 12px; }
.series-part-title { margin: 0; font-family: var(--sans); font-weight: 900; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.08; letter-spacing: -0.01em; }
.series-part-sub { margin: 0; font-size: 19px; font-style: italic; color: var(--ink-soft); }

.wk-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.wk { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.wk-num { font-family: var(--sans); font-weight: 800; font-size: 14px; padding-top: 5px; }
.wk-body { display: flex; flex-direction: column; gap: 4px; }
.wk-title { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.35; }
.wk--planned .wk-title { color: var(--ink-soft); }
.wk-desc { margin: 2px 0 0; font-size: 17px; line-height: 1.5; max-width: 720px; }
.wk-meta { margin: 0; font-size: 15px; font-style: italic; color: var(--ink-soft); }
.s-weeks { padding: 0 var(--edge); }
.wk-list--full .wk { padding: 22px 0; }
.wk-list--full .wk-title { font-size: 23px; }

.pager {
  border-top: 1px solid var(--rule); margin-top: 72px; padding: 40px var(--edge) 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--edge);
}
.pager-prev, .pager-next { display: flex; flex-direction: column; gap: 8px; font-size: 20px; line-height: 1.35; }
.pager-next { text-align: right; align-items: flex-end; }
.pager .is-planned { color: var(--ink-soft); }
.pager .status { font-size: 15px; }

/* Article */
.art-head { padding: 56px var(--edge) 40px; display: flex; flex-direction: column; gap: 20px; max-width: 1040px; }
.art-title {
  margin: 0; font-family: var(--sans); font-weight: 900; text-transform: uppercase;
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.015em;
}
.art-lead { margin: 0; font-size: clamp(20px, 2vw, 24px); line-height: 1.45; font-style: italic; max-width: 760px; }
.art-details { margin: 0; font-size: 15px; color: var(--ink-soft); }

.toc { margin: 0 var(--edge) 48px; padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); max-width: 680px; }
.toc-label { margin: 0 0 12px; font-family: var(--sans); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 40px; font-size: 17px; line-height: 1.5; }
.toc li { break-inside: avoid; margin-bottom: 4px; }

.prose { padding: 0 var(--edge); }
.prose > * { max-width: 680px; }
.prose p { margin: 0 0 1.1em; font-size: 21px; line-height: 1.65; }
.prose h2 {
  margin: 2.2em 0 .8em; font-family: var(--sans); font-weight: 800; font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15; letter-spacing: -0.01em; scroll-margin-top: 24px;
}
.prose h3 { margin: 1.8em 0 .6em; font-family: var(--sans); font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.prose strong { font-weight: 500; }
.prose blockquote { margin: 1.4em 0; padding-left: 24px; border-left: 2px solid var(--ink); font-style: italic; }
.prose ul, .prose ol { margin: 0 0 2em; padding-left: 1.3em; font-size: 19px; line-height: 1.6; }
.prose li + li { margin-top: .35em; }
.prose ol > li::marker { font-family: var(--sans); font-weight: 800; font-size: .8em; }
.prose .sources { font-size: 17px; line-height: 1.5; }
.prose table.data { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 17px; line-height: 1.4; }
.prose table.data caption { caption-side: bottom; text-align: left; padding-top: 10px; font-size: 15px; color: var(--ink-soft); }
.prose table.data th { font-family: var(--sans); font-weight: 800; font-size: 13px; text-align: left; letter-spacing: .02em; border-bottom: 1.5px solid var(--ink); padding: 8px 12px 8px 0; }
.prose table.data td { border-bottom: 1px solid var(--rule); padding: 8px 12px 8px 0; vertical-align: top; }
.prose figure svg { display: block; }
.prose .sources li { margin-bottom: .6em; }

.fig { margin: 2.4em 0; }
.prose > .fig--wide { max-width: 1000px; }
.prose > .fig--narrow { max-width: 480px; }
.fig img { display: block; width: 100%; height: auto; background: #F2F2F2; }
.fig--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.fig--pair figcaption { grid-column: 1 / -1; margin-top: -4px; }
@media (max-width: 560px) { .fig--pair { grid-template-columns: 1fr; } }
.fig figcaption { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--ink); max-width: 680px; }
.fig .credit { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.img-placeholder {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 24px;
  background: #F2F2F2; border: 1px dashed var(--ink-soft); font-size: 16px; font-style: italic; color: var(--ink-soft); text-align: center;
}
/* Guides: a highlighted example, and exercises as label / text pairs */
.prose .tip { margin: 1.6em 0; padding: 2px 0 2px 24px; border-left: 2px solid var(--accent); }
.prose .tip p { margin: 0; font-size: 19px; line-height: 1.6; }
/* Sidebar boxes (<aside class="side">): reference lists next to the text on wide screens,
   a shaded box within the text elsewhere. Sections and wide figures start below them. */
.prose .side { margin: 1.8em 0; padding: 22px 26px 24px; background: #F5F4F1; }
.prose .side h3 { margin: 0 0 12px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.prose .side ul, .prose .side ol { margin: 0; font-size: 17px; line-height: 1.5; }
.prose .side li + li { margin-top: .55em; }
@media (min-width: 1280px) {
  .prose .side { float: right; clear: right; width: calc(100% - 680px - 72px); max-width: 440px; margin: 6px 0 32px 72px; }
  .prose h2, .prose > .fig--wide { clear: both; }
}
/* Exercises: a rule, "ĆWICZENIE N" above the title, then label / text rows */
.prose .ex { margin: 4em 0 0; padding-top: 20px; }
.prose .ex h3 { margin: 0 0 14px; font-size: 21px; line-height: 1.25; letter-spacing: 0; }
.prose .ex-num { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.prose .ex-list { margin: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); font-size: 18px; line-height: 1.5; }
.prose .ex-list dt, .prose .ex-list dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--rule); }
.prose .ex-list dt { font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding-top: 14px; padding-right: 16px; }
/* Session plans: time in its own column, then the step, the instruction and its goal */
.prose ol.plan { list-style: none; padding: 0; border-top: 1.5px solid var(--ink); }
.prose ol.plan li { display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 16px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.prose ol.plan li:last-child { border-bottom: 0; }
.plan-time { grid-row: 1 / span 3; padding-top: 3px; font-family: var(--sans); font-weight: 800; font-size: 14px; white-space: nowrap; }
.plan-title { font-family: var(--sans); font-weight: 800; font-size: 17px; line-height: 1.35; }
.plan-text { margin-top: 4px; font-size: 18px; line-height: 1.5; }
.plan-goal { margin-top: 4px; font-size: 16px; line-height: 1.45; font-style: italic; color: var(--ink-soft); }
.wk--guide { grid-template-columns: minmax(0, 1fr); padding: 22px 0; }
.wk--guide .wk-body { gap: 6px; }
.wk--guide .wk-title { font-family: var(--sans); font-weight: 800; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.wk--guide .wk-title a { text-decoration: none; color: var(--ink); }
.wk--guide .wk-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.wk--guide .wk-desc { color: var(--ink-soft); }

.related { border-top: 1px solid var(--rule); margin-top: 72px; padding: 48px var(--edge) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px var(--edge); }
.related-title { margin: 0; font-family: var(--sans); font-weight: 900; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 30px); }
.related + .pager { margin-top: 48px; }

/* Contact */
.contact { background: var(--night); color: #FFFFFF; }
.contact .wrap {
  padding: 96px var(--edge); display: flex; justify-content: space-between;
  align-items: flex-end; gap: 40px; flex-wrap: wrap;
}
.contact-copy { display: flex; flex-direction: column; gap: 20px; }
.contact .sub { font-size: 20px; font-style: italic; color: var(--night-soft); }
.contact a { color: #FFFFFF; font-size: 22px; }
.contact a:hover { color: var(--night-soft); }
/* Footer line under the contact block */
.footer-meta { padding: 0 var(--edge) 32px; }
.consent-link {
  font: inherit; font-size: 15px; color: var(--night-soft); background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.consent-link:hover { color: #FFFFFF; }

/* Cookie consent banner */
.consent {
  position: fixed; left: auto; right: 24px; bottom: 24px; z-index: 100; max-width: 560px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink);
  padding: 24px; display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
}
.consent[hidden] { display: none; }
.consent-text { margin: 0; font-size: 17px; line-height: 1.45; }
.consent-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.consent-btn {
  font-family: var(--sans); font-weight: 800; font-size: 14px; letter-spacing: .02em;
  min-height: 44px; padding: 0 22px; cursor: pointer;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
}
.consent-btn[data-choice="granted"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .consent-btn:hover { opacity: .75; } }
.consent-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.nf-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 19px; }

/* Gallery page */
.g-intro {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--pad);
  padding: 96px var(--edge) 72px;
}
/* Listing pages: the title sits where the hero title does on the contact and about pages */
.g-intro--page { padding-top: 120px; }
.g-intro-title { display: flex; flex-direction: column; gap: 22px; }
.g-intro-text { display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; max-width: 520px; }
.back { font-size: 17px; }

/* One spacing value between all photos, horizontally and vertically */
.g-photos { --g-gap: 24px; border-top: 1px solid var(--rule); padding: 72px var(--edge) var(--pad); display: flex; flex-direction: column; gap: var(--g-gap); }
.g-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--g-gap); }
.g-row--wide { grid-template-columns: 1fr; }
.g-fig { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.g-fig button { all: unset; cursor: zoom-in; display: block; }
.g-fig button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.g-fig img { width: 100%; height: auto; background: #F2F2F2; }
.g-fig figcaption { display: flex; justify-content: space-between; align-items: baseline; }
.g-aside { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 0 0 36px; }
.g-row--flip .g-aside { order: -1; }
.g-row--flip .g-aside, .g-aside--end { align-items: flex-start; }
.g-row:not(.g-row--flip) .g-aside { align-items: flex-end; }

.g-next {
  border-top: 1px solid var(--rule); padding: 72px var(--edge);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.g-next a { text-decoration-thickness: 3px; text-underline-offset: 8px; }

.empty { padding: 96px var(--edge); font-size: 21px; font-style: italic; color: var(--ink-soft); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(255,255,255,.97);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; }
.lightbox .lb-count { position: absolute; left: 24px; top: 24px; }
.lightbox .plate-btn { border: 0; background: none; color: var(--ink); transition: opacity .2s; }
.lightbox .plate-btn svg { width: 22px; height: 22px; }
.lightbox .lb-close { position: absolute; right: 24px; top: 24px; }
.lightbox .lb-prev { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 1024px) {
  :root { --edge: 40px; --pad: 56px; }
  .hero-text { padding: 96px var(--edge) 48px; }
  .about-side, .form-side { padding: 96px var(--edge) 48px 0; }
  .g-intro--page { padding-top: 96px; }
}
@media (max-width: 1024px) and (min-width: 761px) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --edge: 20px; --pad: 20px; }
  .site-header { flex-wrap: wrap; gap: 12px; padding: 20px var(--edge); }
  .brand { margin: 0 0 0 auto; }
  .site-nav { gap: 20px; font-size: 16px; }
  .nav-cta { display: none; }  /* the hero and footer carry the booking link on phones */
  .how-steps { grid-template-columns: 1fr; gap: 32px; }
  .how { padding: 56px var(--edge); gap: 40px; }
  .price { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  /* Home: the intro fills the first screen below the 61px menu bar, as on desktop
     (svh = the height with the browser's address bar shown) */
  .home .hero { min-height: calc(100vh - 61px); min-height: calc(100svh - 61px); }
  .home .hero-text { padding-top: 96px; }
  .hero > [aria-hidden] { display: none; }
  .about-side, .form-side { padding: 0 var(--edge) 64px; }
  .facts, .contact-form { max-width: none; }
  .facts { margin-left: 0; }
  .hero-text { padding: 64px var(--edge) 48px; gap: 48px; }
  .lede { font-size: 19px; }
  .plate { grid-template-columns: 1fr; }
  .plate-img { padding: 40px var(--edge) 16px; }
  .plate-meta, .plate--right .plate-meta { order: 2; padding: 0 var(--edge) 40px; align-items: flex-start; }
  .plate--wide { padding: 40px var(--edge); }
  .stories { padding: 56px 0 56px var(--edge); gap: 28px; }
  .plates-track { --per: 1.2; --gaps: 1; --gap: 16px; }
  .contact .wrap { padding: 64px var(--edge); }
  .story-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 40px; }
  .testimonials { padding: 56px var(--edge); gap: 32px; }
  .t-nav { position: static; align-self: flex-end; justify-content: flex-end; margin: -16px -10px 0 0; }
  .t-slide { gap: 28px; }
  .g-intro { grid-template-columns: 1fr; gap: 28px; padding: 56px var(--edge) 48px; }
  .g-intro--page { padding-top: 64px; }
  .about-more { grid-template-columns: 1fr; padding: 56px var(--edge); gap: 48px; }
  .g-photos { padding-top: 40px; }
  .g-row { grid-template-columns: 1fr; }
  .g-aside { display: none; }
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 20px; transform: none; }
  .crumbs { font-size: 14px; }
  .s-head { padding: 40px var(--edge) 32px; }
  .series-part, .related { grid-template-columns: 1fr; }
  .s-intro { padding-bottom: 48px; }
  .series-part { padding: 40px var(--edge); }
  .art-head { padding: 32px var(--edge) 28px; gap: 16px; }
  .toc ol { columns: 1; }
  .prose p { font-size: 19px; line-height: 1.6; }
  .prose ul, .prose ol { font-size: 18px; }
  .prose .ex-list { grid-template-columns: minmax(0, 1fr); font-size: 17px; }
  .prose .ex-list dt { padding: 12px 0 2px; }
  .prose .ex-list dd { padding-top: 0; border-top: 0; }
  .prose ol.plan li { grid-template-columns: minmax(0, 1fr); }
  .plan-time { grid-row: auto; padding: 0 0 2px; font-size: 13px; color: var(--ink-soft); }
  .wk-list--full .wk-title { font-size: 20px; }
  .wk--guide .wk-title { font-size: 19px; }
  .pager { grid-template-columns: 1fr; margin-top: 48px; }
  .pager-next { text-align: left; align-items: flex-start; }
  .consent { left: 24px; }
  .ig-qr a { border: 8px solid #111111; }
}

/* Draft banner on articles with status "szkic" (local preview only) */
.draft-note {
  margin: 0; padding: 12px var(--edge); background: #FFF4CC; color: var(--ink);
  font-size: 15px; border-bottom: 1px solid #E6D38A;
}
