@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Spectral:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

@font-face {
    font-family: 'GFS Bodoni';
    src: url('/fonts/GFSBodoni-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GFS Bodoni';
    src: url('/fonts/GFSBodoni-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Editorial Magazine palette — warm off-white + deep teal */
    --bg: #f5f2e9;
    --bg-alt: #ebe6d8;
    --bg-card: #ffffff;
    --ink: #1a1816;
    --ink-soft: #3d3a34;
    --ink-muted: #7a7468;
    --ink-light: #aaa69c;
    --rule: #d8d2c0;
    --rule-soft: rgba(30, 91, 94, 0.12);

    --accent: #1e5b5e;
    --accent-dark: #164548;
    --accent-light: #2d7a7e;
    --accent-bg: rgba(30, 91, 94, 0.06);

    --highlight: #c94f3e; /* warm red for highlights */

    --font-display: 'GFS Bodoni', 'Times New Roman', serif;
    --font-body: 'Spectral', 'Georgia', serif;
    --font-ui: 'Inter', -apple-system, sans-serif;
    --font-brand: 'GFS Bodoni', 'Times New Roman', serif;

    --gutter: clamp(1.5rem, 4vw, 3rem);
    --max-width: 1320px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ═══════ NAV ═══════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    transition: all 0.3s ease;
}

.nav.scrolled { background: rgba(245, 242, 233, 0.96); backdrop-filter: blur(12px); }

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.005em;
    color: var(--accent);
    text-decoration: none;
    line-height: 1;
}

.nav-brand em {
    font-style: italic;
    display: inline;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    color: var(--ink-soft);
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-lang {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--ink-muted);
    text-decoration: none;
    border: 1px solid var(--rule);
    padding: 0.4rem 0.75rem;
    text-transform: uppercase;
    transition: all 0.3s;
}

.nav-lang:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.burger {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--ink);
    transition: all 0.3s;
}

.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══════ CONTAINER ═══════ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.narrow {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ═══════ HERO — EDITORIAL STYLE ═══════ */
.hero {
    padding: 10rem 0 4rem;
    position: relative;
}

.hero-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
}

.hero-label {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.hero-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--ink);
}

.hero-title em {
    font-style: italic;
    font-weight: 500;
}

.hero-meta {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--ink-muted);
    line-height: 1.6;
    font-style: italic;
    max-width: 420px;
}

.hero-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--bg-alt);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══════ PAGE HERO — simpler for inner pages ═══════ */
.page-hero {
    padding: 10rem 0 4rem;
    border-bottom: 1px solid var(--rule);
}

.page-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.page-label {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--accent);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.page-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
}

.page-title em { font-style: italic; font-weight: 500; }

.page-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ink-muted);
    margin-top: 1.5rem;
    max-width: 600px;
}

/* ═══════ SECTIONS ═══════ */
section { padding: 5rem 0; }

.section-header {
    max-width: var(--max-width);
    margin: 0 auto 3rem;
    padding: 0 var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
}

.section-label {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
}

.section-title em { font-style: italic; font-weight: 500; color: var(--accent); }

.link-more {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    transition: opacity 0.3s;
}

.link-more:hover { opacity: 0.6; }

/* ═══════ BUTTONS ═══════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
    background: none;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

/* ═══════ FOOTER ═══════ */
.footer {
    padding: 4rem 0 2.5rem;
    border-top: 1px solid var(--rule);
    margin-top: 5rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 2rem;
}

.footer-brand {
    font-family: var(--font-brand);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.005em;
    line-height: 1.1;
    color: var(--accent);
}

.footer-brand em { font-style: italic; }

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--ink-muted);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    color: var(--ink-light);
    letter-spacing: 0.08em;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 900px) {
    .nav-inner { height: 68px; }

    .burger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-left: 1px solid var(--rule);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-links.open { right: 0; }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--rule);
    }

    .nav-links a {
        display: block;
        padding: 1.2rem 0;
        font-size: 0.85rem;
        letter-spacing: 0.18em;
    }

    .nav-links a::after { display: none; }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(26, 24, 22, 0.4);
        z-index: 998;
        display: none;
    }

    .nav-overlay.open { display: block; }

    .hero { padding: 7rem 0 3rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-image { aspect-ratio: 16/10; order: -1; }

    .page-hero { padding: 7rem 0 3rem; }

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