/* MATCH — strona publiczna (polityka, regulamin, usuwanie konta, strona główna).
   Jedno źródło stylów dla wszystkich podstron. */

:root {
  --bg: #ffffff;
  --surface: #f4f5f7;
  --text: #171922;
  --muted: #5a616e;
  --accent: #2a3346;
  --accent-contrast: #ffffff;
  --border: #e3e5ea;
  --max: 720px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --surface: #171a20;
    --text: #e7e9ee;
    --muted: #99a0ac;
    --accent: #9bb0d6;
    --accent-contrast: #0f1115;
    --border: #262a32;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #171a20;
  --text: #e7e9ee;
  --muted: #99a0ac;
  --accent: #9bb0d6;
  --accent-contrast: #0f1115;
  --border: #262a32;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Nagłówek */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.3px;
  color: var(--text);
  text-decoration: none;
}
.brand .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex: none;
}

/* Treść */
main { padding: 40px 0 64px; }

h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}
h2 {
  font-size: 21px;
  margin: 36px 0 10px;
  line-height: 1.3;
}
.updated {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 28px;
}
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin: 0 0 8px; }
a { color: var(--accent); }

.lead {
  font-size: 19px;
  color: var(--text);
}

/* Karty na stronie głównej */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 28px 0;
}
@media (min-width: 560px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
.card {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Ramka informacyjna */
.note {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 24px 0;
}
.note p:last-child { margin-bottom: 0; }

/* Przycisk */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  margin: 8px 0;
}

/* Stopka */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}
.site-footer .wrap {
  padding: 24px 16px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .spacer { flex: 1 1 auto; }
