:root {
  --bg: #0a0e16;
  --bg-soft: #141a24;
  --bg-elev: #1a212e;
  --ink: #f8fafc;
  --ink-2: #e2e8f0;
  --text: #cbd5e1;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --rule: #1f2937;
  --rule-soft: #161c28;
  --accent: #0099ff;
  --accent-soft: rgba(0, 153, 255, 0.14);
  --max: 960px;
  --gutter: 32px;
  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─────────── Nav ─────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  background: var(--bg-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text);
  transition: color 180ms ease;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  transition: background 180ms ease, border-color 180ms ease;
}

.menu-btn:hover {
  background: var(--bg-soft);
  border-color: var(--muted-2);
}

.menu-btn .menu-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.menu-btn .menu-icon span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 200ms ease;
}

.nav.open .menu-btn .menu-icon span:first-child { transform: translateY(2.75px) rotate(45deg); }

.nav.open .menu-btn .menu-icon span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.site-footer a:hover { color: var(--accent); }

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  .menu-btn { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
    background: var(--bg-soft);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 12px;
    z-index: 60;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.5);
  }

  .nav.open .nav-links { display: flex; }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
  }

  .nav-links a:hover { background: var(--bg-elev); }

}

/* ─────────── Skip link, focus, icons ─────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
  transition: top 180ms ease;
}

.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

svg.ph {
  vertical-align: -0.125em;
  flex-shrink: 0;
}
