/* ==========================================================================
   VetTime Wissen — Article styles (shared across /wissen/*.html)
   Editorial rhythm: serif display + humanist sans body.
   ========================================================================== */

.article-page {
  padding: 40px 0 96px;
  background:
    radial-gradient(1200px 400px at 50% -100px, hsl(239 84% 67% / 0.06), transparent 70%),
    var(--bg, #fff);
}

/* Reading progress bar */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: transparent; z-index: 60; pointer-events: none;
}
.read-progress .bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, hsl(239 84% 67%), hsl(260 80% 62%));
  transition: width 0.08s linear;
  box-shadow: 0 1px 8px hsl(239 84% 67% / 0.35);
}

/* Back link */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--mut-fg); text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.15s, transform 0.15s;
}
.back-link:hover { color: var(--pri); transform: translateX(-2px); }

/* Meta strip */
.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  font-size: 13px; color: var(--mut-fg); margin-bottom: 22px;
}
.article-meta .cat {
  display: inline-flex; align-items: center; gap: 6px;
  background: hsl(239 84% 67% / 0.09);
  color: var(--pri);
  padding: 5px 12px; border-radius: 999px;
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.02em;
  border: 1px solid hsl(239 84% 67% / 0.18);
}
.article-meta .cat::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.article-meta .dot { opacity: 0.35; }

/* Headline: serif display */
.article h1 {
  font-family: "Fraunces", "Iowan Old Style", Georgia, serif;
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 54px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 22px;
  color: var(--fg);
  font-variation-settings: "opsz" 96, "SOFT" 30;
}

/* Lede paragraph with drop cap */
.article .lede {
  font-size: clamp(18px, 1.5vw, 20px);
  color: var(--fg);
  line-height: 1.6;
  max-width: 66ch;
  margin: 0;
  font-weight: 400;
}
.article .lede::first-letter {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 3.6em;
  float: left;
  line-height: 0.9;
  padding: 6px 12px 0 0;
  color: var(--pri);
  font-variation-settings: "opsz" 144;
}

/* Divider between lede and body */
.article-body {
  max-width: 66ch;
  margin-top: 44px;
  font-size: 17px;
  line-height: 1.75;
  color: hsl(220 15% 20%);
  position: relative;
}
.article-body::before {
  content: "";
  display: block;
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--pri), transparent);
  margin: 0 0 32px;
  border-radius: 2px;
}

.article-body p { margin: 0 0 22px; }

.article-body h2 {
  font-family: "Fraunces", "Iowan Old Style", Georgia, serif;
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 52px 0 18px;
  color: var(--fg);
  font-variation-settings: "opsz" 60, "SOFT" 20;
}
.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 36px 0 12px;
  color: var(--fg);
}

.article-body strong { font-weight: 600; color: var(--fg); }
.article-body em { font-style: italic; }

.article-body a {
  color: var(--pri);
  text-decoration: underline;
  text-decoration-color: hsl(239 84% 67% / 0.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.article-body a:hover { text-decoration-color: var(--pri); }

.article-body ul, .article-body ol {
  margin: 0 0 22px; padding-left: 22px;
}
.article-body li { margin-bottom: 8px; }

.article-body blockquote {
  border-left: 3px solid var(--pri);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  font-style: italic;
  color: hsl(220 15% 25%);
  font-size: 1.05em;
}

.article-body hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bd), transparent);
  margin: 48px 0 28px;
}

.article-body .src-note {
  font-size: 13px;
  color: var(--mut-fg);
  line-height: 1.65;
  padding: 18px 20px;
  background: hsl(220 25% 97%);
  border-radius: 10px;
  border: 1px solid var(--bd);
}
.article-body .src-note em { font-style: normal; }

/* CTA card */
.article-cta {
  margin-top: 64px;
  padding: 32px 36px;
  background:
    radial-gradient(600px 200px at 90% 0%, hsl(260 90% 78% / 0.35), transparent 60%),
    linear-gradient(135deg, hsl(239 84% 62%) 0%, hsl(255 78% 58%) 100%);
  border-radius: 20px;
  color: white;
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
  box-shadow: 0 20px 40px -20px hsl(239 84% 50% / 0.4);
  position: relative;
  overflow: hidden;
}
.article-cta::after {
  content: "";
  position: absolute; right: -40px; bottom: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, hsl(0 0% 100% / 0.12), transparent 70%);
  pointer-events: none;
}
.article-cta > div { max-width: 44ch; position: relative; z-index: 1; }
.article-cta h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.article-cta p { margin: 8px 0 0; font-size: 14.5px; opacity: 0.92; line-height: 1.55; }
.article-cta .btn {
  background: white; color: var(--pri); border: 0;
  padding: 13px 22px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  text-decoration: none; white-space: nowrap;
  position: relative; z-index: 1;
  box-shadow: 0 8px 20px -8px hsl(0 0% 0% / 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.article-cta .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px hsl(0 0% 0% / 0.3);
}

/* Related */
.related {
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--bd);
  max-width: none;
}
.related h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mut-fg);
  font-weight: 600;
  margin: 0 0 20px;
}
.related-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  background: white;
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  display: flex; flex-direction: column; gap: 8px;
}
.related-card:hover {
  border-color: hsl(239 84% 67% / 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -16px hsl(239 84% 50% / 0.25);
}
.related-card .rc-cat {
  font-size: 11px;
  color: var(--pri);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.related-card .rc-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fg);
}

@media (max-width: 640px) {
  .article-page { padding: 24px 0 64px; }
  .article .lede::first-letter { font-size: 3em; padding: 4px 8px 0 0; }
  .article-cta { padding: 24px; }
  .article-body { font-size: 16.5px; }
}
