/* ==========================================================================
   Izabela Miziołek — base.css
   Wspólne dla wszystkich stron: fonty, kolory, nawigacja, przyciski, stopka.
   Ładowany na KAŻDEJ stronie, przed plikiem CSS danej strony.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/fraunces-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/fraunces-normal-latinext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+2113;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/fraunces-italic-latinext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+2113;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/karla-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/karla-latinext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+2113;
}

:root {
  --paper: #fffdf9;
  --paper-raised: #ffffff;
  --ink: #211b2e;
  --ink-soft: #58526e;
  --ink-faint: #8c86a0;
  --line: #e9e2f4;
  --purple: #6141a2;
  --purple-deep: #3c2a63;
  --purple-tint: #f1ecfa;
  --gold: #fca901;
  --gold-tint: #fff2d6;
  --rose: #db3683;
  --rose-tint: #fbe0ee;
  --mono-tint: #f4f2f8;
  --shadow: 0 20px 60px -25px rgba(60, 42, 99, 0.35);
  --good: #3a7d5c;
  --good-tint: #e6f2ec;
}
:root[data-theme="dark"] {
  --paper: #15111e;
  --paper-raised: #1c1728;
  --ink: #f3effa;
  --ink-soft: #b6aecb;
  --ink-faint: #7a7391;
  --line: #332a49;
  --purple: #a488d9;
  --purple-deep: #d6c6f0;
  --purple-tint: #251c3a;
  --gold: #ffc94d;
  --gold-tint: #302716;
  --rose: #f07fb0;
  --rose-tint: #33232c;
  --mono-tint: #221b33;
  --shadow: 0 20px 60px -25px rgba(0, 0, 0, 0.6);
  --good: #6fbf95;
  --good-tint: #1c2c24;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15111e;
    --paper-raised: #1c1728;
    --ink: #f3effa;
    --ink-soft: #b6aecb;
    --ink-faint: #7a7391;
    --line: #332a49;
    --purple: #a488d9;
    --purple-deep: #d6c6f0;
    --purple-tint: #251c3a;
    --gold: #dcb56c;
    --gold-tint: #302716;
    --rose: #d99bb0;
    --rose-tint: #33232c;
    --mono-tint: #221b33;
    --shadow: 0 20px 60px -25px rgba(0, 0, 0, 0.6);
    --good: #6fbf95;
    --good-tint: #1c2c24;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Karla', -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.col { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.col-wide { max-width: 980px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; }
.serif { font-family: 'Fraunces', Georgia, serif; }
.serif-i { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 500; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
img { max-width: 100%; }

/* nav */
nav.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}
nav.top .word {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}
@media (max-width: 400px) { nav.top .word { font-size: 16px; } }
nav.top .links { display: flex; gap: 28px; font-size: 14px; }
nav.top .links a { text-decoration: none; color: var(--ink-soft); }
nav.top .links a:hover { color: var(--purple); }
nav.top .links a.cta { color: var(--purple); font-weight: 600; }
nav.top .links .current { color: var(--purple); font-weight: 700; }
@media (max-width: 560px) { nav.top .links { gap: 14px; font-size: 12.5px; } }

/* buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--purple); color: #fff; }
.btn.ghost { border: 1.5px solid var(--gold); color: var(--gold); background: none; }
.btn.btn-final { display: block; width: 100%; padding: 20px 30px; font-size: 18px; box-shadow: var(--shadow); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding-top: 40px; padding-bottom: 60px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: var(--ink-soft); max-width: 980px; margin: 0 auto; padding: 0 24px; }
.foot-row .social { display: flex; gap: 16px; }
.foot-row .social a { text-decoration: none; color: var(--ink-soft); }
.foot-row .social a:hover { color: var(--purple); }
.foot-note { text-align: center; margin-top: 24px; font-size: 11.5px; color: var(--ink-faint); }
.foot-legal { text-align: center; font-size: 12px; color: var(--ink-faint); margin-top: 18px; }
.foot-legal a { color: inherit; text-decoration: underline; }

/* credibility chips (reused: strona głowna, o mnie, polityka) */
.cred-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); }
.cred-row .chip { display: inline-flex; align-items: center; gap: 7px; background: var(--mono-tint); padding: 6px 14px; border-radius: 999px; }
.cred-row .dot { color: var(--ink-faint); align-self: center; }

/* cookie consent banner (main.js toggles .is-visible) */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px -20px rgba(0,0,0,0.25);
  padding: 18px 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
#cookie-banner.is-visible { transform: translateY(0); }
.cookie-inner { max-width: 980px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-text { font-size: 13.5px; color: var(--ink-soft); max-width: 60ch; }
.cookie-text a { color: var(--purple); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button { font-family: 'Karla', sans-serif; }
.btn.small { padding: 9px 18px; font-size: 13.5px; }
