/* johnbabalola.com — one shared stylesheet.
   Plain CSS (ADR-0003), system fonts, mobile first, neutral dark/light. */

:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --fg: #1a1a1a;
    --muted: #5a5f66;
    --accent: #0b5fff;
    --border: #e6e8eb;
    --card: #fafbfc;
    --maxw: 44rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14161a;
        --fg: #e8e8e8;
        --muted: #9aa0a6;
        --accent: #6ea8ff;
        --border: #2a2e35;
        --card: #1a1d22;
    }
}

* {
    box-sizing: border-box;
}

html {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--fg);
}

/* Keyboard focus is always visible. */
a:focus-visible,
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Skip link for keyboard and screen-reader users. */
.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    background: var(--bg);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    z-index: 10;
}

/* ---- Header / nav ---- */
.site-header {
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding: 1rem 1.25rem;
}

.brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--fg);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.site-nav {
    display: flex;
    gap: 1.25rem;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
    color: var(--fg);
}

/* ---- Main content column ---- */
main {
    flex: 1;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}

h1 {
    font-size: clamp(1.9rem, 6vw, 2.8rem);
    line-height: 1.15;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.4rem;
    margin: 2.5rem 0 0.75rem;
    letter-spacing: -0.01em;
}

.title {
    font-size: 1.15rem;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.lede {
    font-size: 1.08rem;
    margin: 0 0 1.5rem;
}

a {
    color: var(--accent);
}

/* ---- Inline link row ---- */
.links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.links a {
    font-weight: 600;
    text-decoration: none;
}

.links a:hover,
.links a:focus {
    text-decoration: underline;
}

/* ---- Stack tags ---- */
.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.stack li {
    font-size: 0.82rem;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
}

/* ---- Project cards ---- */
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 40rem) {
    .cards {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 0.6rem;
    padding: 1.1rem 1.2rem;
}

.card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.card h3 a {
    text-decoration: none;
}

.card h3 a:hover,
.card h3 a:focus {
    text-decoration: underline;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.card .status {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: var(--muted);
}

/* ---- Eligibility / footer ---- */
.eligibility {
    font-size: 0.9rem;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
}

.site-footer .wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: space-between;
}

.site-footer a {
    color: var(--muted);
}

/* ---- Utility ---- */
.muted {
    color: var(--muted);
}
