/* christoth.dev — accessible, responsive, dark-mode-aware. No JS, no web fonts. */

:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --surface: #f4f6f9;
    --text: #16181d;
    --muted: #545b66;
    --accent: #0a5fb4;
    --on-accent: #ffffff;
    --border: #d6dbe2;
    --focus: #0a5fb4;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d1117;
        --surface: #161b22;
        --text: #e6edf3;
        --muted: #9aa4b2;
        --accent: #6cb6ff;
        --on-accent: #07223c;
        --border: #2a313c;
        --focus: #6cb6ff;
    }
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 44rem;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 1.25rem 4rem;
}

/* Skip link: hidden until focused */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: var(--on-accent);
    padding: .7rem 1rem;
    border-radius: 0 0 .4rem 0;
    z-index: 10;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

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

h2 {
    font-size: 1.35rem;
    margin: 2.75rem 0 1rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    margin: 1.6rem 0 .6rem;
}

.bio {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    max-width: 40rem;
}
.bio strong { font-weight: 700; }

/* Text links: underlined (never colour-only) */
a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
a:hover { text-decoration-thickness: 2px; }

/* Project lists */
.projects ul { list-style: none; margin: 0; padding: 0; }
.projects li {
    margin: 0 0 .7rem;
    padding-left: 1.15rem;
    position: relative;
}
.projects li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: var(--accent);
}
.projects li a { font-weight: 650; }

/* "Find me elsewhere" — pill links, >=44px tap targets */
.links {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem 1.05rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}
.links a:hover { border-color: var(--accent); color: var(--accent); }

/* Strong, visible keyboard focus everywhere */
a:focus-visible,
.skip-link:focus {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
