/* Progress Wealth Management — editorial stylesheet */

:root {
  --bg: #FAF8F5;
  --bg-alt: #F2EFE8;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --rule: #DCD7CC;
  --accent: #0F4C3A;
  --accent-soft: #2E6B57;
  --link: #0F4C3A;
  --serif: Georgia, "Iowan Old Style", "Apple Garamond", Baskerville, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--measure); margin: 0 auto; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  padding: 22px 0;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-text { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.brand-sub { display: block; font-family: var(--sans); font-size: 11px; font-weight: 400; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; }

.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--rule);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 600;
  max-width: 22ch;
}
.hero .lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
}

/* Article header */
.article-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 14px;
}
.article-header h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  font-weight: 600;
  max-width: 28ch;
}
.article-meta {
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Prose */
.prose h2 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
  font-weight: 600;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  margin: 36px 0 10px;
  font-weight: 600;
}
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-soft); }
.prose strong { font-weight: 600; }
.prose blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 40px 0; }

.callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15.5px;
}
.callout p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
th { background: var(--bg-alt); font-weight: 600; }

/* Cards / guide grid */
.section { padding: 64px 0; }
.section-title {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  font-weight: 600;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.guide-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.guide-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide-card .eyebrow { margin-bottom: 8px; }
.guide-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 8px;
  font-weight: 600;
}
.guide-card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

/* Footer */
.site-footer {
  margin-top: 80px;
  padding: 40px 0 48px;
  border-top: 1px solid var(--rule);
  background: var(--bg-alt);
  font-size: 14px;
  color: var(--ink-soft);
}
.site-footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer a { color: var(--ink-soft); text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .disclaimer { max-width: 60ch; font-size: 12.5px; line-height: 1.55; margin-top: 14px; }

/* TOC */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 18px 22px;
  margin: 28px 0 36px;
  font-size: 15px;
}
.toc strong { display: block; font-family: var(--serif); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; color: var(--accent); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* Related */
.related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.related h2 { font-family: var(--serif); font-size: 20px; margin: 0 0 18px; font-weight: 600; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.related li:last-child { border-bottom: none; }
.related a { color: var(--ink); text-decoration: none; font-weight: 500; }
.related a:hover { color: var(--accent); text-decoration: underline; }

/* 404 */
.notfound {
  text-align: center;
  padding: 120px 0;
}
.notfound h1 {
  font-family: var(--serif);
  font-size: 72px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

/* Tablet */
@media (max-width: 800px) {
  .wrap { padding: 0 20px; }
  .site-header { padding: 16px 0; }
  .site-header-inner { gap: 14px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-text { font-size: 17px; }
  .brand-sub { font-size: 10px; letter-spacing: 0.1em; }
  .site-nav { gap: 16px; }
  .site-nav a { padding: 8px 0; font-size: 14px; }
  .hero { padding: 48px 0 36px; }
  .hero .lede { font-size: 18px; }
  .section { padding: 48px 0; }
  .guide-grid { grid-template-columns: 1fr; gap: 18px; }
  .guide-card { padding: 20px; }
}

/* Mobile */
@media (max-width: 560px) {
  body { font-size: 16.5px; line-height: 1.6; }
  .wrap { padding: 0 18px; }
  .site-header { padding: 14px 0; }
  .site-header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .brand { gap: 10px; }
  .brand-text { font-size: 16px; }
  .brand-sub { display: none; }
  .site-nav { gap: 18px; width: 100%; }
  .site-nav a { padding: 6px 0; min-height: 36px; display: inline-flex; align-items: center; }
  .hero { padding: 36px 0 30px; }
  .hero h1 { font-size: 30px; line-height: 1.18; }
  .hero .lede { font-size: 16.5px; line-height: 1.55; }
  .article-header { padding: 30px 0 20px; margin-bottom: 24px; }
  .article-header h1 { font-size: 27px; line-height: 1.2; }
  .article-meta { flex-direction: column; gap: 4px; font-size: 13px; }
  .section { padding: 36px 0; }
  .section-title { font-size: 22px; }
  .prose h2 { font-size: 22px; margin: 36px 0 12px; }
  .prose h3 { font-size: 18px; margin: 28px 0 8px; }
  .prose ul, .prose ol { padding-left: 20px; }
  .callout { padding: 14px 16px; font-size: 15px; }
  .toc { padding: 14px 16px; }
  .guide-card h3 { font-size: 17.5px; }
  .related h2 { font-size: 18px; }
  .site-footer { margin-top: 48px; padding: 28px 0 36px; }
  .site-footer-inner { flex-direction: column; gap: 14px; }
  .site-footer-inner > div[style*="text-align:right"] { text-align: left !important; }
  .site-footer a { display: inline-block; margin: 0 14px 8px 0; padding: 4px 0; }
  .site-footer .disclaimer { font-size: 12px; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  table th, table td { white-space: normal; }
  .notfound { padding: 80px 0; }
  .notfound h1 { font-size: 56px; }
}

/* Very small phones */
@media (max-width: 360px) {
  .wrap { padding: 0 14px; }
  .hero h1 { font-size: 26px; }
  .article-header h1 { font-size: 24px; }
}
