:root {
  --accent: #8b0000;

  /* DARK THEME BASE */
  --bg1-dark: #0a0012;
  --bg2-dark: #150022;
  --text-dark: #ffffff;
  --muted-dark: #cfcfd6;
  --border-dark: #444;
  --background-dim-dark: rgba(255, 255, 255, 0.06);

  /* LIGHT THEME BASE */
  --bg1-light: #f6f6fb;
  --bg2-light: #ffffff;
  --text-light: #0a0a12;
  --muted-light: #5c5c6a;
  --border-light: #ccc;
  --background-dim-light: rgba(0, 0, 0, 0.04);

  /* DEFAULT */
  --bg1: var(--bg1-dark);
  --bg2: var(--bg2-dark);
  --text: var(--text-dark);
  --muted: var(--muted-dark);
  --border-color: var(--border-dark);
  --background-dim: var(--background-dim-dark);
}

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

html[data-theme="dark"] {
  --bg1: var(--bg1-dark);
  --bg2: var(--bg2-dark);
  --text: var(--text-dark);
  --muted: var(--muted-dark);
  --border-color: var(--border-dark);
  --background-dim: var(--background-dim-dark);
}

html[data-theme="light"] {
  --bg1: var(--bg1-light);
  --bg2: var(--bg2-light);
  --text: var(--text-light);
  --muted: var(--muted-light);
  --border-color: var(--border-light);
  --background-dim: var(--background-dim-light);
}

/* Base Layout */

html, body {
  margin: 0;
  padding: 0;
  font-family: "Charter", "Palatino", "Palatino Linotype", "Georgia", serif;
  font-size: 18px;
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 10px 0;
}

.section {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* Emblem */

.archive-seal {
  width: 220px;
  max-width: 50vw;
  margin: 40px auto 20px;
}

/* Headings */

h1 {
  text-align: center;
  font-size: 2.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 12px;
}

h2 {
  text-align: left;
  font-size: 16px;
  margin-top: 24px;
}

h3 {
  text-align: left;
  font-size: 15px;
  margin: 20px 0 8px;
}

/* Intro Text */

.intro {
  max-width: 600px;
  margin: 0 auto 12px;
  text-align: center;
  line-height: 1.5;
  font-size: 15px;
}

/* Download Buttons */

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 60px 0 20px; /* ⬅️ NEW: top & bottom spacing */
}

.download-button {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: none;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.download-button:hover {
  background: var(--background-dim);
  cursor: pointer;
}

/* Identity Section */

.identity-block {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 40px;
  text-align: left;
}

.identity-block h2 {
  margin-top: 6px;
}

.identity-details p {
  margin: 0.25em 0;
}

/* Public Key Block */

.public-key-block {
  background: var(--background-dim);
  color: var(--text);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1em;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  max-height: 360px;
}

.public-key-block pre {
  margin: 0;
  font-family: monospace;
  white-space: pre;
  width: max-content;
  min-width: 100%;
  color: inherit;
}

/* Legacy Code Block */

.codeblock {
  font-size: 14px;
  line-height: 1.5;
  padding: 12px;
  background-color: var(--bg2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text);
  font-family: monospace;
  text-align: left;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Misc */

.verify-details {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
  margin-top: 12px;
}

footer {
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 1px;
}
