:root {
  --bg: #0b0f14;
  --bg-alt: #111823;
  --ink: #e8edf2;
  --muted: #a1a9b5;
  --accent: #d28c62;
  --accent-2: #6fb8c9;
  --card: #141d28;
  --border: #2a3443;
  --panel: #101720;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.35);
  --scroll-offset: 84px;
}

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

html {
  font-size: 86%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  font-family: 'Sora', sans-serif;
  color: var(--ink);
  background: linear-gradient(140deg, var(--bg) 0%, #0f151d 45%, var(--bg-alt) 100%);
  line-height: 1.65;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background: radial-gradient(600px circle at 12% 0%, rgba(210, 140, 98, 0.14), transparent 60%);
}

body::after {
  background: radial-gradient(700px circle at 85% 8%, rgba(111, 184, 201, 0.12), transparent 55%);
}

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

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

ul {
  list-style: none;
}

.page {
  position: relative;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 0.6px, transparent 0.6px);
  background-size: 18px 18px;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 20, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.header-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.text-nav {
  display: flex;
  gap: 1.6rem;
}

.text-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.text-nav a:hover,
.text-nav a.active {
  color: var(--accent-2);
}

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

.icon-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-nav li {
  display: flex;
}

.icon-nav .icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20, 29, 40, 0.92);
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.icon-nav .icon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(111, 184, 201, 0.6);
}

.icon-nav .label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.8rem 0 3.5rem;
  background: rgba(11, 15, 20, 0.65);
}

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

.footer-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .header-inner {
    justify-content: center;
  }

  .header-brand {
    display: none;
  }

  .header-right {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .icon-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .text-nav {
    gap: 1rem;
  }

  .text-nav a {
    font-size: 0.82rem;
  }

  .nav-divider {
    display: none;
  }

  .site-header {
    position: static;
  }

  .header-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .footer-inner {
    justify-content: center;
  }
}

.post-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-2);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
