/* Modern Money Ninja archive — mmn-coin-chapter-brochure
   reference: wp-divi-brochure-2014 (brochure family) */

:root {
  --paper: #FAF8F3;
  --sand: #F1EAD9;
  --ink: #23211E;
  --muted: #6B6355;
  --gold: #8A6510;
  --coin: #F5B921;
  --rule: #DDD3BF;
  --dark: #2B2724;
  --sans: "Open Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --cond: Oswald, "PT Sans Narrow", "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

a:focus-visible,
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.skiplink {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--ink);
  padding: 10px 16px; z-index: 20; font: 600 14px/1 var(--sans);
}
.skiplink:focus { left: 8px; top: 8px; }

.shell { width: min(1240px, 100% - 48px); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--cond);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 12px;
}

p { margin: 0 0 16px; }

/* ---------- archive disclosure ---------- */
.archive-note {
  border-bottom: 1px solid var(--rule);
  padding: 14px 0 12px;
}
.archive-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 96ch;
}
.archive-note strong { color: var(--ink); }
.archive-note a { white-space: nowrap; }

.archive-colophon {
  border-top: 1px solid rgba(250, 248, 243, 0.22);
  margin-top: 20px;
  padding-top: 20px;
  max-width: 92ch;
}
.archive-colophon p {
  font-size: 15px;
  line-height: 1.6;
  color: #D9D2C4;
  margin: 0 0 12px;
}
.archive-colophon strong { color: #FAF8F3; }
.archive-colophon a { color: var(--coin); }

.prose .archive-colophon {
  border-top: 3px solid var(--gold);
  margin: 0 0 28px;
  padding-top: 20px;
}
.prose .archive-colophon p { color: var(--ink); }
.prose .archive-colophon strong { color: var(--ink); }
.prose .archive-colophon a { color: var(--gold); }

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead__inner {
  min-height: 82px;
  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 img { width: 34px; height: auto; }
.brand__word {
  font-family: var(--cond);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.mainnav ul { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.mainnav a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.mainnav a:hover { border-bottom-color: var(--rule); }
.mainnav a.is-active { border-bottom-color: var(--gold); color: var(--gold); }

/* ---------- coin numeral motif ---------- */
.coin {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--coin);
  color: #3A2A05;
  font-family: var(--cond);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex: none;
}

/* ---------- brochure lead ---------- */
.lead { position: relative; background: var(--dark); }
.lead__photo { width: 100%; height: 440px; object-fit: cover; object-position: 62% 42%; }
.lead::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,17,13,0.78) 0%, rgba(20,17,13,0.62) 42%, rgba(20,17,13,0.10) 78%);
  pointer-events: none;
}
.lead__inner {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 44px;
  z-index: 1;
  color: #FAF8F3;
}
.lead__eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em;
  margin: 0 0 10px; color: var(--coin);
}
.lead h1 { font-size: 52px; margin: 0 0 10px; color: #FFF; }
.lead__deck { font-size: 20px; margin: 0 0 18px; max-width: 34ch; }
.lead__link a { color: #FFF; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- chapters ---------- */
.chapter-split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
}
.story { padding: 64px 0; }
.story .chapter-split { grid-template-columns: 7fr 4fr; }
.story__lede { font-family: var(--serif); font-size: 19px; }
.story p { max-width: 68ch; }
.story__sig { font-family: var(--cond); font-size: 18px; letter-spacing: 0.03em; }
.story__figure figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
.story__figure img { width: 169px; border: 4px solid #FFF; box-shadow: 0 0 0 1px var(--rule); }

.chapter { padding: 52px 0; border-top: 1px solid var(--rule); }
.chapter--band { background: var(--sand); padding: 60px 0; }
.chapter-split--5x7 { grid-template-columns: 5fr 7fr; align-items: start; }
.chapter__band { display: flex; gap: 28px; align-items: flex-start; }
.coin--lg { width: 56px; height: 56px; font-size: 20px; }
.chapter__pull { font-family: var(--serif); font-size: 24px; line-height: 1.4; max-width: 46ch; }
.chapter__rule { border-left: 4px solid var(--gold); padding-left: 28px; max-width: 720px; }
.chapter-split--5x7 .chapter__text { padding-top: 30px; }
.chapter__num {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); margin-bottom: 14px;
}
.chapter__text h2 { font-size: 38px; }
.chapter__text p { max-width: 62ch; }
.chapter__more a { font-size: 14px; text-transform: uppercase; letter-spacing: 0.07em; }

/* ---------- section index ---------- */
.sectionindex ul { list-style: none; margin: 0; padding: 0; }
.sectionindex li { border-bottom: 1px solid var(--rule); }
.sectionindex li:first-child { border-top: 1px solid var(--rule); }
.sectionindex a, .sectionindex li > span:last-child {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
}
.sectionindex li > span:last-child { color: var(--muted); }
.sectionindex a:hover { color: var(--gold); }
.sectionindex li > span:first-child + span { padding: 10px 0; }
.story .sectionindex { margin-top: 28px; max-width: 460px; }

/* ---------- evidence ---------- */
.evidence { padding: 60px 0; border-top: 1px solid var(--rule); }
.evidence h2 { font-size: 34px; }
.evidence__grid { display: grid; grid-template-columns: 6fr 5fr; gap: 40px; align-items: start; }
.evidence__plate { margin: 0; }
.evidence__plate img { width: 100%; height: 320px; object-fit: cover; }
.evidence__plate figcaption {
  font-family: var(--serif); font-size: 17px; line-height: 1.5;
  color: var(--ink); margin-top: 12px; max-width: 52ch;
}
.factlist { list-style: none; margin: 0; padding: 0; }
.factlist li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-size: 16px;
}
.factlist li:first-child { border-top: 1px solid var(--rule); }

