/* DIALOG REVIEW — HBR-style article stylesheet v2 */

/* ─── CATEGORY COLOR TOKENS ───────────────────────────── */
:root {
  --hbr: #A11D34;  --hbr-dark: #7A1428;
  --cat: var(--hbr);

  --ink: #222;     --ink-soft: #444;
  --paper: #FFFFFF; --grey: #F3F2EF; --grey-soft: #FAF9F6;
  --mut: #666;     --mut-2: #999;    --line: #D6D6D6;
  --gold: #B68A35;

  /* 8px rhythm */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px;
}

body[data-cat="money"]  { --cat: #A11D34 }
body[data-cat="school"] { --cat: #1A5C3A }
body[data-cat="docs"]   { --cat: #3D4B5C }
body[data-cat="living"] { --cat: #8B4513 }
body[data-cat="entry"]  { --cat: #2B4F72 }

/* ─── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Inter', sans-serif; font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a {
  color: var(--cat); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--cat) 30%, transparent);
  transition: color .2s, border-color .2s;
}
a:hover { color: var(--hbr-dark); border-bottom-color: var(--cat) }

/* Animated underline — body text links only */
.body a {
  border-bottom: none;
  background:
    linear-gradient(var(--cat), var(--cat))
    left bottom / 0% 1px no-repeat;
  transition: background-size .28s ease, color .2s;
  padding-bottom: 1px;
}
.body a:hover {
  color: var(--cat);
  background-size: 100% 1px;
}

/* ─── READING PROGRESS BAR ────────────────────────────── */
.read-progress {
  position: fixed; top: 0; left: 0; z-index: 999;
  width: var(--pct, 0%); height: 3px;
  background: var(--cat); pointer-events: none;
  transition: width .1s linear;
}

/* ─── TOP BAR ─────────────────────────────────────────── */
.top {
  background: var(--cat); color: #fff;
  padding: 10px 0;
  font-family: 'Inter', sans-serif; font-size: 11px;
  letter-spacing: .24em; text-transform: uppercase;
  text-align: center; font-weight: 600;
}

/* ─── HEADER ──────────────────────────────────────────── */
.head {
  max-width: 1100px; margin: 0 auto; padding: 18px 28px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
}
.head .logo {
  font-family: 'Playfair Display', serif; font-weight: 800;
  font-size: 24px; color: var(--ink); letter-spacing: -.01em;
  text-decoration: none; border: none;
}
.head .logo a { color: inherit; text-decoration: none; border: none }
.head .nav { font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: .2em }
.head .nav a { color: var(--mut); border: none; margin-left: 18px }
.head .nav a:hover { color: var(--ink) }

/* ─── HERO ────────────────────────────────────────────── */
.hero { background: var(--grey); padding: 80px 28px }
.hero .wrap { max-width: 880px; margin: 0 auto }
.tag {
  display: inline-block; background: var(--cat); color: #fff;
  padding: 5px 12px; font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: var(--s3);
}
.hero h1 {
  font-family: 'Playfair Display', serif; font-weight: 800;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.08;
  margin: 0 0 20px; color: var(--ink); max-width: 780px; letter-spacing: -.01em;
}
.hero .deck {
  font-size: 21px; font-weight: 400; color: #444;
  max-width: 680px; line-height: 1.5; margin: 0 0 var(--s3);
}
.hero .meta {
  font-size: 12px; color: var(--mut);
  text-transform: uppercase; letter-spacing: .16em;
}
.hero .meta strong { color: var(--ink); font-weight: 600 }

/* ─── ARTICLE LAYOUT (asymmetric grid) ───────────────── */
.art-wrap {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0 48px;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 28px;
  align-items: start;
}

/* ─── SIDEBAR ─────────────────────────────────────────── */
.art-sidebar {
  position: sticky; top: var(--s3);
  padding-top: var(--s5);
  font-family: 'Inter', sans-serif;
}
.art-sidebar .sb-cat {
  display: block; background: var(--cat); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; padding: 4px 10px;
  margin-bottom: var(--s2);
}
.art-sidebar .sb-meta {
  font-size: 11px; color: var(--mut); line-height: 1.9;
  border-bottom: 1px solid var(--line); padding-bottom: var(--s2);
  margin-bottom: var(--s3);
}
.art-sidebar .sb-nav-title {
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--mut-2);
  margin-bottom: var(--s1);
}
.art-sidebar .sb-nav { list-style: none; padding: 0; margin: 0 }
.art-sidebar .sb-nav a {
  display: block; font-size: 12px; color: var(--mut);
  border: none; padding: 5px 0 5px var(--s2);
  border-left: 2px solid transparent;
  transition: .2s; line-height: 1.35;
}
.art-sidebar .sb-nav a:hover,
.art-sidebar .sb-nav a.active {
  color: var(--cat); border-left-color: var(--cat);
}

/* ─── BODY ────────────────────────────────────────────── */
.body {
  max-width: 68ch; margin: 0 auto;
  padding: var(--s5) 28px var(--s3);
}
.art-wrap .body {
  max-width: none; margin: 0;
  padding-left: 0; padding-right: 0;
}
.body p { margin: 0 0 var(--s2) }
.body p strong { color: var(--cat); font-weight: 600 }

/* Dropcap — first paragraph */
.body > p:first-of-type { font-size: 19px }
.body > p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-weight: 800; font-size: 5.2em;
  color: var(--cat); float: left;
  line-height: .78; margin: .07em .1em 0 0;
}

/* ─── EXECUTIVE SUMMARY ───────────────────────────────── */
.summary {
  background: var(--grey-soft); border-left: 4px solid var(--cat);
  padding: var(--s3) 28px; margin: 0 0 var(--s4);
}
.summary h4 {
  margin: 0 0 var(--s2); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--cat);
}
.summary p, .summary ul { margin: 0; font-size: 16px; color: #333 }
.summary ul { padding-left: 0; list-style: none }
.summary li { margin-bottom: var(--s1); line-height: 1.55 }
.summary li strong { color: var(--ink); font-weight: 600 }

/* ─── HEADINGS ────────────────────────────────────────── */
.body h2 {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 28px; color: var(--ink);
  margin: var(--s4) 0 var(--s2); line-height: 1.2;
  display: flex; align-items: center; gap: 10px;
}
.body h2 img {
  width: 20px !important; height: 20px !important;
  flex-shrink: 0; opacity: .72;
}

/* ─── PULL QUOTE ──────────────────────────────────────── */
.pull {
  margin: var(--s4) -20px; padding: 40px 28px 32px;
  background: var(--ink); color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 500; font-size: 24px; font-style: italic;
  line-height: 1.38; position: relative; overflow: hidden;
}
.pull::before {
  content: "\201C";
  position: absolute; left: 12px; top: -44px;
  font-family: 'Playfair Display', serif; font-style: normal;
  font-size: 220px; color: #fff; line-height: 1;
  opacity: .06; pointer-events: none; user-select: none;
}
.pull span { display: block; position: relative }

/* ─── NUMBERED STEPS ──────────────────────────────────── */
.steps { counter-reset: s; list-style: none; padding: 0; margin: var(--s3) 0 }
.steps li {
  counter-increment: s; padding: 18px 0 18px 60px;
  border-top: 1px solid var(--line); position: relative; line-height: 1.55;
}
.steps li:last-child { border-bottom: 1px solid var(--line) }
.steps li::before {
  content: "0" counter(s); position: absolute; left: 0; top: 18px;
  font-family: 'Playfair Display', serif; font-weight: 800;
  font-size: 24px; color: var(--cat);
}
.steps li strong {
  color: var(--ink); font-weight: 600;
  display: block; margin-bottom: 4px; font-size: 17px;
}

/* ─── SOURCES ─────────────────────────────────────────── */
.sources {
  font-size: 13px; color: var(--mut); font-style: italic;
  margin: var(--s4) 0 0; padding-top: var(--s2);
  border-top: 1px solid var(--line);
}

/* ─── CTA ─────────────────────────────────────────────── */
.cta {
  margin-top: var(--s4); padding: var(--s4);
  background: var(--grey); text-align: center;
}
.cta p { margin: 0 0 14px; color: var(--ink); font-weight: 500 }
.cta a {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cat); color: #fff; padding: 14px 28px;
  text-decoration: none; font-weight: 600; font-size: 14px;
  letter-spacing: .06em; border: none; transition: background .2s;
}
.cta a:hover { background: var(--hbr-dark) }
.cta a::before {
  content: "";
  display: inline-block; width: 18px; height: 18px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.562 8.248-1.97 9.28c-.145.658-.537.818-1.084.508l-3-2.21-1.447 1.394c-.16.16-.295.295-.605.295l.213-3.053 5.56-5.023c.242-.213-.054-.333-.373-.12l-6.871 4.326-2.962-.924c-.643-.204-.657-.643.136-.953l11.57-4.461c.537-.194 1.006.131.833.94z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ─── RELATED ─────────────────────────────────────────── */
.related {
  max-width: 1100px; margin: var(--s5) auto 0;
  padding: 48px 28px; border-top: 3px solid var(--cat);
}
.related h3 {
  font-family: 'Playfair Display', serif; font-weight: 800;
  font-size: 24px; color: var(--ink); margin: 0 0 var(--s3);
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.related-card {
  display: block; padding: 22px;
  background: var(--grey-soft); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.related-card:hover {
  background: #fff; border-color: var(--cat); color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.related-card .tg {
  font-size: 10px; color: var(--cat); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px;
}
.related-card h4 {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 17px; line-height: 1.3; margin: 0; color: var(--ink);
}

/* ─── FOOTER ──────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line); padding: var(--s3) 28px;
  text-align: center; font-size: 11px; color: var(--mut);
  text-transform: uppercase; letter-spacing: .2em; margin-top: 60px;
}

/* ─── SCROLL FADE-UP ──────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}
.fade-up.visible { opacity: 1; transform: none }

/* ─── ARCHIVE INDEX PAGE ──────────────────────────────── */
.lead-issue {
  max-width: 1100px; margin: 0 auto; padding: var(--s5) 28px var(--s3);
}
.lead-issue .label {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--hbr); margin-bottom: var(--s2);
}
.lead-issue h1 {
  font-family: 'Playfair Display', serif; font-weight: 800;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.05;
  margin: 0 0 18px; letter-spacing: -.02em;
}
.lead-issue p.deck {
  font-size: 20px; color: #444; max-width: 760px;
  line-height: 1.5; margin: 0 0 var(--s3);
}
.lead-issue .meta {
  font-family: 'Inter', sans-serif; font-size: 12px;
  color: var(--mut); text-transform: uppercase; letter-spacing: .18em;
}

.issue-grid {
  max-width: 1100px; margin: 0 auto;
  padding: var(--s3) 28px 80px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px;
}

.issue {
  display: block; text-decoration: none; color: var(--ink);
  border: none; background: #fff;
  border-top: 4px solid var(--cat);
  padding: 28px 24px; transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.issue::after {
  content: attr(data-n);
  position: absolute; right: -8px; bottom: -20px;
  font-family: 'Playfair Display', serif; font-weight: 800;
  font-size: 96px; color: var(--cat); line-height: 1;
  opacity: .06; pointer-events: none; user-select: none;
}
.issue:hover {
  background: var(--grey-soft); color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.issue .num {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 11px;
  color: var(--mut); letter-spacing: .18em; margin-bottom: 10px;
  text-transform: uppercase;
}
.issue .cat {
  display: inline-block; background: var(--cat); color: #fff;
  padding: 3px 8px; font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
}
.issue h2 {
  font-family: 'Playfair Display', serif; font-weight: 800;
  font-size: 22px; line-height: 1.22; margin: 0 0 12px; color: var(--ink);
}
.issue p { margin: 0 0 16px; font-size: 15px; color: #444; line-height: 1.55 }
.issue .more {
  font-family: 'Inter', sans-serif; font-size: 12px;
  font-weight: 600; color: var(--cat); letter-spacing: .06em;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .art-wrap { grid-template-columns: 1fr }
  .art-sidebar { display: none }
}

@media (max-width: 640px) {
  .hero { padding: 56px 24px }
  .body { padding: var(--s4) 24px 28px }
  .body h2 { font-size: 24px }
  .pull { margin: var(--s3) 0; padding: var(--s3); font-size: 20px }
  .pull::before { font-size: 140px; top: -24px }
  .steps li { padding-left: 48px }
  .steps li::before { font-size: 20px }
  .art-wrap { padding: 0 24px }
}
