@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/JetBrainsMono-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/JetBrainsMono-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/JetBrainsMono-Bold.woff2') format('woff2');
}

:root {
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --fs-xxs: 12px;
    --fs-xs:  13px;
    --fs-sm:  15px;
    --fs-md:  17px;
    --fs-lg:  20px;
    --fs-xl:  26px;

    --measure: clamp(720px, 75vw, 960px);
    --gutter: clamp(20px, 4vw, 36px);

    --speed-fast: 120ms;
    --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--mono);
    font-size: var(--fs-sm);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    font-feature-settings: "ss01", "cv11";
}

::selection { background: var(--accent); color: var(--bg); }

a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: border-color var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease);
}
a:hover, a:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
    position: absolute; top: -40px; left: 12px;
    background: var(--fg); color: var(--bg);
    padding: 6px 10px; font-size: var(--fs-xs);
    border: none; z-index: 100;
}
.skip:focus { top: 12px; }

.topbar {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 22px var(--gutter) 16px;
    max-width: var(--measure);
    margin: 0 auto;
    border-bottom: 1px solid var(--rule);
}

.brand {
    font-weight: 700;
    letter-spacing: -0.01em;
    border: none;
    font-size: var(--fs-sm);
}

.nav {
    margin-left: auto;
    display: flex;
    gap: 18px;
    font-size: var(--fs-xs);
}
.nav a {
    border: none;
    color: var(--muted);
    padding: 4px 0;
}
.nav a:hover, .nav a:focus-visible { color: var(--accent); }
.nav-cta { color: var(--fg) !important; }

.theme-toggle {
    background: none;
    border: none;
    color: var(--muted);
    font: inherit;
    font-size: var(--fs-xs);
    cursor: pointer;
    padding: 4px 0;
    margin-left: 4px;
}
.theme-toggle:hover, .theme-toggle:focus-visible { color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

main {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 36px var(--gutter) 60px;
}

.status {
    margin: 0 0 40px 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: var(--fs-xs);
}
.dot {
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 99px;
    display: inline-block;
    align-self: center;
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent);
    animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0   color-mix(in oklab, var(--accent) 45%, transparent); }
    70%  { box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 0%, transparent); }
    100% { box-shadow: 0 0 0 0   color-mix(in oklab, var(--accent) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
    .dot { animation: none; }
}
.status-label { font-weight: 600; color: var(--accent-warm); }
.status-sep, .status-sub { color: var(--muted); }

.section { margin-top: 36px; }
.section:first-of-type { margin-top: 0; }

.section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.section-num {
    font-size: var(--fs-xxs);
    color: var(--accent-warm);
    letter-spacing: 0.04em;
}
.section-title {
    font-size: var(--fs-xxs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}
.section-rule {
    flex: 1;
    border-top: 1px solid var(--rule-strong);
    opacity: 0.6;
}

.rows { margin: 0; }
.row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--rule);
    align-items: baseline;
}
.row:last-child { border-bottom: none; }

dt {
    color: var(--muted);
    font-size: var(--fs-xxs);
    letter-spacing: 0.04em;
}
dd {
    margin: 0;
    font-size: var(--fs-sm);
}
dd p { margin: 0; }
dd p + p { margin-top: 8px; }
dd strong { font-weight: 600; }

.row-bio dd { color: var(--fg); }
.row-bio dd em { font-style: italic; }

.row-empty dt { color: var(--muted); }
.empty-line { color: var(--muted); }
.empty-line.muted { font-size: var(--fs-xs); }

.footer {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 16px var(--gutter) 32px;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-size: var(--fs-xxs);
    color: var(--muted);
}
.footer-sep { opacity: 0.5; }
.footer-spacer { flex: 1; }

@media (max-width: 560px) {
    .topbar { flex-wrap: wrap; gap: 10px 14px; padding-bottom: 12px; }
    .nav { margin-left: 0; gap: 14px; }
    .row { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
    dt { font-size: 10px; }
    .footer { flex-direction: column; align-items: flex-start; gap: 4px; }
    .footer-sep { display: none; }
}
