/* Fabrice Tiku Nyambod: site styles */
:root {
    --bg: #faf8f3;
    --surface: #ffffff;
    --soft: #eef3ef;
    --ink: #16201c;
    --muted: #4d5a55;
    --line: #e2dfd5;
    --accent: #1d5446;
    --accent-hover: #163f35;
    --accent-ink: #ffffff;
    --gold: #9a6c1f;
    --hero-bg: #12201b;
    --hero-ink: #f1f4f1;
    --hero-muted: #b5c4bd;
    --shadow: 0 1px 2px rgba(22, 32, 28, 0.05), 0 8px 24px rgba(22, 32, 28, 0.06);
    --radius: 14px;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0e1412;
        --surface: #151d1a;
        --soft: #18231f;
        --ink: #e8eee9;
        --muted: #a2b0a9;
        --line: #26312d;
        --accent: #6fbfa3;
        --accent-hover: #8fd0b8;
        --accent-ink: #0e1412;
        --gold: #d8ad62;
        --hero-bg: #0a100e;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0e1412;
    --surface: #151d1a;
    --soft: #18231f;
    --ink: #e8eee9;
    --muted: #a2b0a9;
    --line: #26312d;
    --accent: #6fbfa3;
    --accent-hover: #8fd0b8;
    --accent-ink: #0e1412;
    --gold: #d8ad62;
    --hero-bg: #0a100e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.skip-link {
    position: absolute; left: -999px; top: 8px;
    background: var(--accent); color: var(--accent-ink);
    padding: 8px 14px; border-radius: 6px; z-index: 200;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand {
    font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
    color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
    padding: 8px 12px; border-radius: 8px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem;
}
.icon-btn:hover { border-color: var(--accent); }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px; border-radius: 999px;
    font-weight: 600; font-size: 0.95rem; text-decoration: none;
    border: 1px solid transparent; cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn-small { padding: 8px 16px; font-size: 0.875rem; }
.hero .btn-ghost { background: transparent; border-color: rgba(255,255,255,0.25); color: var(--hero-ink); }
.hero .btn-ghost:hover { border-color: var(--hero-ink); }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(ellipse 70% 60% at 85% 10%, rgba(111, 191, 163, 0.16) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 0% 100%, rgba(216, 173, 98, 0.10) 0%, transparent 70%),
        var(--hero-bg);
    color: var(--hero-ink);
    padding: 96px 0 104px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000 30%, transparent 100%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero .eyebrow { color: #d8ad62; }
.hero h1 { color: var(--hero-ink); margin-bottom: 0.35em; }
.hero h1 .credentials { color: var(--hero-muted); font-size: 0.5em; font-weight: 400; white-space: nowrap; }
.hero-lead { font-size: 1.2rem; color: var(--hero-muted); max-width: 600px; margin-bottom: 12px; }
.hero-lead strong { color: var(--hero-ink); font-weight: 500; }
.hero-affil { font-size: 0.95rem; color: var(--hero-muted); margin-bottom: 32px; }
.hero-affil i { color: #d8ad62; margin-right: 6px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; justify-self: end; max-width: 380px; width: 100%; }
.hero-photo img { border-radius: 20px; aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; }
.hero-photo::after {
    content: ""; position: absolute; inset: 14px -14px -14px 14px;
    border: 1px solid rgba(216, 173, 98, 0.45); border-radius: 20px; z-index: -1;
}
.hero-photo { z-index: 0; }
.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.2); color: var(--hero-ink); text-decoration: none;
}
.socials a:hover { border-color: #d8ad62; color: #d8ad62; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--soft); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.page-hero { padding: 80px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 680px; }

/* ---------- Metrics ---------- */
.metrics {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); overflow: hidden;
}
.metric { padding: 28px 24px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric-num { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; line-height: 1; color: var(--accent); }
.metric-label { margin-top: 10px; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow);
}
.card-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--soft); color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem; margin-bottom: 18px;
}
.card p { color: var(--muted); font-size: 0.98rem; }
.card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.95rem; }
.card li { margin-bottom: 6px; }
.card .meta { font-size: 0.85rem; color: var(--gold); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 8px; }

/* ---------- Featured work ---------- */
.feature {
    display: grid; grid-template-columns: 200px 1fr; gap: 32px;
    padding: 32px 0; border-top: 1px solid var(--line);
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature-kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.feature-status { margin-top: 6px; font-size: 0.9rem; color: var(--muted); }
.feature h3 { font-size: 1.4rem; margin-bottom: 10px; }
.feature p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.tag {
    font-size: 0.8rem; padding: 4px 12px; border-radius: 999px;
    background: var(--soft); color: var(--ink); border: 1px solid var(--line);
}
.link-row { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.95rem; font-weight: 600; }
.link-row a { text-decoration: none; }
.link-row a:hover { text-decoration: underline; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 32px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: ""; position: absolute; left: -7px; top: 8px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--accent);
}
.timeline .when { font-size: 0.85rem; font-weight: 600; color: var(--gold); letter-spacing: 0.03em; }
.timeline h3 { margin: 4px 0 2px; font-size: 1.15rem; }
.timeline .where { color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; }
.timeline p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.about-grid img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; }
.prose p { font-size: 1.08rem; }
.prose p:first-of-type::first-letter {
    font-family: var(--serif); float: left; font-size: 3.4em; line-height: 0.85;
    padding: 6px 10px 0 0; color: var(--accent);
}
.fact-list { list-style: none; padding: 0; margin: 24px 0 0; font-size: 0.95rem; color: var(--muted); }
.fact-list li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; }
.fact-list i { color: var(--accent); width: 18px; margin-top: 5px; }