/* ---------- news ---------- */
.news { padding: 60px 0; background: var(--sand); border-top: 1px solid var(--rule); }
.news h2 { font-size: 34px; }
.news__teaser { border-left: 4px solid var(--gold); padding-left: 20px; margin-bottom: 32px; }
.news__teaser h3 { font-size: 26px; margin-bottom: 8px; }
.news__more a, .news__resources { font-size: 14px; }
.postlist { list-style: none; margin: 0 0 24px; padding: 0; }
.postrow { padding: 18px 0; border-top: 1px solid var(--rule); }
.postrow__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); margin: 0 0 8px;
}
.postrow h2, .postrow h3 { font-size: 24px; margin-bottom: 6px; }
.postrow__excerpt { margin: 0; max-width: 74ch; }
.postlist--archive .postrow { padding: 24px 0; }

/* ---------- contact chapter ---------- */
.contactchapter { background: var(--dark); color: #F3EFE6; padding: 52px 0; }
.contactchapter h2 { font-size: 30px; color: #FFF; }
.contactchapter a { color: var(--coin); }
.contactchapter__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.contactchapter__legal {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 26px; align-self: flex-end;
}
.contactchapter__legal li { font-size: 14px; }

/* ---------- inner pages ---------- */
.titleband { background: var(--sand); border-bottom: 1px solid var(--rule); padding: 44px 0; }
.titleband__inner { display: flex; gap: 40px; align-items: center; justify-content: space-between; }
.titleband h1 { font-size: 40px; margin-bottom: 10px; }
.titleband__deck { font-family: var(--serif); font-size: 18px; color: var(--ink); margin: 0; max-width: 60ch; }
.titleband__plate { width: 300px; height: 200px; object-fit: cover; flex: none; }

.prosewrap { padding: 48px 0 64px; }
.prosewrap__inner { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.prose h2 { font-size: 28px; margin-top: 34px; }
.prose h3 { font-size: 20px; margin-top: 26px; font-family: var(--cond); }
.prose p { max-width: 68ch; }
.prose > p:first-child { font-size: 18px; }
.proselist { margin: 0 0 18px; padding-left: 22px; max-width: 68ch; }
.proselist li { margin-bottom: 8px; }
blockquote { margin: 0 0 18px; padding-left: 20px; border-left: 4px solid var(--gold); font-family: var(--serif); }

.catalog { list-style: none; margin: 0; padding: 0; }
.catalog li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.catalog li:first-child { border-top: 1px solid var(--rule); }
.catalog__label { font-family: var(--cond); font-size: 20px; }

.proserail { position: sticky; top: 24px; }
.proserail__title, .relatedpages h2 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); font-family: var(--sans); font-weight: 600;
}
.relatedpages { margin-top: 28px; }
.relatedpages ul { list-style: none; margin: 0; padding: 0; }
.relatedpages li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }

