/* ==========================================================================
   Ita Haręza — system wizualny (specyfikacja klientki z 22.10.2026)
   Jedna centralna oś dla logotypu, menu, wyboru języka, treści i stopki.
   Krój: "Helvetica Neue", Helvetica, Arial, sans-serif (wyjątek: oryginalna litera H).
   Tło #FFFFFF, tekst #111111, podpisy i informacje drugorzędne #767676.
   Bez ramek, cieni, ornamentów i animacji. Interlinia 1,3; teksty wyrównane do lewej.
   ========================================================================== */

:root {
  --ink: #111111;
  --ink-3: #767676;          /* podpisy, metadane (kontrast 4,54:1 — WCAG AA) */
  --ph-empty: #f3f3f3;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-xs: 11px;             /* metadane, copyright, podpis fotografii */
  --fs-cap: 12px;            /* podpisy reprodukcji, stopka */
  --fs-sub: 13px;            /* podkategorie menu, cytaty, małe odnośniki */
  --fs-nav: 14px;            /* menu główne */
  --fs-info: 15px;           /* dane praktyczne galerii */
  --fs-text: 16px;           /* tekst */
  --lh: 1.3;

  --pad: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);     /* min. 20 px na telefonie */
  --gutter: clamp(0.75rem, 0.35rem + 1.5vw, 1.875rem);
  --u: clamp(0.5rem, 0.2rem + 1vw, 1.25rem);
  --row: clamp(3.5rem, 1.5rem + 6.5vw, 7.5rem);    /* odstęp między wierszami prac */
  --section: clamp(5rem, 2.5rem + 8vw, 10rem);     /* odstęp między sekcjami */
  --axis: 1100px;                                  /* szerokość głównych bloków na osi */

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   Podstawy
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
@view-transition { navigation: none; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #ffffff; color: var(--ink); font: 400 var(--fs-text)/var(--lh) var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; font-size: inherit; line-height: var(--lh); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
::selection { background: #e6e6e6; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: var(--pad); top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; font-size: var(--fs-nav); }
.skip:focus { top: 0.75rem; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Główny blok treści na centralnej osi */
.axis { width: 100%; max-width: calc(var(--axis) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

/* --------------------------------------------------------------------------
   Nagłówek: oryginalne H, pod nim pionowe menu i wybór języka — na osi
   -------------------------------------------------------------------------- */
.site-header { display: grid; justify-items: center; text-align: center; padding: clamp(2rem, 1.4rem + 2vw, 3.25rem) var(--pad) 0; }
.brand { display: block; }
.brand img { height: clamp(56px, 48px + 1.2vw, 68px); width: auto; }
.brand:hover { text-decoration: none; }
.nav { margin-top: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
.nav > ul { list-style: none; display: grid; justify-items: center; gap: 0.95rem; }
.nav > ul > li > a { display: inline-block; font-size: var(--fs-nav); line-height: 1; text-transform: uppercase; letter-spacing: 0.04em; padding-block: 0.3rem; }
.nav a[aria-current], .nav a.is-section { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.45em; }
.subnav { list-style: none; display: grid; justify-items: center; gap: 0.55rem; margin: 0.9rem 0 0.6rem; }
.subnav a { font-size: var(--fs-sub); line-height: 1.2; color: var(--ink-3); padding-block: 0.15rem; display: inline-block; }
.subnav a:hover, .subnav a[aria-current] { color: var(--ink); }
.subnav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.subnav a.is-ellipsis { font-size: 18px; line-height: 0.8; letter-spacing: 0.02em; }
.lang { margin-top: 1.5rem; font-size: var(--fs-sub); color: var(--ink-3); }
.lang [aria-current] { color: var(--ink); }
.lang a { color: var(--ink-3); padding: 0.3rem 0.15rem; }
.lang a:hover { color: var(--ink); }
main { display: block; flex: 1 0 auto; padding-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.site-header, .site-footer { flex: none; }

/* --------------------------------------------------------------------------
   Reprodukcje i podpisy (wspólny komponent) — podpis mały, neutralny, metadane dyskretniejsze
   -------------------------------------------------------------------------- */
.w { min-width: 0; }
.w-link { display: block; cursor: zoom-in; }
.w-link:hover { text-decoration: none; }
.w img, .pic img { width: 100%; height: auto; max-height: 86svh; object-fit: contain; object-position: left bottom; }
.cap { margin-top: 0.6rem; font-size: var(--fs-cap); line-height: var(--lh); max-width: 36em; text-align: left; }
.cap .t, .cap .d { display: block; }
.cap .d { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 0.1rem; }

@supports (grid-template-columns: subgrid) {
  .row .w.side { display: grid; grid-template-columns: subgrid; align-items: end; }
  .row .w.side.cap-r > .w-link { grid-column: 1 / -2; }
  .row .w.side.cap-r > .cap { grid-column: -2 / -1; align-self: end; margin: 0; }
  .row .w.side.cap-l > .w-link { grid-column: 2 / -1; grid-row: 1; }
  .row .w.side.cap-l > .cap { grid-column: 1 / 2; grid-row: 1; align-self: end; margin: 0; }
}

/* Kompozycja: 6 kolumn na osi, nieregularny rytm, dużo bieli */
.comp { display: flex; flex-direction: column; gap: var(--row); }
.row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.row > .w { grid-column: var(--s) / span var(--n); margin-top: calc(var(--dy, 0) * var(--u)); }
.row > .w.is-solo { grid-column: 1 / -1; width: calc((100% - 5 * var(--gutter)) * var(--n) / 6 + (var(--n) - 1) * var(--gutter)); margin-inline: auto; }
.row > .w.is-solo .w-link img { object-position: center bottom; }
@media (max-width: 639px) {
  .comp { gap: clamp(2.5rem, 10vw, 3.5rem); }
  .row { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: clamp(2.5rem, 10vw, 3.5rem); }
  .row > .w { margin-top: 0; grid-column: 1 / -1 !important; }
  .row > .w.is-solo { width: auto; }
  .row > .w[data-m="l"] { grid-column: 1 / span 3 !important; }
  .row > .w[data-m="r"] { grid-column: 2 / span 3 !important; }
  .row .w.side { display: block; }
  .row .w.side .cap { margin-top: 0.6rem; }
}

/* --------------------------------------------------------------------------
   Strona główna
   -------------------------------------------------------------------------- */
.home { display: flex; justify-content: center; padding-bottom: clamp(3rem, 6vw, 5rem); }
.home-link { display: block; width: min(100%, max(20rem, calc(100svh - 7rem))); }
.home-link:hover { text-decoration: none; }
.home-fig img { width: 100%; height: auto; }
.home-fig figcaption { margin-top: 0.8rem; text-align: center; font-size: var(--fs-cap); color: var(--ink-3); }
.home-link:hover figcaption { color: var(--ink); }

/* --------------------------------------------------------------------------
   PRACE i ARCHIWUM: po jednej reprodukcji z tytułem
   -------------------------------------------------------------------------- */
.covers { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--section); padding-bottom: var(--section); }
.cover { width: min(100%, 640px); }
.cover-img { display: block; }
.cover-img img { width: auto; max-width: 100%; height: auto; max-height: 78svh; margin-inline: auto; }
.cover figcaption { margin-top: 0.8rem; text-align: center; font-size: var(--fs-sub); display: grid; gap: 0.2rem; }
.cover-title.is-ellipsis { font-size: 18px; line-height: 1; }
.cover-meta { font-size: var(--fs-xs); color: var(--ink-3); }
.covers--archive .cover { width: min(100%, 520px); }

/* --------------------------------------------------------------------------
   Podstrona cyklu
   -------------------------------------------------------------------------- */
.cycle { padding-bottom: var(--section); }
.cycle-intro { display: grid; gap: var(--row); margin-bottom: var(--row); }
.cycle-lead { max-width: 34rem; margin-inline: auto; font-size: var(--fs-sub); line-height: var(--lh); }
.sect + .sect { margin-top: var(--row); }
.sect.sect--doc { margin-top: calc(var(--section) * 1.1); }
.sect-head { max-width: 34rem; margin: 0 auto clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 0.5rem; }
.sect-head h2 { font-size: var(--fs-sub); text-transform: uppercase; letter-spacing: 0.04em; }
.sect-head p { font-size: var(--fs-sub); }
.cycle-text { max-width: 34rem; margin: var(--section) auto 0; display: grid; gap: 1rem; }
.cycle-text .prose { font-size: var(--fs-sub); }
.cycle-text .src { font-size: var(--fs-xs); color: var(--ink-3); }

/* Cytat: mały, bez kursywy, wąska wyśrodkowana kolumna, tekst do lewej */
.cycle-quote { max-width: 26rem; margin: var(--row) auto; }
.cycle-intro .cycle-quote { margin-block: 0; }
.cycle-quote p { font-size: var(--fs-sub); line-height: var(--lh); }
.cycle-quote figcaption { margin-top: 0.8rem; }
.q-link { font-size: var(--fs-cap); color: var(--ink-3); }
.q-link:hover { color: var(--ink); }

/* Koniec cyklu: „Cały cykl” i sąsiednie cykle */
.cycle-end { margin-top: var(--section); display: grid; gap: 2rem; justify-items: center; text-align: center; font-size: var(--fs-sub); }
.cycle-more a { color: var(--ink); }
.cycle-nav { width: min(100%, 34rem); display: flex; justify-content: space-between; gap: 2rem; color: var(--ink-3); }
.cycle-nav a { color: var(--ink-3); }
.cycle-nav a:hover { color: var(--ink); }
.cycle-nav .is-ellipsis { font-size: 16px; }
.w:target .w-link { outline: 1px solid var(--ink); outline-offset: 0.6rem; }

/* --------------------------------------------------------------------------
   ITA HARĘZA
   -------------------------------------------------------------------------- */
.about2 { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding-bottom: var(--section); }
.a2-fig { width: min(100%, 900px); }
.a2-archive { width: 320px; max-width: 100%; margin-top: clamp(5rem, 9vw, 7.5rem); }
.a2-fig img { width: 100%; height: auto; }
.a2-fig figcaption { margin-top: 0.6rem; font-size: var(--fs-xs); color: var(--ink-3); text-align: left; }
.a2-sec { width: min(100%, 36rem); margin-top: clamp(4rem, 8vw, 6rem); }
.a2-sec + .a2-sec { margin-top: clamp(3.5rem, 6vw, 5rem); }
.a2-sec h2 { font-size: var(--fs-sub); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 1.25rem; }
.a2-text { font-size: var(--fs-text); line-height: var(--lh); }
.a2-text p + p { margin-top: 1em; }
.a2-cv { margin-top: 2rem; font-size: var(--fs-cap); }
.a2-cv a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }

/* --------------------------------------------------------------------------
   TEKSTY
   -------------------------------------------------------------------------- */
.texts { padding-bottom: var(--section); }
.texts-list { list-style: none; width: min(100%, 36rem); margin-inline: auto; display: grid; gap: 1.6rem; }
.texts-list li { display: grid; gap: 0.25rem; }
.texts-list a { font-size: var(--fs-text); }
.texts-list .meta { font-size: var(--fs-xs); color: var(--ink-3); }

.article { max-width: calc(40rem + 2 * var(--pad)); padding-bottom: var(--section); }
.article h1 { font-size: 18px; line-height: var(--lh); }
.article .sub { margin-top: 0.4rem; font-size: var(--fs-sub); color: var(--ink-3); }
.article-body { margin-top: clamp(2rem, 4vw, 3rem); }
.prose { font-size: var(--fs-text); line-height: var(--lh); text-align: left; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-text); font-weight: 700; margin-top: 2em; }
.prose h3 { font-size: var(--fs-text); font-weight: 700; margin-top: 1.6em; }
.prose blockquote { padding-left: 1.2em; }
.prose a { text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 0.2em; }
.prose ul { padding-left: 1.1em; }
.prose .fn-ref { font-size: 0.7em; line-height: 0; margin-left: 0.08em; }
.footnotes { margin-top: 2.5em !important; padding-left: 1.2em; font-size: var(--fs-cap); color: var(--ink-3); }
.footnotes li + li { margin-top: 0.4em; }
.fn-back { margin-left: 0.3em; }
.ill { margin-top: 3rem; font-size: var(--fs-cap); }
.ill h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 0.8rem; }
.ill ol { padding-left: 1.4em; display: grid; gap: 0.3rem; }
.ill p { margin-top: 0.8rem; color: var(--ink-3); }
.article-end { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; gap: 1.2rem; font-size: var(--fs-cap); }
.article-end .biblio { color: var(--ink-3); font-size: var(--fs-xs); }

/* --------------------------------------------------------------------------
   KONTAKT i galerie
   -------------------------------------------------------------------------- */
.contact { padding-bottom: var(--section); }
.contact-links { list-style: none; display: grid; justify-items: center; gap: 1.1rem; font-size: var(--fs-text); }
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding-bottom: var(--section); }
.g-fig { width: min(100%, var(--w, 500px)); }
.g-fig img { width: 100%; height: auto; }
.g-fig figcaption { margin-top: 0.5rem; font-size: var(--fs-xs); color: var(--ink-3); text-align: left; }
.g-info { width: min(100%, 460px); margin-top: 45px; font-size: var(--fs-info); line-height: var(--lh); text-align: left; }
.g-info p + p { margin-top: 1.1em; }
.g-info a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--ink-3); }

