*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button { cursor: pointer; font: inherit; background: none; border: none; }

:root {
    --black:   #000;
    --white:   #fff;
    --dim:     rgba(255,255,255,0.45);
    --faint:   rgba(255,255,255,0.08);
    --accent:  #4f8ef7;
    --accent-dim: rgba(79,142,247,0.12);
    --font-head: 'Fraunces', Georgia, serif;
    --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(30, 50, 110, 0.28) 0%, transparent 65%),
        radial-gradient(ellipse 60% 40% at 85% 90%, rgba(15, 30, 80, 0.2) 0%, transparent 60%),
        #000;
    color: var(--white);
    font-family: var(--font);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ── PAGE ─────────────────────────────────────────────────── */
.page {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── HEADER ───────────────────────────────────────────────── */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 0 2.5rem;
    border-bottom: 1px solid var(--faint);
    animation: up 0.7s ease both;
}

.site-name {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: -0.01em;
    color: var(--white);
}

.lang {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-btn {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--dim);
    padding: 0.1rem 0.1rem;
    transition: color 0.15s ease;
}

.lang-btn:hover { color: rgba(255,255,255,0.7); }

.lang-btn.active { color: var(--accent); }

.lang-sep {
    color: var(--faint);
    font-size: 0.75rem;
    pointer-events: none;
}

/* ── MAIN ─────────────────────────────────────────────────── */
main {
    flex: 1;
    padding: 4rem 0 3rem;
    animation: up 0.8s ease 0.05s both;
}

/* ── CONTENT ARTICLE ──────────────────────────────────────── */
.content {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

h1 {
    font-family: var(--font-head);
    font-size: clamp(2.6rem, 7vw, 4rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variation-settings: 'opsz' 72;
    color: var(--white);
    margin-bottom: 2rem;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--faint);
}

.content p {
    color: var(--dim);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.85;
}

blockquote {
    border-left: 2px solid var(--accent);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    background: var(--accent-dim);
    border-radius: 0 6px 6px 0;
    padding-right: 1rem;
}

.closing {
    color: rgba(255,255,255,0.7) !important;
    font-style: italic;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--faint);
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 0 2.5rem;
    border-top: 1px solid var(--faint);
}

.footer-copy {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
}

/* ── TOAST ────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: var(--white);
    color: var(--black);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 1.4rem;
    border-radius: 3px;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── ANIMATION ────────────────────────────────────────────── */
@keyframes up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .footer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ── PRINT ────────────────────────────────────────────────── */
@media print {
    .header, .footer, .toast { display: none !important; }
    body { color: #000; background: #fff; }
    h1, .lead { color: #000; }
    .content p, blockquote, .closing { color: #333 !important; }
    blockquote { border-color: #999; }
}
