@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --mint: #5cc6b0;
  --sand: #d4c4a8;
  --dark: #172623;
  --mint-dark: #3da890;
  --mint-light: #7dd4c0;
  --sand-dark: #b8a88a;
  --sand-light: #ede4d3;
  --bg: #0e1b18;
  --bg2: #162220;
  --text: #e8ddd0;
  --text-muted: #9aada9;
  --card-bg: #1e2e2a;
  --card-bg2: #243530;
  --radius-sm: 4px;
  --radius-pill: 999px;
  --radius-md: 8px;
  --shadow-soft: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.28);
  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --transition: 0.22s ease-out;
}

html {
  font-size: 17px;
  line-height: 1.65;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

a {
  color: var(--mint);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--mint-light);
}

ul {
  list-style: none;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 2px solid var(--mint);
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid rgba(92,198,176,0.15);
}

.brand-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-logo:hover {
  color: var(--mint);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.2rem;
  background: var(--mint);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  min-height: 40px;
  transition: background var(--transition), transform var(--transition);
}

.btn-cta:hover {
  background: var(--mint-dark);
  color: var(--dark);
  transform: translateY(-1px);
}

.main-nav {
  padding: 0.6rem 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav > p {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background: var(--card-bg);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  min-height: 40px;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.nav-pill:hover,
.nav-pill.active {
  background: rgba(92,198,176,0.15);
  color: var(--mint);
  border-color: var(--mint);
}

/* ============================================================
   HERO (HOME)
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-fig {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  border-radius: 0;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #172623 0%, #1e3530 50%, #172623 100%);
}

.hero-slash {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--bg);
  clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem 1.5rem 6rem;
  max-width: 800px;
}

.hero-h1 {
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--sand);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.5rem;
  background: transparent;
  color: var(--mint);
  border: 2px solid var(--mint);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 40px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-pill:hover {
  background: var(--mint);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-pill.btn-lg {
  padding: 0.75rem 2.2rem;
  font-size: 1rem;
  min-height: 48px;
}

/* ============================================================
   SHARED: SECTION LAYOUT
   ============================================================ */
.topics-section,
.content-section,
.recent-section,
.topic-body-section,
.topic-children-section,
.tag-hero-section,
.tag-articles-section,
.about-intro-section,
.about-topics-section,
.privacy-content-section,
.privacy-links-section,
.article-content-section,
.article-related-section {
  padding: 4rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

.topics-section,
.recent-section,
.topic-children-section,
.article-related-section,
.about-topics-section,
.tag-articles-section,
.privacy-links-section {
  grid-template-rows: auto 1fr;
}

.topics-section h2,
.content-section h2,
.recent-section h2,
.topic-children-section h2,
.tag-articles-section h2,
.about-topics-section h2,
.article-related-section h2,
.privacy-links-section h2 {
  grid-column: 1 / -1;
}

.topics-section h2 + p,
.content-section h2 + p,
.recent-section h2 + p,
.topic-children-section h2 + p,
.tag-articles-section h2 + p,
.about-topics-section h2 + p,
.article-related-section h2 + p,
.privacy-links-section h2 + p {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.topics-section h2,
.content-section h2,
.recent-section h2,
.topic-children-section h2,
.tag-articles-section h2,
.about-topics-section h2,
.article-related-section h2,
.privacy-links-section h2,
.about-intro-section h2,
.tag-hero-section h2,
.privacy-content-section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--sand);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(92,198,176,0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

/* ============================================================
   ASIDE SHARED
   ============================================================ */
.aside-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(92,198,176,0.2);
}

.aside-link {
  display: block;
  padding: 0.45rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-link:hover,
.aside-link.active {
  color: var(--mint);
  border-left-color: var(--mint);
  background: rgba(92,198,176,0.08);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  background: var(--card-bg2);
  color: var(--sand);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  margin: 0.2rem 0.15rem;
  border: 1px solid rgba(212,196,168,0.2);
  transition: background var(--transition), color var(--transition);
}

.tag-chip:hover,
.tag-chip.active {
  background: var(--mint);
  color: var(--dark);
}

/* ============================================================
   TOPIC CARDS (home)
   ============================================================ */
.topic-list,
.child-list,
.recent-list,
.related-list,
.tag-article-list,
.about-topic-list,
.privacy-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.topic-card,
.child-card,
.recent-card,
.related-card,
.tag-article-card,
.about-topic-card,
.priv-link-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}

.topic-card:hover,
.child-card:hover,
.recent-card:hover,
.related-card:hover,
.tag-article-card:hover,
.about-topic-card:hover,
.priv-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.card-fig,
.child-fig,
.recent-fig,
.related-fig,
.tag-art-fig {
  margin: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--card-bg2);
}

.card-fig img,
.child-fig img,
.recent-fig img,
.related-fig img,
.tag-art-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s ease-out;
}

.topic-card:hover .card-fig img,
.child-card:hover .child-fig img,
.recent-card:hover .recent-fig img,
.related-card:hover .related-fig img,
.tag-article-card:hover .tag-art-fig img {
  transform: scale(1.04);
}

.card-body,
.child-body,
.recent-body,
.related-body,
.tag-art-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card-body h3,
.child-body h3,
.recent-body h3,
.related-body h3,
.tag-art-body h3,
.about-topic-card h3,
.priv-link-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sand);
  line-height: 1.4;
}

