/* SPJB.org — Stowarzyszenie Przyjaciół Jeziora Białego
   Cold-white clarity, petrol ink, dossier monospace. Zero JS. */

:root {
  --papier: #FBFBF9;      /* cold white — the lake's name */
  --woda: #16324E;        /* deep navy — primary ink */
  --ramienice: #3E6B4F;   /* charophyte green — links, actions */
  --mgla: #D9E2E0;        /* pale water-grey — rules, dividers */
  --alarm: #A3453A;       /* muted brick — ONLY for "bez odpowiedzi" / breaches */
  /* Optima everywhere (the brand face): real Optima on macOS/iOS and any
     machine with Optima nova installed; Candara/Gill Sans are the closest
     humanist fallbacks elsewhere. */
  --optima: 'Optima nova LT Pro', 'Optima nova', Optima, Candara,
            'Gill Sans', 'Gill Sans MT', 'Segoe UI', system-ui, sans-serif;
  --serif: var(--optima);
  --sans: var(--optima);
  --mono: Consolas, 'Courier New', monospace; /* dates + sygnatury only */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--papier);
  color: var(--woda);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* ---------- nav (CSS-only hamburger, no JS) ---------- */
header.top {
  border-bottom: 1px solid var(--mgla);
}
.nav {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
}
.nav .marka {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--woda);
  text-decoration: none;
  margin-right: auto;
  font-weight: bold;
}
.nav .znak {
  width: 30px;
  height: 30px;
  vertical-align: -0.62em;
}
.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--woda);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav-links a:hover { border-bottom-color: var(--ramienice); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--woda); }

/* checkbox is visually hidden but keyboard-reachable */
.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.nav-burger { display: none; }

@media (max-width: 40em) {
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
    border: 1px solid var(--mgla);
  }
  .nav-burger span {
    display: block;
    height: 2px;
    background: var(--woda);
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  .nav-toggle:focus-visible + .nav-burger {
    outline: 2px solid var(--woda);
    outline-offset: 3px;
  }
  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.4rem 0 0.6rem;
  }
  .nav-links a {
    font-size: 1.05rem;
    padding: 0.55rem 0;
    width: 100%;
    border-bottom: 1px solid var(--mgla);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  @media (prefers-reduced-motion: reduce) {
    .nav-burger span { transition: none; }
  }
}

/* ---------- layout ---------- */
main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}
section { margin-top: 3.5rem; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; }
h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); font-weight: normal; }
h2 { font-size: 1.55rem; margin-bottom: 0.9rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 0.4rem; }
p + p { margin-top: 0.9rem; }

a { color: var(--ramienice); }
a:focus-visible, .nav a:focus-visible {
  outline: 2px solid var(--woda);
  outline-offset: 3px;
}

/* ---------- hero ---------- */
.hero { padding-top: 4.5rem; }
.hero .misja {
  font-family: var(--serif);
  font-size: 1.25rem;
  max-width: 34rem;
  margin-top: 1.1rem;
}
.hero .zrodlo { font-size: 0.85rem; color: #5b7176; margin-top: 0.8rem; }

/* the title page: the round emblem, large, over the lake's name */
.hero-tytul { text-align: center; padding-top: 3.2rem; }
.hero-tytul .misja { margin-inline: auto; }
.logo-hero {
  display: block;
  margin: 0 auto 4.8rem;
  width: min(39%, 161px);
  height: auto;
}

/* key numbers strip */
.liczby {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 1px;
  background: var(--mgla);
  border-block: 1px solid var(--mgla);
}
.liczby div { background: var(--papier); padding: 1rem 1.1rem; }
.liczby strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: normal;
}
.liczby span { font-size: 0.85rem; color: #43585d; }

/* ---------- kalendarium (the dossier) ---------- */
.wpis {
  border-top: 1px solid var(--mgla);
  padding: 1.05rem 0;
}
.wpis:last-child { border-bottom: 1px solid var(--mgla); }
.wpis .data {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #43585d;
}
.wpis .ref { font-family: var(--mono); font-size: 0.82rem; }
.wpis p { margin-top: 0.25rem; }
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  margin-left: 0.5rem;
  vertical-align: 0.1em;
}
.tag.brak {
  color: var(--papier);
  background: var(--alarm);
}
.tag.ok {
  color: var(--papier);
  background: var(--ramienice);
}

/* ---------- callouts / how-to ---------- */
.ramka {
  border: 1px solid var(--mgla);
  border-left: 4px solid var(--ramienice);
  padding: 1.1rem 1.3rem;
  margin-top: 1.4rem;
}
.ramka h3 { margin-top: 0; }
.wordmark {
  display: block;
  margin: 0.4rem auto 1.2rem;
  max-width: 280px;
  height: auto;
}

ul.lista { padding-left: 1.2rem; margin-top: 0.6rem; }
ul.lista li { margin-top: 0.45rem; }

/* ---------- footer ---------- */
footer { margin-top: 4rem; }
/* the grebe line: CSS draws the rule edge-to-edge, the grebes sit at its
   right end (baseline in the SVG = y 114/135 → 9.5px at 64px height) */
.scrim-band {
  display: flex;
  align-items: flex-end;
}
.scrim-band::before {
  content: "";
  flex: 1 1 auto;
  border-bottom: 1px solid var(--woda);
  margin-bottom: 9.5px;
}
.scrim-band img {
  display: block;
  flex: 0 0 auto;
  height: 64px;
  width: auto;
  margin-left: -2px; /* seamless joint with the drawn line */
}
.stopka {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.6rem 1.25rem 2.4rem;
  font-size: 0.85rem;
  color: #43585d;
}
.stopka p + p { margin-top: 0.5rem; }

/* ---------- print (the kalendarium is a record — let it print) ---------- */
@media print {
  header.top, footer { display: none; }
  body { font-size: 11pt; }
  .tag.brak { color: #000; background: none; border: 1px solid #000; }
}
