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

:root {
    --gold:      #C8A45D;
    --gold-lt:   #DFC08A;
    --cream:     #FAF7F2;
    --dark:      #0E0B08;
    --dark-card: #140F09;
    --border:    rgba(200,164,93,0.18);
}

html, body {
    height: 100%;
    background: var(--dark);
    color: var(--cream);
    overflow-x: hidden;
    overflow-y: auto;
}

/* ── FULL-PAGE LAYOUT ── */
.language-selection {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px 0 0;
}

/* subtle radial gold glow */
.language-selection::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 55%, rgba(200,164,93,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.container {
    position: relative;
    flex: 1;
    width: 100%;
    max-width: 700px;
    padding: 0 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
}

/* ── EYEBROW ── */
.eyebrow {
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.1s;
}

/* ── TITLE — never wraps, scales to fit ── */
.welcome-title {
    font-family: 'Cormorant Garamond', serif;
    /* clamp: min 28px, fluid 7vw, max 80px — keeps it on one line */
    font-size: clamp(28px, 7vw, 80px);
    font-weight: 300;
    letter-spacing: 0.12em;
    line-height: 1;
    color: var(--cream);
    white-space: nowrap;          /* never allow line break */
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.35s;
}

/* ── GOLD RULE ── */
.title-rule {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    margin: 28px auto;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.8s;
}

/* ── SUBTITLE ── */
.subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(250,247,242,0.45);
    margin-bottom: 52px;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 1s;
}

/* ── LANGUAGE CARDS ── */
.language-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 480px;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 1.2s;
}

.language-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 24px;
    text-decoration: none;
    background: var(--dark-card);
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.language-card:hover {
    border-color: rgba(200,164,93,0.55);
    transform: translateY(-4px);
    background: rgba(200,164,93,0.04);
}

.flag-icon {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--gold);
    border: 1px solid rgba(200,164,93,0.4);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    transition: border-color 0.3s, background 0.3s;
}

.language-card:hover .flag-icon {
    border-color: var(--gold);
    background: rgba(200,164,93,0.08);
}

.language-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--cream);
    transition: color 0.3s;
}

.language-card:hover h2 { color: var(--gold-lt); }

.language-card p {
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(250,247,242,0.4);
    transition: color 0.3s;
}

.language-card:hover p { color: rgba(250,247,242,0.65); }

/* ── FOOTER ── */
.site-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(250,247,242,0.28);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .container { padding: 0 24px 32px; }

    /* fluid font already handles most cases; just tighten spacing */
    .welcome-title { letter-spacing: 0.06em; }

    .subtitle {
        letter-spacing: 3px;
        margin-bottom: 36px;
    }

    .language-options {
        max-width: 100%;
        gap: 14px;
    }

    .language-card { padding: 28px 16px; }

    .site-footer { padding: 18px 24px; letter-spacing: 2px; }
}

@media (max-width: 380px) {
    /* stack cards on very small screens */
    .language-options {
        grid-template-columns: 1fr;
        max-width: 240px;
    }

    .subtitle { font-size: 9px; letter-spacing: 2px; }
}