/* ============================================================
   RUDENHALL — kronika hodowli owczarka niemieckiego
   Wariant 0009_001 · pakiet czcionek: Beskidzka Kronika
   Typografia: Literata (display) · Source Serif 4 (tekst) · Source Code Pro (rejestr)
   ============================================================ */

/* ---------- Fonty (lokalne WOFF2, bez CDN) ---------- */
@font-face {
  font-family: "Literata";
  src: url("../fonts/Rudenhall001-Literata.woff2") format("woff2");
  font-weight: 430;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/Rudenhall001-LiterataItalic.woff2") format("woff2");
  font-weight: 430;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/Rudenhall001-SourceSerif4.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/Rudenhall001-SourceSerif4Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("../fonts/Rudenhall001-SourceCodePro.woff2") format("woff2");
  font-weight: 550;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokeny ---------- */
:root {
  --paper: #fbfbf8;
  --paper-soft: #f2f3ef;
  --ink: #2b2b2a;
  --ink-soft: #4c5258;
  --navy: #183a59;
  --navy-deep: #10293f;
  --night: #0b1d2e;
  --copper: #b46a3c;
  --copper-deep: #8f5227;
  --burgundy: #6d1f2b;
  --gold: #b08a3a;
  --ivory: #f4e9d7;
  --champagne: #d8c09a;
  --steel: #5e6670;
  --line: #e0e2dc;
  --line-strong: #c9ccc4;

  --font-display: "Literata", Georgia, serif;
  --font-text: "Source Serif 4", Georgia, serif;
  --font-mono: "Source Code Pro", Courier New, monospace;
  --font-quote: "Literata", Georgia, serif;

  --type-body-size: 1.075rem;
  --type-body-leading: 1.74;
  --type-heading-track: 0;
  --type-hero-size: clamp(2.28rem, 5.15vw, 4.25rem);
  --type-hero-size-mobile: clamp(1.98rem, 8vw, 2.52rem);
  --type-entry-size: clamp(1.86rem, 3.42vw, 2.92rem);
  --type-entry-size-mobile: clamp(1.55rem, 6.7vw, 1.9rem);
  --type-hero-weight: 430;
  --type-heading-weight: 470;
  --type-lead-weight: 360;
  --type-quote-weight: 430;
  --type-dropcap-weight: 610;
  --type-mono-track: 0.14em;
  --type-hero-max: 18ch;
  --type-contact-max: 17ch;

  --axis: 88px;               /* kolumna osi kroniki */
  --pad: clamp(20px, 5vw, 56px);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-text);
  font-size: var(--type-body-size);
  line-height: var(--type-body-leading);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }

a { color: var(--copper-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--burgundy); }

::selection { background: rgba(180, 106, 60, 0.28); }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: normal;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: var(--type-heading-track);
  text-wrap: balance;
}

strong { font-weight: 640; color: var(--navy); }
em { font-style: italic; }

.wrap {
  width: min(1180px, 100% - 2 * var(--pad));
  margin-inline: auto;
}

.measure { max-width: 46rem; }

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--type-mono-track);
  text-transform: uppercase;
  color: var(--copper-deep);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--navy); color: var(--ivory);
  padding: 10px 18px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.8rem;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; color: var(--ivory); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 3px;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn-solid {
  background: var(--copper-deep);
  color: #fff;
  border: 1px solid var(--copper-deep);
}
.btn-solid:hover { background: #7a451f; border-color: #7a451f; color: #fff; }

.btn-ghost {
  background: rgba(251, 251, 248, 0.06);
  color: var(--ivory);
  border: 1px solid rgba(244, 233, 215, 0.55);
  backdrop-filter: blur(3px);
}
.btn-ghost:hover { background: rgba(244, 233, 215, 0.14); color: #fff; border-color: var(--ivory); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--gold) 55%, var(--copper));
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(16, 41, 63, 0.35); }

.header-inner {
  width: min(1320px, 100% - 2 * clamp(16px, 3vw, 40px));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}

.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand-logo { width: clamp(210px, 18vw, 250px); height: auto; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: clamp(14px, 2vw, 28px); }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--copper-deep); border-bottom-color: var(--copper); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  margin-left: auto;
  width: 46px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-box { display: flex; flex-direction: column; gap: 6px; width: 20px; }
