:root {
    --bg: #f7f7fa;
    --surface: #fff;
    --ink: #16131d;
    --muted: #6e6878;
    --line: #e9e5ef;
    --purple: #6d32ff;
    --cyan: #00cfe8;
    --dark: #0b0714
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.65 Inter, system-ui, -apple-system, Segoe UI, sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line)
}

.nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.brand b {
    font-weight: 500
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 18px;
    white-space: nowrap
}

.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    flex: 0 0 32px
}

.brand b {
    font-weight: 500
}

.nav nav {
    display: flex;
    gap: 24px;
    font-weight: 600
}

.nav nav a:hover {
    color: var(--purple)
}

.menu {
    display: none;
    background: none;
    border: 0;
    font-size: 22px
}

.hero {
    padding: 80px 0 52px
}

.hero h1 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.03;
    max-width: 800px;
    margin: 10px 0 18px;
    letter-spacing: -.05em
}

.hero h1 span {
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    color: transparent
}

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

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    color: var(--purple)
}

.featured {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 42px;
    align-items: center
}

.feature-image,
.card-image {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: #eee
}

.feature-image {
    aspect-ratio: 16/10
}

.feature-image img,
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.feature-copy h2 {
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.1;
    letter-spacing: -.04em;
    margin: 16px 0
}

.feature-copy p,
.card-body p {
    color: var(--muted)
}

.pill {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f0ebff;
    color: #6130d8;
    font-size: 11px;
    font-weight: 800
}

.meta {
    font-size: 12px;
    color: #8a8493
}

.text-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 800;
    color: var(--purple)
}

.section {
    padding: 70px 0
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px
}

.section-head h2 {
    font-size: 28px;
    margin: 0;
    letter-spacing: -.03em
}

.section-head a {
    font-weight: 700;
    color: var(--purple)
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(20, 10, 40, .04)
}

.card-image {
    aspect-ratio: 16/10;
    border-radius: 0
}

.card-body {
    padding: 20px
}

.card-body h3 {
    font-size: 20px;
    line-height: 1.25;
    margin: 12px 0 8px
}

.card-body h3 a:hover {
    color: var(--purple)
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #160d2d, #352060);
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: .12em
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.category-card {
    padding: 22px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    font-weight: 800
}

.category-card small {
    color: var(--muted);
    font-weight: 500
}

.newsletter {
    margin-bottom: 70px;
    padding: 38px;
    border-radius: 28px;
    background: var(--dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.newsletter p {
    color: #b8b1c7
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(135deg, var(--purple), #4f19c9);
    color: #fff;
    font-weight: 800;
    cursor: pointer
}

.full {
    width: 100%
}

.footer {
    padding: 60px 0 24px;
    background: #100b19;
    color: #c7c0d0
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px
}

.footer h4 {
    color: #fff
}

.footer a {
    display: block;
    margin: 8px 0
}

.copyright {
    border-top: 1px solid #2b2435;
    margin-top: 35px;
    padding-top: 20px;
    font-size: 12px
}

.article-page {
    padding: 65px 0
}

.article-head {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center
}

.article-head h1 {
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.05;
    letter-spacing: -.045em;
    margin: 18px 0
}

.lead {
    font-size: 19px;
    color: var(--muted)
}

.article-cover {
    display: block;
    width: min(100%, 980px);
    max-height: 580px;
    object-fit: cover;
    border-radius: 26px;
    margin: 0 auto 50px
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 220px;
    gap: 50px;
    justify-content: center
}

.article-content {
    font-size: 18px;
    line-height: 1.85
}

.article-content h2 {
    font-size: 32px;
    line-height: 1.2;
    margin-top: 45px
}

.article-content h3 {
    font-size: 25px
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px
}

.article-content figure {
    margin: 30px 0
}

.article-content figcaption {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: 7px
}

.article-content blockquote {
    margin: 30px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--purple);
    background: #f0ebff;
    border-radius: 0 15px 15px 0
}

.article-content a {
    color: var(--purple);
    text-decoration: underline
}

.share-box {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 15px
}

.share-box button {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer
}

.page-title {
    padding: 65px 0 20px
}

.page-title h1 {
    font-size: 48px;
    line-height: 1.1;
    margin: 10px 0
}

.page-title p {
    color: var(--muted)
}

.search-form {
    display: flex;
    max-width: 650px;
    gap: 10px;
    margin-top: 25px
}

.search-form input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font: inherit
}

.empty {
    text-align: center;
    padding: 80px 0
}

.muted {
    color: var(--muted)
}

.flash {
    margin-top: 16px;
    padding: 12px 15px;
    border-radius: 12px;
    background: #e8fff4;
    color: #08774d
}

.flash.error {
    background: #fff0f0;
    color: #a12727
}

@media(max-width:800px) {
    .brand-logo {
        width: 25px;
        height: 25px;
        flex-basis: 25px
    }

    .brand {
        gap: 8px;
        font-size: 17px
    }

    .nav nav {
        display: none
    }

    .nav nav.open {
        display: flex;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 18px 16px;
        flex-direction: column
    }

    .menu {
        display: block
    }

    .hero {
        padding: 55px 0 35px
    }

    .featured,
    .article-layout {
        grid-template-columns: 1fr
    }

    .post-grid,
    .category-grid {
        grid-template-columns: 1fr
    }

    .section {
        padding: 50px 0
    }

    .newsletter {
        display: block
    }

    .newsletter .button {
        margin-top: 18px
    }

    .article-page {
        padding: 40px 0
    }

    .article-content {
        font-size: 17px
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .feature-copy h2 {
        font-size: 34px
    }
}

.brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block
}

.footer .brand-logo {
    width: 38px;
    height: 38px
}

.brand span {
    display: inline-block
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px
}

.article-tags a {
    font-size: 12px;
    text-decoration: none !important
}

.article-tags a:hover {
    background: #e8e0ff
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}