/*
Theme Name: MoneyMentor
Description: Editorial theme for the MoneyMentor project.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.3
Text Domain: moneymentor
*/

:root {
    color-scheme: light;
    --ink: #182727;
    --muted: #415653;
    --brand: #096353;
    --border: #dae8e0;
    --surface: #ffffff;
    --background: #f7faf7;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font: 1rem/1.7 system-ui, sans-serif; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.mm-frame { width: min(69rem, calc(100% - 2rem)); margin-inline: auto; }
.mm-site-header, .mm-site-footer { border-block: 1px solid var(--border); background: var(--surface); }
.mm-site-header .mm-frame, .mm-site-footer .mm-frame { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 2rem; padding-block: .8rem; }
.mm-brand { font-size: 1.3rem; font-weight: 800; text-decoration: none; }
.mm-nav { display: flex; gap: .45rem 1rem; flex-wrap: wrap; }
.mm-nav a { padding-block: .28rem; }
.mm-skip { position: absolute; z-index: 10; padding: .5rem; background: white; transform: translateY(-150%); }
.mm-skip:focus { transform: translateY(0); }
.mm-main { width: min(46rem, calc(100% - 2rem)); min-height: 65vh; margin: 3rem auto; }
.mm-content h1 { font-size: clamp(2.2rem, 6vw, 3.75rem); line-height: 1.1; margin-block: .75rem 1.4rem; letter-spacing: -.04em; }
.mm-content h2 { margin-top: 2rem; line-height: 1.3; }
.mm-lede { color: var(--muted); font-size: 1.2rem; }
.mm-content img { max-width: 100%; height: auto; border-radius: .5rem; }
.mm-content figure { margin-inline: 0; overflow-x: auto; }
.mm-content table { border-collapse: collapse; width: 100%; }
.mm-content th, .mm-content td { border: 1px solid var(--border); padding: .5rem; }
.mm-site-footer, .mm-measurement { color: var(--muted); font-size: .91rem; }
.mm-measurement { padding-block: .7rem; }
.mm-measurement button { background: var(--surface); color: var(--brand); font: inherit; border: 1px solid var(--border); border-radius: .35rem; padding: .38rem .6rem; cursor: pointer; }

/* MoneyMentor shared Next.js visual identity */
:root {
    --ink: #18332f;
    --muted: #65716a;
    --paper: #f8f9f3;
    --line: #dce2d7;
    --lime: #dcf591;
    --white: #fff;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

.mm-frame {
    width: min(1200px, calc(100% - 56px));
}

.mm-site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.mm-site-header .mm-nav {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding-block: 0;
}

.mm-brand {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -1px;
    white-space: nowrap;
    text-decoration: none;
}

.mm-brand span:last-child {
    font-weight: 400;
}

.mm-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 10px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--lime);
}

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

.mm-nav-links a,
.mm-footer-links a {
    color: var(--ink);
    text-decoration: none;
}

.mm-nav-links a:hover,
.mm-footer-links a:hover {
    color: #49733f;
}

.mm-cta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 16px;
    border: 1px solid #bdc7b8;
    border-radius: 7px;
    color: var(--ink);
    font-size: 13px;
    text-decoration: none;
}

.mm-main {
    width: min(1200px, calc(100% - 56px));
    min-height: 65vh;
    margin: 0 auto;
    padding: 48px 0 65px;
}

.mm-content h1,
.mm-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -1.5px;
    color: var(--ink);
}

.mm-content h1 {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.1;
}

.mm-content h2 {
    font-size: 32px;
}

.mm-content p,
.mm-content li {
    color: #53645a;
    line-height: 1.9;
}

.mm-site-footer {
    padding: 40px 0 20px;
    border-top: 1px solid var(--line);
    background: #edf0e6;
    color: #4b584c;
}

.mm-footer-top,
.mm-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.mm-footer-top p {
    margin: 12px 0 23px;
    font-size: 12px;
}

.mm-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 23px;
    padding-top: 10px;
    font-size: 12px;
}

.mm-footer-bottom {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #d9e0cf;
    font-size: 10px;
}

@media (max-width: 760px) {
    .mm-site-header .mm-nav {
        min-height: 100px;
        flex-wrap: wrap;
        padding-block: 15px;
    }
    .mm-nav-links {
        gap: 15px;
        flex-wrap: wrap;
    }
    .mm-cta {
        display: none;
    }
    .mm-footer-top,
    .mm-footer-bottom {
        flex-direction: column;
        gap: 12px;
    }
}
