/* n0rt0nthec4t.dev base template */

:root {
  --bg: #080a0f;
  --bg-header: rgba(8, 10, 15, 0.76);
  --text: #f5f7fa;
  --muted: #98a2b3;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #79a7ff;
  --accent-strong: #4b8bff;
  --max-width: 1320px;
  --nav-height: 96px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 10% 2%, rgba(75, 139, 255, 0.20), transparent 28rem),
    radial-gradient(circle at 88% 90%, rgba(110, 107, 255, 0.22), transparent 38rem),
    linear-gradient(180deg, #080a0f 0%, #080a10 46%, #07080d 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  opacity: 0.22;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav {
  width: min(var(--max-width), calc(100% - 88px));
  height: var(--nav-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 27px;
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-logo {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.14),
    0 18px 50px rgba(0,0,0,.34);
}

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

.nav-links a {
  position: relative;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  opacity: 0.93;
  transition: color 160ms ease, opacity 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  opacity: 1;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -26px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(121, 167, 255, 0.25));
}

.nav-divider {
  width: 1px;
  height: 36px;
  background: var(--border-strong);
}

.github {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.github svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.menu-button {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.blank-canvas {
  min-height: calc(100vh - var(--nav-height));
}

@media (max-width: 860px) {
  :root {
    --nav-height: 84px;
  }

  .nav {
    width: min(100% - 32px, var(--max-width));
  }

  .brand {
    gap: 12px;
    font-size: 21px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

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

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(12, 15, 24, 0.95);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

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

  .nav-links a {
    padding: 14px 12px;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-divider {
    display: none;
  }

  .github {
    width: auto;
    height: auto;
    justify-content: start;
  }
}

@media (max-width: 460px) {
  .brand span {
    font-size: 18px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }
}
