:root {
    --mrb-navy: #0b1330;
    --mrb-ink: #17203b;
    --mrb-muted: #5f6982;
    --mrb-line: #dfe4f1;
    --mrb-page: #f8f9fd;
    --mrb-blue: #2563eb;
    --mrb-purple: #7c3aed;
    --mrb-brand: linear-gradient(135deg, #2563eb, #7c3aed);
    --mrb-progress: linear-gradient(90deg, #000 0 8%, #784f17 8% 16%, #5bcefa 16% 24%, #f5a9b8 24% 32%, #fff 32% 40%, #e40303 40% 50%, #ff8c00 50% 60%, #ffed00 60% 70%, #008026 70% 80%, #24408e 80% 90%, #750787 90% 100%);
    --mrb-trans: linear-gradient(90deg, #5bcefa 0 20%, #f5a9b8 20% 40%, #fff 40% 60%, #f5a9b8 60% 80%, #5bcefa 80% 100%);
    --mrb-nonbinary: linear-gradient(90deg, #fff430 0 25%, #fff 25% 50%, #9c59d1 50% 75%, #2d2d2d 75% 100%);
    --mrb-shadow: 0 18px 50px rgba(15, 30, 72, .1);
}

body.mr-blog-site {
    color: var(--mrb-ink);
    background:
        radial-gradient(circle at 8% 3%, rgba(37, 99, 235, .08), transparent 26rem),
        radial-gradient(circle at 94% 10%, rgba(124, 58, 237, .09), transparent 28rem),
        var(--mrb-page);
    font-family: 'Manrope', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.mr-blog-site h1,
.mr-blog-site h2,
.mr-blog-site .wp-block-post-title,
.mr-blog-site .wp-block-query-title {
    color: var(--mrb-ink);
    font-family: 'Fraunces', Georgia, serif;
    letter-spacing: -.035em;
}

.mr-blog-site a {
    text-underline-offset: 3px;
}

.mr-blog-ecosystem {
    position: relative;
    z-index: 1000;
    display: flex;
    width: min(1220px, calc(100% - 30px));
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 14px auto 0;
    padding: .65rem .85rem;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 24px;
    box-shadow: var(--mrb-shadow);
    backdrop-filter: blur(18px);
}

.mr-blog-ecosystem::after {
    position: absolute;
    right: 22px;
    bottom: -1px;
    left: 22px;
    height: 3px;
    content: '';
    background: var(--mrb-progress);
    border-radius: 999px;
}

.mr-blog-brand {
    display: inline-flex;
    flex: 0 0 auto;
}

.mr-blog-brand img {
    width: auto;
    height: 43px;
}

.mr-blog-network {
    display: flex;
    align-items: center;
    gap: .15rem;
}

.mr-blog-network a {
    padding: .65rem .78rem;
    color: #4f5870;
    border-radius: 12px;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
}

.mr-blog-network a:hover,
.mr-blog-network a:focus-visible {
    color: #1d4ed8;
    background: #eef3ff;
}

.mr-blog-network .mr-blog-donate {
    margin-left: .35rem;
    color: #fff;
    background: var(--mrb-brand);
}

.mr-blog-network .mr-blog-donate:hover,
.mr-blog-network .mr-blog-donate:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

.mr-blog-site .wp-site-blocks {
    padding-top: 0;
    padding-bottom: 0;
}

.mr-blog-site header.wp-block-template-part,
.mr-blog-site header.wp-block-template-part > div {
    background: transparent !important;
}

.mr-blog-site header.wp-block-template-part {
    width: min(1180px, calc(100% - 30px));
    margin: 2.2rem auto 0;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--mrb-line);
}

.mr-blog-site header .wp-block-site-title a {
    color: var(--mrb-ink);
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    text-decoration: none;
}

.mr-blog-site .wp-block-navigation-item__content {
    color: #4f5870;
    font-size: .86rem;
    font-weight: 700;
}

.mr-blog-site main {
    width: min(1180px, calc(100% - 30px));
    margin: 0 auto;
    padding-top: clamp(3rem, 7vw, 6rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.mr-blog-site main > .wp-block-group:first-child,
.mr-blog-site .wp-block-query-title {
    position: relative;
}

.mr-blog-site main > .wp-block-group:first-child::before,
.mr-blog-site .wp-block-query-title::before {
    display: block;
    width: 44px;
    height: 4px;
    margin-bottom: 1rem;
    content: '';
    background: var(--mrb-trans);
    border-radius: 999px;
}

.mr-blog-site .wp-block-post-template {
    display: grid;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.mr-blog-site .wp-block-post-template > li {
    position: relative;
    margin: 0;
    padding: clamp(1.2rem, 3vw, 2rem);
    overflow: hidden;
    background: rgba(255, 255, 255, .97);
    border: 1px solid var(--mrb-line);
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(15, 30, 72, .07);
}

.mr-blog-site .wp-block-post-template > li::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: '';
    background: var(--mrb-trans);
}

.mr-blog-site .wp-block-post-template > li:nth-child(2n)::before {
    background: var(--mrb-nonbinary);
}

.mr-blog-site .wp-block-post-title a {
    color: var(--mrb-ink);
    text-decoration: none;
}

.mr-blog-site .wp-block-post-title a:hover {
    color: #6d28d9;
}

.mr-blog-site .wp-block-post-date,
.mr-blog-site .wp-block-post-author,
.mr-blog-site .wp-block-post-excerpt {
    color: var(--mrb-muted);
}

.mr-blog-site .wp-block-post-featured-image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 15px;
}

.mr-blog-site .wp-block-button__link,
.mr-blog-site .wp-element-button,
.mr-blog-site input[type='submit'] {
    color: #fff;
    background: var(--mrb-brand);
    border: 0;
    border-radius: 12px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 800;
}

.mr-blog-site .entry-content,
.mr-blog-site .wp-block-post-content {
    color: #3f4962;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.82;
}

.mr-blog-site footer.wp-block-template-part {
    margin-top: 0;
    padding: 4rem max(1rem, calc((100vw - 1180px) / 2));
    color: rgba(255, 255, 255, .68);
    background: var(--mrb-navy) !important;
    border-top: 4px solid transparent;
    border-image: var(--mrb-progress) 1;
}

.mr-blog-site footer.wp-block-template-part a,
.mr-blog-site footer.wp-block-template-part h2,
.mr-blog-site footer.wp-block-template-part p {
    color: inherit;
}

@media (max-width: 900px) {
    .mr-blog-ecosystem {
        align-items: flex-start;
        flex-direction: column;
    }

    .mr-blog-network {
        width: 100%;
        overflow-x: auto;
        padding-bottom: .2rem;
    }

    .mr-blog-network a {
        white-space: nowrap;
    }

    .mr-blog-site .wp-block-post-template {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .mr-blog-brand img {
        height: 38px;
    }

    .mr-blog-ecosystem {
        width: calc(100% - 20px);
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mr-blog-site *,
    .mr-blog-site *::before,
    .mr-blog-site *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
