.nav-links a[aria-current="page"] {
  color: var(--clay-600);
}

.nav .wrap,
.journal-hero .wrap,
.journal-list .wrap {
  max-width: 1504px;
}

.journal-hero {
  padding: clamp(82px, 12vw, 150px) 0 clamp(64px, 9vw, 116px);
  text-align: center;
}

.journal-hero h1 {
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: clamp(56px, 8.8vw, 116px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 24px auto 28px;
  max-width: 760px;
}

.journal-hero h1 em {
  color: var(--clay-600);
  font-style: italic;
  font-weight: 400;
}

.journal-deck {
  color: var(--stone-700);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-style: italic;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 740px;
}

.topic-pills {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: clamp(40px, 6vw, 64px) auto 0;
  max-width: 840px;
  padding-bottom: clamp(36px, 5vw, 54px);
}

.topic-pills button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--stone-700);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 12px 18px;
  text-transform: uppercase;
}

.topic-pills button:focus-visible {
  outline: 3px solid var(--clay-200);
  outline-offset: 3px;
}

.topic-pills .active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--ivory-50);
}

.journal-list {
  padding: 0 0 clamp(84px, 10vw, 140px);
}

.featured-post {
  background: var(--ivory-50);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  display: grid;
  margin: 0 auto clamp(28px, 5vw, 48px);
  max-width: 1504px;
  overflow: hidden;
}

.feature-art {
  min-height: clamp(220px, 32vw, 390px);
  background:
    linear-gradient(135deg, oklch(0.985 0.008 82 / 0.86) 25%, transparent 25%) -18px 0 / 42px 42px,
    linear-gradient(135deg, transparent 75%, oklch(0.925 0.040 38 / 0.24) 75%) -18px 0 / 42px 42px,
    var(--ivory-100);
}

.feature-copy {
  padding: clamp(30px, 5vw, 58px);
}

.post-kicker {
  color: var(--clay-600);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.featured-post h2,
.post-card h2 {
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 16px 0;
}

.featured-post h2 {
  font-size: clamp(42px, 6vw, 76px);
}

.featured-post p,
.post-card p {
  color: var(--stone-700);
}

.read-link,
.back-link {
  color: var(--clay-600);
  display: inline-flex;
  font-weight: 800;
  margin-top: 12px;
}

.post-grid {
  display: grid;
  gap: 20px;
  margin: 0 auto;
  max-width: 1504px;
}

.post-card {
  background: var(--ivory-50);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: clamp(26px, 4vw, 38px);
}

.post-card h2 {
  font-size: clamp(34px, 4.8vw, 54px);
}

.empty-posts {
  color: var(--stone-700);
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-style: italic;
  margin: 48px auto 0;
  max-width: 620px;
  text-align: center;
}

.article-hero {
  padding: clamp(72px, 10vw, 132px) 0 clamp(50px, 7vw, 86px);
  text-align: center;
}

.article-head {
  max-width: 900px;
  min-width: 0;
}

.article-head h1 {
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: clamp(48px, 7.4vw, 96px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 22px auto;
  overflow-wrap: break-word;
}

.article-head > p:last-child {
  color: var(--stone-700);
  font-size: 19px;
  margin: 0 auto;
  max-width: 700px;
}

.article-layout {
  align-items: start;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  padding-bottom: clamp(80px, 10vw, 140px);
}

.article-body {
  color: var(--ink-900);
  font-size: 18px;
  line-height: 1.78;
  max-width: 760px;
  min-width: 0;
  overflow-wrap: break-word;
  width: 100%;
}

.article-body h2 {
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.04;
  margin: 58px 0 16px;
}

.article-body h3 {
  color: var(--ink-800);
  font-size: 24px;
  margin: 36px 0 12px;
}

.article-body p,
.article-body ul,
.article-body ol,
.table-scroll {
  max-width: 100%;
  margin: 20px 0;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

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

.article-body a {
  color: var(--clay-600);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body strong {
  color: var(--ink-800);
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.article-body table {
  border-collapse: collapse;
  min-width: 640px;
  width: 100%;
}

.article-body th,
.article-body td {
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 14px;
  text-align: left;
}

.article-body th {
  background: var(--ivory-200);
  color: var(--stone-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc {
  display: none;
}

.toc nav {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-left: 18px;
}

.toc a {
  color: var(--stone-700);
  font-size: 14px;
  font-weight: 700;
}

.toc a.active {
  color: var(--clay-600);
}

@media (min-width: 820px) {
  .featured-post {
    grid-template-columns: minmax(0, 1fr) minmax(520px, 0.92fr);
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .toc {
    display: block;
    position: sticky;
    top: 104px;
  }
}

@media (max-width: 560px) {
  .topic-pills {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 26px;
  }

  .topic-pills button {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .article-hero {
    padding: 58px 0 38px;
    text-align: left;
  }

  .article-head h1 {
    font-size: clamp(38px, 13vw, 56px);
    line-height: 1.02;
  }

  .article-head > p:last-child {
    font-size: 17px;
    max-width: none;
  }

  .article-layout {
    gap: 0;
    padding-bottom: 72px;
  }

  .article-body {
    font-size: 17px;
    line-height: 1.72;
    max-width: none;
  }

  .article-body h2 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.08;
    margin-top: 46px;
  }

  .article-body h3 {
    font-size: 21px;
  }
}
