:root {
    --ma-color-night: #181547;
    --ma-color-night-deep: #100996;
    --ma-color-night-pale: #10099692;
    --ma-color-violet: #452f92;
    --ma-color-blue: #224ba0;
    --ma-color-cream: #fef2c987;
    --ma-color-yellow: #fdde7a;
    --ma-color-coral: #ed1c29;
    --ma-color-darkcoral: #ad0410;
    --ma-color-ink: #181547;
    --ma-color-ink: #18312d;
    --ma-color-red: #a7352b;
    --ma-color-gold: #d6a84e;
    --ma-color-white: #fffdf8;
    --ma-color-line: #e7dbc7;
    --ma-color-primary: var(--ma-color-darkcoral);
    --ma-color-accent: var(--ma-color-yellow);
    --ma-color-bg: var(--ma-color-cream);
    --ma-color-surface: var(--ma-color-white);
    --ma-color-text: var(--ma-color-night);
    --ma-color-muted: var(--ma-color-night-pale);
    --ma-color-border: var(--ma-color-violet);
    --ma-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ma-space: 1rem;
    --ma-shadow: 0 18px 50px rgba(24, 49, 45, .10)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--ma-color-cream);
    color: var(--ma-color-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65
}

h1,
h2,
h3,
h4 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.08;
    color: var(--ma-color-ink)
}

h1 {
    font-size: clamp(2.35rem, 6vw, 5rem);
    margin: .2em 0 .45em
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.8rem)
}

a {
    color: var(--ma-color-red);
    text-underline-offset: .16em
}

a:hover {
    color: var(--ma-color-night-deep)
}

:focus-visible {
    outline: 3px solid var(--ma-color-gold);
    outline-offset: 4px
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    width: 1px;
    overflow: hidden
}

.screen-reader-text:focus {
    clip: auto !important;
    background: var(--ma-color-ink);
    color: var(--ma-color-white);
    left: 1rem;
    top: 1rem;
    padding: .75rem;
    z-index: 1000;
    height: auto;
    width: auto
}

.site-header {
    background: var(--ma-color-night);
    color: var(--ma-color-white);
    border-bottom: 4px solid var(--ma-color-gold)
}

.site-header__inner,
.site-footer__inner {
    width: min(1180px, calc(100% - 2.5rem));
    margin: auto
}

.site-header__inner {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem
}

.custom-logo {
    max-height: 70px;
    width: auto
}

.site-title {
    color: var(--ma-color-white);
    text-decoration: none;
    font: 700 clamp(1.5rem, 4vw, 2.4rem) Georgia, serif
}

.site-tagline {
    margin: 0;
    color: var(--ma-color-line);
    font-size: .9rem
}

.primary-navigation ul,
.footer-navigation ul {
    display: flex;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0
}

.primary-navigation a {
    color: var(--ma-color-white);
    text-decoration: none;
    font-weight: 700
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--ma-color-white);
    color: var(--ma-color-white);
    padding: .6rem 1rem;
    border-radius: 999px
}

.site-main {
    min-height: 55vh
}

.content-shell {
    width: min(1100px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 7rem) 0
}

.content-shell--narrow {
    max-width: 760px
}

.section-intro,
.entry__header {
    margin-bottom: 2.2rem
}

.eyebrow,
.footer-kicker {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ma-color-coral)
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem
}

.post-card,
.entry,
.empty-state {
    background: var(--ma-color-white);
    border: 1px solid var(--ma-color-line);
    border-radius: 18px;
    padding: clamp(1.4rem, 4vw, 2.4rem);
    box-shadow: var(--ma-color-shadow)
}

.post-card h2 {
    margin: .4rem 0
}

.post-card h2 a {
    text-decoration: none
}

.post-card__meta {
    color: var(--ma-color-night);
    font-size: .86rem;
    font-weight: 700
}

.entry__content {
    font-size: 1.08rem
}

.entry__content img {
    max-width: 100%;
    height: auto
}

.button,
.search-submit {
    display: inline-block;
    background: var(--ma-color-red);
    border: 0;
    border-radius: 999px;
    color: var(--ma-color-white);
    padding: .7rem 1.15rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer
}

.button:hover {
    background: var(--ma-color-night);
    color: var(--ma-color-white)
}

.search-form {
    display: flex;
    gap: .7rem;
    max-width: 680px;
    margin: 1rem 0 2rem
}

.search-field {
    flex: 1;
    border: 1px solid var(--ma-color-line);
    border-radius: 999px;
    padding: .75rem 1rem;
    background: var(--ma-color-white);
    font: inherit
}

.portal-shell {
    width: min(1320px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 5rem) 0
}

.portal-intro {
    max-width: 1100px;
    margin: 0 auto 1.5rem
}

.portal-content {
    width: 100%
}

.portal-content .ma-card,
.portal-content .ma-calendar {
    max-width: 1100px;
    margin: 2rem auto
}

.comments-area {
    margin-top: 3rem;
    border-top: 1px solid var(--ma-color-line);
    padding-top: 2rem
}

.site-footer {
    background: var(--ma-color-night);
    color: var(--ma-color-white);
    padding-top: 3rem
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem
}

.site-footer h2,
.site-footer a {
    color: var(--ma-color-white)
}

.site-footer__bottom {
    border-top: 1px solid var(--ma-color-white);
    padding: 1rem max(1.25rem, calc((100% - 1180px)/2));
    font-size: .85rem
}

@media(max-width:760px) {
    .site-header__inner {
        min-height: 88px
    }

    .site-tagline {
        display: none
    }

    .menu-toggle {
        display: block
    }

    .primary-navigation {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 88px;
        background: var(--ma-color-ink);
        padding: 1rem 1.25rem;
        z-index: 20
    }

    .primary-navigation.is-open {
        display: block
    }

    .primary-navigation ul {
        flex-direction: column;
        gap: .7rem
    }

    .site-footer__inner {
        grid-template-columns: 1fr
    }

    .search-form {
        flex-direction: column
    }

    .search-submit {
        align-self: flex-start
    }
}