:root {
  --article-accent: #8ca998;
  --article-accent-dark: #5f806d;
  --article-ink: #0f172a;
  --article-text: #334155;
  --article-muted: #64748b;
  --article-border: #e7e5e4;
  --article-paper: #ffffff;
  --article-wash: #f5f5f4;
}

.article-eyebrow {
  margin-bottom: 0.75rem;
  color: var(--article-accent-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-index-section {
  padding: 1rem 0 6rem;
}

.article-index-intro {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  color: var(--article-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: center;
}

.article-list {
  display: grid;
  gap: 1.25rem;
}

.article-card {
  position: relative;
  padding: 2rem;
  overflow: hidden;
  background: var(--article-paper);
  border: 1px solid var(--article-border);
  border-radius: 0.75rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.article-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: '';
  background: var(--article-accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.article-card:hover {
  border-color: rgba(140, 169, 152, 0.45);
  box-shadow: 0 16px 35px -22px rgba(15, 23, 42, 0.35);
  transform: translateY(-2px);
}

.article-card:hover::before {
  opacity: 1;
}

.article-card-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--article-muted);
  font-size: 0.78rem;
}

.draft-badge {
  padding: 0.2rem 0.65rem;
  color: #9a5c1f;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 9999px;
}

.article-card h2 {
  margin: 0.8rem 0 0.75rem;
  color: var(--article-ink);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  line-height: 1.25;
}

.article-card h2 a,
.article-read-link,
.article-body a,
.article-sources a,
.article-editorial-note a,
.article-back-link a,
.breadcrumbs a,
.article-meta a {
  text-decoration: underline;
  text-decoration-color: rgba(140, 169, 152, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.article-card h2 a:hover,
.article-body a:hover,
.article-sources a:hover,
.article-editorial-note a:hover,
.article-back-link a:hover,
.breadcrumbs a:hover,
.article-meta a:hover {
  color: var(--article-accent-dark);
}

.article-card > p {
  max-width: 48rem;
  margin-bottom: 1.25rem;
  color: var(--article-text);
  line-height: 1.75;
}

.article-read-link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: var(--article-accent-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.article-page {
  padding: 4.5rem 1.5rem 6rem;
}

.article-shell {
  width: min(100%, 46rem);
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 2rem;
  color: var(--article-muted);
  font-size: 0.8rem;
}

.draft-notice {
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  color: #7c4a16;
  font-size: 0.85rem;
  line-height: 1.65;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 0.65rem;
}

.article-header {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--article-border);
}

.article-header h1 {
  max-width: 44rem;
  margin-bottom: 1.25rem;
  color: var(--article-ink);
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.25rem, 6vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.article-summary {
  max-width: 42rem;
  margin-bottom: 1.5rem;
  color: #475569;
  font-size: 1.12rem;
  line-height: 1.75;
}

.article-review-status {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.45rem 0.75rem;
  margin-top: 1.1rem;
  color: var(--article-accent-dark);
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(140, 169, 152, 0.1);
  border: 1px solid rgba(140, 169, 152, 0.3);
  border-radius: 9999px;
}

.article-review-status span {
  display: grid;
  width: 1rem;
  height: 1rem;
  color: white;
  font-size: 0.65rem;
  line-height: 1;
  background: var(--article-accent);
  border-radius: 50%;
  place-items: center;
}

.article-toc {
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
  background: rgba(245, 245, 244, 0.7);
  border: 1px solid var(--article-border);
  border-radius: 0.75rem;
}

.article-toc h2 {
  margin-bottom: 0.9rem;
  color: var(--article-ink);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
}

.article-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.5rem;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.5;
  list-style: none;
  counter-reset: toc;
}

.article-toc li {
  display: flex;
  gap: 0.55rem;
  counter-increment: toc;
}

.article-toc li::before {
  flex: 0 0 auto;
  color: var(--article-accent-dark);
  font-weight: 600;
  content: counter(toc, decimal-leading-zero);
}

.article-toc a {
  text-decoration: underline;
  text-decoration-color: rgba(140, 169, 152, 0.45);
  text-underline-offset: 0.18em;
}

.article-toc a:hover {
  color: var(--article-accent-dark);
}

.article-body {
  color: var(--article-text);
  font-size: 1.04rem;
  line-height: 1.85;
}

.article-body > p:first-child {
  color: #334155;
  font-size: 1.12rem;
  line-height: 1.9;
}

.article-body > * + * {
  margin-top: 1.35rem;
}

.article-body h2,
.article-body h3 {
  color: var(--article-ink);
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

.article-body h2 {
  padding-top: 1.6rem;
  font-size: 1.8rem;
  scroll-margin-top: 7rem;
}

.article-body h3 {
  padding-top: 0.8rem;
  font-size: 1.35rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.35rem;
}

.article-body ul {
  list-style: disc;
}

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

.article-body li + li {
  margin-top: 0.55rem;
}

.article-body blockquote {
  padding: 0.2rem 0 0.2rem 1.3rem;
  color: #475569;
  border-left: 3px solid var(--article-accent);
}

.article-sources,
.article-editorial-note {
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--article-border);
}

.article-sources h2 {
  margin-bottom: 1rem;
  color: var(--article-ink);
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
}

.article-sources ol {
  padding-left: 1.25rem;
  color: var(--article-muted);
  font-size: 0.85rem;
  line-height: 1.65;
  list-style: decimal;
}

.article-sources li + li {
  margin-top: 0.65rem;
}

.article-editorial-note {
  color: var(--article-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.article-editorial-note p + p {
  margin-top: 0.5rem;
}

.article-back-link {
  margin-top: 2.5rem;
  color: var(--article-accent-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.error-page {
  display: grid;
  min-height: calc(100vh - 5rem);
  padding: 8rem 1.5rem 5rem;
  place-items: center;
  text-align: center;
}

.error-page h1 {
  margin-bottom: 1rem;
  color: var(--article-ink);
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
}

.error-page p {
  margin-bottom: 1.5rem;
  color: var(--article-muted);
}

.error-page a {
  color: var(--article-accent-dark);
  font-weight: 600;
}

@media (max-width: 767px) {
  .article-index-section {
    padding-bottom: 4.5rem;
  }

  .article-card {
    padding: 1.5rem;
  }

  .article-page {
    padding: 3rem 1.25rem 4.5rem;
  }

  .article-header h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .article-summary,
  .article-body {
    font-size: 1rem;
  }

  .article-toc {
    padding: 1.25rem;
  }

  .article-toc ol {
    grid-template-columns: 1fr;
  }

  .article-body > p:first-child {
    font-size: 1.04rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-card {
    transition: none;
  }
}
