:root {
  --bg-0: #080d1a;
  --bg-1: #0e1729;
  --surface: rgba(14, 23, 41, 0.72);
  --surface-border: rgba(148, 163, 184, 0.2);
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --heading: #ffffff;
  --link: #38bdf8;
  --link-hover: #a855f7;
  --container: 800px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background-color: var(--bg-0);
  background-image:
    radial-gradient(80% 55% at 20% 0%, rgba(56, 189, 248, 0.2), transparent 65%),
    radial-gradient(70% 45% at 90% 20%, rgba(168, 85, 247, 0.2), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 26, 0.9);
  border-bottom: 1px solid var(--surface-border);
  backdrop-filter: blur(8px);
}

.site-nav {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  color: var(--heading);
  font-family: "Space Grotesk", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.9rem;
}

.site-nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

.site-nav-list a[aria-current="page"] {
  color: var(--link);
}

@media (max-width: 760px) {
  .site-nav {
    min-height: auto;
    padding: 0.75rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav-list {
    width: 100%;
    justify-content: flex-start;
  }
}


main {
  width: min(var(--container), calc(100% - 2rem));
  margin: 2.5rem auto 4.5rem;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: var(--surface);
  backdrop-filter: blur(4px);
}

h1,
h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--heading);
}

h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 1rem;
}

section {
  margin-top: 1.4rem;
}

article {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  margin-bottom: 0.75rem;
}

p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.03rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  transition: color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}
