/* The Accident Economy — accident.damoney.site
   Design tokens copied from damoney.site (Dec 2, 2026 AdSense revamp).
   WCAG 2.2 AA: every text/background pair below was computed on damoney.site
   and exceeds 4.5:1. No overlay widgets. */

:root {
  --bg: #f3f6ef;
  --surface: #ffffff;
  --surface-2: #eaf0e2;
  --ink: #14342a;        /* 12.38:1 on --bg */
  --ink-2: #3d554a;      /* 7.41:1 on --bg */
  --green: #0c4a30;      /* 9.44:1 on --bg (links) */
  --green-deep: #083626;
  --gold: #7c5a06;       /* 5.79:1 on --bg */
  --gold-solid: #e9bc4f;
  --gold-ink: #231a02;   /* 9.65:1 on --gold-solid */
  --cream: #fdf6dd;      /* 12.39:1 on --green-deep */
  --line: #c3d2bd;
  --focus: #7c5a06;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06231a;
    --surface: #0b3527;
    --surface-2: #0e4230;
    --ink: #f3eedd;      /* 14.32:1 on --bg */
    --ink-2: #c9d4c6;    /* 10.86:1 on --bg */
    --green: #7fb89a;
    --green-deep: #06231a;
    --gold: #ecc964;     /* 10.38:1 on --bg */
    --gold-solid: #e9bc4f;
    --gold-ink: #231a02;
    --line: #2a5a45;
    --focus: #ecc964;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

/* Visible focus at all times (WCAG 2.2 AA) */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--green-deep);
  color: var(--cream);
  padding: 0.75rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 720px; }

/* Header */
.site-header {
  background: var(--green-deep);
  color: var(--cream);
  border-bottom: 4px solid var(--gold-solid);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.site-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}
.site-title a { color: var(--cream); text-decoration: none; }
.site-title a:hover { text-decoration: underline; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
.site-nav a {
  color: var(--cream);
  display: inline-block;
  padding: 0.5rem 0.25rem;
  min-height: 44px;
  line-height: 1.4;
}
.site-nav a[aria-current="page"] { text-decoration-thickness: 2px; }

/* Hero */
.hero {
  background: var(--green-deep);
  color: var(--cream);
  padding: 2.5rem 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cover { max-width: 280px; }
}
.hero-cover {
  border: 3px solid var(--gold-solid);
  border-radius: 4px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: var(--cream);
}
.hero .subtitle {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.35;
  color: var(--gold-solid);
  margin: 0 0 1rem;
  font-weight: 700;
}
.hero .byline { margin: 0 0 1.25rem; color: var(--cream); }
.hero .price { font-size: 1.25rem; font-weight: 700; color: var(--cream); margin: 0 0 1.25rem; }
.hero p.lede { max-width: 34rem; }

.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}
.btn {
  display: inline-block;
  background: var(--gold-solid);
  color: var(--gold-ink);
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  min-height: 48px;
  border-radius: 6px;
  border: 2px solid var(--gold-solid);
  line-height: 1.3;
}
.btn:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}
.btn-outline:hover { background: rgba(253, 246, 221, 0.12); }
.btn-light {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
}
.btn-light:hover { background: var(--green-deep); border-color: var(--green-deep); }

/* Sections */
main section { padding: 2.5rem 0; }
main section + section { border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--ink);
}
h3 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 0.5rem; }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); }
.source-note { font-size: 0.9rem; color: var(--ink-2); }

/* Thesis feature */
.thesis {
  background: var(--surface-2);
}
.thesis .kicker {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.story-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}
.story-card img {
  border-radius: 4px;
  margin-bottom: 1rem;
}
.story-card h3 { margin-bottom: 0.75rem; }
.story-card dl { margin: 0; }
.story-card dt {
  font-weight: 700;
  color: var(--green);
  margin-top: 0.75rem;
}
.story-card dt:first-child { margin-top: 0; }
.story-card dd { margin: 0.25rem 0 0; }

/* Pillars / framework */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
}
.pillar-grid li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-solid);
  border-radius: 0 0 8px 8px;
  padding: 1rem 1.25rem;
}
.pillar-grid strong { display: block; font-size: 1.1rem; margin-bottom: 0.35rem; }
.formula { counter-reset: step; list-style: none; padding: 0; margin-top: 1.25rem; }
.formula li {
  counter-increment: step;
  padding: 0.75rem 0 0.75rem 3rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.formula li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  line-height: 2rem;
}

/* Chapters */
.chapter-list { padding-left: 1.25rem; }
.chapter-list li { margin-bottom: 0.6rem; }
.chapter-list strong { color: var(--ink); }

/* Excerpt */
.excerpt {
  background: var(--surface);
  border-left: 4px solid var(--gold-solid);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
}
.excerpt blockquote { margin: 0; }
.excerpt blockquote p { margin: 0 0 1rem; }
.excerpt blockquote p:last-child { margin-bottom: 0; }

/* FAQ */
.faq dt { font-weight: 700; margin-top: 1.25rem; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 0.25rem 0 0; }

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: var(--cream);
  padding: 2rem 0;
  margin-top: 0;
}
.site-footer a { color: var(--cream); }
.site-footer p { margin: 0.35rem 0; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
}
.footer-grid nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.footer-grid nav a { display: inline-block; padding: 0.4rem 0; min-height: 32px; }

/* 15 Minutes of Finance additions */
.hero-simple { padding: 2.5rem 0 3rem; }
.hero-simple h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: var(--cream);
}
.hero-simple .subtitle {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.35;
  color: var(--gold-solid);
  margin: 0 0 1rem;
  font-weight: 700;
}
.move-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
}
.move-grid li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-solid);
  border-radius: 0 0 8px 8px;
  padding: 1rem 1.25rem;
}
.move-grid strong { display: block; font-size: 1.1rem; margin-bottom: 0.35rem; }
.move-figure { max-width: 420px; margin: 1.5rem 0 0; }
.move-figure img { border-radius: 4px; border: 1px solid var(--line); }
.move-figure figcaption { font-size: 0.9rem; color: var(--ink-2); margin-top: 0.5rem; }
.episode-list { list-style: none; padding: 0; margin: 0; }
.episode-list > li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.episode-list h3 { font-size: 1.35rem; }
.episode-list .ep-status {
  display: inline-block;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.episode-list .ep-status.live { background: var(--gold-solid); color: var(--gold-ink); border-color: var(--gold-solid); }
.episode-list dl { margin: 1rem 0 0; }
.episode-list dt { font-weight: 700; color: var(--green); margin-top: 0.75rem; }
.episode-list dt:first-child { margin-top: 0; }
.episode-list dd { margin: 0.25rem 0 0; }
.episode-thumb { max-width: 220px; margin: 0 0 1rem; }
.episode-thumb img { border-radius: 4px; border: 1px solid var(--line); }
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.book-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}
.book-card h3 { margin-bottom: 0.5rem; }
.book-card p { margin: 0.5rem 0; }
.disclosure { font-size: 0.9rem; color: var(--ink-2); }
.ig-block {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 1.5rem;
}
.ig-block .btn-light { margin-top: 0.75rem; }
