/* Article pages unified CSS - DARK VERSION */
/* Green gradient background like homepage */
/* Use with site.css */

/* ===== ARTICLE-SPECIFIC VARIABLES ===== */
:root {
  --readw: 680px;
  --art-maxw: 820px;
}

/* ===== ARTICLE CONTAINER - DARK GRADIENT ===== */
.article {
  background: linear-gradient(165deg, var(--ink-deep) 0%, var(--ink) 40%, var(--teal) 100%);
  padding: 80px 28px 120px;
  position: relative;
  overflow: hidden;
}

/* Grain texture overlay */
.article::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ===== ARTICLE HEADER ===== */
.article__header {
  max-width: var(--art-maxw);
  margin: 0 auto 80px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.article__meta {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  opacity: 0.8;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.article__meta-sep {
  width: 1px;
  height: 12px;
  background: var(--mint);
  opacity: 0.4;
}

.article__title {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 96, "SOFT" 35;
  font-weight: 420;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-bottom: 28px;
}

.article__subtitle {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 24, "SOFT" 55;
  font-weight: 360;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--mint-soft);
  opacity: 0.95;
  max-width: 720px;
  margin: 0 auto;
}

.article__byline {
  margin-top: 32px;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--mint);
}

/* ===== ARTICLE BODY ===== */
.article__body {
  max-width: var(--readw);
  margin: 0 auto;
  font-family: var(--ff-serif);
  font-size: 18px;
  line-height: 1.75;
  color: var(--cream);
  position: relative;
  z-index: 2;
}

/* Drop cap on first paragraph */
.article__body > p:first-of-type::first-letter {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 144, "SOFT" 25;
  font-weight: 450;
  font-size: 68px;
  line-height: 0.85;
  float: left;
  margin: 8px 14px 0 0;
  color: var(--mint);
}

.article__body p {
  margin-bottom: 24px;
}

.article__body em {
  font-style: italic;
  color: var(--mint);
}

.article__body strong {
  font-weight: 600;
  color: var(--mint-soft);
}

.article__body a {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-color: rgba(168, 234, 234, 0.3);
  text-underline-offset: 3px;
  transition: all 0.2s;
}

.article__body a:hover {
  text-decoration-color: var(--mint);
  color: var(--mint-soft);
}

/* Headings */
.article__body h2 {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 72, "SOFT" 35;
  font-weight: 440;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--mint-soft);
  margin: 64px 0 28px;
}

.article__body h3 {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 48, "SOFT" 40;
  font-weight: 420;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--mint);
  margin: 48px 0 20px;
}

/* Lists */
.article__body ul,
.article__body ol {
  margin: 28px 0;
  padding-left: 32px;
}

.article__body li {
  margin-bottom: 14px;
  line-height: 1.7;
}

/* Blockquotes */
.article__body blockquote {
  border-left: 3px solid var(--mint);
  padding-left: 32px;
  margin: 48px 0;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.6;
  color: var(--mint-soft);
  opacity: 0.9;
}

/* ===== SPECIAL COMPONENTS ===== */

/* Pullquote (citation mise en avant) */
.pullquote {
  margin: 60px 0;
  padding: 0 40px;
  text-align: center;
}

.pullquote__text {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 60, "SOFT" 55;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.35;
  color: var(--mint-soft);
  font-style: italic;
}

.pullquote__attribution {
  margin-top: 16px;
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mint);
  opacity: 0.7;
}

/* Highlight box (important points - mint on dark teal) */
.highlight-box {
  background: rgba(74, 139, 146, 0.2);
  border-left: 3px solid var(--mint);
  padding: 28px 32px;
  margin: 40px 0;
  border-radius: 4px;
}

.highlight-box p {
  margin-bottom: 16px;
  color: var(--mint-soft);
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

.highlight-box strong {
  color: var(--mint);
}

/* Alert box (warnings - darker red on dark bg) */
.alert-box {
  background: rgba(178, 34, 34, 0.15);
  border-left: 3px solid #FF6B6B;
  padding: 28px 32px;
  margin: 40px 0;
  border-radius: 4px;
}

.alert-box p {
  margin-bottom: 16px;
  color: var(--cream);
}

.alert-box p:last-child {
  margin-bottom: 0;
}

/* Stat box (key numbers - light on dark) */
.stat-box {
  background: rgba(13, 46, 49, 0.6);
  border: 2px solid rgba(168, 234, 234, 0.3);
  padding: 28px;
  margin: 40px 0;
  border-radius: 8px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.stat-box__number {
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 500;
  font-size: 56px;
  color: var(--mint);
  line-height: 1;
  margin-bottom: 16px;
}

.stat-box__label {
  font-family: var(--ff-sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--mint-soft);
  opacity: 0.9;
}

/* ===== FOOTNOTES ===== */
.footnote {
  font-size: 14px;
  vertical-align: super;
  color: var(--mint);
  text-decoration: none;
  padding: 0 2px;
}

.footnote:hover {
  text-decoration: underline;
}

.footnotes {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(168, 234, 234, 0.2);
  font-size: 15px;
}

.footnotes__title {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  opacity: 0.7;
  margin-bottom: 24px;
}

.footnotes__item {
  margin-bottom: 16px;
  line-height: 1.6;
  color: var(--mint-soft);
  opacity: 0.85;
}

/* ===== ARTICLE FOOTER (call to action) ===== */
.article-footer {
  background: var(--ink-deep);
  color: var(--mint);
  padding: 60px 40px;
  text-align: center;
  margin-top: 0;
}

.article-footer__inner {
  max-width: 680px;
  margin: 0 auto;
}

.article-footer__divider {
  width: 60px;
  height: 1px;
  background: var(--mint);
  opacity: 0.3;
  margin: 0 auto 32px;
}

.article-footer__text {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mint-soft);
  opacity: 0.85;
  margin-bottom: 32px;
}

.article-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid rgba(168, 234, 234, 0.3);
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mint);
  transition: all 0.3s;
  text-decoration: none;
}

.article-footer__cta:hover {
  background: var(--mint);
  color: var(--ink-deep);
  border-color: var(--mint);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .article {
    padding: 60px 24px 100px;
  }

  .article__header {
    margin-bottom: 60px;
  }

  .article__title {
    font-size: 36px;
  }

  .article__subtitle {
    font-size: 18px;
  }

  .article__body {
    font-size: 17px;
  }

  .article__body > p:first-of-type::first-letter {
    font-size: 54px;
  }

  .article__body h2 {
    font-size: 28px;
    margin: 52px 0 24px;
  }

  .article__body h3 {
    font-size: 22px;
    margin: 40px 0 18px;
  }

  .pullquote {
    padding: 0 20px;
  }

  .pullquote__text {
    font-size: 22px;
  }

  .stat-box__number {
    font-size: 42px;
  }

  .highlight-box,
  .alert-box {
    padding: 24px 28px;
  }

  .article-footer {
    padding: 50px 24px;
  }
}

@media (max-width: 540px) {
  .article {
    padding: 50px 20px 80px;
  }

  .article__meta {
    font-size: 10px;
    gap: 12px;
  }

  .article__title {
    font-size: 32px;
  }

  .article__subtitle {
    font-size: 17px;
  }

  .article__body {
    font-size: 16px;
  }

  .article__body > p:first-of-type::first-letter {
    font-size: 48px;
  }

  .article__body h2 {
    font-size: 24px;
  }

  .article__body h3 {
    font-size: 20px;
  }

  .pullquote__text {
    font-size: 20px;
  }

  .stat-box__number {
    font-size: 36px;
  }
}
