:root {
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #202124;
    --muted: #5f6368;
    --primary: #2563eb;
    --green: #16805d;
    --pink: #b54870;
    --border: #e1e5eb;
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

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

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    line-height: 1.2;
    letter-spacing: -.035em;
}

.container {
    width: min(1280px, calc(100% - 64px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    background: white;
    padding: 12px;
}

.skip-link:focus {
    top: 8px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 100%;
}

.brand-image img {
    display: block;
    width: clamp(120px, 14vw, 180px);
    height: 64px;
    object-fit: contain;
}

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

.main-nav a {
    padding: 10px 15px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 550;
    color: var(--muted);
    transition: background .2s, color .2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    background: #e8f0fe;
    color: #174ea6;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    padding: 10px 18px;
    font: inherit;
    cursor: pointer;
}

.hero-section {
    padding-top: 40px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    min-height: 500px;
    padding: clamp(32px, 6vw, 80px);
    border-radius: 36px;
    background: linear-gradient(125deg, #e8f0fe, #edf7f0);
    overflow: hidden;
}

.eyebrow {
    display: inline-block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.hero h1 {
    font-size: clamp(30px, 4.7vw, 68px);
    overflow-wrap: anywhere;
    font-weight: 750;
    margin: 22px 0;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    max-width: 550px;
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 30px;
    font-weight: 650;
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
    transition: transform .2s, background .2s;
}

.button-primary {
    color: white;
    background: var(--primary);
}

.button:hover {
    transform: translateY(-2px);
    background: #174ea6;
}

.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 370px);
    min-width: 0;
    aspect-ratio: 1;
    margin-inline: auto;
}

.orbit {
    position: absolute;
    border: 1px solid #b5c8e4;
    border-radius: 50%;
}

.orbit-one {
    inset: 5%;
}

.orbit-two {
    inset: 21%;
}

.art-center {
    position: relative;
    z-index: 1;
    width: 56%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
}

.art-center img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.art-pill {
    position: absolute;
    z-index: 2;
    padding: 12px 20px;
    background: var(--surface);
    border-radius: 30px;
    box-shadow: 0 8px 26px #263b5810;
    font-size: clamp(12px, 2vw, 16px);
    font-weight: 650;
    animation: float 6s ease-in-out 2;
}

.pill-health {
    top: 12%;
    left: 3%;
    color: var(--green);
}

.pill-fitness {
    top: 30%;
    right: 0;
    color: var(--primary);
    animation-delay: -2s;
}

.pill-love {
    bottom: 12%;
    left: 18%;
    color: var(--pink);
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.section-block {
    padding-block: 55px;
}

.section-block h2 {
    font-size: clamp(28px, 3.2vw, 42px);
    margin: 12px 0 16px;
}

.section-intro {
    color: var(--muted);
    max-width: 720px;
    margin-bottom: 30px;
}

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

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 24px;
}

.topic-card,
.partner-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    border-radius: var(--radius);
    transition: transform .25s, box-shadow .25s;
}

.topic-card:hover,
.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px #263b5810;
}

.topic-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 24px;
}

.topic-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--image-fit, cover);
    object-position: center;
}

.topic-media[data-fit="contain"] {
    --image-fit: contain;
}

.health-card {
    background: #e6f4ea;
}

.fitness-card {
    background: #e8f0fe;
}

.relationship-card {
    background: #fce8ef;
}

.card-number {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.topic-card h3,
.partner-card h3 {
    font-size: 25px;
    margin-bottom: 16px;
}

.topic-card p,
.partner-card p {
    color: var(--muted);
}

.text-link {
    margin-top: auto;
    padding-top: 15px;
    color: #174ea6;
    font-weight: 650;
}

.text-link:hover {
    text-decoration: underline;
}

.partner-card {
    background: var(--surface);
    border: 1px solid var(--border);
}

.partner-card .eyebrow {
    margin: 22px 0 12px;
}

.partner-logo-wrap {
    display: grid;
    place-items: center;
    height: 190px;
    min-width: 0;
    padding: 12px;
    background: #f4f7fb;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.partner-logo-wrap[data-theme="dark"] {
    background: #202124;
}

.partner-logo {
    display: block;
    width: 100%;
    height: 164px;
    min-width: 0;
    object-fit: contain;
}

.closing-banner {
    text-align: center;
    background: #edf2ff;
    border-radius: 36px;
    padding: 55px 28px;
}

.closing-banner p {
    color: var(--muted);
    max-width: 650px;
    margin: 0 auto 25px;
}

.site-footer {
    margin-top: 30px;
    padding-top: 55px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 35px;
    padding-bottom: 40px;
}

.footer-grid p,
.footer-links a {
    color: var(--muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links h2 {
    font-size: 16px;
    letter-spacing: 0;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    border-top: 1px solid var(--border);
    padding-block: 24px;
    font-size: 13px;
    color: var(--muted);
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-bottom > span:last-child {
    text-align: right;
}

.footer-bottom a:hover {
    color: var(--primary);
}

main > section:not([class]) {
    width: min(1280px, calc(100% - 64px));
    min-height: 45vh;
    margin-inline: auto;
    padding-block: 60px;
}

@media (max-width: 960px) {
    .header-inner {
        flex-wrap: wrap;
        padding-block: 15px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav[data-collapsed="true"] {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 32px);
    }

    .hero-section {
        padding-top: 20px;
    }

    .hero {
        padding: 28px 24px;
        border-radius: 28px;
    }

    .hero h1 {
        font-size: clamp(28px, 7vw, 40px);
    }

    .hero p {
        font-size: 16px;
    }

    .main-nav {
        flex-direction: column;
    }

    .card-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-block {
        padding-block: 35px;
    }

    .topic-card,
    .partner-card {
        padding: 26px;
    }
}

@media (max-width: 760px) {
    .footer-bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
        text-align: center;
    }

    .footer-bottom > span:last-child {
        text-align: center;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none;
        transition: none;
    }
}
