@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --forest: #173d35;
    --ivory: #f8f6ef;
    --sage: #dce8dc;
    --orange: #c8794b;
    --charcoal: #262c29;
    --white: #fff;
    --muted: #747c76;
    --line: #d9ded7;
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'Manrope', Arial, sans-serif;
    --container: 1180px;
    --shadow: 0 18px 50px rgba(23, 61, 53, .09)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--charcoal);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7
}

img,
svg {
    max-width: 100%
}

a {
    color: inherit
}

button,
input,
textarea,
select {
    font: inherit
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    padding: 10px 16px;
    background: var(--forest);
    color: white;
    z-index: 1000
}

.skip-link:focus {
    top: 12px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 246, 239, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .2s, border-color .2s
}

.site-header.scrolled {
    border-color: var(--line);
    box-shadow: 0 5px 20px #173d3510
}

.nav-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--forest);
    font-weight: 800;
    letter-spacing: -.06em;
    font-size: 1.45rem;
    white-space: nowrap
}

.brand-mark {
    width: 35px;
    height: 35px
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px
}

.nav-links a {
    text-decoration: none;
    color: #49534d;
    font-size: .88rem;
    font-weight: 700;
    transition: color .2s
}

.nav-links a:hover,
.nav-links a[aria-current=page] {
    color: var(--forest)
}

.nav-links .nav-cta {
    color: var(--white);
    background: var(--forest);
    padding: 11px 17px;
    border-radius: 3px
}

.nav-links .nav-cta:hover {
    background: #24574c;
    color: white
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 3px;
    color: var(--forest);
    padding: 9px 12px;
    font-weight: 700
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--forest);
    font-size: .73rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 800
}

.eyebrow:before {
    content: '';
    height: 1px;
    width: 25px;
    background: var(--orange)
}

h1,
h2,
h3 {
    color: var(--forest);
    line-height: 1.12;
    font-weight: 400
}

h1,
h2 {
    font-family: var(--serif);
    letter-spacing: -.025em
}

h1 {
    font-size: clamp(3rem, 6.3vw, 5.5rem);
    margin: .45rem 0 1.25rem
}

h2 {
    font-size: clamp(2.25rem, 4vw, 3.55rem);
    margin: .6rem 0 1rem
}

h3 {
    font-size: 1.4rem;
    margin: .1rem 0 .7rem;
    font-weight: 700;
    letter-spacing: -.03em
}

p {
    margin: .65rem 0;
    color: #58615b
}

.lead {
    font-size: 1.12rem;
    line-height: 1.8;
    max-width: 600px;
    color: #58615b
}

.section {
    padding: 100px 0
}

.section-sm {
    padding: 70px 0
}

.section-heading {
    max-width: 690px;
    margin-bottom: 40px
}

.section-heading.center {
    text-align: center;
    margin-inline: auto
}

.section-heading.center .lead {
    margin-inline: auto
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 28px
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 13px 19px;
    min-height: 48px;
    border: 1px solid var(--forest);
    border-radius: 3px;
    text-decoration: none;
    background: var(--forest);
    color: white;
    font-size: .86rem;
    font-weight: 800;
    transition: transform .2s, background .2s
}

.button:hover {
    transform: translateY(-2px);
    background: #24574c
}

.button.secondary {
    background: transparent;
    color: var(--forest)
}

.button.secondary:hover {
    background: var(--sage)
}

.hero {
    padding: 62px 0 80px;
    overflow: hidden
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 46px
}

.hero-copy {
    padding: 10px 0
}

.hero-copy h1 {
    max-width: 650px;
    font-size: clamp(2.7rem, 4.8vw, 4.35rem)
}

.hero-copy .lead {
    max-width: 570px
}

.hero-art {
    position: relative;
    background: var(--sage);
    border-radius: 49% 51% 44% 56%/46% 44% 56% 54%;
    min-height: 450px;
    display: grid;
    place-items: center;
    overflow: hidden
}

.hero-art:before,
.hero-art:after {
    content: '';
    position: absolute;
    border: 1px solid #173d3522;
    border-radius: 50%;
    width: 390px;
    height: 390px
}

