:root {
  --preserved-bg: #07111f;
  --preserved-surface: #0d1b2d;
  --preserved-surface-raised: #13243a;
  --preserved-text: #eef8ff;
  --preserved-muted: #b8c9d9;
  --preserved-cyan: #22d3ee;
  --preserved-magenta: #f472d0;
  --preserved-border: rgba(34, 211, 238, 0.48);
}

html {
  background: var(--preserved-bg);
  color-scheme: dark;
}

html body {
  background: radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.14), transparent 34%), radial-gradient(circle at 88% 8%, rgba(244, 114, 208, 0.12), transparent 30%), var(--preserved-bg);
  color: var(--preserved-text);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
}

html body main,
html body .container,
html body .content,
html body .page {
  box-sizing: border-box;
  max-width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  background: linear-gradient(145deg, rgba(13, 27, 45, 0.98), rgba(8, 21, 37, 0.96));
  color: var(--preserved-text);
  border-color: var(--preserved-border);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

html body h1,
html body h2,
html body h3,
html body h4,
html body strong {
  color: var(--preserved-text);
}

html body p,
html body li,
html body dd,
html body .meta,
html body .subtitle {
  color: var(--preserved-muted);
}

html body a {
  color: var(--preserved-cyan);
  text-decoration-color: rgba(244, 114, 208, 0.72);
  text-underline-offset: 0.2em;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

html body a:hover {
  color: var(--preserved-magenta);
  text-decoration-color: var(--preserved-cyan);
}

html body a:focus-visible,
html body button:focus-visible,
html body [role="button"]:focus-visible,
html body [tabindex]:focus-visible {
  outline: 3px solid var(--preserved-magenta);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.24);
}

html body a[class*="button"],
html body .button,
html body button {
  border: 1px solid var(--preserved-cyan);
  border-radius: 0.55rem;
  background: var(--preserved-surface-raised);
  color: var(--preserved-cyan);
}

html body a[class*="button"]:hover,
html body .button:hover,
html body button:hover {
  border-color: var(--preserved-magenta);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(244, 114, 208, 0.22));
  color: var(--preserved-text);
  box-shadow: 0 10px 28px rgba(244, 114, 208, 0.16);
  transform: translateY(-2px);
}

html body img,
html body svg,
html body video,
html body iframe {
  max-width: 100%;
  height: auto;
}

html body table,
html body pre {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

html body code,
html body pre,
html body td,
html body th,
html body a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

html body hr {
  border-color: rgba(34, 211, 238, 0.28);
}

html body .unavailable-link-label {
  color: #b7cadb;
  border-bottom: 1px dashed #e879f9;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  html body {
    padding: 0.75rem;
  }

  html body main,
  html body .container,
  html body .content,
  html body .page {
    max-width: 100%;
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body *,
  html body *::before,
  html body *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
