:root {
  --surface-lowest: #0a0e12;
  --surface: #0f1419;
  --surface-high: #161c22;
  --surface-highest: #1c242c;
  --text-hi: #e8eef4;
  --text-mid: #9aa8b5;
  --text-lo: #6b7a88;
  --primary: #7dd3fc;
  --active: #00f2fe;
  --border: rgba(232, 238, 244, 0.08);
  --radius-panel: 4px;
  --radius-card: 8px;
  --max: 44rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-hi);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(0, 242, 254, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(125, 211, 252, 0.05), transparent 50%),
    var(--surface-lowest);
}

a {
  color: var(--active);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 18, 0.88);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-hi);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.brand img {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 6px;
}

.brand:hover {
  text-decoration: none;
  color: var(--active);
}

.brand span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--text-lo);
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.85rem;
}

.nav a {
  color: var(--text-mid);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--text-hi);
  text-decoration: none;
  border-bottom-color: var(--text-lo);
}

.nav a[aria-current="page"] {
  color: var(--active);
  border-bottom-color: var(--active);
}

main {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.updated {
  margin: -0.5rem 0 1.25rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--text-lo);
  letter-spacing: 0.02em;
}

.lead {
  margin: 0 0 2rem;
  color: var(--text-mid);
  font-size: 1.05rem;
}

h2 {
  margin: 2.25rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

p,
li {
  color: var(--text-mid);
}

p {
  margin: 0 0 0.9rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.45rem;
}

li strong,
p strong {
  color: var(--text-hi);
  font-weight: 600;
}

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

.footer-inner {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--text-lo);
}

.footer-inner a {
  color: var(--text-mid);
}

@media (max-width: 560px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