.hero-art:after {
    width: 300px;
    height: 300px
}

.hero-art svg {
    width: min(94%, 530px);
    position: relative;
    z-index: 1
}

.stats-note {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 30px;
    color: var(--muted);
    font-size: .8rem
}

.stats-note span:first-child {
    width: 34px;
    height: 1px;
    background: var(--orange)
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.topic-card {
    position: relative;
    min-height: 226px;
    padding: 26px 25px 24px;
    background: var(--white);
    border: 1px solid #e8e9e3;
    transition: transform .2s, box-shadow .2s
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow)
}

.topic-card:nth-child(2),
.topic-card:nth-child(5) {
    background: #edf2e9
}

.topic-icon {
    height: 43px;
    width: 43px;
    color: var(--forest);
    margin-bottom: 17px
}

.topic-card p {
    font-size: .9rem
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--forest);
    font-size: .83rem;
    font-weight: 800;
    text-decoration: none;
    margin-top: 8px
}

.text-link:after {
    content: '→';
    transition: transform .2s
}

.text-link:hover:after {
    transform: translateX(4px)
}

.featured {
    background: var(--forest);
    color: var(--ivory);
    position: relative;
    overflow: hidden
}

.featured:after {
    content: '';
    position: absolute;
    border: 1px solid #ffffff22;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    right: -170px;
    top: -200px
}

.featured h2,
.featured h3 {
    color: var(--ivory)
}

.featured p {
    color: #d1d9d2
}

.featured .eyebrow {
    color: #e5b08e
}

.lesson-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1
}

.lesson {
    border-top: 1px solid #ffffff49;
    padding: 22px 6px 0
}

.lesson-number {
    color: #e4a57e;
    font-family: var(--serif);
    font-size: 2.8rem
}

.lesson p {
    font-size: .9rem
}

.example {
    padding: 12px 14px;
    background: #ffffff12;
    border-left: 2px solid var(--orange);
    color: #e3e9e2;
    font-size: .83rem;
    margin-top: 18px
}

.calculator-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 50px;
    align-items: start
}

.calculator-panel {
    background: var(--white);
    padding: 30px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow)
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.field.full {
    grid-column: 1/-1
}

.field label {
    font-size: .78rem;
    font-weight: 800;
    color: var(--forest)
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid #cbd2cb;
    background: #fffefa;
    padding: 12px 13px;
    border-radius: 2px;
    color: var(--charcoal);
    min-height: 47px
}

.field textarea {
    min-height: 155px;
    resize: vertical
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 3px solid #c8794b55;
    border-color: var(--forest)
}

.helper {
    font-size: .76rem;
    color: var(--muted)
}

.results {
    background: var(--sage);
    padding: 30px;
    min-height: 320px
}

.result-primary {
    font-family: var(--serif);
    font-size: 2.6rem;
    color: var(--forest);
    line-height: 1.2
}

.result-label {
    font-size: .76rem;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em
}

.result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid #173d3522
}

.result-value {
    font-size: 1.35rem;
    color: var(--forest);
    font-weight: 800
}

.budget-bar {
    height: 13px;
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    margin: 12px 0 10px
}

.budget-bar span {
    height: 100%;
    transition: width .25s
}

.bar-expenses {
    background: var(--orange)
}

.bar-savings {
    background: var(--forest)
}

.bar-remaining {
    background: #a9bda8
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .75rem;
    color: var(--muted)
}

.legend span {
    display: flex;
    align-items: center;
    gap: 6px
}

.dot {
    height: 9px;
    width: 9px;
    border-radius: 50%;
    display: inline-block
}

.notice {
    font-size: .76rem;
    color: var(--muted);
    border-top: 1px solid #173d3522;
    padding-top: 16px;
    margin-top: 18px
}

.alert {
    margin-top: 13px;
    font-size: .83rem;
    font-weight: 700;
    color: #8f4d2d
}

.dot.expense-dot {
    background: var(--orange)
}

.dot.savings-dot {
    background: var(--forest)
}

.dot.remaining-dot {
    background: #a9bda8
}

.newsletter h2 {
    font-size: 2rem
}