.nav-toggle-box span {
  height: 2px; background: var(--navy); border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: clip;
  background:
    radial-gradient(120% 90% at 78% 30%, #4f6377 0%, transparent 55%),
    linear-gradient(160deg, #16324c 0%, #0b1d2e 60%, #091724 100%);
}
.hero-media picture,
.night-media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-placeholder {
  position: absolute;
  inset: 0;
}
.hero-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  transform: scale(1.08);
}
.hero-image {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
}
.hero-shade {
  position: absolute; z-index: 2; inset: 0;
  background:
    linear-gradient(98deg, rgba(9, 23, 36, 0.86) 0%, rgba(9, 23, 36, 0.55) 34%, rgba(9, 23, 36, 0.12) 62%, rgba(9, 23, 36, 0) 78%),
    linear-gradient(0deg, rgba(9, 23, 36, 0.82) 0%, rgba(9, 23, 36, 0.25) 26%, rgba(9, 23, 36, 0) 46%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: clamp(40px, 6vh, 72px);
  max-width: 1180px;
}

.hero-kicker {
  color: var(--champagne);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero-kicker::before {
  content: "";
  width: 44px; height: 1px;
  background: var(--copper);
}

.hero-title {
  color: #fff;
  font-size: var(--type-hero-size);
  font-weight: var(--type-hero-weight);
  max-width: var(--type-hero-max);
  margin-bottom: clamp(20px, 3vh, 30px);
  text-shadow: 0 2px 30px rgba(9, 23, 36, 0.45);
}

.hero-lead {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.62;
  font-weight: var(--type-lead-weight);
  color: rgba(251, 249, 244, 0.92);
  max-width: 33rem;
  margin-bottom: clamp(28px, 4vh, 40px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-copy-mobile { display: none; }

.hero-meta {
  position: relative;
  z-index: 2;
  margin-top: clamp(36px, 6vh, 64px);
  border-top: 1px solid rgba(244, 233, 215, 0.22);
  background: rgba(9, 23, 36, 0.38);
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-meta-item {
  padding: 20px clamp(18px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hero-meta-item + .hero-meta-item { border-left: 1px solid rgba(244, 233, 215, 0.16); }
.hero-meta-key { color: var(--champagne); font-size: 0.64rem; }
.hero-meta-val {
  font-family: var(--font-text);
  font-size: 0.99rem;
  color: rgba(251, 249, 244, 0.94);
  line-height: 1.4;
}

/* ============================================================
   PROLOG
   ============================================================ */
.prolog {
  padding: clamp(72px, 11vh, 128px) 0 clamp(48px, 7vh, 84px);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(216, 192, 154, 0.12) 0%, transparent 60%),
    var(--paper);
}

.prolog-grid {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.seal {
  position: relative;
  width: clamp(170px, 16vw, 230px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.seal-ring { position: absolute; inset: 0; animation: seal-spin 46s linear infinite; }
.seal-text {
  font-family: var(--font-mono);
  font-size: 9.6px;
  letter-spacing: 0.24em;
  fill: var(--copper-deep);
  text-transform: uppercase;
}
.seal-mark {
  position: absolute;
  left: 50%; top: 50%;
  width: 54%;
  height: auto;
  transform: translate(-50%, -50%);
}
.seal::after {
  content: "";
  position: absolute;
  inset: 13.5%;
  border: 1px solid rgba(180, 106, 60, 0.35);
  border-radius: 50%;
}
@keyframes seal-spin { to { transform: rotate(360deg); } }

.prolog-text {
  font-size: clamp(1.18rem, 1.8vw, 1.42rem);
  line-height: 1.62;
  font-weight: var(--type-lead-weight);
  color: var(--ink);
  max-width: 42rem;
}
.prolog-text + .prolog-text { margin-top: 1.2em; }
.prolog-text em { color: var(--copper-deep); }

.has-dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: var(--type-dropcap-weight);
  font-size: 4.15em;
  line-height: 0.78;
  float: left;
  padding: 0.08em 0.14em 0 0;
  color: var(--copper);
}

.entry-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.entry-eyebrow-light { color: var(--champagne); }

/* ============================================================
   KRONIKA — oś czasu
   ============================================================ */
.chronicle { position: relative; }

.entry { position: relative; }

.entry-head {
  position: relative;
  display: grid;
  grid-template-columns: var(--axis) minmax(0, 1fr);
  padding-top: clamp(56px, 9vh, 104px);
}
.entry-head::before {
  content: "";
  position: absolute;
  left: calc(var(--axis) / 2);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(180, 106, 60, 0.12), rgba(180, 106, 60, 0.45));
}
.entry-head > * { grid-column: 2; }

.entry-node {
  grid-column: 1 !important;
  grid-row: 1 / span 2;
  position: relative;
  align-self: start;
  justify-self: center;
  margin-top: 2px;
  width: 17px; height: 17px;
}
.entry-node span {
  position: absolute; inset: 0;
  border: 2px solid var(--copper);
  border-radius: 50%;
  background: var(--paper);
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.entry.is-active .entry-node span {
  background: var(--copper);
  box-shadow: 0 0 0 6px rgba(180, 106, 60, 0.16);
}

.entry-title {
  font-size: var(--type-entry-size);
  font-weight: var(--type-heading-weight);
  max-width: 20ch;
}

.entry-body {
  position: relative;
  display: grid;
  grid-template-columns: var(--axis) minmax(0, 1fr);
  padding-top: clamp(22px, 3.5vh, 36px);
  padding-bottom: clamp(64px, 10vh, 120px);
}
.entry-body::before {
  content: "";
  position: absolute;
  left: calc(var(--axis) / 2);
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(180, 106, 60, 0.45);
}
.entry-body > * { grid-column: 2; min-width: 0; }

/* ostatni zapis — linia wygasa */
#zapis-12 .entry-body::before {
  background: linear-gradient(180deg, rgba(180, 106, 60, 0.45), rgba(180, 106, 60, 0));
}

.entry-lead {
  font-size: clamp(1.16rem, 1.7vw, 1.38rem);
  line-height: 1.58;
  font-weight: var(--type-lead-weight);
  color: var(--navy);
  max-width: 34rem;
  text-wrap: pretty;
}

.entry-note {
  margin-top: clamp(28px, 4vh, 44px);
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.22rem;
  font-weight: var(--type-quote-weight);
  color: var(--copper-deep);
}

.cols-2 {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.cols-2 p + p { margin-top: 1em; }

.entry-compact .entry-body { padding-bottom: clamp(48px, 7vh, 84px); }

/* ---------- Full-bleed figura (Zapis 01) ---------- */
.bleed-figure {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  aspect-ratio: 1792 / 1024;
  max-height: 78vh;
  overflow: clip;
  background: linear-gradient(150deg, #24455f, #0e2536);
}
.bleed-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.bleed-caption {
  position: absolute;
  left: clamp(16px, 4vw, 64px);
  bottom: clamp(16px, 4vh, 44px);
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 24px 16px;
  background: rgba(9, 23, 36, 0.68);
  backdrop-filter: blur(8px);
  border-left: 2px solid var(--copper);
  color: rgba(251, 249, 244, 0.94);
  max-width: min(88vw, 380px);
}
.bleed-caption .mono-label { color: var(--champagne); font-size: 0.62rem; margin-bottom: 7px; }
.bleed-caption-row { font-size: 0.98rem; line-height: 1.5; }
.bleed-caption-row strong { color: #fff; font-weight: 620; }

/* ---------- Zapis 02 — rasa ---------- */
.breed-grid {
  margin-top: clamp(36px, 5vh, 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}

.arch-frame {
  overflow: clip;
  border-radius: 999px 999px 10px 10px;
  aspect-ratio: 4 / 5.1;
  background: var(--paper-soft);
  box-shadow: 0 24px 60px -30px rgba(16, 41, 63, 0.45);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }
.breed-portrait figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--steel);
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.breed-claims { list-style: none; display: grid; gap: 0; }
.breed-claim {
  padding: clamp(20px, 3vh, 28px) 0;
  border-bottom: 1px solid var(--line);
}
.breed-claim:first-child { border-top: 1px solid var(--line); }
.claim-myth {
  position: relative;
  display: inline-block;
  color: var(--steel);
  margin-bottom: 10px;
}
.claim-myth::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; top: 52%;
  height: 1.5px;
  background: var(--burgundy);
  transform: rotate(-1.1deg);
}
.claim-full {
  font-size: clamp(1.07rem, 1.5vw, 1.24rem);
  line-height: 1.55;
  max-width: 34rem;
}

/* ---------- Zapis 03 — rejestr ---------- */
.registry {
  margin-top: clamp(36px, 5vh, 56px);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background:
    repeating-linear-gradient(180deg, transparent 0 44px, rgba(24, 58, 89, 0.035) 44px 45px),
    #fff;
  overflow: clip;
}
.registry-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper-soft);
}
.registry-status { color: var(--steel); font-size: 0.64rem; }

.registry-list { list-style: none; }
.registry-list li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  padding: clamp(18px, 2.6vh, 26px) clamp(20px, 3vw, 34px);
}
.registry-list li + li { border-top: 1px dashed var(--line-strong); }
.registry-no {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--copper-deep);
  letter-spacing: 0.08em;
  padding-top: 4px;
}
.registry-list h3 {
  font-size: 1.18rem;
  font-weight: 520;
  margin-bottom: 4px;
}
.registry-list p { color: var(--ink-soft); font-size: 0.99rem; line-height: 1.6; }

.registry-footnote {
  padding: 20px clamp(20px, 3vw, 34px) 24px;
  border-top: 1px solid var(--line-strong);
  background: var(--paper-soft);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: none;
}

/* ---------- Zapis 04 — noc narodzin ---------- */
.entry-night {
  position: relative;
  color: rgba(244, 233, 215, 0.92);
  background: var(--night);
  overflow: clip;
}
.night-media { position: absolute; inset: 0; }
.night-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% 55%;
  opacity: 0.55;
}
.night-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 29, 46, 0.94) 0%, rgba(11, 29, 46, 0.72) 44%, rgba(11, 29, 46, 0.3) 75%, rgba(11, 29, 46, 0.55) 100%),
    linear-gradient(0deg, rgba(11, 29, 46, 0.85) 0%, rgba(11, 29, 46, 0.2) 30%, rgba(11, 29, 46, 0.6) 100%);
}

.night-inner { position: relative; z-index: 2; }

.entry-head-night { padding-top: clamp(72px, 11vh, 128px); }
.entry-head-night::before {
  background: linear-gradient(180deg, rgba(216, 192, 154, 0.05), rgba(216, 192, 154, 0.5));
}
.entry-head-night .entry-eyebrow { color: var(--champagne); }
.entry-head-night .entry-title { color: var(--ivory); }
.entry-head-night .entry-node span { border-color: var(--champagne); background: var(--night); }
.entry-night.is-active .entry-node span {
  background: var(--champagne);
  box-shadow: 0 0 0 6px rgba(216, 192, 154, 0.18);
}

.night-grid {
  display: grid;
  grid-template-columns: var(--axis) minmax(0, 1fr);
  padding-top: clamp(22px, 3.5vh, 36px);
  padding-bottom: clamp(80px, 12vh, 140px);
  position: relative;
}
.night-grid::before {
  content: "";
  position: absolute;
  left: calc(var(--axis) / 2);
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(216, 192, 154, 0.5);
}
.night-grid > * { grid-column: 2; }

.night-text { max-width: 36rem; }
.night-text .entry-lead { color: var(--ivory); }
.night-text p + p { margin-top: 1em; }
.night-text p { color: rgba(244, 233, 215, 0.85); }
.night-text strong { color: var(--champagne); }

.night-notes {
  list-style: none;
  margin-top: clamp(36px, 5vh, 52px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 62rem;
}
.night-note {
  border: 1px solid rgba(216, 192, 154, 0.28);
  border-top: 2px solid var(--copper);
  background: rgba(9, 23, 36, 0.55);
  backdrop-filter: blur(4px);
  padding: 14px 16px 16px;
}
.night-note .mono-label {
  color: var(--champagne);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
}
.night-note p {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(244, 233, 215, 0.82);
}

/* ---------- Zapis 05 — proces ---------- */
.process-strip {
  margin-top: clamp(36px, 5vh, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
.process-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: clip;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px -28px rgba(16, 41, 63, 0.4);
}
.process-card:nth-child(2) { transform: translateY(clamp(0px, 2vw, 26px)); }
.process-card:nth-child(2):hover { transform: translateY(clamp(-4px, 1.6vw, 22px)); }
.process-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.process-card figcaption { padding: 18px 20px 22px; }
.process-card figcaption p {
  margin-top: 8px;
  font-size: 0.96rem;
  line-height: 1.58;
  color: var(--ink-soft);
}

.weeks {
  list-style: none;
  margin-top: clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
.weeks li {
  border-top: 2px solid var(--copper);
  padding-top: 14px;
}
.weeks .mono-label { font-size: 0.78rem; }
.weeks p { margin-top: 8px; font-size: 0.97rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Zapis 06 — rozmowy ---------- */
.questions {
  list-style: none;
  margin-top: clamp(36px, 5vh, 56px);
  border-top: 1px solid var(--line-strong);
  max-width: 54rem;
}
.questions li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: clamp(16px, 2.4vh, 22px) 0;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.9vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--navy);
}
.q-no { color: var(--copper-deep); font-size: 0.8rem; }

.scenarios { margin-top: clamp(44px, 6.5vh, 72px); }
.scenarios-intro {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}
.scenario-grid {
  margin-top: clamp(24px, 3.6vh, 40px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
.scenario {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(22px, 3vh, 30px) clamp(20px, 2.4vw, 28px);
  position: relative;
  overflow: clip;
}
.scenario::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), rgba(180, 106, 60, 0));
}
.scenario-tag { font-size: 0.64rem; color: var(--steel); }
.scenario h3 { font-size: 1.32rem; font-weight: 500; margin: 10px 0 10px; }
.scenario p { font-size: 0.97rem; line-height: 1.62; color: var(--ink-soft); }

/* ---------- Zapis 07 — odbiór ---------- */
.handover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}
.handover-text > p { max-width: 36rem; }
.handover-text p + p { margin-top: 1em; }

.handover-list {
  list-style: none;
  margin-top: clamp(28px, 4vh, 40px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vh, 26px) clamp(20px, 2.6vw, 32px);
}
.handover-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
.check {
  width: 18px; height: 18px;
  margin-top: 5px;
  border: 1.5px solid var(--copper);
  border-radius: 2px;
  position: relative;
}
.check::after {
  content: "";
  position: absolute;
  left: 4px; top: 0.5px;
  width: 6px; height: 10px;
  border-right: 2px solid var(--copper-deep);
  border-bottom: 2px solid var(--copper-deep);
  transform: rotate(40deg);
}
.handover-list h3 { font-size: 1.08rem; font-weight: 530; margin-bottom: 3px; }
.handover-list p { font-size: 0.93rem; line-height: 1.55; color: var(--ink-soft); }

.handover-figure {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.handover-figure img {
  border-radius: 6px;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 30px 70px -34px rgba(16, 41, 63, 0.5);
}
.handover-figure figcaption {
  margin-top: 12px;
  font-size: 0.62rem;
  color: var(--steel);
  text-align: center;
}

/* ---------- Zapis 08 — po odbiorze ---------- */
.followup {
  list-style: none;
  margin-top: clamp(36px, 5vh, 56px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: fup;
}
.followup li {
  position: relative;
  padding: 26px clamp(16px, 2vw, 26px) 6px 0;
}
.followup li::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
}
.followup li::after {
  content: "";
  position: absolute;
  top: -4.5px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--copper);
}
.followup-when { font-size: 0.8rem; }
.followup p { margin-top: 8px; font-size: 0.95rem; line-height: 1.58; color: var(--ink-soft); }

.letters { margin-top: clamp(44px, 6.5vh, 72px); }
.letters-label { display: block; margin-bottom: 20px; color: var(--steel); }
.letters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
.letter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(22px, 3vh, 30px) clamp(20px, 2.4vw, 28px);
  position: relative;
}
.letter::before {
  content: "„";
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 500;
  line-height: 0;
  color: var(--copper);
  position: absolute;
  top: 30px; left: 22px;
  opacity: 0.5;
}
.letter p {
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.62;
  padding-top: 16px;
}
.letter cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-deep);
}

