﻿@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
    --cream: #fbf7f0;
    --paper: #fffaf3;
    --ink: #112552;
    --ink-soft: #31466f;
    --gold: #d39b42;
    --gold-soft: #ead7b8;
    --line: rgba(17, 37, 82, 0.1);
    --shadow: 0 32px 80px -54px rgba(11, 24, 54, 0.5);
    --container: 1180px;
    --hero-stage-w: 1620px;
    --header-h: 92px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 40;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 max(44px, calc((100vw - var(--hero-stage-w)) / 2 + 44px));
    border-bottom: 1px solid var(--line);
    background: rgba(250, 246, 239, 0.94);
    backdrop-filter: blur(14px);
    font-family: "Inter", sans-serif;
}

.logo-link {
    display: inline-flex;
    align-self: flex-start;
    text-decoration: none;
}

.ribbon-logo {
    width: 204px;
    height: 170px;
    padding: 8px 17px 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #112552;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 18px 36px -28px rgba(17, 37, 82, 0.72);
}

.ribbon-logo::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(251, 247, 240, 0.2);
    border-radius: 0 0 7px 7px;
    pointer-events: none;
}

.ribbon-logo img {
    width: 168px;
    height: 145px;
    object-fit: contain;
    transform: translateY(-2px);
}

.nav-desktop {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 3.8vw, 54px);
    margin-left: auto;
    margin-right: clamp(32px, 5vw, 88px);
}

.nav-desktop a,
.lang-switch a {
    text-decoration: none;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 500;
    transition: color 180ms ease;
}

.nav-desktop a:hover,
.lang-switch a:hover {
    color: var(--gold);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch .current {
    color: var(--gold);
}

.menu-button,
.mobile-nav {
    display: none;
}

.mobile-nav a {
    text-decoration: none;
}

.blog-hero {
    position: relative;
    overflow: hidden;
    margin-top: var(--header-h);
    background:
        linear-gradient(90deg, #fbf7f0 0%, rgba(251, 247, 240, 0.92) 36%, rgba(251, 247, 240, 0.54) 62%, rgba(251, 247, 240, 0.08) 100%),
        var(--blog-hero-image, url("../assets/blog/blog-hero.jpg")) right center / cover no-repeat,
        var(--cream);
}

.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 40% 52%, rgba(251, 247, 240, 0.68) 0%, rgba(251, 247, 240, 0.34) 30%, rgba(251, 247, 240, 0) 62%),
        linear-gradient(180deg, rgba(251, 247, 240, 0) 70%, #fbf7f0 100%);
    pointer-events: none;
}

.blog-hero-inner {
    position: relative;
    z-index: 1;
    width: min(var(--container), calc(100% - 48px));
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 690px) 1fr;
    align-items: center;
    padding: 116px 0 86px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(51, 69, 98, 0.72);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.breadcrumb a {
    text-decoration: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 52px;
    height: 1px;
    background: var(--gold);
}

.blog-hero h1 {
    max-width: 740px;
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(4rem, 7vw, 7.5rem);
    line-height: 0.9;
    font-weight: 600;
    letter-spacing: -0.045em;
}

.blog-hero h1 em {
    color: var(--gold);
    font-style: italic;
    font-weight: 500;
}

.blog-lead {
    max-width: 660px;
    margin: 28px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    line-height: 1.7;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid rgba(211, 155, 66, 0.26);
    border-radius: 999px;
    background: rgba(255, 250, 243, 0.72);
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.blog-index,
.blog-shell {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

.blog-index {
    padding: 44px 0 96px;
}

.blog-index-intro {
    max-width: 760px;
    margin: 0 0 34px;
    color: var(--ink-soft);
    font-size: 1.08rem;
    line-height: 1.75;
}

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

.blog-card {
    position: relative;
    isolation: isolate;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    border: 1px solid rgba(17, 37, 82, 0.08);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(8, 20, 49, 0.34) 0%, rgba(8, 20, 49, 0.52) 46%, rgba(8, 20, 49, 0.96) 100%),
        var(--card-image, url("../assets/blog/blog-hero.jpg")) center / cover no-repeat;
    color: #fffaf3;
    text-decoration: none;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.blog-card:nth-child(2n) {
    background-position: center right;
}

.blog-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8, 20, 49, 0.18) 0%, rgba(8, 20, 49, 0.18) 42%, rgba(8, 20, 49, 0.42) 100%);
    opacity: 0;
    transition: opacity 220ms ease;
}

.blog-card:hover,
.blog-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 34px 84px -48px rgba(17, 37, 82, 0.7);
}

.blog-card:hover::before,
.blog-card:focus-visible::before {
    opacity: 1;
}

.blog-card:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.blog-tag {
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 250, 243, 0.24);
    background: rgba(17, 37, 82, 0.72);
    backdrop-filter: blur(8px);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.blog-card h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.05rem, 3.4vw, 3.2rem);
    line-height: 0.96;
    font-weight: 600;
    text-shadow: 0 2px 18px rgba(2, 12, 34, 0.68);
}

.blog-card p {
    margin: 14px 0 0;
    color: rgba(255, 250, 243, 0.96);
    line-height: 1.6;
    text-shadow: 0 2px 16px rgba(2, 12, 34, 0.68);
}

.blog-shell {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(280px, 340px);
    gap: 48px;
    align-items: start;
    padding: 70px 0 96px;
}

