:root {
  --bg: #081019;
  --surface: #0f1825;
  --surface-alt: #121f31;
  --text: #e9eef7;
  --muted: #8ea0b8;
  --border: rgba(122, 153, 191, 0.24);
  --link: #dce7f9;
  --accent: #78a6ff;
  --tag-bg: rgba(120, 166, 255, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(70, 104, 155, 0.18), transparent 28%),
    linear-gradient(180deg, #07111a 0%, #081019 100%);
  color: var(--text);
  line-height: 1.75;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.site-header {
  margin-bottom: 2rem;
  padding: 1.25rem 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 24, 37, 0.96), rgba(9, 16, 25, 0.96));
  box-shadow: var(--shadow);
}

.site-header-topline {
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.site-brand-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header a { text-decoration: none; color: var(--text); }

.site-subtitle {
  margin: 0.8rem 0 0;
  max-width: 48rem;
  color: var(--muted);
}

.rss-link {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(120, 166, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.rss-link:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 166, 255, 0.55);
  background: rgba(120, 166, 255, 0.14);
}

.rss-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-card,
.post-full,
.post-nav {
  background: linear-gradient(180deg, rgba(16, 25, 39, 0.98), rgba(11, 19, 29, 0.98));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.post-card h2,
.post-full h1 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  line-height: 1.15;
}

.post-card h2 a,
.post-full h1 a,
a {
  color: var(--link);
}

a:hover { color: #ffffff; }

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.tags {
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 166, 255, 0.24);
  background: var(--tag-bg);
  color: #cfe0ff;
  text-decoration: none;
  font-size: 0.86rem;
}

.read-more {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pagination,
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.page-number,
.page-number.current {
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  text-decoration: none;
  background: rgba(120, 166, 255, 0.06);
}

.page-number.current {
  background: rgba(120, 166, 255, 0.18);
  border-color: rgba(120, 166, 255, 0.5);
  color: #ffffff;
}

.post-nav-link {
  max-width: 48%;
}

.align-right {
  text-align: right;
  margin-left: auto;
}

.disabled,
.post-nav-empty {
  color: #71819a;
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.content pre {
  overflow-x: auto;
  background: #09111c;
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 12px;
}

.content code {
  font-family: "Cascadia Code", Consolas, Monaco, monospace;
}

blockquote {
  border-left: 4px solid rgba(120, 166, 255, 0.55);
  margin-left: 0;
  padding-left: 1rem;
  color: #b7c4d7;
}

@media (max-width: 700px) {
  .site-brand-row,
  .pagination,
  .post-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .rss-link {
    align-self: flex-start;
  }

  .post-nav-link,
  .align-right {
    max-width: 100%;
    text-align: left;
    margin-left: 0;
  }
}
