:root {
  --night: #080c14;
  --deep: #0d1825;
  --panel: rgba(17, 29, 46, 0.88);
  --panel-strong: rgba(12, 22, 38, 0.96);
  --panel-border: rgba(255, 255, 255, 0.08);
  --pink: #ff2d6b;
  --pink-soft: rgba(255, 45, 107, 0.16);
  --blue: #1e90ff;
  --blue-soft: rgba(30, 144, 255, 0.16);
  --gold: #ffd700;
  --white: #f0f4ff;
  --white-soft: rgba(240, 244, 255, 0.72);
  --white-muted: rgba(240, 244, 255, 0.56);
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(30, 144, 255, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 45, 107, 0.16), transparent 30%),
    linear-gradient(180deg, #050a13 0%, #09111d 48%, #050912 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px),
    radial-gradient(circle at 62% 72%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px),
    radial-gradient(circle at 30% 82%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px);
  background-size: 260px 260px;
  opacity: 0.35;
}

img {
  max-width: 100%;
}

body a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(5, 10, 19, 0.78);
  border-bottom: 1px solid var(--panel-border);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.brand-star {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  clip-path: polygon(50% 0%, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 39% 63%, 0% 50%, 39% 37%);
  box-shadow: 0 0 18px rgba(255, 45, 107, 0.4);
}

.brand-text {
  font-family: 'Fredoka', 'Fredoka One', cursive;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

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

.nav-links a {
  color: var(--white-soft);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--white);
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
}

.page-shell,
.article-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 96px;
}

.hero-panel,
.section-panel,
.article-panel,
.callout-panel,
.post-card,
.note-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 56px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: '';
  position: absolute;
  inset: auto -10% -25% auto;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 45, 107, 0.22), transparent 66%);
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 45, 107, 0.12);
  color: #ff87aa;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

h1,
.hero-title,
.section-title,
.article-title {
  font-family: 'Fredoka', 'Fredoka One', cursive;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-title,
.article-title {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  margin: 20px 0 18px;
  max-width: 12ch;
}

.hero-title span,
.article-title span {
  color: #81c1ff;
}

.lede,
.hero-copy,
.article-intro,
.section-copy,
.post-card p,
.article-body p,
.note-card p {
  color: var(--white-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-copy {
  max-width: 720px;
}

.cta-row,
.quick-links,
.post-meta,
.article-meta,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-row {
  margin-top: 30px;
}

.primary-link,
.secondary-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  border-radius: 999px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.primary-link {
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--pink), #d21f57);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 45, 107, 0.24);
}

.secondary-link {
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.text-link {
  padding: 0;
  color: #ff8caf;
}

.primary-link:hover,
.secondary-link:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.section-stack {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.section-panel,
.callout-panel,
.article-panel {
  padding: 32px;
}

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

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.post-card {
  padding: 28px;
}

.post-card h2,
.post-card h3,
.section-title,
.note-card h2,
.note-card h3,
.article-body h2,
.article-body h3 {
  font-family: 'Fredoka', 'Fredoka One', cursive;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.post-card h2,
.post-card h3,
.section-title,
.article-body h2 {
  font-size: 1.8rem;
}

.post-card h3,
.article-body h3,
.note-card h3 {
  font-size: 1.25rem;
}

.post-meta,
.article-meta {
  margin: 18px 0;
  color: var(--white-muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: #ff9cba;
  font-size: 0.85rem;
  font-weight: 900;
}

.pill.blue {
  background: var(--blue-soft);
  color: #8ecdff;
}

.breadcrumbs {
  margin-bottom: 24px;
  color: var(--white-muted);
  font-weight: 800;
  font-size: 0.92rem;
}

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

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.article-panel {
  padding: 40px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  color: var(--white-soft);
  line-height: 1.75;
}

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

.article-body blockquote {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--pink);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-weight: 800;
}

.note-card {
  padding: 24px;
  position: sticky;
  top: 110px;
}

.note-card ul {
  padding-left: 18px;
  color: var(--white-soft);
  line-height: 1.7;
}

.note-card li + li {
  margin-top: 8px;
}

.callout-panel {
  margin-top: 28px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 48px;
  padding: 28px 0 12px;
  color: var(--white-muted);
}

.site-footer p {
  margin: 12px 0 0;
}

.footer-links a {
  color: var(--white-soft);
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 900px) {
  .post-grid,
  .grid-two,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .note-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-nav,
  .page-shell,
  .article-shell,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .site-nav {
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-panel,
  .section-panel,
  .callout-panel,
  .article-panel,
  .post-card {
    padding: 24px;
  }

  .hero-title,
  .article-title {
    max-width: none;
  }
}
