/* Grzybify — wizytówki lasów i stron województw.
   Paleta i typografia są te same co w aplikacji i w /about: jeden arkusz
   dla ~420 stron, więc po pierwszym wejściu leci z cache przeglądarki. */

:root {
  --forest: #174c3b;
  --forest-deep: #0d3327;
  --lime: #dff162;
  --cream: #f7f7f2;
  --paper: #ffffff;
  --orange: #ef6b3e;

  --bg: var(--cream);
  --fg: #16241d;
  --fg-2: #4e6056;
  --muted: #76867c;
  --line: #dde4de;
  --line-soft: #e8ede8;
  --surface: var(--paper);
  --surface-2: #eef2ec;

  --band-1: #8e9a94;
  --band-2: #e8c445;
  --band-3: #ef8b3e;
  --band-4: #e04a2d;

  --hero-fg: #f2f7f3;
  --hero-fg-2: #b6cfc1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1210;
    --fg: #e7f0ea;
    --fg-2: #b2c1b8;
    --muted: #8a9a91;
    --line: rgba(213, 235, 222, .14);
    --line-soft: rgba(213, 235, 222, .07);
    --surface: #131b17;
    --surface-2: #19231e;
    --forest: #62d39a;
    --lime: #c9f36d;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1210;
  --fg: #e7f0ea;
  --fg-2: #b2c1b8;
  --muted: #8a9a91;
  --line: rgba(213, 235, 222, .14);
  --line-soft: rgba(213, 235, 222, .07);
  --surface: #131b17;
  --surface-2: #19231e;
  --forest: #62d39a;
  --lime: #c9f36d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  letter-spacing: -.9px;
  text-wrap: balance;
  margin: 0;
}
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ── Pasek marki ── */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 58px; }
.marka {
  display: flex; align-items: center; gap: 9px;
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 20px;
  letter-spacing: -.5px; color: var(--fg); text-decoration: none;
}
.marka img { width: 25px; height: 25px; }
.top nav { display: flex; gap: 18px; font-size: 14.5px; font-weight: 500; }
.top nav a { color: var(--fg-2); text-decoration: none; }
.top nav a:hover { color: var(--forest); }

/* ── Nagłówek strony ── */
header.hero { padding: 40px 0 30px; }
.okruszki { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.okruszki a { color: var(--muted); }
h1 { font-size: clamp(30px, 5.4vw, 43px); line-height: 1.06; }
.podtytul { color: var(--fg-2); font-size: 17.5px; margin: 14px 0 0; max-width: 60ch; }

/* ── Karta z oceną na żywo ── */
.ocena {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--forest-deep); color: var(--hero-fg);
  border-radius: 18px; padding: 22px 24px; margin: 26px 0 8px;
}
.ocena-liczba {
  font-family: "Fraunces", Georgia, serif; font-weight: 700;
  font-size: 54px; line-height: .95; letter-spacing: -2px;
  min-width: 92px; color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.ocena-tresc { flex: 1 1 220px; min-width: 0; }
.ocena-tresc b { display: block; font-size: 16px; }
.ocena-tresc span { color: var(--hero-fg-2); font-size: 14.5px; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime); color: var(--forest-ink, #061a13);
  font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 12px 20px; border-radius: 13px; white-space: nowrap;
}
.cta:hover { filter: brightness(1.05); }
.pod-cta { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }

/* ── Fakty ── */
.fakty { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 30px 0; }
.fakt { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.fakt i {
  display: block; font-style: normal; font-size: 11.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.fakt b { font-family: "Fraunces", Georgia, serif; font-size: 19px; letter-spacing: -.4px; font-weight: 700; }
.fakt b small { font-family: "DM Sans", sans-serif; font-size: 13px; font-weight: 500; color: var(--fg-2); letter-spacing: 0; }

/* ── Sekcje tekstowe ── */
section { margin: 38px 0; }
section h2 { font-size: clamp(21px, 3.1vw, 27px); margin-bottom: 12px; }
section p { color: var(--fg-2); margin: 0 0 14px; max-width: 66ch; }
section p strong { color: var(--fg); }

.gatunki { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; padding: 0; list-style: none; }
.gatunki li {
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 6px 14px; font-size: 14.5px; font-weight: 500;
}

/* ── Siatka linków do innych lasów ── */
.lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; padding: 0; list-style: none; margin: 0; }
.lista a {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--fg);
  font-size: 15px; font-weight: 500; height: 100%;
}
.lista a:hover { border-color: var(--forest); }
.lista a span { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* ── Zastrzeżenie i stopka ── */
.uwaga {
  border-left: 3px solid var(--band-2); background: var(--surface-2);
  padding: 14px 18px; border-radius: 0 12px 12px 0; font-size: 15px; color: var(--fg-2);
}
footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 26px 0 40px; font-size: 14.5px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
footer a { color: var(--fg-2); }

@media (max-width: 560px) {
  .ocena { gap: 14px; padding: 18px; }
  .ocena-liczba { font-size: 44px; min-width: 70px; }
  .top nav { gap: 13px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
