:root {
    --bg: #fafaf8;
    --text: #17181a;
    --muted: #5b5f66;
    --faint: #8a8e94;
    --rule: #e3e3df;
    --accent: #2c5467;

    --sans: "Inter", "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

    --gutter: clamp(1.25rem, 5vw, 3rem);
    --measure: 36rem;
    --label: 11rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #141516;
        --text: #e7e6e3;
        --muted: #a2a4a8;
        --faint: #7d8085;
        --rule: #2a2c2e;
        --accent: #8fb3c4;
    }
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
    line-height: 1.65;
    font-feature-settings: "kern", "liga", "ss01";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, dl, dd {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--rule);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover {
    color: var(--accent);
    text-decoration-color: currentColor;
}
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.skip {
    position: absolute;
    left: var(--gutter);
    top: -3rem;
    padding: 0.4rem 0.75rem;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    z-index: 1;
}
.skip:focus {
    top: 0.75rem;
}

.wrap {
    width: 100%;
    max-width: 64rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Header */
.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-block: 1.75rem;
}
.id {
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.005em;
    text-decoration: none;
}
.site-header nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}
.site-header nav a {
    font-size: 0.875rem;
    color: var(--muted);
    text-decoration: none;
}
.site-header nav a:hover {
    color: var(--text);
}

/* Intro */
.intro {
    padding-block: clamp(4rem, 14vh, 9rem) clamp(4rem, 12vh, 7rem);
}
.intro h1 {
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
}
.role {
    margin-top: 0.6rem;
    font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
    color: var(--muted);
    letter-spacing: -0.01em;
}
.lede {
    margin-top: 2rem;
    max-width: var(--measure);
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
    line-height: 1.6;
}
.since {
    margin-top: 2rem;
    font-family: var(--mono);
    font-size: 0.8125rem;
    color: var(--faint);
    letter-spacing: 0.02em;
}

/* Sections */
.section {
    border-top: 1px solid var(--rule);
    padding-block: clamp(3rem, 8vw, 5rem);
    display: grid;
    gap: 1.25rem;
}
.section h2 {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.9;
}
.prose {
    max-width: var(--measure);
}
.prose p + p {
    margin-top: 1.1em;
}

/* Focus areas */
.areas {
    display: grid;
    gap: 1.75rem 3rem;
}
.areas dt {
    font-weight: 600;
    letter-spacing: -0.005em;
}
.areas dd {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: 26rem;
}

/* Contact */
.contact .question {
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
    line-height: 1.45;
    letter-spacing: -0.01em;
    max-width: 30rem;
}
.links {
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}
.links li {
    display: flex;
    gap: 1rem;
}
.links span {
    flex: 0 0 5.5rem;
    color: var(--faint);
    font-size: 0.875rem;
    line-height: 1.9;
}

/* Footer */
.site-footer .wrap {
    border-top: 1px solid var(--rule);
    padding-block: 2rem 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    font-size: 0.8125rem;
    color: var(--faint);
}
.site-footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
}
.site-footer a {
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--text);
}

/* Wider screens: thin editorial grid, label column + content */
@media (min-width: 48rem) {
    .section {
        grid-template-columns: var(--label) minmax(0, 1fr);
        gap: 2rem;
    }
    .intro {
        padding-left: calc(var(--label) + 2rem);
    }
    .areas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

@media print {
    .site-header nav, .skip {
        display: none;
    }
    a {
        text-decoration: none;
    }
}
