/* kevinevans.tech — calm, single-page personal site (rebuilt 2026-11).
   No animation, no JavaScript. Filename is dated because /*.css is cached for a
   year in _headers: a changed stylesheet must ship under a new name. */

:root {
    --bg: #0a0a0b;
    --bg-alt: #111113;
    --surface: #18181b;
    --border: #27272a;
    --text: #fafafa;
    --text-2: #b4b4bc;
    --text-3: #8b8b94;
    --accent: #60a5fa;
    --accent-strong: #3b82f6;
    --radius: 0.75rem;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--text-2); }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--text); color: var(--bg); padding: 0.5rem 1rem; border-radius: 0.5rem; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 720px; }
.center { text-align: center; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(10, 10, 11, 0.92); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 60px; }
.nav-name { color: var(--text); font-weight: 600; text-decoration: none; margin-right: auto; }
.nav-links { display: none; gap: 1.5rem; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
@media (min-width: 800px) { .nav-links { display: flex; } }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0.65rem 1.25rem;
    background: var(--text); color: var(--bg);
    border: 1px solid var(--text); border-radius: 999px;
    font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.btn:hover { background: transparent; color: var(--text); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--text); }
.btn-small { min-height: 40px; padding: 0.4rem 1rem; font-size: 0.875rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.actions.center { justify-content: center; }

/* Hero */
.hero { padding: 4rem 0 3rem; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.eyebrow { color: var(--text-3); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.lead { font-size: 1.2rem; color: var(--text-2); max-width: 36rem; }
.portrait { width: 100%; max-width: 320px; border-radius: var(--radius); border: 1px solid var(--border); }
@media (min-width: 800px) {
    .hero { padding: 6rem 0 5rem; }
    .hero-grid { grid-template-columns: 3fr 2fr; }
    .portrait { justify-self: end; }
}

/* Sections */
.section { padding: 4rem 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }
.section-lead { font-size: 1.05rem; max-width: 40rem; }
.center .section-lead { margin-left: auto; margin-right: auto; }
.subhead { margin-top: 2.5rem; font-size: 1.05rem; color: var(--text); }
.links-line { margin-top: 1rem; }

/* Cards */
.cards { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 700px) { .cards-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card p:last-child { margin-bottom: 0; }
.card h3 a { color: var(--text); }
.card-featured { border-color: #2f4a6e; }
.meta { color: var(--text-3); font-size: 0.9rem; margin-bottom: 0.75rem; }

/* MVP badge: the MVP Logo Guide forbids altering the logo and sets a 60px minimum height. */
.mvp-badge { display: inline-block; margin-bottom: 1rem; }
.mvp-badge img { display: block; height: 64px; width: auto; border: 0; border-radius: 0; }

/* Lists */
.cert-list, .list { list-style: none; margin: 1rem 0 0; padding: 0; }
.cert-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); color: var(--text-2); }
.list li { padding: 1rem 0; border-bottom: 1px solid var(--border); color: var(--text); }
.list li span { display: block; color: var(--text-2); margin-top: 0.25rem; }

/* Speaker kit */
.speaker-kit { display: grid; gap: 1.5rem; margin-top: 1rem; }
.bio { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; color: var(--text); }
.kit-cta { align-self: end; }
.note { color: var(--text-3); font-size: 0.9rem; margin-top: 0.75rem; }
@media (min-width: 800px) { .speaker-kit { grid-template-columns: 2fr 1fr; } }

/* Speaking page */
.breadcrumb { font-size: 0.875rem; color: var(--text-3); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-2); }
.nav-links a[aria-current="page"] { color: var(--text); }
.photos { display: grid; gap: 1rem; }
.photos figure { margin: 0; }
.photos img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.photos figcaption { color: var(--text-3); font-size: 0.875rem; margin-top: 0.5rem; }
@media (min-width: 800px) { .photos { grid-template-columns: 3fr 2fr; } .photos img { height: 460px; } }
.talk { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.talk:last-of-type { border-bottom: 0; }
.talk p:last-child { margin-bottom: 0; }

/* Writing */
.posts { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.posts li { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.posts a { color: var(--text); font-weight: 600; text-decoration: none; }
.posts a:hover { text-decoration: underline; }
.posts p { margin: 0.25rem 0 0; font-size: 0.95rem; }

/* Footer */
.footer { padding: 2.5rem 0; }
.footer-inner p { color: var(--text-3); font-size: 0.875rem; margin: 0.5rem 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-links a { color: var(--text-2); font-size: 0.9rem; min-height: 44px; display: inline-flex; align-items: center; }
.fine { font-size: 0.75rem !important; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
    .nav, .actions, .kit-cta, .footer-links { display: none; }
    body { background: #fff; color: #000; }
    p, .list li span { color: #222; }
}
