:root {
  --bg-solid: #0a0a0c;
  --card: #111116;
  --ink: #f3f3f7;
  --muted: #b7b7c7;
  --accent: #8a5cff;
  --accent-2: #b387ff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-solid);
  color: var(--ink);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

.hidden {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-solid);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav a {
  margin-left: 16px;
  color: var(--ink);
  opacity: 0.85;
}

.nav a:hover {
  opacity: 1;
}

#hero {
  padding: 48px 20px 16px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

#hero h1 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.search input {
  width: 100%;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  outline: none;
  font-size: 16px;
  display: block;
  margin: 0 auto;
}

.search input::placeholder {
  font-size: 16px;
}

.container {
  max-width: 1100px;
  margin: 8px auto 64px;
  padding: 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 18px;
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.card h3 {
  margin: 0;
  font-size: 20px;
}

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

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.load-more {
  margin: 20px auto 0;
  display: block;
  background: rgba(138, 92, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}

.load-more:hover {
  filter: brightness(1.08);
}

#post h1 {
  margin: 0 0 6px;
  font-size: 34px;
}

#post .post-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

#post .content {
  line-height: 1.75;
}

#post .content h2,
#post .content h3 {
  margin-top: 24px;
}

.back {
  display: inline-block;
  margin-top: 28px;
}