/* ---------- Zapis 09 — audit ---------- */
.audit-list {
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.audit-list li {
  position: relative;
  padding: 13px 0 13px 34px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  color: var(--navy);
  line-height: 1.45;
}
.audit-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 22px;
  width: 12px; height: 12px;
  border: 1.5px solid var(--copper);
  border-radius: 2px;
}
.audit-list li::after {
  content: "";
  position: absolute;
  left: 5.5px; top: 22px;
  width: 4px; height: 8px;
  border-right: 1.5px solid var(--copper-deep);
  border-bottom: 1.5px solid var(--copper-deep);
  transform: rotate(40deg);
}

/* ---------- Zapis 10 — karta miotu ---------- */
.litter-card {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: clip;
  box-shadow: 0 24px 54px -34px rgba(16, 41, 63, 0.4);
}
.litter-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--navy);
}
.litter-card-head .mono-label { color: var(--champagne); }
.litter-card-mark { width: 44px; height: auto; opacity: 0.92; }
.litter-card dl { padding: 8px 22px 18px; }
.litter-card dl > div {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
}
.litter-card dl > div + div { border-top: 1px dashed var(--line-strong); }
.litter-card dt { font-size: 0.62rem; padding-top: 4px; color: var(--steel); }
.litter-card dd { font-size: 0.97rem; line-height: 1.55; color: var(--ink); }

