/* A colorful, illustrated field journal. Topic colors accompany readable labels. */
:root {
  --paper: #faf6ec;
  --white: #fffdf7;
  --ink: #173f36;
  --deep: #102f29;
  --muted: #526358;
  --line: #d6d8c8;
  --blue: #3d6f8d;
  --blue-deep: #244c65;
  --pumpkin: #cc8f65;
  --pumpkin-hover: #dca783;
  --pumpkin-wash: #f4e5d9;
  --pumpkin-deep: #573720;
  --pumpkin-border: #a86740;
  --blue-wash: #e7f0f6;
  --pumpkin-line: #d8b092;
  --blue-light: #c5dfed;
  --header-khaki: #d8d2bb;
  --intro-khaki: #e5e0cf;
  --sage: #e6eddd;
  --accent: var(--blue);
  --wash: var(--blue-wash);
  --tint: var(--pumpkin);
}
.theme-money { --accent: var(--blue); --wash: var(--blue-wash); --tint: var(--pumpkin); }
.theme-cars { --accent: #a14d30; --wash: #f6e6da; --tint: #d9956e; }
.theme-homes { --accent: #38687a; --wash: #e2edf0; --tint: var(--pumpkin); }
.theme-credit { --accent: #745277; --wash: #eee5ee; --tint: #c8acc9; }
.theme-investing { --accent: #456735; --wash: #e5edd9; --tint: #adc28d; }
.theme-work { --accent: #436b83; --wash: #e6eff3; --tint: var(--pumpkin); }
.theme-economics { --accent: #895334; --wash: #f2e5d6; --tint: #d9ac86; }
body { background: var(--paper); }
body:before { opacity: .08; }
a, button { touch-action: manipulation; }
.eyebrow { color: var(--accent); letter-spacing: 1.6px; }
.site-header { border-top: 5px solid var(--ink); background: var(--header-khaki); }
.site-header a:hover { color: var(--deep); }
.nav-cta { background: var(--pumpkin); border-color: var(--pumpkin-border); color: var(--deep); border-radius: 3px; }
.nav-cta:hover { background: var(--pumpkin-hover); color: var(--deep); }
.button { border-radius: 4px; box-shadow: 0 3px 0 rgba(15, 45, 34, .12); }
.button.secondary { background: var(--white); }
.button:active { transform: translateY(1px); }
/* Shared compass rose: solid cardinal points, outlined diagonal points and rings. */
.logo-compass { fill: currentColor; stroke: none; }
.icon.logo-compass { fill: currentColor; stroke: none; }
.cta-compass { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; vertical-align: -.24em; }
.button .cta-compass { width: 24px; height: 24px; }
.nav-cta .cta-compass { width: 22px; height: 22px; }
.guide-card .card-bottom .cta-compass { width: 24px; height: 24px; }
.lesson-row .cta-compass { width: 20px; height: 20px; }
.home-intro { background: #fcfaf2; }
.home-intro .hero-banner { position: relative; }
.home-intro .hero-banner:before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, rgba(229, 224, 207, 0), var(--intro-khaki));
  pointer-events: none;
}
.hero-caption { position: relative; margin: 0 auto; padding: 18px 24px 50px; max-width: none; background: var(--intro-khaki); }
.hero-caption .hero-caption-title { font: normal 30px/1.25 var(--serif); letter-spacing: -.5px; color: #244c3f; margin: 0 0 16px; }
.hero-caption > p { font-size: 17px; line-height: 1.7; max-width: 580px; margin: 0 auto 26px; color: #526358; }
.hero-caption .channel-link { margin-top: 23px; }
.hero-caption .channel-link a:hover { color: var(--deep); }
.subject-strip { background: #e7ebdd; border-top: 1px solid #c5ceb9; border-bottom: 1px solid #c5ceb9; }
.subject-links { padding-top: 24px; padding-bottom: 24px; }
.subject-links a { gap: 10px; color: var(--deep); font-weight: bold; border-color: #c6cfbc; }
.subject-links .icon { width: 49px; height: 49px; padding: 10px; border: 1px solid var(--tint); border-radius: 50%; color: var(--accent); background: var(--wash); }
.subject-links a:hover .icon { background: var(--tint); color: var(--deep); transform: translateY(-2px); }
.section-head .eyebrow:before { content: ''; display: inline-block; width: 23px; height: 3px; background: var(--pumpkin-border); margin: 0 10px 3px 0; }
.section.soft { background: #edf0e4; }
.section-head .text-link { padding-bottom: 5px; color: var(--blue-deep); }

/* Illustrated covers make each learning path feel like a small, useful book. */
.guides-grid { gap: 25px; }
.guide-card { padding: 0; background: var(--white); border: 1px solid #d4d2bd; border-radius: 7px; overflow: hidden; box-shadow: 0 5px 0 rgba(34, 59, 40, .05); display: flex; }
.guide-card:hover { background: var(--white); border-color: var(--accent); box-shadow: 0 9px 20px rgba(22, 49, 37, .1); }
.guide-cover { position: relative; background: var(--wash); overflow: hidden; border-bottom: 5px solid var(--tint); }
.guide-cover .field-art { width: 100%; aspect-ratio: 4/3; height: auto; object-fit: cover; transition: transform .35s; }
.guide-card:hover .field-art { transform: scale(1.025); }
.cover-label { position: absolute; top: 14px; left: 14px; padding: 6px 10px; background: #fffaeb; border: 1px solid rgba(45, 58, 41, .28); color: #2e493c; font: 10px/1.5 var(--sans); letter-spacing: 1.5px; text-transform: uppercase; }
.guide-copy { padding: 26px 25px 22px; display: flex; flex: 1; flex-direction: column; }
.guide-card .tag { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 9px; letter-spacing: 1.2px; }
.guide-card .tag .icon { width: 23px; height: 23px; margin: 0; stroke-width: 1.5; }
.guide-card h3 { font-size: 29px; line-height: 1.15; margin-bottom: 15px; }
.guide-card p { margin-bottom: 22px; }
.guide-card .card-bottom { border-top: 1px solid var(--line); padding-top: 17px; }
.guide-card .card-bottom .arrow { display: grid; place-items: center; border-radius: 50%; background: var(--wash); color: var(--accent); width: 32px; height: 32px; }

/* Large color fields carry the banner's atmosphere down the homepage. */
.feature-band { background: #214e43; color: #fff7e5; border-top: 8px solid var(--pumpkin); border-bottom: 8px solid var(--pumpkin); }
.feature-band h2 { color: #fff7e5; }
.feature-band .eyebrow { color: var(--blue-light); }
.feature-band .intro { color: #e4edda; }
.feature-band .button { background: var(--pumpkin); color: var(--deep); border-color: var(--pumpkin); }
.feature-band .button:hover { background: var(--pumpkin-hover); }
.illustration-panel { border: 1px solid var(--pumpkin-line); background: var(--blue-wash); border-radius: 5px; color: #214538; box-shadow: 8px 8px 0 rgba(14, 36, 29, .15); }
.illustration-panel:after { border-color: var(--pumpkin-line); border-radius: 2px; }
.number-pair > div { background: #e5ead8; padding: 16px 12px; border-top: 4px solid #6e8d56; }
.number-pair > div + div { background: #f3dfca; border-top-color: #b76743; }
.number-pair strong { font-size: clamp(25px, 2.6vw, 36px); }
.number-pair { gap: 12px; }
.manifesto { background: #183f36; border-top: 8px solid var(--pumpkin); padding: 74px 0; }
.manifesto h2 { color: var(--blue-light); }
.manifesto p { color: #e1e8d9; }
.site-footer { background: #e8ecdf; border-top: 1px solid #c6d0bd; }
.footer-grid h3 { color: #32523d; }

/* The artwork remains separate from the text for clear reading at every size. */
.page-hero { padding: 35px 0 48px; background: var(--wash); border-bottom: 1px solid var(--tint); }
.breadcrumbs { color: #526258; margin-bottom: 26px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 1.3px; margin-bottom: 20px; }
.hero-copy .eyebrow .icon { flex: 0 0 30px; width: 30px; height: 30px; margin: 0; stroke-width: 1.4; }
.page-hero h1 { font-size: clamp(39px, 4.1vw, 60px); letter-spacing: -1.7px; line-height: 1.07; margin-bottom: 22px; }
.page-hero .intro { font-size: 17px; line-height: 1.65; }
.hero-art { min-width: 0; padding: 9px 9px 0; background: #fff9ea; border: 1px solid #d1c9af; border-radius: 4px; box-shadow: 9px 9px 0 var(--tint); transform: rotate(1deg); }
.hero-art .field-art { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; }
.art-caption { display: flex; justify-content: center; align-items: center; gap: 8px; color: #4b5a43; padding: 12px 4px; font-size: 9px; text-transform: uppercase; letter-spacing: 1.4px; }
.art-caption .icon { width: 18px; height: 18px; margin: 0; stroke-width: 1.5; }
.page-hero:not(.illustrated-hero) .hero-layout { display: block; }
.page-hero:not(.illustrated-hero) .intro { max-width: 750px; }

/* Topic navigation and paths use the same colors as their illustrated covers. */
.topics-grid { gap: 28px; }
.topic-illustrated { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 23px; border: 1px solid var(--tint); border-top: 5px solid var(--tint); border-radius: 5px; padding: 22px; background: var(--wash); align-items: start; }
.topic-illustrated > .field-art { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 3px; }
.topic-illustrated h3 { font-size: 26px; }
.topic-illustrated p { color: #42594e; }
.topic-illustrated a { font-weight: bold; color: var(--accent); }
.lesson-row { border-left: 3px solid var(--tint); padding-left: 18px; padding-right: 14px; }
.lesson-row:hover { background: var(--wash); }
.lesson-row .row-num { color: var(--accent); font-style: normal; font-size: 17px; }
.lesson-row .meta { color: var(--accent); }
.lesson-row .arrow { color: var(--accent); }
.side-note { padding: 27px; border: 1px solid var(--tint); border-top: 5px solid var(--accent); border-radius: 4px; background: var(--wash); }
.path-item:before { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--tint); background: var(--wash); border-radius: 50%; color: var(--accent); font-size: 17px; font-style: normal; }
.progress-track { border-radius: 5px; overflow: hidden; background: #d6dbc9; }
.progress-fill { background: var(--accent); }
.curriculum-list li { border-bottom-color: #c7d1bb; }
.toolbar { background: #f0ebdd; padding: 25px; border: 1px solid #ded5bd; border-radius: 5px; }
input, select { border-radius: 3px; }
.glossary-item { padding-left: 20px; border-left: 3px solid var(--pumpkin); }
.note-banner { background: var(--blue-wash); border-left: 4px solid var(--pumpkin-border); border-radius: 3px; }
.flow-step { background: #edf0e5; padding: 23px; border: 1px solid #d4ddc7; margin-bottom: 12px; border-radius: 4px; }
.flow-step b { background: var(--pumpkin); color: var(--deep); border-radius: 50%; width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; font-size: 17px; }

/* Lessons: a warm reading surface, illustrated opening, and colorful experiments. */
.article-aside .group:first-child { border-top: 5px solid var(--accent); background: var(--wash); padding: 23px 19px; border-radius: 3px; }
.article-aside h3 { color: var(--accent); }
.video-pending { border: 1px solid var(--tint); background: var(--wash); border-radius: 5px; }
.lesson-jump-links { gap: 9px; padding-bottom: 23px; }
.lesson-jump-links a { background: #e8eddf; padding: 8px 12px; border: 1px solid #cbd6bd; border-radius: 3px; text-decoration: none; }
.lesson-jump-links a:hover { background: #d4e0c4; }
.article .reader-moment { background: var(--wash); border-left: 4px solid var(--accent); border-radius: 0 5px 5px 0; padding: 25px 27px; font-size: 25px; }
.lesson-example { background: var(--wash); border: 1px solid var(--tint); border-top: 7px solid var(--accent); border-radius: 5px; padding: 30px; }
.lesson-example > .eyebrow { color: var(--accent); }
.example-graphic { border-color: #d7cfb8; border-radius: 4px; box-shadow: 0 3px 0 rgba(47, 51, 30, .06); }
.story-spotlight { background: var(--blue-wash); padding: 22px; border: 1px solid var(--pumpkin-line); border-radius: 4px; }
.story-spotlight strong { color: var(--blue-deep); }
.number-bar-track { height: 17px; border-radius: 3px; background: #eae4d5; }
.number-bar-fill { background: #376958; border-radius: 3px; }
.number-bar-fill.tone-1 { background: #b56b3b; }
.number-bar-fill.tone-2 { background: #638599; }
.lesson-tool { border: 1px solid #b7cbb6; border-top: 7px solid #35654f; border-radius: 6px; background: #f9fcf4; box-shadow: 0 5px 0 #e1e9d9; }
.lesson-tool > .eyebrow { display: inline-block; background: #dbe9c9; color: #385c2b; border-radius: 3px; padding: 7px 11px; font-size: 10px; }
.lesson-tool .tool-prompt { background: #e7efd9; border-left: 3px solid #7e9a54; }
.lesson-inputs input, .lesson-inputs select { background: #fffdf5; border-radius: 4px; border-color: #9cb58d; }
.lesson-inputs input:focus, .lesson-inputs select:focus { background: #fff; }
.tool-experiments button { background: var(--pumpkin-wash); border: 1px solid var(--pumpkin-border); color: var(--pumpkin-deep); border-radius: 4px; }
.tool-experiments button:hover { background: var(--pumpkin-hover); border-color: var(--pumpkin-deep); }
.tool-output { background: #eaf0e0; padding: 26px 23px 22px; border: 1px solid #c7d6b9; border-radius: 4px; }
.lesson-metric { padding: 14px; background: #fffef6; border: 1px solid #d3ddc7; border-top: 3px solid #6e8a53; border-radius: 3px; }
.lesson-metric:nth-child(2n) { border-top-color: #bc7c4b; }
.lesson-metric:nth-child(3n) { border-top-color: #6c8f9f; }
.lesson-metrics { gap: 12px; }
.watch-out { background: var(--blue-wash); border-left: 4px solid var(--pumpkin-border); border-radius: 0 5px 5px 0; padding: 27px; margin-top: 38px; }
.article .watch-out h2 { margin: 0 0 16px; font-size: 28px; color: var(--blue-deep); }
.watch-out p:last-child { margin: 0; }
.takeaway-note { padding: 28px; margin-top: 28px; background: #e8eedf; border: 1px solid #c5d3b5; border-top: 4px solid #65884c; border-radius: 4px; }
.article .takeaway-note h2 { margin: 0 0 20px; font-size: 28px; }
.takeaway-note ul { margin-bottom: 0; }
.takeaway-note li::marker { color: #55783d; }
.next-lesson { border-top: 3px solid var(--accent); background: var(--wash); padding: 28px; border-radius: 0 0 5px 5px; }
.next-lesson h3 { font-size: 27px; }
.next-lesson p { margin-bottom: 0; }
.calculator-inputs { border-top: 5px solid #74945a; border-radius: 5px; }
.calculator-output { background: #e7efd9; border: 1px solid #c7d6b5; border-top: 5px solid #3f7157; border-radius: 5px; }
.calculator-output .big-number { color: #255642; }
.bar .interest, .legend span:last-child:before { background: var(--blue); }
#growth-chart path[stroke-dasharray] { stroke: var(--blue); }
#growth-chart path[stroke-width="3"], .number-line-chart path[stroke-width="4"] { stroke: var(--ink); }
.segmented button { background: var(--pumpkin-wash); border-radius: 4px; border-color: var(--pumpkin-line); }
.segmented button[aria-selected=true] { background: #2d5d4b; }

@media (max-width: 1050px) {
  .hero-layout { gap: 35px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .page-hero h1 { font-size: 43px; }
  .topic-illustrated { grid-template-columns: 115px minmax(0, 1fr); padding: 20px; gap: 18px; }
  .topic-illustrated h3 { font-size: 24px; }
  .guide-copy { padding: 23px 21px; }
  .guide-card h3 { font-size: 26px; }
  .side-note { padding: 22px; }
}
@media (max-width: 760px) {
  .nav { top: 78px; background: var(--header-khaki); }
  .home-intro .hero-banner:before { display: none; }
  .hero-caption { padding: 10px 24px 36px; }
  .hero-caption .hero-caption-title { font-size: 26px; max-width: 300px; margin: 0 auto 14px; }
  .hero-caption > p { font-size: 16px; max-width: 36ch; margin-bottom: 23px; }
  .subject-links { row-gap: 19px; }
  .subject-links .icon { width: 43px; height: 43px; padding: 9px; }
  .guides-grid { gap: 26px; }
  .guide-card { display: flex; grid-template-columns: none; max-width: 540px; width: 100%; margin-inline: auto; }
  .guide-cover .field-art { aspect-ratio: 16/10; }
  .guide-copy { padding: 23px; }
  .guide-card h3 { font-size: 29px; }
  .guide-card .tag .icon { width: 24px; height: 24px; margin: 0; grid-column: auto; grid-row: auto; }
  .guide-card .card-bottom { margin-top: 18px; }
  .hero-layout { grid-template-columns: 1fr; gap: 30px; }
  .page-hero { padding: 26px 0 37px; }
  .page-hero h1 { font-size: 43px; letter-spacing: -1.3px; }
  .page-hero .intro { font-size: 16px; }
  .hero-copy .eyebrow { font-size: 9px; }
  .hero-art { max-width: 430px; width: calc(100% - 8px); margin: 0 auto; box-shadow: 6px 6px 0 var(--tint); transform: none; }
  .hero-art .field-art { aspect-ratio: 16/9; max-height: 230px; }
  .art-caption { padding: 9px 3px; font-size: 8px; }
  .topics-grid { gap: 23px; }
  .topic-illustrated { grid-template-columns: 110px minmax(0, 1fr); padding: 18px; gap: 18px; }
  .topic-illustrated h3 { font-size: 25px; }
  .lesson-row { padding-left: 12px; padding-right: 8px; gap: 10px; }
  .toolbar { padding: 20px; }
  .number-pair strong { font-size: 30px; }
  .number-pair > div { padding: 13px 9px; }
  .number-pair span { font-size: 9px; }
  .feature-band { border-width: 5px; }
  .illustration-panel { box-shadow: 5px 5px 0 rgba(14, 36, 29, .15); }
  .manifesto { padding: 48px 0; }
  .article .reader-moment { font-size: 23px; padding: 22px; }
  .lesson-example, .lesson-tool { padding: 24px 18px; }
  .story-spotlight { padding: 18px 15px; }
  .story-spotlight strong { font-size: 43px; }
  .tool-output { padding: 20px 14px; margin-inline: -3px; }
  .lesson-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lesson-metric { padding: 12px 10px; }
  .lesson-metric strong { font-size: 24px; }
  .watch-out, .takeaway-note { padding: 24px 22px; }
  .article .watch-out h2, .article .takeaway-note h2 { font-size: 26px; }
  .next-lesson { padding: 24px; }
  .article-aside { gap: 22px; }
}
@media (max-width: 430px) {
  .topic-illustrated { grid-template-columns: 1fr; }
  .topic-illustrated > .field-art { aspect-ratio: 16/9; }
  .lesson-metrics { grid-template-columns: 1fr; }
  .hero-copy .eyebrow { letter-spacing: .9px; }
  .article-aside { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-card:hover, .guide-card:hover .field-art, .subject-links a:hover .icon, .button:active { transform: none; }
}
@media print {
  .hero-art, .art-caption { display: none !important; }
  .hero-layout { display: block; }
  .page-hero, .watch-out, .takeaway-note, .lesson-example, .lesson-tool, .tool-output, .story-spotlight, .lesson-metric, .next-lesson { background: white !important; box-shadow: none; border-color: #aaa; }
  .page-hero { padding: 15px 0; }
  .page-hero h1 { font-size: 28pt; }
  .hero-copy .eyebrow { color: #333; }
  .lesson-tool, .lesson-example, .watch-out, .takeaway-note { padding: 15px; }
  .story-spotlight { padding: 10px; }
  .story-spotlight strong { font-size: 28pt; }
  .lesson-metric strong { font-size: 18pt; }
  .tool-output { padding: 15px; }
  .watch-out, .takeaway-note, .lesson-metric { break-inside: avoid; }
}
