:root {
    --ink: #0b1020;
    --muted: #5f6b7a;
    --brand: #0f766e;
    --brand-2: #115e59;
    --brand-soft: #e9f7f5;
    --surface: #ffffff;
    --surface-2: #f8fbfb;
    --border: rgba(15, 23, 42, 0.08);
    --shadow: 0 12px 36px rgba(2, 6, 23, .10);
    --shadow-soft: 0 8px 24px rgba(2, 6, 23, .08);
    --radius: 18px;
    --radius-lg: 24px;
    --container: 1200px;
    --hero-overlay: linear-gradient(180deg, rgba(3, 8, 20, .70), rgba(3, 8, 20, .40));
    --hero-text: #ffffff;
    --bg: #f4f8f8;
    --footer-bg: #0f172a;
    --footer-card: #111827;
    --footer-fg: #e5e7eb;
    --footer-muted: #94a3b8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    line-height: 1.7;
    background: var(--bg);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: .2s ease;
}

a:hover {
    color: var(--brand-2);
}

.container,
.gbf-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 24px);
}

.gbf-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .95rem 1.25rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(15, 118, 110, .22);
    transition: .2s ease;
}

.btn:hover {
    background: var(--brand-2);
    color: #fff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    color: var(--ink);
}

.btn-secondary:hover {
    background: #edf7f6;
    color: var(--brand-2);
}

.serif {
    font-family: "Playfair Display", Georgia, serif;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-row {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand img {
    height: 68px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.nav a {
    font-weight: 600;
    color: var(--ink);
}

.nav a.active {
    color: var(--brand);
}

.btn-nav {
    margin-left: 4px;
}

/* Hero */
.blog-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #000;
}

.blog-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.blog-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--hero-overlay);
}

.blog-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 120px 0 64px;
    color: var(--hero-text);
}

.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    font-size: .92rem;
    color: rgba(255, 255, 255, .84);
}

.blog-breadcrumb a {
    color: rgba(255, 255, 255, .92);
}

.blog-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #eafcf8;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.blog-title {
    margin: 0 0 14px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    line-height: 1.08;
    color: #fff;
    max-width: 14ch;
}

.blog-subtitle {
    max-width: 72ch;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .95);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Main layout */
.blog-shell {
    position: relative;
    margin-top: -44px;
    z-index: 5;
    padding-bottom: 56px;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.blog-main {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 34px;
}

.blog-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 96px;
}

.blog-side-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 22px 20px;
}

.blog-side-title {
    margin: 0 0 14px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.32rem;
}

/* Meta */
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: .95rem;
}

.blog-meta strong {
    color: var(--ink);
}

/* Typography */
.blog-main p {
    margin: 0 0 18px;
    color: #1f2937;
    font-size: 1rem;
}

.blog-main h2 {
    margin: 34px 0 14px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.75rem, 2.8vw, 2.35rem);
    line-height: 1.18;
    color: var(--ink);
}

.blog-main h3 {
    margin: 26px 0 10px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.28rem, 2vw, 1.68rem);
    line-height: 1.22;
    color: var(--ink);
}

.blog-main ul {
    margin: 0 0 18px;
    padding-left: 1.25rem;
}

.blog-main li {
    margin-bottom: 10px;
    color: #1f2937;
}

.blog-main blockquote {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--brand);
    background: var(--brand-soft);
    border-radius: 14px;
    color: #12332f;
    font-weight: 500;
}

/* Figures */
.blog-figure {
    margin: 24px 0 28px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.blog-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-figure figcaption {
    padding: 12px 16px;
    color: var(--muted);
    font-size: .94rem;
    background: #fff;
    border-top: 1px solid var(--border);
}

/* Callout */
.blog-callout {
    margin: 28px 0;
    padding: 20px 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7fdfc, #eef8f6);
    border: 1px solid rgba(15, 118, 110, .14);
    box-shadow: var(--shadow-soft);
}

.blog-callout h3 {
    margin-top: 0;
}

/* Cards */
.blog-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 26px 0;
}