/* ---------- Zapis 11 — odmowy ---------- */
.refusal-grid {
  margin-top: clamp(32px, 4.5vh, 48px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
.refusal {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--burgundy);
  border-radius: 4px;
  padding: clamp(24px, 3.4vh, 34px) clamp(22px, 2.8vw, 34px);
}
.refusal-stamp {
  display: inline-block;
  color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
  border-radius: 3px;
  padding: 6px 12px 5px;
  transform: rotate(-1.6deg);
  margin-bottom: 16px;
  font-size: 0.7rem;
}
.refusal p {
  font-size: clamp(1.02rem, 1.4vw, 1.13rem);
  line-height: 1.62;
  color: var(--ink);
  max-width: 30rem;
}

/* ============================================================
   EPILOG
   ============================================================ */
.epilog {
  position: relative;
  padding: clamp(88px, 14vh, 160px) 0;
  background:
    radial-gradient(70% 130% at 0% 100%, rgba(216, 192, 154, 0.14) 0%, transparent 55%),
    var(--paper);
  text-align: center;
  overflow: clip;
}
.epilog::before {
  content: "";
  position: absolute;
  inset: auto auto -14% 50%;
  transform: translateX(-50%);
  width: min(760px, 90vw);
  aspect-ratio: 958 / 583;
  background: url("../logo/rudenhall-symbol-granat.svg") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}
.epilog .entry-eyebrow { justify-content: center; }

.epilog-quote p {
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: var(--type-quote-weight);
  font-size: clamp(2.2rem, 6.4vw, 5rem);
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: var(--type-heading-track);
  margin: clamp(10px, 2vh, 22px) auto clamp(22px, 3.4vh, 36px);
  max-width: 18ch;
  text-wrap: balance;
}

.epilog-text {
  margin-inline: auto;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.68;
  color: var(--ink-soft);
}
.epilog-text em { color: var(--copper-deep); }

.epilog-sign {
  margin-top: clamp(26px, 4vh, 40px);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ============================================================
   KONTAKT + STOPKA
   ============================================================ */
.contact {
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(24, 58, 89, 0.65) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--night) 70%);
  color: rgba(244, 233, 215, 0.9);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(72px, 11vh, 128px) 0 clamp(56px, 9vh, 96px);
}