.topic-note {
    margin-top: 30px
}

.principles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center
}

.principle-visual {
    min-height: 390px;
    background: #eadfd2;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden
}

.principle-visual svg {
    width: 88%;
    max-width: 460px
}

.principle-list {
    list-style: none;
    padding: 0;
    margin: 27px 0
}

.principle-list li {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    color: #424d46
}

.principle-list b {
    color: var(--orange);
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.resource-card {
    border-top: 3px solid var(--forest);
    padding: 20px;
    background: white;
    min-height: 230px
}

.resource-card:nth-child(2) {
    border-color: var(--orange)
}

.resource-card:nth-child(3) {
    border-color: #94a992
}

.resource-meta {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.resource-card h3 {
    margin-top: 21px
}

.resource-card p {
    font-size: .87rem
}

.about-band {
    background: #ebe9dd
}

.about-band-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px
}

.about-mark {
    font-family: var(--serif);
    font-size: clamp(5rem, 12vw, 10rem);
    color: #173d3510;
    line-height: .9;
    text-align: center
}

.newsletter {
    background: var(--sage);
    padding: 37px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px
}

.newsletter-form {
    display: flex;
    gap: 8px;
    width: min(460px, 100%)
}

.newsletter-form input {
    min-width: 0;
    flex: 1;
    padding: 12px;
    border: 1px solid #afbeb0;
    background: var(--ivory)
}

.newsletter-note {
    font-size: .75rem;
    margin-top: 8px
}

.site-footer {
    background: #142f29;
    color: #eaf0e8;
    padding: 55px 0 20px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(2, 1fr);
    gap: 50px;
    padding-bottom: 40px
}

.site-footer .brand {
    color: white
}

.site-footer p {
    color: #c0cbc2;
    max-width: 340px;
    font-size: .84rem
}

.footer-title {
    color: #e3b08e;
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800
}

.footer-links {
    display: grid;
    gap: 10px;
    margin-top: 13px
}

.footer-links a {
    color: #dce5dd;
    text-decoration: none;
    font-size: .82rem
}

.footer-links a:hover {
    text-decoration: underline
}

.footer-bottom {
    border-top: 1px solid #ffffff30;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: .74rem;
    color: #bdc9c0
}

.footer-disclaimer {
    max-width: 530px
}

.page-hero {
    padding: 72px 0 64px;
    border-bottom: 1px solid var(--line)
}

.page-hero .lead {
    max-width: 760px
}

.page-hero h1 {
    max-width: 900px
}

.editorial {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 60px
}

.side-note {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    font-weight: 800;
    padding-top: 8px
}

.editorial-content {
    max-width: 780px
}

.editorial-content section {
    padding: 0 0 36px;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--line)
}

.editorial-content p {
    max-width: 740px
}

.about-page {
    font-size: 15px
}

.about-page .page-hero h1 {
    font-size: clamp(2.7rem, 5.2vw, 4.4rem)
}

.about-page .editorial-content h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.75rem)
}

.about-page .editorial-content h3 {
    font-size: 1.2rem
}

.about-page .editorial-content p {
    font-size: .94rem
}

.numbered-list {
    list-style: none;
    padding: 0;
    counter-reset: item
}

.numbered-list li {
    counter-increment: item;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 15px
}

.numbered-list li:before {
    content: '0' counter(item);
    font-family: var(--serif);
    color: var(--orange);
    font-size: 1.5rem
}

.topic-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 28px
}

.topic-search {
    width: min(420px, 100%);
    position: relative
}

.topic-search input {
    width: 100%;
    padding: 13px 15px 13px 43px;
    border: 1px solid var(--line);
    background: white
}

.topic-search:before {
    content: '⌕';
    position: absolute;
    left: 14px;
    top: 8px;
    color: var(--forest);
    font-size: 1.5rem
}

.topic-detail-list {
    display: grid;
    gap: 18px
}

.topic-detail {
    background: white;
    padding: 28px;
    border: 1px solid #e8e9e3;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 35px
}

.topic-detail[hidden] {
    display: none
}

.topic-detail h2 {
    font-size: 2rem;
    margin-top: 4px
}

