
:root {
  --bg: #08131f;
  --bg-soft: #0f1f2f;
  --panel: rgba(9, 19, 31, 0.78);
  --panel-strong: rgba(10, 22, 36, 0.94);
  --line: rgba(148, 163, 184, 0.2);
  --text: #e6eff8;
  --muted: #a9b8ca;
  --accent: #37c7b1;
  --accent-2: #6aa9ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(55, 199, 177, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(106, 169, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #040a12 0%, var(--bg) 32%, #06111b 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.28;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.topbar,
.hero,
.post-card,
.article,
.note-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  border-radius: 22px;
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 52px;
  height: auto;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-copy span,
.meta,
.card-meta,
.note-card p {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 10px 14px;
  border-radius: 999px;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav a:hover {
  color: var(--text);
  border-color: rgba(55, 199, 177, 0.36);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 42px;
  margin-bottom: 22px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -120px -140px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 199, 177, 0.2), transparent 70%);
  filter: blur(10px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(55, 199, 177, 0.28);
  color: #c8f5ee;
  background: rgba(55, 199, 177, 0.08);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.gradient {
  background: linear-gradient(90deg, #ffffff, #a7fff3 36%, #8cb8ff 70%, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead,
.summary,
.article-body p,
.article-body li {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.03rem;
}

.lead {
  max-width: 68ch;
  margin-top: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.actions a,
.actions .button,
.story-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.actions .primary,
.story-link.primary {
  color: #06111b;
  background: linear-gradient(90deg, #8bf8e8, #8cb8ff);
}

.actions .secondary,
.story-link.secondary {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.03);
}

.actions a:hover,
.actions .button:hover,
.story-link:hover {
  transform: translateY(-1px);
}

.post-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.post-card,
.note-card,
.article {
  border-radius: 26px;
}

.post-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-card h3 {
  font-size: 1.45rem;
}

.card-meta,
.meta {
  font-size: 0.92rem;
}

.post-card .summary {
  max-width: 70ch;
}

.post-card .actions {
  margin-top: auto;
}

.note-card {
  padding: 24px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.note-list {
  display: grid;
  gap: 12px;
}

.note-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.article {
  padding: 42px;
}

.article-head {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(55, 199, 177, 0.24);
  background: rgba(55, 199, 177, 0.08);
  color: #c8f5ee;
  font-size: 0.84rem;
}

.article-body {
  display: grid;
  gap: 22px;
}

.article-body h2 {
  margin-top: 4px;
}

.article-body ul {
  margin: 0;
  padding-left: 1.2rem;
}

.article-body li + li {
  margin-top: 10px;
}

.quote {
  margin: 6px 0 0;
  padding: 18px 20px;
  border-left: 3px solid rgba(55, 199, 177, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: #d7ebff;
  font-size: 1.05rem;
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 18px;
}

.inline-panel {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.footer-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-shell {
  display: grid;
  gap: 22px;
}

@media (max-width: 960px) {
  .topbar,
  .post-grid,
  .split {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar {
    justify-content: start;
  }

  .hero,
  .article {
    padding: 30px 24px;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 18px, 1180px);
    padding-top: 14px;
  }

  .topbar {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .nav a,
  .actions a,
  .story-link {
    padding: 10px 14px;
  }

  .hero,
  .article,
  .post-card,
  .note-card {
    border-radius: 22px;
  }
}