.blog-article,
.blog-sidebar-card {
    border: 1px solid rgba(17, 37, 82, 0.08);
    border-radius: 28px;
    background: rgba(255, 250, 243, 0.78);
    box-shadow: var(--shadow);
}

.blog-article {
    padding: clamp(28px, 4.5vw, 58px);
}

.story-intro {
    margin-bottom: 44px;
    color: var(--ink-soft);
    font-size: clamp(1.1rem, 1.55vw, 1.28rem);
    line-height: 1.86;
}

.story-intro p:first-child::first-letter {
    float: left;
    padding: 0.1em 0.12em 0 0;
    color: var(--gold);
    font-family: "Cormorant Garamond", serif;
    font-size: 4.4em;
    line-height: 0.72;
}

.blog-article h2 {
    margin: 54px 0 18px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.5rem, 4.5vw, 4.1rem);
    line-height: 0.98;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.blog-article h2:first-child {
    margin-top: 0;
}

.blog-article p,
.blog-article li {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.82;
}

.blog-article ul,
.blog-article ol {
    padding-left: 1.2rem;
}

.key-takeaway {
    margin: 42px 0 46px;
    padding: 30px;
    border-radius: 24px;
    background: linear-gradient(145deg, #112552, #1c2d5a);
    color: #fffaf3;
}

.example-box {
    margin: 34px 0;
    padding: 26px;
    border: 1px solid rgba(211, 155, 66, 0.26);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
}

.example-box h3 {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.example-box p {
    margin-bottom: 0;
}

.key-takeaway span {
    display: block;
    margin-bottom: 14px;
    color: #f1c77f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.key-takeaway p {
    margin: 0;
    color: #fffaf3;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    line-height: 1.12;
}

.checklist {
    margin: 34px 0;
    padding: 26px;
    border-left: 5px solid var(--gold);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.62);
}

.checklist h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.blog-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    display: grid;
    gap: 22px;
}

.blog-sidebar-card {
    padding: 26px;
}

.blog-sidebar-card h2,
.blog-sidebar-card p {
    margin-top: 0;
}

.blog-sidebar-card h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.3rem;
    line-height: 1;
}

.blog-sidebar-card p,
.blog-sidebar-card a {
    color: var(--ink-soft);
    line-height: 1.6;
}

.blog-sidebar-card a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    text-decoration: none;
}

.store-badge {
    width: min(180px, 100%);
}

.blog-footer {
    padding: 42px 0;
    color: rgba(51, 69, 98, 0.72);
}

.blog-footer-inner {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.blog-footer img {
    width: 94px;
}

.blog-footer nav {
    display: flex;
    gap: 20px;
}

.blog-footer a {
    text-decoration: none;
}

@media (max-width: 980px) {
    :root {
        --header-h: 84px;
    }

    .site-header {
        padding: 0 18px;
    }

    .ribbon-logo {
        width: 100px;
        height: 76px;
        padding: 7px 10px;
        border-radius: 0 0 8px 8px;
    }

    .ribbon-logo img {
        width: 70px;
        height: 54px;
        transform: translateY(0);
    }

    .nav-desktop,
    .lang-switch {
        display: none;
    }

    .menu-button {
        position: absolute;
        top: 20px;
        right: 18px;
        display: inline-flex;
        margin: 0;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.72);
        color: var(--ink);
        font-size: 1.2rem;
        line-height: 1;
    }

    .mobile-nav[data-open="true"] {
        position: fixed;
        inset: var(--header-h) 14px auto 14px;
        z-index: 39;
        display: grid;
        gap: 14px;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(251, 247, 240, 0.98);
        box-shadow: var(--shadow);
    }

    .blog-hero {
        background:
            linear-gradient(90deg, rgba(251, 247, 240, 0.94) 0%, rgba(251, 247, 240, 0.72) 56%, rgba(251, 247, 240, 0.08) 100%),
            var(--blog-hero-image, url("../assets/blog/blog-hero.jpg")) 70% top / cover no-repeat,
            var(--cream);
    }

    .blog-hero-inner,
    .blog-shell {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

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

    .blog-footer-inner {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .blog-footer nav {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .blog-hero-inner,
    .blog-index,
    .blog-shell,
    .blog-footer-inner {
        width: min(100% - 30px, var(--container));
    }

    .blog-hero-inner {
        display: block;
        min-height: auto;
        padding: 52px 0 76px;
    }

    .blog-hero h1 {
        max-width: 100%;
        font-size: clamp(2.7rem, 12.5vw, 3.7rem);
        line-height: 0.96;
        letter-spacing: 0;
        text-wrap: balance;
    }

    .blog-lead {
        font-size: 1rem;
        line-height: 1.74;
    }

    .blog-index {
        padding: 32px 0 70px;
    }

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

    .blog-card {
        min-height: 340px;
        padding: 24px;
        border-radius: 22px;
    }

    .blog-shell {
        padding: 42px 0 72px;
        gap: 24px;
    }

    .blog-article,
    .blog-sidebar-card {
        border-radius: 22px;
    }

    .blog-article {
        padding: 24px 16px;
    }

    .key-takeaway,
    .checklist {
        padding: 24px;
        border-radius: 20px;
    }

    .blog-article h2 {
        margin-top: 42px;
        font-size: clamp(2.15rem, 10vw, 3rem);
        line-height: 1;
        letter-spacing: 0;
    }

    .blog-article p,
    .blog-article li {
        font-size: 1rem;
        line-height: 1.74;
    }
}

