:root {
  --accent: #8B0000;

  /* Dark Theme */
  --bg1-dark: #0a0012;
  --bg2-dark: #150022;
  --text-dark: #eeeeee;
  --muted-dark: #999999;

  /* Light Theme */
  --bg1-light: #f6f6fb;
  --bg2-light: #ffffff;
  --text-light: #0a0a12;
  --muted-light: #5c5c6a;

  /* Active Defaults */
  --bg1: var(--bg1-dark);
  --bg2: var(--bg2-dark);
  --text: var(--text-dark);
  --muted: var(--muted-dark);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg1: var(--bg1-light);
    --bg2: var(--bg2-light);
    --text: var(--text-light);
    --muted: var(--muted-light);
  }
}

html[data-theme='dark'] {
  --bg1: var(--bg1-dark);
  --bg2: var(--bg2-dark);
  --text: var(--text-dark);
  --muted: var(--muted-dark);
}

html[data-theme='light'] {
  --bg1: var(--bg1-light);
  --bg2: var(--bg2-light);
  --text: var(--text-light);
  --muted: var(--muted-light);
}

body {
  margin: 0;
  padding: 0 1.5rem;
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
  color: var(--text);
  font-family: "Charter", "Palatino", "Georgia", serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}

.seal {
  max-width: 160px;
  display: block;
  margin: 2rem auto 1rem;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 0 0.5rem 0;
}

main.prose {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 2rem; /* tightened from 4rem */
}

.hero-wrapper {
  text-align: center;
  margin: 2rem 0 1.5rem;
}

.hero-image {
  width: 100%;
  max-width: 750px;
  height: auto;
  border-radius: 4px;
}

.prose h1, .prose h2, .prose h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.25;
  color: var(--text);
}

.prose p {
  margin-bottom: 1.6rem;
  color: var(--text);
}

.prose a {
  color: var(--accent);
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

.footer {
  text-align: center;
  margin-top: 2rem;     /* reduced from 4rem */
  padding-bottom: 1.5rem; /* reduced from 2rem */
}

.footer img.seal {
  width: 120px;
  max-width: 30vw;
  margin: 0 auto 0.5rem; /* tightened bottom margin */
}

footer, footer a {
  color: var(--footer);
}
