/* Strona informacyjna DANstore: statyczna, bez skryptów, bez zewnętrznych czcionek. */
:root {
  --bg: #ffffff;
  --surface: #f4f7fb;
  --text: #13213a;
  --muted: #4a5873;
  --border: #d6deea;
  --brand: #004aad;
  --brand-ink: #ffffff;
  --link: #004aad;
  --mark: #38b7fe;
  --todo-bg: #fff4c2;
  --todo-text: #5a4300;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1626;
    --surface: #16223a;
    --text: #e8eef8;
    --muted: #a9b6cc;
    --border: #2b3a57;
    --brand: #6ea8ff;
    --brand-ink: #0e1626;
    --link: #8dbbff;
    --todo-bg: #4a3b00;
    --todo-text: #fff1b8;
  }
}

:root[data-theme="dark"] {
  --bg: #0e1626;
  --surface: #16223a;
  --text: #e8eef8;
  --muted: #a9b6cc;
  --border: #2b3a57;
  --brand: #6ea8ff;
  --brand-ink: #0e1626;
  --link: #8dbbff;
  --todo-bg: #4a3b00;
  --todo-text: #fff1b8;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

a { color: var(--link); text-underline-offset: 2px; }

/* Długie adresy (np. zakres OAuth w <code>) nie mogą poszerzać strony na telefonie. */
p, li, dd { overflow-wrap: anywhere; }
code { font-size: 0.92em; }
a:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 8px 12px;
  border-radius: 6px;
}

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

header.site {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
/* Logo ma ciemnoniebieski napis, więc zawsze leży na białym tle (także w trybie ciemnym). */
header.site img {
  display: block;
  height: 48px;
  width: auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px 8px;
}

nav.links ul,
footer.site ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

main { padding: 32px 0 48px; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 16px; }
h2 { font-size: 1.3rem; margin: 36px 0 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 6px; }

.lead { font-size: 1.1rem; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
}

dl.data { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
dl.data dt { color: var(--muted); }
dl.data dd { margin: 0; }
@media (max-width: 480px) {
  dl.data { grid-template-columns: 1fr; }
  dl.data dd { margin-bottom: 8px; }
}

.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}

.meta { color: var(--muted); font-size: 0.95rem; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 0.95rem;
}
footer.site p { margin: 12px 0 0; }
