:root {
    --color-pastel-coral: #ffadad;
    --color-pastel-peach: #ffd6a5;
    --color-pastel-yellow: #fdffb6;
    --color-pastel-mint: #caffbf;
    --color-pastel-cyan: #9bf6ff;
    --color-pastel-blue: #a0c4ff;
    --color-pastel-lavender: #bdb2ff;
    --color-pastel-pink: #ffc6ff;
    --color-background: #fffffc;
    --color-surface: #ffffff;
    --color-surface-muted: #faf9f7;
    --color-text-primary: #2d2a32;
    --color-text-secondary: #5e5964;
    --color-text-muted: #77717d;
    --color-border: #dedadf;
    --color-border-strong: #aaa4ae;
    --color-brand-soft: var(--color-pastel-lavender);
    --color-brand-secondary-soft: var(--color-pastel-blue);
    --color-accent-soft: var(--color-pastel-coral);
    --color-success-soft: var(--color-pastel-mint);
    --color-info-soft: var(--color-pastel-cyan);
    --color-highlight-soft: var(--color-pastel-yellow);
    --color-craft-soft: var(--color-pastel-peach);
    --color-magic-soft: var(--color-pastel-pink);
    --color-action-primary: #5f4f8f;
    --color-action-primary-hover: #4d4077;
    --color-action-primary-active: #3f3561;
    --color-focus-ring: #51437d;
    --gradient-brand: linear-gradient(135deg, #bdb2ff 0%, #ffc6ff 100%);
    --gradient-creative: linear-gradient(135deg, rgb(189 178 255 / 0.6) 0%, rgb(255 214 165 / 0.44) 58%, var(--color-background) 100%);
    --green: var(--color-text-primary);
    --lime: var(--color-pastel-yellow);
    --mint: var(--color-pastel-cyan);
    --purple: var(--color-pastel-lavender);
    --blue: var(--color-action-primary);
    --white: #ffffff;
    --warm: var(--color-background);
    --warm-2: var(--color-surface-muted);
    --ink-soft: var(--color-text-secondary);
    --radius: 8px;
    --shadow-soft: 0 8px 24px rgb(45 42 50 / 8%);
    --shadow-card: 0 4px 14px rgb(45 42 50 / 7%);
    --serif: "Fraunces", Georgia, serif;
    --sans: "Montserrat", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--green);
    font-family: var(--sans);
    font-size: 16px;
    letter-spacing: 0;
}

body.is-menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration-color: var(--lime);
    text-decoration-thickness: 0.16em;
    text-underline-offset: 0.22em;
    transition: color 180ms ease, text-decoration-color 180ms ease;
}

a:hover {
    color: var(--purple);
    text-decoration-color: var(--purple);
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.eyebrow,
.nav-link,
.button,
.footer-nav-title {
    font-family: var(--sans);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    background: var(--color-action-primary);
    color: var(--white);
    cursor: pointer;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease;
    box-shadow: 0 12px 24px rgb(45 42 50 / 12%);
    white-space: nowrap;
}

.button:hover {
    background: var(--color-action-primary-hover);
    color: var(--white);
    transform: translateY(-2px);
}

.button:active {
    background: var(--color-action-primary-active);
    transform: translateY(0);
}

.button-secondary {
    border: 1px solid rgb(45 42 50 / 0.16);
    background: var(--white);
    color: var(--green);
    box-shadow: none;
}

.button-secondary:hover {
    background: var(--color-surface-muted);
    color: var(--green);
}

.button:focus-visible,
.icon-button:focus-visible,
.language-select:focus-visible,
.footer-cookie-settings:focus-visible,
.cookie-modal-close:focus-visible {
    outline: 3px solid var(--color-focus-ring);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgb(255 255 252 / 94%);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgb(45 42 50 / 0.08);
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    min-height: 82px;
}

.nav-list,
.header-actions,
.footer-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    text-decoration: none;
}

.brand img,
.footer-brand img {
    width: min(230px, 42vw);
    height: auto;
}

.header-actions {
    justify-content: flex-end;
}

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

.language-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.language-picker::after {
    content: "";
    position: absolute;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    pointer-events: none;
    transform: translateY(-3px) rotate(45deg);
}