/* ---------- Publications ---------- */
.pub-toolbar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
    margin-bottom: 36px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
    font: inherit; font-size: 0.9rem; font-weight: 500;
    padding: 8px 16px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line); background: var(--surface); color: var(--muted);
}
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pub-search {
    font: inherit; font-size: 0.95rem; padding: 9px 16px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    min-width: 240px;
}
.pub-group { margin-bottom: 56px; }
.pub-group h2 { font-size: 1.5rem; display: flex; align-items: baseline; gap: 12px; }
.pub-group h2 .count { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.pub-list { list-style: none; margin: 0; padding: 0; counter-reset: pub; }
.pub {
    display: grid; grid-template-columns: 44px 1fr; gap: 8px;
    padding: 22px 0; border-top: 1px solid var(--line);
}
.pub::before {
    counter-increment: pub; content: counter(pub);
    font-family: var(--serif); font-size: 1.1rem; color: var(--gold);
}
.pub-title { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.pub-authors { font-size: 0.93rem; color: var(--muted); margin-bottom: 4px; }
.pub-authors b { color: var(--ink); font-weight: 600; }
.pub-venue { font-size: 0.93rem; color: var(--muted); }
.pub-venue em { color: var(--ink); }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pub-links a {
    font-size: 0.8rem; font-weight: 600; text-decoration: none;
    padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--accent);
}
.pub-links a:hover { border-color: var(--accent); }
.badge {
    display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 6px; background: var(--soft); color: var(--accent); margin-left: 6px;
    vertical-align: 2px;
}
.empty-note { color: var(--muted); display: none; }

/* ---------- Blog ---------- */
.post-card { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; text-decoration: none; color: inherit; }
.post-card img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.post-card h3 { font-size: 1.5rem; color: var(--ink); }
.post-card:hover h3 { color: var(--accent); }
.post-date { font-size: 0.85rem; color: var(--gold); font-weight: 600; letter-spacing: 0.04em; }
.article { padding: 64px 0 88px; }
.article h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
.article .lede { font-size: 1.25rem; color: var(--muted); font-family: var(--serif); font-weight: 400; }
.article figure { margin: 36px 0; }
.article figure img { border-radius: var(--radius); width: 100%; }
.article .body p { font-size: 1.12rem; line-height: 1.8; }
.article .byline { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.95rem; margin: 20px 0 0; }
.article .byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.callout { background: var(--soft); border-left: 3px solid var(--accent); padding: 18px 22px; border-radius: 0 10px 10px 0; margin-top: 32px; }
.callout p { margin: 0 0 4px; font-size: 1rem !important; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.form { display: grid; gap: 16px; }
.form label { font-size: 0.9rem; font-weight: 600; display: grid; gap: 6px; }
.form input, .form select, .form textarea {
    font: inherit; font-size: 1rem; font-weight: 400;
    padding: 12px 14px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.form textarea { min-height: 160px; resize: vertical; }
.form .hidden { display: none; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list i { color: var(--accent); width: 20px; margin-top: 5px; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

/* ---------- Mentorship (Open Dreams) ---------- */
.feature-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.feature-split p { color: var(--muted); font-size: 1.05rem; }
.lead-muted { font-weight: 600; color: var(--gold) !important; font-size: 0.95rem !important; letter-spacing: 0.02em; }
.pullquote {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px; box-shadow: var(--shadow);
}
.stat-stack { display: grid; gap: 20px; margin-bottom: 28px; }
.stat-stack > div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: baseline; }
.stat-stack .metric-num { font-size: 2rem; }
.stat-stack .metric-label { margin-top: 0; }
.pullquote blockquote {
    margin: 0; padding-top: 24px; border-top: 1px solid var(--line);
    font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--ink);
}
.pullquote blockquote:first-child { border-top: 0; padding-top: 0; }
.pullquote blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: 0.6; color: var(--gold); margin-bottom: 6px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--hero-bg); color: var(--hero-ink); padding: 80px 0; text-align: center; }
.cta-band h2 { color: var(--hero-ink); max-width: 720px; margin: 0 auto 14px; }
.cta-band p { color: var(--hero-muted); max-width: 600px; margin: 0 auto 28px; }
.cta-band .cta-row { justify-content: center; }
.cta-band .btn-primary { background: #6fbfa3; color: #0e1412; }
.cta-band .btn-primary:hover { background: #8fd0b8; }
.cta-band .btn-ghost { background: transparent; border-color: rgba(255,255,255,0.25); color: var(--hero-ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 0.92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.footer-grid a:hover { color: var(--accent); }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.85rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-photo { justify-self: start; max-width: 300px; order: -1; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .metrics { grid-template-columns: 1fr 1fr; }
    .metric:nth-child(2) { border-right: 0; }
    .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .about-grid, .contact-grid, .feature-split { grid-template-columns: 1fr; gap: 36px; }
    .about-grid img { max-width: 280px; }
}

@media (max-width: 820px) {
    .menu-toggle { display: inline-flex; }
    .nav-links {
        position: fixed; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--line);
        padding: 8px 16px 16px; display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px 12px; font-size: 1.05rem; }
    .nav-actions .btn-cv { display: none; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .hero { padding: 56px 0 72px; }
    .section { padding: 64px 0; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .feature { grid-template-columns: 1fr; gap: 8px; }
    .post-card { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .pub-search { min-width: 0; width: 100%; }
    .metric-num { font-size: 2rem; }
}