.nf { display: grid; justify-items: center; gap: 1rem; text-align: center; padding-bottom: var(--section); }
.nf h1 { font-size: var(--fs-text); }

/* --------------------------------------------------------------------------
   Stopka: Instagram | Facebook | E-mail, niżej © Ita Haręza — na osi
   -------------------------------------------------------------------------- */
.site-footer { text-align: center; padding: clamp(1rem, 3vw, 2rem) var(--pad) clamp(2rem, 4vw, 3rem); }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: var(--fs-cap); }
.foot-links span { color: var(--ink-3); }
.foot-links a { padding-block: 0.3rem; }
.copyright { margin-top: 0.6rem; font-size: var(--fs-xs); color: var(--ink-3); }
.copyright a { color: var(--ink-3); }
.copyright a:hover, .copyright a[aria-current] { color: var(--ink); }
.foot-mail-btn { background: none; border: 0; padding: 0.3rem 0; font: inherit; color: var(--ink); cursor: pointer; }
.foot-mail-btn:hover, .foot-mail-btn[aria-expanded="true"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.foot-mail { margin-top: 0.6rem; font-size: var(--fs-cap); }
.js .foot-mail:not(.is-open) { display: none; }

/* Adres e-mail do skopiowania (bez mailto:) */
.copy { display: inline-flex; align-items: center; gap: 0.55rem; background: none; border: 0; padding: 0.3rem 0; font: inherit; color: var(--ink); cursor: pointer; }
.copy-addr { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: var(--ink-3); user-select: all; }
.copy:hover .copy-addr { text-decoration-color: var(--ink); }
.copy-ico { flex: none; color: var(--ink-3); }
.copy:hover .copy-ico { color: var(--ink); }
.copy-status { display: block; min-height: 1.3em; margin-top: 0.2rem; font-size: var(--fs-xs); color: var(--ink-3); }

/* TEKSTY i PRACE: cienka linia, komunikat, adres — szerokość kolumny, na osi */
.mail-note { width: min(calc(100% - 2 * var(--pad)), 36rem); margin: 0 auto; padding: 1.4rem 0 0; border-top: 1px solid #e3e3e3; font-size: var(--fs-sub); line-height: var(--lh); }
.mail-note .mail-copy { margin-top: 0.6rem; }

/* --------------------------------------------------------------------------
   Podgląd prac (lightbox) — ten sam podpis co pod pracą
   -------------------------------------------------------------------------- */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #ffffff; color: var(--ink); display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lb:not([open]) { display: none; }
.lb::backdrop { background: #ffffff; }
.lb:focus { outline: none; }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: clamp(1rem, 3vw, 3rem) clamp(3.5rem, 7vw, 6.5rem) 0; overflow: hidden; touch-action: pan-y pinch-zoom; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.lb.is-zoomed .lb-stage { place-items: start; overflow: auto; padding: 0; cursor: grab; touch-action: pan-x pan-y pinch-zoom; }
.lb.is-zoomed .lb-stage img { max-width: none; max-height: none; cursor: zoom-out; }
.lb.is-zoomed .lb-stage.is-dragging { cursor: grabbing; }
.lb-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: end; padding: 1rem clamp(1rem, 3vw, 3rem) calc(1.25rem + env(safe-area-inset-bottom)); }
.lb-cap { min-height: 2.4em; }
.lb-cap .cap { margin: 0; max-width: 60em; }
.lb-ctrl { display: flex; gap: 0.25rem; align-items: center; font-size: var(--fs-sub); }
.lb-count { color: var(--ink-3); font-variant-numeric: tabular-nums; margin-right: 0.75rem; white-space: nowrap; }
.lb-btn { background: none; border: 0; min-width: 2.75rem; min-height: 2.75rem; padding: 0.5rem 0.7rem; cursor: pointer; font-size: var(--fs-sub); color: var(--ink); }
.lb-btn:hover { text-decoration: underline; }
.lb-btn[hidden] { display: none; }
.lb-side { position: absolute; top: 50%; transform: translateY(-50%); width: clamp(3rem, 6vw, 5.5rem); height: min(60%, 30rem); background: none; border: 0; cursor: pointer; display: grid; place-items: center; font-size: 1.75rem; line-height: 1; color: var(--ink-3); }
.lb-side:hover { color: var(--ink); }
.lb-side.prev { left: 0; } .lb-side.next { right: 0; }
.lb.is-zoomed .lb-side { display: none; }
@media (max-width: 639px) {
  .lb-stage { padding: 0.75rem 0.75rem 0; }
  .lb-side { display: none; }
  .lb-bar { grid-template-columns: 1fr; }
  .lb-ctrl { justify-content: space-between; }
  .lb-count { margin-right: auto; }
}
html.lb-open { overflow: hidden; }

/* Tryb przeglądu treści (npm run build:review) — oznaczenie roboczych tłumaczeń */
.review [data-draft] { outline: 1px dashed #b86b2b; outline-offset: 4px; }
.review [data-draft]::after { content: " ⟨EN: do zatwierdzenia⟩"; font-size: 0.7rem; color: #b86b2b; }

@media print { .site-header, .site-footer, .lb { display: none !important; } }
