:root {
    --background: #f7f9fc;
    --surface: #fff;
    --text: #243248;
    --muted: #627389;
    --accent: #3576a8;
    --accent-dark: #235a85;
    --line: #e4eaf0;
    --shadow: 0 12px 35px rgba(31,55,79,.06);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #f7f9fc;
}

body {
    margin: 0;
    background: #f7f9fc;
    color: var(--text);
    font: 16px/1.75 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

figure {
    margin: 1.5rem 0;
}

h1,h2,h3,h4,h5,h6 {
    color: #1c3046;
    line-height: 1.25;
    letter-spacing: -.025em;
}

h1 {
    font-size: clamp(2.25rem,5vw,3.7rem);
}

h2 {
    font-size: clamp(1.6rem,3vw,2.3rem);
}

h3 {
    font-size: 1.3rem;
}

p {
    margin: 0 0 1.2rem;
}

.container {
    width: min(1100px,calc(100% - 40px));
    margin: auto;
}

.site-header {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 10;
}

.header-inner {
    min-height: 84px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.branding {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: #1e3b53;
}

.site-title:hover {
    text-decoration: none;
}

.site-description {
    font-size: .8rem;
    color: var(--muted);
    margin: .2rem 0 0;
}

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

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    padding: .65rem .9rem;
    border-radius: 10px;
    font: inherit;
    cursor: pointer;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav li {
    position: relative;
}

.primary-nav a {
    color: #385068;
    font-weight: 600;
    font-size: .94rem;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    color: var(--accent);
}

.primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 10px;
    display: none;
    min-width: 190px;
    flex-direction: column;
    gap: 0;
    padding: .5rem;
    z-index: 5;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
    display: flex;
}

.primary-nav .sub-menu a {
    display: block;
    padding: .45rem .7rem;
}

.hero {
    padding: 88px 0 78px;
    background: linear-gradient(
        135deg,
        #edf6fc,
        #f9fbfe 62%,
        #f2f7f9
    );
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    max-width: 770px;
}

.eyebrow {
    display: inline-block;
    color: var(--accent-dark);
    font-weight: 750;
    letter-spacing: .11em;
    text-transform: uppercase;
    font-size: .77rem;
    margin-bottom: 12px;
}

.hero h1 {
    margin: 0 0 22px;
}

.hero p {
    font-size: 1.17rem;
    color: var(--muted);
    max-width: 650px;
}

.button,
.wp-block-button__link {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: .8rem 1.35rem;
    border-radius: 9px;
    font-weight: 700;
    font-size: .95rem;
    border: 0;
}

.button:hover,
.wp-block-button__link:hover {
    background: var(--accent-dark);
    color: #fff;
    text-decoration: none;
}

.main-content {
    padding: 64px 0 85px;
    min-height: 52vh;
}

.content-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px,5vw,58px);
    box-shadow: var(--shadow);
}

.page-heading {
    margin-top: 0;
    margin-bottom: 27px;
}

.entry-content {
    overflow-wrap: break-word;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.4rem;
}

.entry-content blockquote {
    margin: 1.5rem 0;
    padding: 1.1rem 1.5rem;
    border-left: 4px solid #9bc5de;
    background: #f4f9fc;
    color: #3f576d;
}

.entry-content table {
    border-collapse: collapse;
    width: 100%;
    display: block;
    overflow-x: auto;
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
    padding: .75rem;
    text-align: left;
}

.entry-content .alignwide {
    max-width: 100%;
}

.entry-content .alignfull {
    max-width: none;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 24px;
}

.post-card {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.post-card h2 {
    font-size: 1.45rem;
    margin: 0 0 12px;
}

.post-card h2 a {
    color: var(--text);
}

.post-card h2 a:hover {
    color: var(--accent);
}

.post-card p {
    color: var(--muted);
}

.post-card .button {
    margin-top: 5px;
}

.pagination {
    margin-top: 36px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pagination .page-numbers {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 5px 14px;
}

.pagination .current {
    background: var(--accent);
    color: #fff;
}

/* FOOTER — SAME COLOR AS WEBSITE BACKGROUND */

.site-footer,
footer.site-footer,
#colophon {
    background: #f7f9fc !important;
    background-color: #f7f9fc !important;
    background-image: none !important;
    border-top: none !important;
    box-shadow: none !important;
    padding: 28px 0;
    color: var(--muted);
    font-size: .9rem;
}

.site-footer .container,
.site-footer .footer-inner,
#colophon .container,
#colophon .footer-inner {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer p {
    margin: 0;
}

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

.screen-reader-text:focus {
    clip: auto !important;
    height: auto;
    width: auto;
    display: block;
    background: #fff;
    color: #000;
    padding: 15px;
    top: 5px;
    left: 5px;
    z-index: 100000;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #8bbce2;
    outline-offset: 3px;
}

.wp-block-image img {
    border-radius: 10px;
}

/* MOBILE */

@media (max-width: 760px) {

    .header-inner {
        min-height: 74px;
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .primary-nav {
        width: 100%;
        display: none;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav ul {
        display: block;
        padding: 12px 0 0;
    }

    .primary-nav li {
        border-top: 1px solid var(--line);
    }

    .primary-nav a {
        display: block;
        padding: 10px 0;
    }

    .primary-nav .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 20px;
        min-width: 0;
    }

    .hero {
        padding: 65px 0;
    }

    .main-content {
        padding: 38px 0 65px;
    }

    .post-list {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        display: block;
    }

    .footer-inner p + p {
        margin-top: 7px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}