.blog-card {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.blog-card__media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card__body {
    padding: 18px;
}

.blog-card__title {
    margin: 0 0 8px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.3rem;
    color: var(--ink);
}

.blog-card__text {
    margin: 0;
    color: #334155;
    font-size: .96rem;
}

/* Sidebar */
.blog-toc,
.blog-quicklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-toc li + li,
.blog-quicklist li + li {
    margin-top: 10px;
}

.blog-toc a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f7fbfb;
    color: #1f2937;
    font-weight: 600;
}

.blog-toc a:hover {
    background: var(--brand-soft);
    color: var(--brand-2);
}

.blog-quicklist li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: #334155;
}

.blog-quicklist li:last-child {
    border-bottom: 0;
}

/* CTA */
.blog-cta {
    margin-top: 34px;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: 0 14px 34px rgba(15, 118, 110, .26);
}

.blog-cta h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-family: "Playfair Display", Georgia, serif;
}

.blog-cta p {
    color: rgba(255, 255, 255, .95);
}

/* Floating Icons */
.floating-icons {
    position: fixed;
    right: 15px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.floating-icons a {
    background-color: #1a055d;
    color: #fff;
    font-size: 20px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform .2s ease, background-color .2s ease;
}

.floating-icons a:hover {
    transform: scale(1.08);
    color: #fff;
    background-color: #25D366;
}

.floating-icons a:nth-child(2):hover {
    background-color: #ea4335;
}

.floating-icons a:nth-child(3):hover {
    background-color: #e4405f;
}

/* Footer */
.gb-footer {
    background: var(--footer-bg);
    color: var(--footer-fg);
    margin-top: 56px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .98rem;
}

.gb-footer .gbf-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: clamp(18px, 2vw, 28px);
    padding: clamp(28px, 4vw, 44px) 0;
}

.gb-footer .gbf-brand img {
    width: 180px;
    height: auto;
    display: block;
    margin-bottom: .6rem;
}

.gb-footer .gbf-blurb {
    color: var(--footer-muted);
    line-height: 1.6;
    margin: .2rem 0 .8rem;
}

.gb-footer .gbf-heading {
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: .2rem 0 .8rem;
}

.gb-footer .gbf-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .5rem;
}

.gb-footer .gbf-links a {
    color: var(--footer-muted);
    text-decoration: none;
}

.gb-footer .gbf-links a:hover,
.gb-footer .gbf-links a:focus-visible {
    color: var(--footer-fg);
    outline: none;
}

.gb-footer .gbf-contact,
.gb-footer .gbf-contact a {
    color: var(--footer-fg);
    text-decoration: none;
    font-style: normal;
}

.gb-footer .gbf-contact a:hover {
    text-decoration: underline;
}

.gb-footer .gbf-social {
    list-style: none;
    padding: 0;
    margin: .7rem 0 0;
    display: flex;
    gap: .6rem;
}

.gb-footer .gbf-social-link {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--footer-card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    transition: .2s ease;
}

.gb-footer .gbf-social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--footer-fg);
    opacity: .9;
}

.gb-footer .gbf-social-link:hover {
    transform: translateY(-2px);
    background: #1f2937;
}

.gb-footer .gbf-legal {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: #0b1220;
}

.gb-footer .gbf-legal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 16px 0;
}

.gb-footer .gbf-legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: .9rem;
}

.gb-footer .gbf-legal-links a {
    color: var(--footer-muted);
    text-decoration: none;
}

.gb-footer .gbf-legal-links a:hover {
    color: var(--footer-fg);
    text-decoration: underline;
}

.gb-footer .gbf-muted {
    color: var(--footer-muted);
}

/* Responsive */
@media (max-width: 1100px) {
    .blog-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .blog-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .header-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-shell {
        margin-top: 0;
        padding-top: 22px;
    }

    .gb-footer .gbf-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-title {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .blog-hero {
        min-height: 58vh;
    }

    .blog-hero__content {
        padding: 100px 0 42px;
    }

    .blog-main {
        padding: 20px 16px;
    }

    .blog-side-card {
        padding: 18px 16px;
    }

    .blog-cards,
    .gb-footer .gbf-grid {
        grid-template-columns: 1fr;
    }

    .gb-footer .gbf-legal-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .floating-icons {
        right: 12px;
        bottom: 14px;
    }

    .floating-icons a {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}