.topic-detail h3 {
    font-size: 1rem;
    margin-top: 18px
}

.topic-detail p,
.topic-detail li {
    font-size: .9rem
}

.topic-detail ul {
    padding-left: 20px
}

.no-results {
    padding: 35px;
    background: var(--sage);
    text-align: center
}

.contact-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 60px
}

.contact-callout {
    background: var(--sage);
    padding: 30px;
    height: max-content
}

.contact-callout h2 {
    font-size: 2rem
}

.legal-content {
    max-width: 820px;
    margin: 0 auto
}

.legal-content h2 {
    font-size: 1.75rem;
    margin-top: 40px
}

.legal-content h3 {
    font-size: 1rem;
    margin-top: 20px
}

.legal-content p,
.legal-content li {
    font-size: .94rem
}

.legal-note {
    border-left: 3px solid var(--orange);
    padding: 14px 18px;
    background: #efeae0
}

.small-caps {
    font-size: .73rem;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800
}

.hidden {
    display: none !important
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px
}

@media(max-width:900px) {
    .nav-links {
        gap: 18px
    }

    .hero-grid {
        gap: 24px
    }

    .hero-art {
        min-height: 370px
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .calculator-layout {
        gap: 25px
    }

    .principles {
        gap: 35px
    }

    .footer-grid {
        gap: 25px
    }

    .topic-detail {
        grid-template-columns: 170px 1fr
    }
}

@media(max-width:700px) {
    .container {
        width: min(100% - 34px, var(--container))
    }

    .nav-wrap {
        min-height: 70px
    }

    .menu-toggle {
        display: inline-flex
    }

    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 69px;
        padding: 14px 22px 22px;
        background: var(--ivory);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 20px #173d3510;
        align-items: stretch;
        flex-direction: column;
        gap: 0
    }

    .nav-links.open {
        display: flex
    }

    .nav-links a {
        padding: 12px 4px
    }

    .nav-links .nav-cta {
        text-align: center;
        margin-top: 8px
    }

    .hero {
        padding: 42px 0 58px
    }

    .hero-grid,
    .calculator-layout,
    .principles,
    .about-band-grid,
    .contact-layout {
        grid-template-columns: 1fr
    }

    .hero-art {
        min-height: 300px;
        order: 2
    }

    .hero-copy h1 {
        font-size: clamp(2.35rem, 10vw, 3.4rem)
    }

    .section {
        padding: 70px 0
    }

    .section-sm {
        padding: 54px 0
    }

    .topics-grid,
    .lesson-grid,
    .resource-grid {
        grid-template-columns: 1fr
    }

    .topic-card {
        min-height: auto
    }

    .lesson-grid {
        gap: 28px
    }

    .calculator-panel,
    .results {
        padding: 22px
    }

    .principle-visual {
        min-height: 280px
    }

    .newsletter {
        display: block;
        padding: 26px
    }

    .newsletter-form {
        margin-top: 18px
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .footer-grid>div:first-child {
        grid-column: 1/-1
    }

    .footer-bottom {
        display: block
    }

    .footer-disclaimer {
        margin-top: 10px
    }

    .page-hero {
        padding: 52px 0 43px
    }

    .page-hero h1 {
        font-size: clamp(2.7rem, 12vw, 4rem)
    }

    .about-page .page-hero h1 {
        font-size: clamp(2.45rem, 10vw, 3.5rem)
    }

    .about-page .editorial-content h2 {
        font-size: clamp(1.8rem, 7vw, 2.35rem)
    }

    .editorial {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .topic-toolbar {
        align-items: stretch;
        flex-direction: column
    }

    .topic-detail {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 23px
    }

    .topic-detail h2 {
        font-size: 1.8rem
    }

    .contact-layout {
        gap: 28px
    }
}

@media(max-width:420px) {
    .form-grid {
        grid-template-columns: 1fr
    }

    .field.full {
        grid-column: auto
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .footer-grid>div:first-child {
        grid-column: auto
    }

    .button-row .button {
        width: 100%
    }

    .result-stats {
        gap: 10px
    }

    .hero-art {
        min-height: 250px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important
    }
}