/* A small static portfolio: system fonts, no frameworks, no JavaScript. */
:root {
  color-scheme: light dark;
  --bg: #fff;
  --fg: #24292f;
  --muted: #59636e;
  --line: #d8dee4;
  --link: #0969da;
  --subtle: #f6f8fa;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --fg: #e6edf3;
    --muted: #919da9;
    --line: #30363d;
    --link: #79c0ff;
    --subtle: #151b23;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); margin: 0; font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.container { width: min(100% - 3rem, 800px); margin-inline: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 2px; }
.skip-link { position: absolute; left: 1rem; top: -10rem; background: var(--bg); padding: .5rem; z-index: 20; }
.skip-link:focus { top: .5rem; }
.site-header { min-height: 80px; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.site-name { color: var(--fg); white-space: nowrap; font: 650 .95rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: -.03em; }
.site-name:hover { text-decoration: none; }
.site-cursor { color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.25rem; row-gap: .3rem; font-size: .86rem; }
.site-nav a { color: var(--muted); }
.site-nav a[aria-current="page"] { color: var(--fg); font-weight: 650; text-decoration: underline; text-decoration-color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 7px; }
main { padding: 3.8rem 0 5.5rem; }
h1,h2,h3,h4,p { margin-top: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 3.3rem); letter-spacing: -.055em; line-height: 1.15; margin: .4rem 0 .45rem; }
h2 { font-size: 1.3rem; letter-spacing: -.03em; line-height: 1.3; margin-bottom: 1.15rem; }
h3 { font-size: 1.06rem; line-height: 1.4; margin-bottom: .3rem; }
h4 { font-size: .99rem; margin-bottom: 0; }
p { margin-bottom: 1rem; }
.intro-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: 2.6rem; align-items: start; }
.intro-head { grid-column: 1; grid-row: 1; }
.intro-layout .intro { grid-column: 1; grid-row: 2; }
/* A thin mat around the photo, in the same tokens as the rest of the page. */
.portrait { grid-column: 2; grid-row: 2; margin: 0; padding: 6px; background: var(--subtle); border: 1px solid var(--line); border-radius: 12px; }
.portrait img { display: block; width: 100%; height: auto; border-radius: 7px; }
.intro { max-width: 680px; padding-bottom: 1.5rem; }
.eyebrow, .metadata, .stack { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .77rem; line-height: 1.6; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.role { font-weight: 600; margin: .7rem 0 1.45rem; }
.lead { font-size: 1.08rem; line-height: 1.75; }
.intro p:not(.lead):not(.role):not(.eyebrow) { max-width: 660px; }
.inline-links { display: flex; gap: 1.3rem; flex-wrap: wrap; font-size: .9rem; font-weight: 600; padding-top: .3rem; }
main > section { margin-top: 3.35rem; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.section-heading > a { font-size: .85rem; white-space: nowrap; }
.entry-list { border-top: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.entry p { color: var(--muted); font-size: .94rem; margin-bottom: 0; }
.entry .metadata { color: var(--muted); text-align: right; padding-top: .15rem; max-width: 170px; }
.focus-list { margin: 0; border-top: 1px solid var(--line); }
.focus-list > div { display: grid; grid-template-columns: 195px 1fr; gap: 1.2rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.focus-list dt { font-weight: 650; }
.focus-list dd { color: var(--muted); margin: 0; }
.page-intro { max-width: 690px; margin-bottom: 2.5rem; }
.page-intro .lead { color: var(--muted); }
.detail-entry { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 1.4rem; margin-bottom: 2.6rem; }
.detail-entry p { max-width: 700px; }
.detail-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.detail-heading h2 { margin-bottom: 1rem; }
.metadata, .stack { color: var(--muted); }
.stack { margin-top: 1.25rem; }
.separator { color: var(--muted); padding: 0 .35rem; }
.note { color: var(--muted); font-size: .89rem; }
.resume-section { margin-top: 3rem; }
.resume-section > h2 { border-bottom: 1px solid var(--line); padding-bottom: .7rem; margin-bottom: 1.4rem; }
.resume-employer { margin-bottom: 2.6rem; }
.resume-employer > h3 { font-size: 1.16rem; margin-bottom: 1rem; }
.resume-role { margin: 1rem 0 1.7rem; }
.role-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.resume-role ul { margin: .6rem 0 0; padding-left: 1.25rem; }
.resume-role li { margin-bottom: .45rem; }
.resume-item { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.3rem; }
.resume-item p { margin: .15rem 0 .4rem; }
.site-footer { border-top: 1px solid var(--line); display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; padding: 1.6rem 0 2.5rem; color: var(--muted); font-size: .82rem; }
.site-footer a { margin-left: 1rem; }
@media (max-width: 650px) {
 .container { width: min(100% - 2.1rem, 800px); }
 .site-header { padding: 1.1rem 0; align-items: flex-start; flex-direction: column; gap: .8rem; }
 .site-nav { column-gap: 1rem; }
 main { padding-top: 2.8rem; }
 .entry { grid-template-columns: 1fr; gap: .3rem; }
 .entry .metadata { text-align: left; max-width: none; }
 .focus-list > div { grid-template-columns: 1fr; gap: .1rem; }
 .intro-layout { grid-template-columns: 1fr; gap: 1.5rem; }
 .intro-head, .intro-layout .intro, .portrait { grid-column: 1; grid-row: auto; }
 .portrait { margin-bottom: 1.5rem; }
 .portrait { max-width: 170px; }
 .detail-heading,.role-heading,.resume-item { display: block; }
 .role-heading .metadata,.resume-item .metadata { display: block; margin-top: .2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