.contact-title {
  color: var(--ivory);
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: var(--type-heading-weight);
  max-width: var(--type-contact-max);
  margin-bottom: clamp(18px, 3vh, 28px);
}
.contact-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.66;
  font-weight: 320;
  color: rgba(244, 233, 215, 0.82);
  max-width: 33rem;
  margin-bottom: clamp(32px, 5vh, 48px);
}

.contact-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vh, 30px) clamp(24px, 3vw, 40px);
  max-width: 34rem;
}
.contact-list li { display: flex; flex-direction: column; gap: 6px; }
.contact-list .mono-label { color: var(--champagne); font-size: 0.62rem; }
.contact-list a, .contact-list span:not(.mono-label) {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: var(--type-heading-weight);
  color: var(--ivory);
  text-decoration: none;
}
.contact-list a:hover { color: var(--champagne); }

.contact-aside {
  align-self: start;
  border: 1px solid rgba(216, 192, 154, 0.25);
  border-top: 3px solid var(--copper);
  border-radius: 6px;
  background: rgba(9, 23, 36, 0.5);
  padding: clamp(26px, 3.6vh, 36px) clamp(24px, 3vw, 36px);
}
.contact-aside-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ivory);
  font-size: 1.44rem;
  font-weight: 460;
  margin-bottom: 20px;
}
.contact-aside-title .mono-label { color: var(--champagne); }