/* ---------- footer ---------- */
.sitefooter { background: var(--dark); color: #E8E2D6; padding: 52px 0 32px; margin-top: 0; }
.sitefooter__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.sitefooter h2 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  font-family: var(--sans); font-weight: 600; color: var(--coin);
}
.sitefooter ul { list-style: none; margin: 0; padding: 0; }
.sitefooter li { padding: 6px 0; font-size: 15px; }
.sitefooter a { color: #E8E2D6; text-decoration: none; }
.sitefooter a:hover { color: var(--coin); text-decoration: underline; }
.sitefooter__brand img { width: 34px; margin-bottom: 14px; }
.sitefooter__credit { font-family: var(--cond); font-size: 17px; letter-spacing: 0.04em; margin-bottom: 6px; }
.sitefooter__tag { font-size: 14px; color: #B8B0A0; }
.sitefooter__legal { margin-top: 36px; }
.sitefooter__copy { font-size: 13px; color: #B8B0A0; margin: 0; }

/* ---------- mobile transformations ---------- */
@media (max-width: 900px) {
  .prosewrap__inner { grid-template-columns: 1fr; gap: 32px; }
  .proserail { position: static; order: -1; }
  .evidence__grid { grid-template-columns: 1fr; gap: 28px; }
  .sitefooter__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; line-height: 1.7; }
  .shell { width: min(1240px, 100% - 32px); }
  .masthead__inner { min-height: 56px; padding: 10px 0 4px; }
  .mainnav { width: 100%; }
  .mainnav ul { gap: 8px 18px; padding-bottom: 10px; }
  .chapter-split, .chapter-split--5x7 { grid-template-columns: 1fr; gap: 20px; }
  .story .chapter-split { grid-template-columns: 1fr; }
  .story__figure { order: -1; }
  .chapter__band { gap: 16px; }
  .coin--lg { width: 40px; height: 40px; font-size: 16px; }
  .chapter__pull { font-size: 20px; }
  .chapter__rule { padding-left: 18px; }
  .chapter-split--5x7 .chapter__text { padding-top: 0; }
  .chapter h2, .chapter__text h2 { font-size: 28px; }
  .lead::after {
    background: linear-gradient(180deg, rgba(20,17,13,0.30) 0%, rgba(20,17,13,0.10) 60%);
    inset: 0 0 auto 0; height: 260px;
  }
  .chapter__num { margin-bottom: 10px; }
  .chapter, .story, .news, .evidence { padding: 36px 0; }
  .lead__photo { height: 260px; }
  .lead__inner {
    position: static; transform: none; color: var(--ink);
    text-shadow: none; padding: 24px 0 8px;
    width: min(1240px, 100% - 32px); margin-inline: auto;
  }
  .lead { background: var(--paper); }
  .lead h1 { font-size: 32px; color: var(--ink); }
  .lead__eyebrow { color: var(--gold); }
  .lead__deck { font-size: 17px; }
  .lead__link a { color: var(--gold); }
  .titleband { padding: 28px 0; }
  .titleband__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .titleband h1 { font-size: 30px; }
  .titleband__plate { width: 100%; height: 180px; }
  .sitefooter__cols { grid-template-columns: 1fr; }
  .contactchapter__legal { columns: 1; }
  .coin { width: 26px; height: 26px; font-size: 12px; }
  .sectionindex a, .sectionindex li > span:last-child { font-size: 15px; }
  .prose h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
