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

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: #1f1f1f;
  background: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
  color: #1f1f1f;
}

a {
  color: #1f1f1f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { text-decoration: none; }

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

ul, ol { list-style: none; }

/* ===== SITE WRAPPER ===== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ===== ELEVATION SYSTEM (4 levels) ===== */
:root {
  --shadow-sm: 2px 2px 0 #1f1f1f;
  --shadow-md: 4px 4px 0 #1f1f1f;
  --shadow-lg: 6px 6px 0 #1f1f1f;
  --shadow-xl: 10px 10px 0 #1f1f1f;
  --border: 1px solid #1f1f1f;
  --border-2: 2px solid #1f1f1f;
  --color-primary: #1f1f1f;
  --color-bg: #ffffff;
  --color-surface: #f5f5f5;
}

/* ===== TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  background: #ffffff;
  border-bottom: var(--border-2);
  height: 56px;
  padding: 0 24px;
}

.topbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 24px;
}

.topbar__logomark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.topbar__logomark-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #1f1f1f;
  color: #ffffff;
  font-family: 'Newsreader', serif;
  font-weight: 700;
  font-size: 1rem;
  border: var(--border-2);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow: hidden;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 14px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-right: var(--border);
  transition: background 0.15s;
  letter-spacing: 0.01em;
}

.nav-link:first-child { border-left: var(--border); }

.nav-link:hover,
.nav-link--active {
  background: #1f1f1f;
  color: #ffffff;
}

.topbar__cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  margin-left: 16px;
  background: #1f1f1f;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: var(--border-2);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: box-shadow 0.15s, transform 0.15s;
}

.topbar__cta:hover {
  box-shadow: var(--shadow-md);
  transform: translate(-1px, -1px);
  color: #ffffff;
}

.topbar__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  background: none;
  border: var(--border-2);
  cursor: pointer;
  margin-left: 12px;
  flex-shrink: 0;
}

.topbar__burger span {
  display: block;
  height: 2px;
  background: #1f1f1f;
  transition: opacity 0.2s;
}

/* Mobile menu overlay */
.topbar__nav--open {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  border-top: var(--border-2);
  z-index: 99;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px;
}

.topbar__nav--open .nav-link {
  height: auto;
  padding: 14px 16px;
  width: 100%;
  border: var(--border);
  border-bottom: none;
  font-size: 1rem;
}

.topbar__nav--open .nav-link:last-child { border-bottom: var(--border); }

/* ===== HERO (HOME) ===== */
.hero--home {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.hero__layers {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__layer {
  position: absolute;
  inset: 0;
}

.hero__layer--back {
  background: #f5f5f5;
  z-index: 1;
}

.hero__layer--mid {
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    #e0e0e0 39px,
    #e0e0e0 40px
  );
  opacity: 0.6;
}

.hero__layer--front {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 80px 24px;
  min-height: 100vh;
  flex-wrap: wrap;
}

.hero__illustration {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
}

.hero__illustration .hero__img {
  width: 280px;
  max-width: 40vw;
  box-shadow: var(--shadow-xl);
  border: var(--border-2);
  transform: translateZ(0) rotate(-2deg);
}

.hero__copy {
  position: relative;
  z-index: 5;
  max-width: 560px;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  padding: 4px 12px;
  background: #1f1f1f;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  position: relative;
  top: -4px;
  box-shadow: var(--shadow-sm);
}

.hero__h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #1f1f1f;
}

.hero__lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 28px;
  background: #1f1f1f;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: var(--border-2);
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.15s, transform 0.15s;
}

