:root {
  --accent: #8B1A1A;
  --bg: #f0f0f0;
  --text: #555;
  --main-text: #1a202c;
  --border: rgba(0, 0, 0, 0.1);
  --shadow: rgba(0, 0, 0, 0.18);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --main-max-width: clamp(320px, 85vw, 1100px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #B22222;
    --bg: #000;
    --text: #a0aec0;
    --main-text: #e2e8f0;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: rgba(0, 0, 0, 0.5);
  }

}

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

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  top: -100vh;
  left: 1.5rem;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  z-index: 999;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 1rem; outline: 2px solid var(--accent); outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Header ── */
.site-header {
  background: var(--bg);
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
}

.site-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--main-max-width);
  margin: 0 auto;
}

.site-header-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-header-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.site-header-nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.site-header-nav a:hover,
.site-header-nav a.active { opacity: 1; }

/* ── Main ── */
main {
  max-width: var(--main-max-width);
  margin: clamp(1.5rem, 6vw, 2.5rem) auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  flex: 1;
  width: 100%;
}

main p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent);
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover { text-decoration-color: var(--accent); }

/* ── Footer ── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  font-size: 0.875rem;
  color: var(--text);
}

.site-footer a { color: var(--accent); }

.footer-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.footer-emblem {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Footer icons ── */
.footer-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.75rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.icon-btn:hover { opacity: 1; }

.icon-btn img {
  width: 24px;
  height: 24px;
  display: block;
}

.icon-wherewild { width: 32px; height: 32px; margin: 2px -6px 0; }