.card-body h3 a,
.child-body h3 a,
.recent-body h3 a,
.related-body h3 a,
.tag-art-body h3 a,
.about-topic-card h3 a,
.priv-link-card h3 a {
  color: inherit;
}

.card-body h3 a:hover,
.child-body h3 a:hover,
.recent-body h3 a:hover,
.related-body h3 a:hover,
.tag-art-body h3 a:hover,
.about-topic-card h3 a:hover,
.priv-link-card h3 a:hover {
  color: var(--mint);
}

.card-body p,
.child-body p,
.related-body p,
.tag-art-body p,
.about-topic-card p,
.priv-link-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.card-date,
.recent-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.75;
}

.card-body .btn-pill,
.child-body .btn-pill {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
}

.about-topic-card,
.priv-link-card {
  padding: 1.2rem;
}

/* ============================================================
   HOME: CONTENT SECTION
   ============================================================ */
.content-section {
  background: var(--bg2);
}

.content-section .content-fig {
  margin: 0;
}

/* ============================================================
   TOPIC PAGE
   ============================================================ */
.topic-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 50vh;
  background: var(--dark);
  overflow: hidden;
  align-items: center;
}

.topic-hero-content {
  padding: 4rem 3rem 4rem 2rem;
}

.topic-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--sand);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0.75rem 0;
}

.topic-hero-content .subtitle {
  margin-top: 0.75rem;
}

.topic-hero-fig {
  margin: 0;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
  background: var(--card-bg2);
}

.topic-hero-img,
.topic-hero-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  opacity: 0.6;
}

.topic-hero-placeholder {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--card-bg2) 100%);
  display: block;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-meta-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.article-hero-fig {
  margin: 0 0 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 0;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.article-breadcrumb a {
  color: var(--mint);
}

.article-breadcrumb span {
  color: var(--text-muted);
}

.article-meta-section h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--sand);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.article-meta-section .subtitle {
  margin-bottom: 1rem;
}

.article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-dates time {
  color: var(--mint);
}

/* ============================================================
   TAG PAGE
   ============================================================ */
.tag-hero-section {
  background: var(--dark);
  border-bottom: 1px solid rgba(92,198,176,0.15);
}

.tag-intro-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--sand);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.tag-intro-wrap .subtitle {
  margin-bottom: 1.5rem;
}

.tag-badge {
  display: inline-block;
  background: var(--mint);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro-section {
  background: var(--dark);
  border-bottom: 1px solid rgba(92,198,176,0.15);
}

.about-content-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--sand);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.about-content-wrap .subtitle {
  margin-bottom: 1.5rem;
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.privacy-body-wrap h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--sand);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.privacy-body-wrap .subtitle {
  margin-bottom: 1rem;
}

.privacy-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.privacy-updated time {
  color: var(--mint);
}

/* ============================================================
   PROSE (article body)
   ============================================================ */
.prose {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 720px;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sand);
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sand);
  margin: 1.5rem 0 0.5rem;
}

.prose p {
  margin-bottom: 1.2rem;
}

.prose a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  margin: 1rem 0 1.2rem 1.5rem;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  color: var(--sand);
  font-weight: 600;
}

