/*
  blog.css: article page styles for DigiDoe Insights
  Uses dd-shell.css custom properties; never redefines them.
  Linked by web/blog/<slug>.html pages only.
*/

/* Draft banner */
.draft-banner {
  background: #FFF3CD;
  border: 1.5px solid #E6C345;
  border-radius: 8px;
  padding: .85rem 1.25rem;
  margin-bottom: 2rem;
  font-size: var(--s--1);
  color: #7A5C00;
  display: flex;
  gap: .7rem;
  align-items: flex-start;
}
.draft-banner strong { color: #5C4200; }

/* Article layout */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Article hero */
.art-hero { padding: 2rem 0 0; }
.art-cat {
  display: inline-block;
  font-size: var(--s--1);
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .9rem;
}
.art-hero h1 {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem);
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 1.1rem;
}
.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  font-size: var(--s--1);
  color: var(--faint);
  margin-bottom: 1.6rem;
  font-family: 'Hanken Grotesk', sans-serif;
}
.art-meta .byline { color: var(--soft); }
.art-hero-img {
  display: block;
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 3/2;
  object-fit: cover;
  box-shadow: 0 16px 40px -20px rgba(20,20,24,.28);
  margin-bottom: 2.5rem;
}

/* Article body typography */
.art-body {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1rem, .97rem + .18vw, 1.1rem);
  line-height: 1.72;
  color: var(--soft);
}
.art-body p { margin: 0 0 1.25em; }
.art-body h2 {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem);
  font-weight: 700;
  color: var(--ink);
  margin: 2.2em 0 .55em;
  line-height: 1.28;
}
.art-body h3 {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(1.05rem, .98rem + .3vw, 1.22rem);
  font-weight: 600;
  color: var(--ink);
  margin: 1.8em 0 .4em;
  line-height: 1.35;
}
.art-body ul,
.art-body ol {
  padding-left: 1.5em;
  margin: 0 0 1.25em;
}
.art-body li { margin-bottom: .4em; }
.art-body strong { color: var(--ink); font-weight: 600; }
.art-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.art-body a:hover { color: var(--brand-deep); }
.art-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* Callout block */
.callout {
  background: var(--lav);
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  font-size: var(--s--1);
  color: var(--soft);
}
.callout strong { color: var(--ink); }

/* Related insights */
.related {
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  padding-top: 2rem;
}
.related h2 {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem);
  color: var(--ink);
  margin: 0 0 1.2rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.related-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s;
}
.related-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px -8px rgba(232,117,42,.22);
}
.related-card .rcat {
  font-size: .76rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .4rem;
  display: block;
}
.related-card h3 {
  font-family: 'Spectral', Georgia, serif;
  font-size: .97rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 .3rem;
}
.related-card p {
  font-size: .82rem;
  color: var(--faint);
  margin: 0;
  line-height: 1.5;
}

/* Article CTA strip */
.art-cta {
  background: var(--surface2);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  margin-top: 3rem;
  text-align: center;
}
.art-cta h2 {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  color: var(--ink);
  margin: 0 0 .6rem;
}
.art-cta p {
  font-size: var(--s--1);
  color: var(--soft);
  margin: 0 0 1.2rem;
}

@media (max-width: 600px) {
  .article-wrap { padding: 1.5rem 1rem 3rem; }
  .art-hero { padding-top: 1.2rem; }
}


/* v2 (2026-06-23): compact article hero, begin reading in the first fold,
   reading-time pill at the top, draft notice removed (markup also deleted) */
.draft-banner{display:none}
.article-wrap{padding-top:1.4rem}
.art-hero{padding-top:.4rem;display:flex;flex-direction:column}
.art-cat{order:0;margin-bottom:.45rem}
.art-meta{order:1;margin:0 0 .85rem;gap:.45rem .8rem;align-items:center}
.art-meta .byline{display:none}
.art-meta span:nth-child(2){display:none}   /* hide the date placeholder; reading-time stays */
.art-meta span:last-child{font-weight:700;color:var(--brand-ink);background:var(--lav);border-radius:100px;padding:.2rem .72rem;font-size:.8rem}
.art-hero h1{order:2;margin:0 0 .85rem;font-size:clamp(1.5rem,1.2rem + 1.5vw,2.05rem)}
.art-hero-img{order:3;aspect-ratio:auto;max-height:215px;margin-bottom:1.4rem;box-shadow:0 14px 34px -20px rgba(20,20,24,.26)}