.hero__btn:hover {
  box-shadow: var(--shadow-xl);
  transform: translate(-2px, -2px);
  color: #ffffff;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.main-content--topic,
.main-content--article {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.main-content--about,
.main-content--privacy {
  max-width: 900px;
}

/* Content body (home intro) */
.content-body {
  margin-bottom: 48px;
  padding: 32px;
  border: var(--border-2);
  background: #f5f5f5;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.content-body p,
.content-body li {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ===== SECTION HEADING ===== */
.section-heading {
  font-family: 'Newsreader', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: var(--border-2);
  letter-spacing: -0.01em;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.card {
  border: var(--border-2);
  background: #ffffff;
  position: relative;
  z-index: 2;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card--layer {
  box-shadow: var(--shadow-md);
  transform: translateY(calc(var(--layer-i, 0) * -2px));
}

.card--layer:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(var(--layer-i, 0) * -2px - 3px)) translateX(-2px);
  z-index: 10;
}

.card__media {
  overflow: hidden;
  border-bottom: var(--border);
  max-height: 180px;
}

.card__media .card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s;
}

.card:hover .card__img { transform: scale(1.03); }

.card__body {
  padding: 20px;
}

.card__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #666;
}

.card__title {
  font-family: 'Newsreader', serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.card__title a {
  text-decoration: none;
  color: #1f1f1f;
}

.card__title a:hover { text-decoration: underline; }

.card__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 10px;
}

.card__date {
  font-size: 0.78rem;
  color: #888;
  display: block;
}

/* ===== RECENT LIST ===== */
.recent-section { margin-bottom: 48px; }

.recent-list {
  border-top: var(--border-2);
}

.recent__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: var(--border);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s calc(var(--stagger, 0) * 0.08s),
              transform 0.4s calc(var(--stagger, 0) * 0.08s);
}

.recent__item.visible {
  opacity: 1;
  transform: translateY(0);
}

.recent__item a {
  font-family: 'Newsreader', serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  flex: 1;
  color: #1f1f1f;
}

.recent__item a:hover { text-decoration: underline; }

.recent__cat {
  font-size: 0.75rem;
  color: #ffffff;
  background: #1f1f1f;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.recent__item time {
  font-size: 0.78rem;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== TOPIC BANNER ===== */
.topic-banner {
  position: relative;
  min-height: 280px;
  background: #f5f5f5;
  border-bottom: var(--border-2);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.topic-banner__depth {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.topic-banner__slab {
  position: absolute;
  width: 200px;
  background: #ffffff;
  border: var(--border-2);
}

.topic-banner__slab--1 {
  top: -30px;
  right: 80px;
  height: 140%;
  transform: rotate(8deg);
  opacity: 0.6;
}

.topic-banner__slab--2 {
  top: -10px;
  right: 40px;
  width: 120px;
  height: 120%;
  transform: rotate(-4deg);
  opacity: 0.4;
  background: #f5f5f5;
}

.topic-banner__content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 48px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.topic-hero__media .topic-hero__img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: var(--border-2);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.topic-banner__text { flex: 1; }

.topic-banner__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: #1f1f1f;
  color: #ffffff;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.topic-banner__h1 {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.topic-banner__desc {
  font-size: 1rem;
  color: #444;
  max-width: 640px;
  line-height: 1.7;
}

/* ===== TOPIC ARTICLE ===== */
.topic-article {
  min-width: 0;
}

.topic-body {
  margin-bottom: 40px;
}

.topic-body div,
.topic-body p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ===== SUBPAGE LIST ===== */
.subpage-list {
  border-top: var(--border-2);
  margin-bottom: 40px;
}

.subpage-item {
  border-bottom: var(--border);
  padding: 16px 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s calc(var(--stagger, 0) * 0.07s),
              transform 0.35s calc(var(--stagger, 0) * 0.07s);
}

.subpage-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.subpage-item__link {
  display: block;
  font-family: 'Newsreader', serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: #1f1f1f;
  margin-bottom: 4px;
}

.subpage-item__link:hover { text-decoration: underline; }

.subpage-item__desc {
  display: block;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
}

.subpage-item__date {
  font-size: 0.78rem;
  color: #888;
  margin-left: 12px;
}

/* ===== SIDEBAR ===== */
.topic-sidebar,
.article-sidebar {
  position: sticky;
  top: 72px;
  z-index: 10;
}

.sidebar-block {
  border: var(--border-2);
  background: #f5f5f5;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.sidebar-block__title {
  font-family: 'Newsreader', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: var(--border);
}

.sidebar-navlist {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-navlist li a {
  display: block;
  padding: 8px 0;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid #e8e8e8;
  transition: padding-left 0.15s;
}

.sidebar-navlist li:last-child a { border-bottom: none; }

.sidebar-navlist li a:hover {
  padding-left: 8px;
  text-decoration: none;
}

.sidebar-block__back {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: #1f1f1f;
}

.sidebar-block__back:hover { text-decoration: underline; }

/* ===== ARTICLE MASTHEAD ===== */
.article-masthead {
  background: #f5f5f5;
  border-bottom: var(--border-2);
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 48px 24px 40px;
  position: relative;
  overflow: hidden;
}

.article-masthead::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #1f1f1f;
  z-index: 4;
}

.article-masthead__inner {
  flex: 1;
  max-width: 800px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; color: #1f1f1f; }

.article-masthead__h1 {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

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

.article-meta__date,
.article-meta__mod {
  font-size: 0.82rem;
  color: #666;
}

.article-meta__topic {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  background: #1f1f1f;
  color: #ffffff;
  padding: 3px 10px;
  text-decoration: none;
}

.article-meta__topic:hover { background: #444; color: #ffffff; }

.article-masthead__media { flex-shrink: 0; }

.article-masthead__media .article-hero__img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: var(--border-2);
  box-shadow: var(--shadow-lg);
}

/* ===== ARTICLE MAIN ===== */
.article-main { min-width: 0; }

.article-section { }

.article-prose {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1f1f1f;
}

.article-prose p { margin-bottom: 1.2em; }

.article-prose h2 {
  font-size: 1.5rem;
  margin-top: 2em;
  margin-bottom: 0.6em;
  padding-bottom: 8px;
  border-bottom: var(--border);
}

.article-prose h3 {
  font-size: 1.2rem;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.article-prose ul, .article-prose ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
  list-style: disc;
}

.article-prose ol { list-style: decimal; }

.article-prose li { margin-bottom: 0.4em; }

.article-prose blockquote {
  border-left: 4px solid #1f1f1f;
  padding: 8px 16px;
  background: #f5f5f5;
  margin: 1.5em 0;
  font-style: italic;
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92rem;
}

.article-prose th,
.article-prose td {
  border: var(--border);
  padding: 10px 14px;
  text-align: left;
}

.article-prose th {
  background: #1f1f1f;
  color: #ffffff;
  font-weight: 700;
}

.article-prose tr:nth-child(even) td { background: #f5f5f5; }

.article-prose time {
  font-weight: 500;
  color: #1f1f1f;
}

/* ===== ABOUT ===== */
.about-masthead {
  position: relative;
  min-height: 240px;
  background: #1f1f1f;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: var(--border-2);
}

.about-masthead__layer {
  position: absolute;
  border: var(--border-2);
  border-color: #444;
}

.about-masthead__layer--1 {
  top: -40px; right: -40px;
  width: 300px; height: 300px;
  transform: rotate(15deg);
  background: transparent;
  z-index: 1;
}

.about-masthead__layer--2 {
  bottom: -20px; right: 80px;
  width: 180px; height: 180px;
  transform: rotate(-8deg);
  background: rgba(255,255,255,0.04);
  z-index: 2;
}

.about-masthead__content {
  position: relative;
  z-index: 3;
  padding: 48px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.about-masthead__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffffff;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 3px 10px;
  margin-bottom: 12px;
}

.about-masthead__h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.about-article { }

.about-section { margin-bottom: 40px; }

.about-prose {
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-prose p { margin-bottom: 1.2em; }

.about-prose h2 {
  font-size: 1.5rem;
  margin-top: 2em;
  margin-bottom: 0.6em;
  padding-bottom: 8px;
  border-bottom: var(--border);
}

.about-topics { margin-bottom: 40px; }

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.about-card {
  border: var(--border-2);
  background: #f5f5f5;
  box-shadow: calc(var(--layer-i, 0) * 1px + 2px) calc(var(--layer-i, 0) * 1px + 2px) 0 #1f1f1f;
  transition: box-shadow 0.2s, transform 0.2s;
}

.about-card:hover {
  box-shadow: var(--shadow-md);
  transform: translate(-2px, -2px);
}

.about-card__link {
  display: block;
  padding: 18px 16px;
  font-family: 'Newsreader', serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #1f1f1f;
  line-height: 1.4;
}

.about-card__link:hover { text-decoration: underline; }

.about-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.about-links__home,
.about-links__privacy {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: var(--border-2);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: #1f1f1f;
  background: #f5f5f5;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, transform 0.15s;
}

.about-links__home:hover,
.about-links__privacy:hover {
  box-shadow: var(--shadow-md);
  transform: translate(-1px, -1px);
}

/* ===== PRIVACY ===== */
.privacy-header {
  position: relative;
  background: #f5f5f5;
  border-bottom: var(--border-2);
  padding: 48px 24px 40px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.privacy-header__deco {
  position: absolute;
  top: 0; right: 0;
  width: 8px;
  height: 100%;
  background: #1f1f1f;
  z-index: 2;
}

.privacy-header__h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.privacy-header__date {
  font-size: 0.85rem;
  color: #666;
}

.privacy-article { }

.privacy-section { margin-bottom: 40px; }

.privacy-prose {
  font-size: 1rem;
  line-height: 1.85;
}

.privacy-prose p { margin-bottom: 1.2em; }

.privacy-prose h2 {
  font-size: 1.4rem;
  margin-top: 2em;
  margin-bottom: 0.6em;
  padding-bottom: 8px;
  border-bottom: var(--border);
}

.privacy-prose h3 {
  font-size: 1.1rem;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.privacy-nav {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: var(--border-2);
  flex-wrap: wrap;
}

.privacy-nav a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: var(--border-2);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, transform 0.15s;
}

.privacy-nav a:hover {
  box-shadow: var(--shadow-md);
  transform: translate(-1px, -1px);
}

/* ===== DEFAULT ARTICLE ===== */
.default-article {
  max-width: 800px;
  margin: 0 auto;
}

.default-h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: var(--border-2);
}

.default-section div {
  font-size: 1rem;
  line-height: 1.85;
}

/* ===== FOOTER ===== */
.sitefooter {
  background: #1f1f1f;
  color: #ffffff;
  border-top: var(--border-2);
  padding: 32px 24px 24px;
  margin-top: auto;
}

.sitefooter__nav { margin-bottom: 24px; }

.footer-navlist {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.footer-navlist dt {
  border-right: 1px solid #444;
}

.footer-navlist dt:last-child { border-right: none; }

.footer-navlist dt a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 0.82rem;
  color: #ccc;
  text-decoration: none;
  min-height: 40px;
  transition: color 0.15s;
}

.footer-navlist dt a:hover { color: #ffffff; }

.sitefooter__brand {
  font-family: 'Newsreader', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.12;
  user-select: none;
}

.sitefooter__copy {
  font-size: 0.78rem;
  color: #666;
  padding-top: 12px;
  border-top: 1px solid #333;
}

/* ===== TOPIC CHILDREN SECTION ===== */
.topic-children { margin-top: 40px; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .recent__item,
  .subpage-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-content--topic,
  .main-content--article {
    grid-template-columns: 1fr;
  }

  .topic-sidebar,
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .topbar__nav {
    display: none;
    flex-direction: column;
  }

  .topbar__nav.topbar__nav--open {
    display: flex;
  }

  .topbar__burger { display: flex; }

  .topbar__cta { display: none; }

  .hero__layer--front {
    flex-direction: column;
    padding: 64px 20px;
    gap: 32px;
  }

  .hero__illustration .hero__img {
    width: 200px;
    max-width: 60vw;
  }

  .topic-banner__content {
    flex-direction: column;
    gap: 20px;
    padding: 36px 20px;
  }

  .article-masthead {
    flex-direction: column;
    padding: 32px 20px;
  }

  .article-masthead__media { display: none; }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .about-cards {
    grid-template-columns: 1fr 1fr;
  }

  .main-content { padding: 32px 16px; }

  .footer-navlist {
    flex-direction: column;
    gap: 0;
  }

  .footer-navlist dt { border-right: none; border-bottom: 1px solid #333; }
  .footer-navlist dt:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .about-cards { grid-template-columns: 1fr; }

  .topbar { padding: 0 16px; height: 56px; }

  .nav-link { font-size: 0.75rem; padding: 0 10px; }

  .article-meta { gap: 10px; }

  .privacy-header,
  .about-masthead__content { padding: 32px 16px; }
}
