:root {
  --bg: #0a1022;
  --bg-surface: #0f1833;
  --bg-card: #121d3d;
  --text: #e8eeff;
  --text-soft: #b7c4ef;
  --brand: #5a7bff;
  --brand-2: #1cc8ff;
  --accent: #7c4dff;
  --ok: #29c587;
  --warn: #ffa83e;
  --border: #2b3d73;
  --shadow: 0 16px 44px rgba(6, 10, 22, 0.35);
  --radius: 16px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(90, 123, 255, 0.28), transparent 45%),
    radial-gradient(900px 600px at 90% -30%, rgba(28, 200, 255, 0.24), transparent 40%),
    var(--bg);
}

.shell {
  width: min(1600px, 96vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  background:
    linear-gradient(180deg, rgba(93, 150, 255, 0.12), rgba(93, 150, 255, 0.02)),
    color-mix(in srgb, var(--bg) 80%, transparent);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 160ms ease;
}

.site-nav a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a[aria-current="page"] {
  color: #07142f;
  background: linear-gradient(90deg, #83b3ff, #8bf2ff);
}

.site-main {
  flex: 1;
  padding-block: clamp(1rem, 1.2vw, 1.8rem) 2.2rem;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.7rem);
  color: #f1f7ff;
  text-shadow: 0 1px 0 rgba(6, 10, 22, 0.4);
}

.hero,
.content-page {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    linear-gradient(135deg, rgba(90, 123, 255, 0.08), rgba(28, 200, 255, 0.03) 45%, rgba(124, 77, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 1.4vw, 1.7rem) clamp(1rem, 2vw, 2.2rem);
}

.hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    radial-gradient(800px 240px at 12% 0%, rgba(91, 216, 255, 0.18), transparent 62%),
    radial-gradient(640px 220px at 88% 12%, rgba(185, 137, 255, 0.16), transparent 58%),
    rgba(15, 24, 51, 0.76);
}

.hero::after {
  content: '';
  position: absolute;
  inset: -80px -120px auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(91, 216, 255, 0.14), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.content-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    linear-gradient(135deg, rgba(90, 123, 255, 0.08), rgba(28, 200, 255, 0.03) 45%, rgba(124, 77, 255, 0.07));
}

.hero::before,
.content-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 180px at 15% 0%, rgba(133, 209, 255, 0.12), transparent 60%),
    radial-gradient(600px 220px at 90% 8%, rgba(151, 133, 255, 0.08), transparent 55%);
  opacity: 0.9;
}

.hero > *,
.content-page > * {
  position: relative;
  z-index: 1;
}

.cards {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    linear-gradient(135deg, rgba(90, 123, 255, 0.08), rgba(28, 200, 255, 0.03) 55%, rgba(124, 77, 255, 0.08));
  padding: 1rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 55%);
  pointer-events: none;
}

.card::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5bd8ff, #8c9bff 55%, #c59cff);
  opacity: 0.8;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(131, 202, 255, 0.28);
  box-shadow: 0 18px 34px rgba(6, 10, 22, 0.38);
}

.card h2 {
  margin-top: 0;
  font-size: 1.08rem;
}

.card h2 a {
  color: #eef6ff;
  text-decoration: none;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.card:hover h2 a {
  color: #8fe0ff;
  text-shadow: 0 0 10px rgba(91, 216, 255, 0.22);
}

.card p {
  color: var(--text-soft);
}

.breadcrumbs {
  margin-bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: var(--text-soft);
  text-decoration: none;
}

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

.content-page pre {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: auto;
  padding: 2rem 1rem 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    #070d1f;
}

.content-page pre code {
  display: block;
  padding: 0.25rem 0.25rem 0.35rem;
  line-height: 1.7;
  white-space: pre;
}

.content-page > h1 {
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(128, 196, 255, 0.22);
  background: linear-gradient(90deg, #eef6ff 0%, #8fd9ff 34%, #8f9fff 70%, #c19cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 10px rgba(95, 163, 255, 0.1),
    0 0 18px rgba(132, 106, 255, 0.08);
}

.hero h1 {
  background: linear-gradient(90deg, #eff7ff 0%, #6ddcff 30%, #8c9bff 64%, #c79cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 10px rgba(109, 220, 255, 0.12),
    0 0 18px rgba(124, 77, 255, 0.08);
}

.content-page h2,
.content-page h3 {
  position: relative;
  color: #dfeaff;
  text-shadow: 0 1px 0 rgba(6, 10, 22, 0.55);
}

.content-page h2 {
  margin-top: 2.25rem;
  padding-left: 0.9rem;
  border-left: 4px solid rgba(92, 208, 255, 0.9);
}

.content-page h2::after {
  content: '';
  display: block;
  width: 4.8rem;
  height: 3px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #5bd8ff, #8c9bff 55%, #c59cff);
  opacity: 0.9;
}

.content-page h3 {
  margin-top: 1.6rem;
  padding-left: 0.6rem;
  color: #cfe7ff;
}

.content-page h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #63d7ff, #7f7dff);
  box-shadow: 0 0 12px rgba(99, 215, 255, 0.35);
}

.content-page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  font-size: 0.92em;
}

.copy-button {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(12, 18, 36, 0.8);
  color: #cbe5ff;
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(35, 50, 96, 0.92);
}

table {
  width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 10px;
}

table th,
table td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  text-align: left;
}

