/* ─────────────────────────────────────────────────────────────────────────────
   site.css — shared foundation for all public-facing Factsheet Six pages.
   Included via head-public.php and head-minimal.php.
   Page-specific styles live in home.css / directory.css / post.css / minimal.css
───────────────────────────────────────────────────────────────────────────── */

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
a { color: inherit; text-decoration: none; }

/* ── Design tokens ──────────────────────────────────────────────────────────── */
:root {
    --ink:      #0f0e0d;
    --paper:    #faf8f4;
    --cream:    #f2ede4;
    --rust:     #c94a2b;
    --rust-dk:  #a83921;
    --muted:    #7a7166;
    --border:   #ddd8cf;
    --ff-head:  'Playfair Display', Georgia, serif;
    --ff-body:  'DM Sans', system-ui, sans-serif;
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
body {
    font-family: var(--ff-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem; height: 60px;
}
.nav-brand {
    font-family: var(--ff-head);
    font-size: 1.3rem; font-weight: 900;
    letter-spacing: -0.02em;
}
.nav-brand span { color: var(--rust); }
.nav-links {
    display: flex; gap: 1.5rem; align-items: center; font-size: 0.9rem;
}
.nav-links a:hover { color: var(--rust); }
.lang-switch {
    color: #aaa; font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.05em; border: 1px solid #ddd;
    padding: 2px 7px; border-radius: 3px;
}
.lang-switch:hover { color: var(--ink); border-color: var(--ink); }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn-primary {
    background: var(--rust); color: #fff;
    padding: 0.45rem 1.1rem; border-radius: 4px;
    font-size: 0.85rem; font-weight: 600;
    border: none; cursor: pointer;
    transition: background 0.15s;
    display: inline-block;
}
.btn-primary:hover { background: var(--rust-dk); }

.btn-outline {
    border: 1.5px solid var(--ink); color: var(--ink);
    padding: 0.45rem 1.1rem; border-radius: 4px;
    font-size: 0.85rem; font-weight: 600;
    transition: all 0.15s;
    display: inline-block;
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-ghost {
    color: rgba(250,248,244,0.8);
    border: 1.5px solid rgba(250,248,244,0.3);
    padding: 0.75rem 2rem; border-radius: 4px;
    font-size: 1rem; font-weight: 600;
    transition: all 0.15s;
    display: inline-flex; align-items: center;
}
.btn-ghost:hover {
    border-color: rgba(250,248,244,0.8);
    color: var(--paper);
}

.btn-white {
    background: #fff; color: var(--rust);
    padding: 0.75rem 2rem; border-radius: 4px;
    font-size: 1rem; font-weight: 700;
    display: inline-block;
    transition: opacity 0.15s;
}
.btn-white:hover { opacity: 0.9; }

/* ── Layout helpers ──────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

.section { padding: 4rem 0; }

.section-header {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 0.75rem;
}
.section-title { font-family: var(--ff-head); font-size: 1.6rem; font-weight: 700; }
.section-link  { font-size: 0.85rem; color: var(--rust); font-weight: 600; }
.section-link:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.footer {
    background: var(--ink); color: rgba(250,248,244,0.6);
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    font-size: 0.85rem;
}
.footer-brand {
    font-family: var(--ff-head); font-size: 1.4rem; font-weight: 900;
    color: var(--paper); margin-bottom: 0.75rem;
}
.footer-brand span { color: var(--rust); }
.footer h4 {
    color: var(--paper); font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem;
}
.footer a { display: block; margin-bottom: 0.5rem; }
.footer a:hover { color: var(--paper); }
.footer-copy {
    text-align: center; padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem; color: rgba(250,248,244,0.4);
    background: var(--ink);
}

@media (max-width: 768px) {
    .footer { grid-template-columns: 1fr 1fr; }
    .nav-links .btn-outline { display: none; }
}
@media (max-width: 480px) {
    .footer { grid-template-columns: 1fr; }
}