.prep-list {
  list-style: none;
  counter-reset: prep;
}
.prep-list li {
  counter-increment: prep;
  position: relative;
  padding: 11px 0 11px 44px;
  border-bottom: 1px solid rgba(216, 192, 154, 0.16);
  font-size: 0.99rem;
  line-height: 1.55;
  color: rgba(244, 233, 215, 0.88);
}
.prep-list li::before {
  content: counter(prep, decimal-leading-zero);
  position: absolute;
  left: 0; top: 13px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--champagne);
  letter-spacing: 0.08em;
}
.prep-note {
  margin-top: 18px;
  font-style: italic;
  font-size: 0.94rem;
  color: rgba(216, 192, 154, 0.75);
}

.site-footer {
  border-top: 1px solid rgba(216, 192, 154, 0.16);
  padding: clamp(36px, 5vh, 52px) 0 clamp(28px, 4vh, 40px);
}
.footer-grid {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}
.footer-logo { width: clamp(190px, 20vw, 240px); opacity: 0.95; }
.footer-line { color: rgba(216, 192, 154, 0.66); font-size: 0.64rem; }
.footer-note { font-size: 0.85rem; color: rgba(244, 233, 215, 0.45); max-width: 46rem; }

/* ============================================================
   WSKAŹNIK POSTĘPU KRONIKI
   ============================================================ */