table th {
  background: #17264e;
}

input[type="checkbox"] {
  transform: translateY(1px);
  width: 1rem;
  height: 1rem;
  accent-color: var(--brand);
}

.related-links {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.related-links ul {
  margin: 0;
  padding-left: 1.1rem;
}

.related-links li + li {
  margin-top: 0.3rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(4, 8, 20, 0.82);
}

.footer-inner {
  padding-block: 1rem 1.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-inner p {
  margin: 0;
  color: var(--text-soft);
}

.footer-inner nav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-inner nav a {
  color: var(--text-soft);
  text-decoration: none;
}

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

.content-page a {
  color: #72b8ff;
  font-weight: 600;
  text-decoration-color: rgba(145, 205, 255, 0.95);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: color 140ms ease, text-decoration-color 160ms ease, text-underline-offset 160ms ease;
}

.content-page a:hover {
  color: #e3f3ff;
  text-decoration-color: #bde6ff;
  text-underline-offset: 0.26em;
}

.content-page a:focus-visible {
  outline: 2px solid rgba(105, 198, 255, 0.95);
  outline-offset: 2px;
  border-radius: 4px;
}

/* More noticeable section navigation links inside rendered markdown content */
.content-page p a[href^="/"],
.content-page li a[href^="/"] {
  background: linear-gradient(180deg, rgba(111, 176, 255, 0.18), rgba(111, 176, 255, 0.04));
  padding: 0.04rem 0.24rem;
  border-radius: 0.36rem;
}

.content-page p a[href^="/"]:hover,
.content-page li a[href^="/"]:hover {
  background: linear-gradient(180deg, rgba(135, 207, 255, 0.35), rgba(135, 207, 255, 0.08));
}

/* Prism-like token palette for Eleventy syntax highlighting output */
.content-page .token.comment,
.content-page .token.prolog,
.content-page .token.doctype,
.content-page .token.cdata {
  color: #8ba0c5;
  font-style: italic;
}

.content-page .token.punctuation {
  color: #bfd0ff;
}

.content-page .token.property,
.content-page .token.tag,
.content-page .token.constant,
.content-page .token.symbol,
.content-page .token.deleted {
  color: #ff8fc2;
}

.content-page .token.boolean,
.content-page .token.number {
  color: #ffbf7a;
}

.content-page .token.selector,
.content-page .token.attr-name,
.content-page .token.string,
.content-page .token.char,
.content-page .token.builtin,
.content-page .token.inserted {
  color: #8ff0c2;
}

.content-page .token.operator,
.content-page .token.entity,
.content-page .token.url,
.content-page .token.variable {
  color: #99dfff;
}

.content-page .token.atrule,
.content-page .token.attr-value,
.content-page .token.function,
.content-page .token.class-name {
  color: #b7b7ff;
}

.content-page .token.keyword {
  color: #8db6ff;
}

.content-page .token.regex,
.content-page .token.important {
  color: #ffd479;
}

.content-page .token.important,
.content-page .token.bold {
  font-weight: 700;
}

.content-page .token.italic {
  font-style: italic;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 0.6rem;
  }

  :root {
    --header-height: 110px;
  }
}

.code-language-badge {
  position: absolute;
  top: 0.52rem;
  left: 0.62rem;
  border: 1px solid rgba(130, 188, 255, 0.45);
  background: linear-gradient(120deg, rgba(59, 104, 216, 0.55), rgba(36, 160, 207, 0.45));
  color: #dff3ff;
  border-radius: 999px;
  padding: 0.15rem 0.52rem;
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  transition: transform 120ms ease, box-shadow 180ms ease, filter 120ms ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  filter: brightness(1.04);
}

.cta-primary {
  background: linear-gradient(95deg, #4f6aff, #299dff, #5bd8ff);
  color: #ffffff;
}

.cta-secondary {
  background: linear-gradient(95deg, #9a4dff, #3fc3ff, #76ddff);
  color: #ffffff;
}

.cta-tertiary {
  background: linear-gradient(95deg, #1fb66c, #1fa7a9, #5ad8ff);
  color: #ffffff;
}

