:root {
    --brand: #67B8E3;
    --brand-08: rgba(103, 184, 227, .08);
    --brand-03: rgba(103, 184, 227, .03);
    --ink: #000;
    --ink-muted: rgba(0, 0, 0, .6);
    --navy: #41416E;
    --surface: #fff;
    --bg: #FAFAFA;
    --hairline: #EEE;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, .04);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, .08);
    --font-display: "Marcellus", serif;
    --font-ui: "Instrument Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

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

a:hover {
    color: var(--brand);
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 0;
}

p {
    margin: 0;
}

.section {
    padding-inline: 20px;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(238, 238, 238, .8);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    color: var(--brand);
    font-weight: 400;
}

.solara-logo {
    display: block;
    width: auto;
    height: 36px;
    max-width: 100%;
    flex: 0 0 auto;
    object-fit: contain;
}

.solara-logo--white {
    height: 40px;
}

.brand__name {
    font-size: 1.7rem;
    line-height: 1;
}

.brand__divider,
.brand__section {
    color: var(--ink-muted);
    font-size: .95rem;
    font-weight: 500;
}

.brand__divider {
    margin-inline: 2px;
}

.topbar__nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: .95rem;
    font-weight: 500;
}

.topbar__link {
    position: relative;
    padding-block: 6px;
}

.topbar__link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    opacity: 0;
    transform: scaleX(.6);
    transition: opacity .15s ease, transform .15s ease;
}

.topbar__link:hover::after,
.topbar__link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.blog-hero {
    background: var(--brand-03);
    padding-block: 72px;
}

.blog-hero h1 {
    max-width: 780px;
    margin-top: 12px;
    font-size: clamp(3rem, 6vw, 3.5rem);
}

.blog-hero__intro {
    max-width: 680px;
    margin-top: 18px;
    color: var(--ink-muted);
    font-size: 1.25rem;
    line-height: 1.55;
}

.blog-hero__intro p + p {
    margin-top: 12px;
}

.eyebrow,
.post-card__date {
    color: var(--brand);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.blog-list {
    padding-block: 72px 88px;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

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

.post-card {
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition: box-shadow .15s ease, transform .15s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.post-card__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--brand-08);
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__body {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px 24px;
}

.post-card h3 {
    margin-top: 10px;
    font-size: 1.5rem;
}

.post-card p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 12px;
    color: var(--ink-muted);
    font-size: .95rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.text-link {
    margin-top: auto;
    padding-top: 20px;
    color: var(--brand);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.empty-state,
.error-page .container {
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 32px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.empty-state h2,
.error-page h1 {
    font-size: 2rem;
}

.empty-state p,
.error-page p {
    margin-top: 10px;
    color: var(--ink-muted);
}

.post-detail__header {
    padding-block: 56px 28px;
}

.post-detail__header .container {
    max-width: 1200px;
}

.breadcrumb {
    display: flex;
    max-width: 720px;
    align-items: center;
    gap: 8px;
    color: var(--ink-muted);
    font-size: .9rem;
}

.breadcrumb a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.post-detail h1 {
    max-width: 760px;
    margin-top: 18px;
    font-size: clamp(2.5rem, 5vw, 3rem);
}

.post-meta {
    margin-top: 16px;
    color: var(--ink-muted);
    font-size: .95rem;
}

.post-detail__media-wrap {
    padding-block: 8px 40px;
}

.post-detail__media {
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--shadow-card);
}

.post-detail__content-wrap {
    padding-bottom: 88px;
}

.post-content {
    width: min(100% - 40px, 720px);
    margin-inline: auto;
}

.lede {
    color: var(--ink-muted);
    font-size: 1.15rem;
    line-height: 1.65;
}

.rich-text {
    margin-top: 32px;
    font-size: 1.06rem;
    line-height: 1.75;
}

.rich-text h2,
.rich-text h3 {
    margin-top: 40px;
    margin-bottom: 14px;
}

.rich-text h2 {
    font-size: 2rem;
}

.rich-text h3 {
    font-size: 1.55rem;
}

.rich-text p,
.rich-text ul,
.rich-text ol,
.rich-text blockquote {
    margin-top: 18px;
}

.rich-text a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.rich-text blockquote {
    border-left: 3px solid var(--brand);
    margin-left: 0;
    padding-left: 20px;
    color: var(--ink-muted);
}

.post-detail__back {
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9999px;
    padding: 12px 28px;
    font-weight: 700;
    line-height: 1;
    transition: background .15s ease, filter .15s ease, transform .15s ease;
}

.btn--primary {
    border: 0;
    background: var(--brand);
    color: #fff;
}

.btn--secondary {
    border: 1px solid var(--brand);
    background: #fff;
    color: var(--brand);
}

.btn:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}

.site-footer {
    background: var(--brand);
    color: #fff;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(160px, .6fr));
    gap: 48px;
    padding-block: 56px 44px;
}

.brand--footer {
    color: #fff;
}

.site-footer__brand p {
    max-width: 440px;
    margin-top: 18px;
    font-size: .95rem;
    font-weight: 500;
}

.site-footer__group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__group h2 {
    color: #fff;
    font-family: var(--font-ui);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.site-footer__group a {
    font-size: .9rem;
    font-weight: 500;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-block: 18px 28px;
    border-top: 1px solid rgba(255, 255, 255, .3);
    font-size: .8rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .section {
        padding-inline: 40px;
    }
}

@media (min-width: 1200px) {
    .section {
        padding-inline: 80px;
    }

    .topbar {
        padding-inline: 80px;
    }
}

@media (max-width: 860px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .topbar {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px 16px;
        padding-inline: 16px;
    }

    .topbar__nav {
        margin-left: auto;
    }

    .solara-logo {
        height: 30px;
    }

    .solara-logo--white {
        height: 36px;
    }

    .brand {
        gap: 8px;
    }

    .brand__name {
        font-size: 1.45rem;
    }

    .blog-hero {
        padding-block: 48px;
    }

    .blog-hero h1 {
        font-size: 2.75rem;
    }

    .blog-hero__intro {
        font-size: 1.05rem;
    }

    .blog-list,
    .post-detail__content-wrap {
        padding-block: 48px 64px;
    }

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

    .post-card__body {
        min-height: 230px;
    }

    .post-detail__header {
        padding-block: 44px 24px;
    }

    .post-detail h1 {
        font-size: 2.35rem;
    }

    .post-content {
        width: min(100% - 40px, 720px);
    }

    .site-footer__bottom {
        flex-direction: column;
    }
}
