:root {
  color-scheme: light;
  --page-bg: #f4f6fb;
  --surface: #ffffff;
  --surface-raised: #f8f9fc;
  --surface-hover: #eef1f8;
  --border: #e1e6ef;
  --border-strong: #cbd3e1;
  --text: #182235;
  --muted: #66738a;
  --accent: #5968d8;
  --accent-hover: #4655c3;
  --accent-soft: #edf0ff;
  --accent-ink: #ffffff;
  --number: #6978e2;
  --focus: #6274ef;
  --shadow: 0 12px 34px rgb(32 45 78 / 7%);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #10141e;
  --surface: #171d2a;
  --surface-raised: #1d2534;
  --surface-hover: #242e40;
  --border: #2b3548;
  --border-strong: #3b4961;
  --text: #e8edf6;
  --muted: #a1aec2;
  --accent: #a8b5ff;
  --accent-hover: #c1caff;
  --accent-soft: #252e49;
  --accent-ink: #171d31;
  --number: #aab7ff;
  --focus: #a8b5ff;
  --shadow: 0 14px 38px rgb(0 0 0 / 24%);
}

.theme-toggle {
  display: inline-grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: 20px/1 "Segoe UI Symbol", "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition: none; }
}

.team-footer {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.team-footer .team-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font: 13px/1.5 system-ui, sans-serif;
}

.team-link img { flex: 0 0 40px; object-fit: contain; }
.team-link strong { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.team-domain { display: block; margin-top: 2px; }
.team-footer .team-link:hover { background: var(--surface-hover); color: var(--accent); }
.team-footer .team-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
