:root {
  color-scheme: dark light;
  --background: #0d1018;
  --surface: #171c28;
  --text: #f4f0e6;
  --muted: #c6c7d0;
  --accent: #bea5ff;
  --border: #343a4b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.site-header,
main,
footer {
  width: min(92%, 52rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 3rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-block;
  color: var(--accent);
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

main {
  margin-block: 2rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}

h1,
h2 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

h2 {
  margin-top: 2.25rem;
  color: var(--accent);
  font-size: 1.35rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 0.15rem;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.85rem;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--background);
  font-weight: 750;
}

.skip-link:focus { transform: translateY(0); }

.site-header nav {
  display: flex;
  gap: 1rem;
  padding-bottom: 0.35rem;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--accent); }

li + li {
  margin-top: 0.65rem;
}

footer {
  padding-block: 0 3rem;
  color: var(--muted);
  text-align: center;
}

footer p { margin-block: 0.35rem; }

@media (max-width: 38rem) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --background: #f5f4f0;
    --surface: #ffffff;
    --text: #191b24;
    --muted: #4d5260;
    --accent: #5c3ca7;
    --border: #d5d6dc;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