.prose img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.prose blockquote {
  border-left: 3px solid var(--mint);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: rgba(92,198,176,0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
}

/* ============================================================
   TOPIC BODY / ARTICLE BODY — aside on LEFT
   ============================================================ */
.topic-aside,
.topics-aside,
.children-aside,
.recent-aside,
.article-aside,
.related-aside,
.tag-meta-aside,
.tag-nav-aside,
.about-aside,
.about-topics-aside,
.privacy-aside,
.privacy-links-aside {
  position: sticky;
  top: 120px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
}

.topic-prose-wrap,
.article-body-wrap,
.tag-intro-wrap,
.about-content-wrap,
.privacy-body-wrap {
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  border-top: 2px solid var(--mint);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
}

.footer-brand {
  flex: 0 0 auto;
}

.footer-big {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--sand);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  opacity: 0.55;
}

.footer-nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: center;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.footer-nav a:hover {
  color: var(--mint);
  background: rgba(92,198,176,0.08);
}

.footer-copy {
  flex: 0 0 100%;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.6;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================================================
   ARTICLE META + ARTICLE MAIN WRAP
   ============================================================ */
.article-main {
  min-height: 60vh;
}

.article-content-section {
  background: var(--bg2);
}

.article-content-section .article-aside,
.article-related-section .related-aside {
  grid-column: 1;
}

.article-content-section .article-body-wrap {
  grid-column: 2;
}

/* ============================================================
   TOPIC PAGE ASIDE POSITIONING
   ============================================================ */
.topic-body-section .topic-aside {
  grid-column: 1;
}

.topic-body-section .topic-prose-wrap {
  grid-column: 2;
}

.topic-children-section .children-aside {
  grid-column: 1;
}

.topic-children-section .child-list {
  grid-column: 2;
}

.topic-children-section .empty-note {
  grid-column: 2;
  color: var(--text-muted);
}

/* ============================================================
   HOME SECTION POSITIONING
   ============================================================ */
.topics-section .topics-aside {
  grid-column: 1;
  grid-row: 3;
}

.topics-section .topic-list {
  grid-column: 2;
  grid-row: 3;
}

.recent-section .recent-aside {
  grid-column: 1;
  grid-row: 3;
}

.recent-section .recent-list {
  grid-column: 2;
  grid-row: 3;
}

.content-section .content-fig {
  grid-column: 1 / -1;
}

/* ============================================================
   TAG PAGE POSITIONING
   ============================================================ */
.tag-hero-section .tag-meta-aside {
  grid-column: 1;
}

.tag-hero-section .tag-intro-wrap {
  grid-column: 2;
}

.tag-articles-section .tag-nav-aside {
  grid-column: 1;
  grid-row: 3;
}

.tag-articles-section .tag-article-list {
  grid-column: 2;
  grid-row: 3;
}

/* ============================================================
   ABOUT PAGE POSITIONING
   ============================================================ */
.about-intro-section .about-aside {
  grid-column: 1;
}

.about-intro-section .about-content-wrap {
  grid-column: 2;
}

.about-topics-section .about-topics-aside {
  grid-column: 1;
  grid-row: 3;
}

.about-topics-section .about-topic-list {
  grid-column: 2;
  grid-row: 3;
}

/* ============================================================
   PRIVACY PAGE POSITIONING
   ============================================================ */
.privacy-content-section .privacy-aside {
  grid-column: 1;
}

.privacy-content-section .privacy-body-wrap {
  grid-column: 2;
}

.privacy-links-section .privacy-links-aside {
  grid-column: 1;
  grid-row: 3;
}

.privacy-links-section .privacy-link-list {
  grid-column: 2;
  grid-row: 3;
}

/* ============================================================
   STAGGER ANIMATION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .topic-list li,
  .child-list li,
  .recent-list li,
  .related-list li,
  .tag-article-list li,
  .about-topic-list li {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.45s ease-out forwards;
  }

  .topic-list li:nth-child(1), .child-list li:nth-child(1), .recent-list li:nth-child(1),
  .related-list li:nth-child(1), .tag-article-list li:nth-child(1), .about-topic-list li:nth-child(1) { animation-delay: 0.05s; }
  .topic-list li:nth-child(2), .child-list li:nth-child(2), .recent-list li:nth-child(2),
  .related-list li:nth-child(2), .tag-article-list li:nth-child(2), .about-topic-list li:nth-child(2) { animation-delay: 0.1s; }
  .topic-list li:nth-child(3), .child-list li:nth-child(3), .recent-list li:nth-child(3),
  .related-list li:nth-child(3), .tag-article-list li:nth-child(3), .about-topic-list li:nth-child(3) { animation-delay: 0.15s; }
  .topic-list li:nth-child(4), .child-list li:nth-child(4), .recent-list li:nth-child(4),
  .related-list li:nth-child(4), .tag-article-list li:nth-child(4), .about-topic-list li:nth-child(4) { animation-delay: 0.2s; }
  .topic-list li:nth-child(5), .child-list li:nth-child(5), .recent-list li:nth-child(5),
  .related-list li:nth-child(5), .tag-article-list li:nth-child(5), .about-topic-list li:nth-child(5) { animation-delay: 0.25s; }
  .topic-list li:nth-child(6), .child-list li:nth-child(6), .recent-list li:nth-child(6),
  .related-list li:nth-child(6), .tag-article-list li:nth-child(6), .about-topic-list li:nth-child(6) { animation-delay: 0.3s; }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-h1 {
    animation: fadeUp 0.6s ease-out forwards;
  }

  .hero-desc {
    animation: fadeUp 0.6s ease-out 0.1s forwards;
    opacity: 0;
  }

  .hero-content .btn-pill {
    animation: fadeUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .topics-section,
  .content-section,
  .recent-section,
  .topic-body-section,
  .topic-children-section,
  .tag-hero-section,
  .tag-articles-section,
  .about-intro-section,
  .about-topics-section,
  .privacy-content-section,
  .privacy-links-section,
  .article-content-section,
  .article-related-section {
    grid-template-columns: 1fr;
  }

  .topics-section .topics-aside,
  .recent-section .recent-aside,
  .topic-body-section .topic-aside,
  .topic-children-section .children-aside,
  .tag-hero-section .tag-meta-aside,
  .tag-articles-section .tag-nav-aside,
  .about-intro-section .about-aside,
  .about-topics-section .about-topics-aside,
  .privacy-content-section .privacy-aside,
  .privacy-links-section .privacy-links-aside,
  .article-content-section .article-aside,
  .article-related-section .related-aside {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  .topics-section .topic-list,
  .recent-section .recent-list,
  .topic-body-section .topic-prose-wrap,
  .topic-children-section .child-list,
  .topic-children-section .empty-note,
  .tag-hero-section .tag-intro-wrap,
  .tag-articles-section .tag-article-list,
  .about-intro-section .about-content-wrap,
  .about-topics-section .about-topic-list,
  .privacy-content-section .privacy-body-wrap,
  .privacy-links-section .privacy-link-list,
  .article-content-section .article-body-wrap {
    grid-column: 1;
    grid-row: auto;
  }

  .topic-hero {
    grid-template-columns: 1fr;
  }

  .topic-hero-fig {
    min-height: 200px;
  }

  .topic-hero-content {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .brand-bar {
    padding: 0.6rem 1rem;
  }

  .brand-logo {
    font-size: 0.95rem;
  }

  .main-nav {
    padding: 0.5rem 1rem;
  }

  .nav-pill {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
  }

  .hero-content {
    padding: 2rem 1rem 5rem;
  }

  .hero-h1 {
    font-size: 2rem;
  }

  .topics-section,
  .content-section,
  .recent-section,
  .topic-body-section,
  .topic-children-section,
  .tag-hero-section,
  .tag-articles-section,
  .about-intro-section,
  .about-topics-section,
  .privacy-content-section,
  .privacy-links-section,
  .article-content-section,
  .article-related-section {
    padding: 2.5rem 1rem;
  }

  .topic-list,
  .child-list,
  .recent-list,
  .related-list,
  .tag-article-list,
  .about-topic-list,
  .privacy-link-list {
    grid-template-columns: 1fr;
  }

  .article-hero-img {
    height: 220px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1rem;
  }

  .footer-nav {
    gap: 0.2rem 0.5rem;
  }

  .article-meta-section {
    padding: 2rem 1rem 1.5rem;
  }

  .prose {
    font-size: 0.97rem;
  }
}
