:root {
  --article-max: 760px;
}

.article-page {
  background: var(--cream);
  color: var(--lead);
}

.article-page #nav:not(.pinned) {
  background: transparent;
}

.article-shell {
  padding: 0 0 72px;
}

.article-hero {
  min-height: 58svh;
  padding: calc(var(--nav-h) + 48px) var(--pad-x) clamp(54px, 7vw, 86px);
  background: var(--g900);
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.article-hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -45% 32%;
  height: 72%;
  background: radial-gradient(ellipse, rgba(74,171,98,.16) 0%, transparent 68%);
  pointer-events: none;
}

.article-hero > div,
.article-hero > aside {
  position: relative;
  z-index: 1;
}

.article-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .72fr);
  gap: clamp(28px, 5vw, 72px);
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(74,171,98,.32);
  background: rgba(74,171,98,.08);
  color: var(--g300);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.article-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g300);
}

.article-title {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 300;
  line-height: .98;
  color: rgba(255,255,255,.92);
  margin-bottom: 24px;
  max-width: 920px;
}

.article-dek {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.82;
  color: rgba(255,255,255,.78);
  font-weight: 500;
  max-width: 66ch;
}

.article-meta-card {
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.article-meta-list {
  display: grid;
  gap: 16px;
}

.article-meta-item span {
  display: block;
}

.article-meta-label {
  margin-bottom: 6px;
  color: var(--g300);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.article-meta-value {
  color: rgba(255,255,255,.86);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}

.article-cover {
  max-width: 1120px;
  margin: -42px auto 52px;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.12);
  background: var(--stone);
  position: relative;
  z-index: 2;
  box-shadow: 0 24px 72px rgba(10,31,16,.16);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}

.article-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, var(--article-max)) minmax(260px, 320px);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}

.article-body {
  min-width: 0;
}

.article-body p,
.article-body li {
  color: rgba(28,28,26,.88);
  font-size: 18px;
  line-height: 1.9;
}

.article-body p + p,
.article-body ul + p,
.article-body h2 + p,
.article-body h3 + p,
.article-body p + h2,
.article-body p + h3,
.article-body ul + h2 {
  margin-top: 18px;
}

.article-body h2 {
  margin-top: 38px;
  color: var(--g900);
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.06;
  font-weight: 400;
}

.article-body h3 {
  margin-top: 28px;
  color: var(--g800);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.article-body ul {
  margin-top: 18px;
  padding-left: 22px;
}

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

.article-body strong {
  color: var(--g900);
  font-weight: 700;
}

.article-note {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--g400);
  border-radius: var(--r-lg);
  background: var(--g050);
}

.article-note p {
  color: var(--g900);
  font-size: 17px;
  line-height: 1.82;
}

.article-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: calc(var(--nav-h) + 22px);
}

.article-box {
  background: var(--white);
  border: 1px solid var(--line2);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: border-color .25s, box-shadow .25s;
}

.article-box:hover {
  border-color: var(--line);
  box-shadow: 0 12px 36px rgba(18,57,30,.06);
}

.article-box h3 {
  margin: 0 0 12px;
  color: var(--g900);
  font-size: 15px;
  font-weight: 700;
}

.article-box p,
.article-box li,
.article-box a {
  color: var(--smoke);
  font-size: 15px;
  line-height: 1.72;
}

.article-box ul {
  padding-left: 18px;
}

.article-box a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-box a:hover {
  color: var(--g700);
}

.article-related {
  max-width: 1120px;
  margin: 72px auto 0;
  padding: 0 var(--pad-x);
}

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

.article-related-card {
  display: block;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line2);
  transition: transform .25s var(--smooth), box-shadow .25s var(--smooth), border-color .25s;
}

.article-related-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 16px 44px rgba(18,57,30,.08);
}

.article-related-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--g500);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-related-title {
  color: var(--g900);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.08;
  margin-bottom: 10px;
  font-weight: 500;
}

.article-related-copy {
  color: var(--smoke);
  font-size: 15px;
  line-height: 1.7;
}

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

  .article-sidebar {
    position: static;
  }

  .article-cover {
    margin-top: -28px;
  }
}

@media (max-width: 640px) {
  .article-hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 38px);
  }

  .article-cover {
    margin-bottom: 40px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .article-cover img {
    aspect-ratio: 16 / 10;
  }

  .article-body p,
  .article-body li {
    font-size: 17px;
  }

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

    /* ═══════════════════════════════════════════════════════
       ACESSIBILIDADE
    ═══════════════════════════════════════════════════════ */
    :focus-visible {
      outline: 2px solid var(--g400);
      outline-offset: 3px;
      border-radius: 4px;
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
      }
      #dot, #ring { display: none; }
      body { cursor: auto; }
    }

    /* contraste e legibilidade do rodapé (alinhado ao index) */
    .footer-desc { color: rgba(255,255,255,.55); }
    .foot-col-h { font-size: 11px; color: rgba(255,255,255,.5); }
    .foot-link { color: rgba(255,255,255,.62); }
    .foot-copy { font-size: 12px; color: rgba(255,255,255,.5); }
    .foot-kicker { font-size: 11px; color: rgba(255,255,255,.45); }
