:root {
    --surface-blue: #9ab1f4;
    --surface-blue-soft: #b6c5f8;
    --ink-900: #141723;
    --line-soft: rgba(33, 54, 125, 0.18);
    --line-strong: rgba(28, 48, 116, 0.3);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    color: var(--ink-900);
    font-family: "Sora", "Segoe UI", sans-serif;
    background:
        radial-gradient(620px 320px at 11% 10%, rgba(255, 255, 255, 0.25), transparent 70%),
        radial-gradient(820px 420px at 90% 16%, rgba(140, 167, 252, 0.45), transparent 72%),
        linear-gradient(180deg, var(--surface-blue), var(--surface-blue-soft));
}

.page-shell {
    width: min(1160px, 92vw);
    margin: 0 auto;
    padding: 22px 0 30px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(30, 49, 110, 0.28);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111527;
    text-decoration: none;
    font-family: "Outfit", "Trebuchet MS", sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-logo {
    width: auto;
    height: 52px;
    max-width: min(42vw, 220px);
    display: block;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: #17203a;
    border: 1px solid rgba(24, 36, 72, 0.2);
    background: rgba(255, 255, 255, 0.52);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}

.nav a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.76);
}

.nav a.is-active {
    background: #ffffff;
    border-color: rgba(24, 36, 72, 0.35);
}

.blog-main {
    padding-top: 22px;
    animation: fade-up 0.7s ease both;
}

.blog-hero {
    padding: 8px 2px 8px;
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 12px;
    color: #3650b8;
    letter-spacing: 0.13em;
    font-weight: 700;
}

h1 {
    margin: 0;
    font-family: "Outfit", "Trebuchet MS", sans-serif;
    font-size: clamp(35px, 4.2vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: #141a33;
    max-width: 24ch;
}

.lead {
    margin: 17px 0 0;
    color: #2f3f6e;
    font-size: 18px;
    line-height: 1.65;
    max-width: 66ch;
}

.smooth-divider {
    margin: 20px 0;
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(30, 49, 110, 0), rgba(30, 49, 110, 0.36), rgba(30, 49, 110, 0));
}

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

.post-card {
    border: 1px solid rgba(24, 52, 130, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    padding: 16px;
    box-shadow: 0 10px 20px rgba(27, 45, 105, 0.1);
}

.post-date {
    margin: 0;
    color: #405da8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.post-card h2 {
    margin: 8px 0 10px;
    font-family: "Outfit", "Trebuchet MS", sans-serif;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.2;
    color: #121e44;
}

.post-card p {
    margin: 0;
    color: #334779;
    line-height: 1.65;
}

.post-card a {
    margin-top: 12px;
    display: inline-block;
    text-decoration: none;
    color: #1e3f98;
    font-weight: 700;
}

.post-card a:hover {
    text-decoration: underline;
}

.blog-guides {
    display: grid;
    gap: 14px;
}

.guide-card {
    border: 1px solid rgba(24, 52, 130, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    padding: 18px;
    box-shadow: 0 10px 20px rgba(27, 45, 105, 0.1);
}

.guide-card h2 {
    margin: 0;
    font-family: "Outfit", "Trebuchet MS", sans-serif;
    font-size: clamp(25px, 2.2vw, 34px);
    line-height: 1.2;
    color: #121e44;
}

.guide-card p {
    margin: 10px 0 0;
    color: #334779;
    line-height: 1.65;
}

.guide-steps {
    margin: 12px 0 0;
    padding-left: 20px;
    color: #2e4274;
    line-height: 1.7;
    display: grid;
    gap: 6px;
}

.guide-points {
    margin: 12px 0 0;
    padding-left: 20px;
    color: #2e4274;
    line-height: 1.7;
    display: grid;
    gap: 6px;
}

.guide-links {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.guide-links a {
    text-decoration: none;
    color: #1e3f98;
    font-weight: 700;
    border: 1px solid rgba(30, 63, 152, 0.22);
    background: rgba(255, 255, 255, 0.66);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
}

.guide-links a:hover {
    text-decoration: underline;
}

.site-footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(30, 49, 110, 0.28);
    color: #1c274a;
}

.site-footer-main {
    display: grid;
    grid-template-columns: minmax(180px, auto) auto minmax(260px, 420px);
    align-items: start;
    gap: 14px 24px;
}

.footer-brand {
    font-size: 18px;
}

.footer-brand .brand-logo {
    width: auto;
    height: 38px;
    max-width: min(32vw, 165px);
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-nav a {
    text-decoration: none;
    color: #17203a;
    border: 1px solid rgba(24, 36, 72, 0.2);
    background: rgba(255, 255, 255, 0.56);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

.footer-subscribe {
    display: grid;
    gap: 8px;
}

.footer-subscribe label {
    font-size: 13px;
    font-weight: 600;
    color: #1d2b56;
}

.footer-subscribe-row {
    display: flex;
    gap: 8px;
}

.footer-subscribe-row input {
    width: 100%;
    min-width: 0;
    border-radius: 10px;
    border: 1px solid rgba(40, 61, 132, 0.3);
    background: rgba(255, 255, 255, 0.86);
    color: #1a2852;
    padding: 10px 12px;
    font-size: 14px;
}

.footer-subscribe-row input:focus {
    outline: none;
    border-color: #4464e2;
    box-shadow: 0 0 0 2px rgba(68, 100, 226, 0.18);
}

.footer-subscribe-row button {
    border: 0;
    border-radius: 10px;
    padding: 0 16px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, #3557d9, #2438a1);
    box-shadow: 0 10px 18px rgba(43, 69, 171, 0.24);
    cursor: pointer;
}

.footer-subscribe-row button:hover {
    opacity: 0.94;
}

.footer-flash {
    margin: 0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.5;
}

.footer-flash.ok {
    border: 1px solid #57bf8f;
    background: #def7e8;
    color: #204931;
}

.footer-flash.err {
    border: 1px solid #ef7f7f;
    background: #ffe2e2;
    color: #6f2323;
}

.site-footer-divider {
    height: 1px;
    margin: 16px 0 12px;
    background: linear-gradient(90deg, rgba(30, 49, 110, 0), rgba(30, 49, 110, 0.36), rgba(30, 49, 110, 0));
}

.site-footer-bottom {
    font-size: 12px;
    color: rgba(16, 21, 38, 0.75);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .site-footer-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(1160px, 94vw);
        padding-top: 14px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    h1 {
        font-size: clamp(31px, 10.5vw, 49px);
    }

    .brand-logo {
        height: 44px;
    }

    .footer-brand .brand-logo {
        height: 32px;
    }

    .lead {
        font-size: 16px;
    }

    .footer-subscribe-row {
        flex-direction: column;
    }

    .footer-subscribe-row button {
        width: 100%;
        height: 42px;
    }
}