.chronicle-progress {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.chronicle-progress.is-visible { opacity: 1; }
.progress-current { writing-mode: vertical-rl; font-size: 0.62rem; color: var(--copper-deep); }
.progress-total { font-size: 0.62rem; color: var(--steel); }
.progress-track {
  width: 2px;
  height: 130px;
  background: var(--line-strong);
  border-radius: 1px;
  overflow: hidden;
  display: block;
}
.progress-fill {
  display: block;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--copper), var(--gold));
  transition: height 0.3s var(--ease-out);
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (min-width: 1280px) {
  .chronicle-progress { display: flex; }
}

@media (max-width: 1100px) {
  :root { --axis: 56px; }

  .breed-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
  .handover-grid { grid-template-columns: minmax(0, 1fr); }
  .handover-figure { position: static; max-width: 520px; }
  .night-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; }
}

@media (min-width: 601px) and (max-height: 850px) {
  .hero { min-height: max(640px, calc(100svh - var(--header-h))); }
  .hero-inner {
    padding-top: clamp(32px, 6vh, 56px);
    padding-bottom: clamp(28px, 4vh, 42px);
  }
  .hero-title {
    font-size: clamp(2.28rem, 4.4vw, 3.7rem);
    max-width: 13ch;
  }
  .hero-lead {
    max-width: 31rem;
    margin-bottom: clamp(20px, 3vh, 28px);
  }
  .hero-meta { margin-top: clamp(22px, 3vh, 36px); }
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(16, 41, 63, 0.35);
    padding: 10px var(--pad) 22px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    display: block;
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem;
  }
  .nav-toggle { display: inline-flex; }

  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-meta-item { padding: 14px 18px; }
  .hero-meta-item + .hero-meta-item { border-left: none; }
  .hero-meta-item:nth-child(even) { border-left: 1px solid rgba(244, 233, 215, 0.16) !important; }
  .hero-meta-item:nth-child(n+3) { border-top: 1px solid rgba(244, 233, 215, 0.16); }

  .cols-2 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .prolog-grid { grid-template-columns: minmax(0, 1fr); }
  .prolog-side { order: 2; }
  .seal { margin-top: 8px; }

  .breed-grid { grid-template-columns: minmax(0, 1fr); }
  .breed-portrait { max-width: 380px; margin-inline: auto; }

  .process-strip { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .process-card:nth-child(2), .process-card:nth-child(2):hover { transform: none; }
  .weeks { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 460px; }

  .scenario-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .letters-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .followup { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .refusal-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .handover-list { grid-template-columns: minmax(0, 1fr); }

  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .questions li { grid-template-columns: 48px minmax(0, 1fr); }

  .litter-card dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (max-width: 600px) {
  :root { --axis: 30px; --header-h: 64px; }

  .brand-logo { width: min(205px, calc(100vw - 110px)); }

  .hero {
    min-height: 0;
    display: block;
  }
  .hero-media {
    height: calc(100svh - var(--header-h));
    bottom: auto;
  }
  .hero-image,
  .hero-placeholder img {
    object-position: 62% 28%;
    transform: scale(1.1);
  }
  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(9, 23, 36, 0) 0%,
      rgba(9, 23, 36, 0.03) 42%,
      rgba(9, 23, 36, 0.24) 60%,
      rgba(9, 23, 36, 0.68) 79%,
      rgba(9, 23, 36, 0.92) 100%
    );
  }
  .hero-inner {
    height: calc(100svh - var(--header-h));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 28px;
    padding-bottom: 38px;
  }
  .hero-copy-desktop { display: none; }
  .hero-copy-mobile { display: inline; }
  .hero-kicker {
    max-width: 26ch;
    margin-bottom: 15px;
  }
  .hero-title {
    max-width: 13ch;
    margin-bottom: 24px;
    font-size: clamp(1.9rem, 8.4vw, 2.3rem);
    text-shadow: 0 2px 24px rgba(9, 23, 36, 0.62);
  }
  .hero-lead { display: none; }
  .hero-actions .btn-ghost { display: none; }
  .hero-actions .btn { padding: 14px 21px; }
  .hero-meta {
    margin-top: 0;
    grid-template-columns: 1fr 1fr;
    background: var(--night);
  }

  .entry-node { width: 13px; height: 13px; }
  .entry-title { font-size: var(--type-entry-size-mobile); }

  .bleed-caption {
    position: static;
    max-width: none;
    border-left: none;
    border-top: 2px solid var(--copper);
  }
  .bleed-figure { aspect-ratio: auto; max-height: none; display: flex; flex-direction: column; }
  .bleed-figure img { aspect-ratio: 4 / 3; }

  .night-notes { grid-template-columns: minmax(0, 1fr); }
  .followup { grid-template-columns: minmax(0, 1fr); }
  .followup li { padding-top: 20px; padding-bottom: 4px; }
  .registry-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .registry-no { padding-top: 0; }
  .contact-list { grid-template-columns: minmax(0, 1fr); }

  .seal { width: 150px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .seal-ring { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .chronicle-progress, .hero-actions, .nav-toggle { display: none !important; }
  .hero { min-height: auto; color: var(--ink); }
  .hero-media, .hero-shade { display: none; }
  .hero-title, .hero-lead { color: var(--ink); text-shadow: none; }
}
