:root {
  --bg: #0A1628;
  --surface: #0F2044;
  --elevated: #152B52;
  --accent: #1E90FF;
  --text: #F0F4FF;
  --secondary: #A8B4C8;
  --divider: rgba(255, 255, 255, 0.10);
  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--body);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 44rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
}

.brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand .amp {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 0.25rem;
}

nav a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
}

nav a:hover {
  color: var(--text);
  background: var(--elevated);
}

nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}

main {
  flex: 1;
  max-width: 44rem;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

h1::after {
  content: "";
  display: block;
  width: 4rem;
  height: 0.25rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
}

h1 + p {
  color: var(--secondary);
  font-size: 1.1rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin: 0.5rem 0;
}

li::marker {
  color: var(--accent);
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.1em 0.4em;
  border-radius: 0.3rem;
}

footer {
  border-top: 1px solid var(--divider);
  padding: 1.5rem 1.25rem 2.5rem;
}

footer p {
  max-width: 44rem;
  margin: 0 auto;
  color: var(--secondary);
  font-size: 0.9rem;
}

