/*
 * Styles for the blocks the companion spencemoj-blocks plugin renders —
 * mtc-header, mtc-footer, mtc-section-heading, mtc-cta. parts/header.html and
 * parts/footer.html are built from them, so this is what keeps the site's chrome
 * looking right.
 *
 * Plain CSS, not LESS, deliberately: the file is enqueued directly and mirrors
 * starter/themes/spencemoj-theme so the seeded copy and this one stay in step. It
 * reads the design tokens from min/frontend.css, which is why that stylesheet is
 * declared as its dependency in functions.php.
 *
 * The theme's own styles are LESS under assets/less/ and compile to min/. Do not
 * add design work here.
 */
:root {
    --mtc-max: 1200px;
    --mtc-gap: clamp(1rem, 3vw, 2rem);
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    margin: 0;
}
img {
    max-width: 100%;
    height: auto;
}
a {
    color: var(--accent, #2a5aa5);
}

.mtc-container {
    max-width: var(--mtc-max);
    margin-inline: auto;
    padding-inline: var(--mtc-gap);
}

/* Header */
.mtc-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper, #faf8f4);
    border-bottom: 1px solid var(--rule, #d9d5cc);
    transition: box-shadow 0.2s ease;
}
.mtc-header.is-scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}
.mtc-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: var(--mtc-max);
    margin-inline: auto;
    padding: 1rem var(--mtc-gap);
}
.mtc-header__brand a,
.mtc-header__title {
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    color: var(--ink, #0e0e0c);
}
.mtc-header__nav {
    display: flex;
    gap: 1.25rem;
}
.mtc-header__link {
    text-decoration: none;
    color: var(--ink, #0e0e0c);
}
.mtc-header__link:hover {
    color: var(--accent, #2a5aa5);
}
.mtc-header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.mtc-header__burger span {
    width: 24px;
    height: 2px;
    background: var(--ink, #0e0e0c);
}
@media (max-width: 782px) {
    .mtc-header__nav {
        position: absolute;
        inset: 100% 0 auto;
        flex-direction: column;
        background: var(--paper, #faf8f4);
        padding: 1rem var(--mtc-gap);
        border-bottom: 1px solid var(--rule, #d9d5cc);
        display: none;
    }
    .mtc-header.is-open .mtc-header__nav {
        display: flex;
    }
    .mtc-header__burger {
        display: flex;
    }
}

/* Footer */
.mtc-footer {
    background: var(--ink, #0e0e0c);
    color: #fff;
    margin-top: 4rem;
}
.mtc-footer__inner {
    max-width: var(--mtc-max);
    margin-inline: auto;
    padding: 3rem var(--mtc-gap);
    display: grid;
    gap: 2rem;
}
.mtc-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.mtc-footer__nav a {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
}
.mtc-footer__nav a:hover {
    opacity: 1;
}
.mtc-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}
.mtc-footer__credit a {
    /* The boilerplate footer ground is --ink, so the credit link stays paper:
       ink on ink would be invisible. */
    color: var(--paper, #faf8f4);
}

/* Section heading (static block) */
.mtc-section-heading {
    max-width: var(--mtc-max);
    margin-inline: auto;
    padding: 2.5rem var(--mtc-gap) 0;
}
.mtc-section-heading__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent, #2a5aa5);
    margin: 0 0 0.5rem;
}
.mtc-section-heading__title {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.mtc-section-heading__subtitle {
    margin: 0.75rem 0 0;
    color: var(--ink-muted, #5a5a56);
    max-width: 60ch;
}

/* CTA band (dynamic block) */
.mtc-cta {
    background: var(--accent, #2a5aa5);
    color: #fff;
    margin-top: 3rem;
}
.mtc-cta__inner {
    max-width: var(--mtc-max);
    margin-inline: auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) var(--mtc-gap);
    text-align: center;
}
.mtc-cta__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8125rem;
    font-weight: 600;
    opacity: 0.9;
    margin: 0 0 0.75rem;
}
.mtc-cta__title {
    margin: 0;
    font-size: clamp(1.75rem, 5vw, 3rem);
}
.mtc-cta__body {
    margin: 1rem auto 2rem;
    max-width: 52ch;
    opacity: 0.95;
}
.mtc-button {
    display: inline-block;
    background: #fff;
    color: var(--accent, #2a5aa5);
    font-weight: 600;
    text-decoration: none;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
}
.mtc-button:hover {
    background: var(--paper-sunk, #f3f0e8);
}
