:root {
  --bg-950: #02081f;
  --bg-900: #031033;
  --bg-850: #081a4a;
  --surface: rgba(14, 35, 88, 0.72);
  --surface-strong: rgba(16, 45, 112, 0.9);
  --line: rgba(114, 163, 255, 0.28);
  --primary: #2f8cff;
  --primary-strong: #1d76e5;
  --accent: #58c0ff;
  --text-main: #ecf4ff;
  --text-muted: #b5c8eb;
  --focus: #7cd2ff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 28px rgba(0, 6, 30, 0.38);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 92% 3%, rgba(96, 167, 255, 0.18), transparent 36%),
    radial-gradient(circle at 8% 24%, rgba(40, 124, 255, 0.16), transparent 29%),
    linear-gradient(170deg, var(--bg-850), var(--bg-950) 58%);
  background-color: var(--bg-950);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 0;
  background: rgba(2, 8, 31, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand .blog-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 600;
  transition: 180ms ease;
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.btn-secondary {
  background: rgba(10, 35, 90, 0.5);
  border-color: var(--line);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: rgba(123, 180, 255, 0.62);
  background: rgba(14, 41, 104, 0.75);
}

main {
  min-height: calc(100vh - 200px);
  padding: 56px 0 92px;
}

.page-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 12px;
}

.page-lede {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 48px;
}

.post-list {
  display: grid;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-card {
  display: block;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: 180ms ease;
}

.post-card:hover {
  border-color: rgba(123, 180, 255, 0.62);
  transform: translateY(-1px);
}

.post-card time {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.post-card h2 {
  font-family: 'Sora', sans-serif;
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.post-card p {
  margin: 0;
  color: var(--text-muted);
}

.post-empty {
  color: var(--text-muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

article.post time {
  display: block;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 10px;
}

article.post h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 28px;
}

article.post .post-body {
  max-width: 720px;
}

article.post .post-body h2,
article.post .post-body h3 {
  font-family: 'Sora', sans-serif;
  color: var(--text-main);
}

article.post .post-body p {
  color: var(--text-main);
}

article.post .post-body a {
  color: var(--accent);
  text-decoration: underline;
}

article.post .post-body pre {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
}

article.post .post-body code {
  font-size: 0.9em;
}

article.post .post-body blockquote {
  margin: 0;
  padding: 4px 20px;
  border-left: 3px solid var(--primary);
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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