.language-select {
    min-height: 42px;
    max-width: 170px;
    border: 1px solid rgb(45 42 50 / 0.14);
    border-radius: 999px;
    padding: 0 38px 0 18px;
    appearance: none;
    background: var(--white);
    color: var(--green);
    cursor: pointer;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.icon-button {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgb(45 42 50 / 0.12);
    border-radius: 999px;
    background: var(--white);
    color: var(--green);
    cursor: pointer;
}

.section {
    padding: clamp(68px, 9vw, 120px) 0;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-title {
    margin: 10px 0 0;
    font-family: var(--serif);
    font-size: clamp(2.1rem, 5vw, 4.6rem);
    font-weight: 400;
    line-height: 0.98;
}

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

.blog-card {
    overflow: hidden;
    border: 1px solid rgb(45 42 50 / 0.08);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.blog-image {
    display: block;
    aspect-ratio: 1.4;
    overflow: hidden;
    background: var(--warm-2);
}

.blog-image picture,
.blog-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-image img {
    object-fit: cover;
    transition: transform 220ms ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.04);
}

.blog-content {
    padding: 22px;
}

.blog-meta {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.blog-content h3 {
    margin: 12px 0 0;
    font-size: 1.16rem;
    line-height: 1.35;
}

.blog-content h3 a {
    text-decoration: none;
}

.blog-content p {
    color: var(--ink-soft);
    line-height: 1.7;
}

.blog-link {
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.site-footer {
    padding: 56px 0 30px;
    background: var(--green);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
    gap: 42px;
    align-items: start;
}

.footer-note {
    max-width: 520px;
    color: rgb(255 255 255 / 0.72);
    line-height: 1.7;
}

.footer-nav {
    justify-self: end;
    text-align: right;
}

.footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.footer-nav .footer-links {
    align-items: flex-end;
}

.footer-cookie-settings {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.footer-cookie-settings:hover {
    color: var(--purple);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 18px;
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid rgb(255 255 255 / 0.16);
    color: rgb(255 255 255 / 0.64);
    font-size: 0.78rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 50;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cookie-consent[hidden],
.cookie-modal[hidden] {
    display: none;
}

.cookie-consent-panel {
    display: grid;
    grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
    align-items: center;
    width: min(980px, 100%);
    gap: 24px;
    border: 1px solid rgb(45 42 50 / 0.12);
    border-radius: 8px;
    padding: 20px;
    background: rgb(255 255 255 / 0.98);
    box-shadow: 0 18px 48px rgb(45 42 50 / 18%);
    pointer-events: auto;
}

.cookie-consent-image,
.cookie-modal-image {
    width: 100%;
    border-radius: 8px;
    background: var(--color-surface-muted);
}

.cookie-consent-image {
    align-self: stretch;
    height: 100%;
    max-height: 210px;
    object-fit: contain;
}

.cookie-consent-copy .eyebrow,
.cookie-modal-panel .eyebrow {
    margin: 0 0 6px;
}

.cookie-consent-copy h2,
.cookie-modal-panel h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 400;
    line-height: 1.1;
}

.cookie-consent-copy p:last-child,
.cookie-modal-panel > p {
    margin: 8px 0 0;
    color: var(--ink-soft);
    line-height: 1.6;
}

.cookie-consent-actions,
.cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-consent-actions {
    grid-column: 2;
}

.cookie-consent-actions .button,
.cookie-modal-actions .button {
    min-height: 42px;
    padding: 0 18px;
    font-size: 0.72rem;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(45 42 50 / 0.42);
}

.cookie-modal-panel {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    border-radius: 8px;
    padding: 24px;
    background: var(--white);
    box-shadow: 0 24px 70px rgb(45 42 50 / 28%);
}

.cookie-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgb(45 42 50 / 0.12);
    border-radius: 999px;
    background: var(--white);
    color: var(--green);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.cookie-modal-image {
    max-width: 340px;
    margin: 0 auto 22px;
}

.cookie-preference-list {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

.cookie-preference {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid rgb(45 42 50 / 0.12);
    border-radius: 8px;
    padding: 16px;
    background: var(--color-surface-muted);
}

.cookie-preference h3 {
    margin: 0;
    font-size: 1rem;
}

.cookie-preference p {
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.55;
}

.cookie-status {
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cookie-preference input {
    width: 22px;
    height: 22px;
    accent-color: var(--color-action-primary);
}

@media (max-width: 900px) {
    .header-grid {
        grid-template-columns: auto 1fr auto;
    }

    .menu-toggle {
        display: grid;
    }

    .primary-nav {
        position: fixed;
        inset: 82px 0 auto;
        display: none;
        padding: 24px 20px;
        background: var(--white);
        border-bottom: 1px solid rgb(45 42 50 / 0.08);
    }

    body.is-menu-open .primary-nav {
        display: block;
    }

    .nav-list {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand {
        justify-self: center;
    }

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

    .footer-nav {
        justify-self: start;
        text-align: left;
    }

    .footer-nav .footer-links {
        align-items: flex-start;
    }

    .cookie-consent-panel {
        grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
    }

    .cookie-consent-actions {
        grid-column: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .header-grid {
        gap: 12px;
    }

    .brand img {
        width: min(190px, 46vw);
    }

    .language-select {
        max-width: 128px;
        padding-left: 14px;
        font-size: 0.66rem;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .cookie-consent {
        right: 14px;
        bottom: 14px;
        left: 14px;
    }

    .cookie-consent-panel,
    .cookie-preference {
        grid-template-columns: 1fr;
    }

    .cookie-consent-image {
        max-width: 260px;
        max-height: 170px;
        justify-self: center;
    }

    .cookie-modal-image {
        max-width: min(320px, 100%);
    }

    .cookie-consent-actions {
        grid-column: 1;
    }

    .cookie-consent-actions,
    .cookie-modal-actions {
        justify-content: stretch;
    }

    .cookie-consent-actions .button,
    .cookie-modal-actions .button {
        width: 100%;
    }
}
