:root {
  --paper: #f7f8f5;
  --ink: #172746;
  --muted: #4b5a71;
  --accent: #304fc4;
  --rule: #c9d1dd;
  --light: #d7e1fb;
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}
* { box-sizing: border-box; }
body, figure { margin: 0; }
a { color: currentColor; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.skip { position: absolute; left: 1rem; top: 1rem; transform: translateY(-200%); background: white; padding: .5rem; z-index: 1; }
.skip:focus { transform: none; }
.wrap { width: min(100% - 3rem, 68rem); margin-inline: auto; }
.hero { color: var(--paper); background: var(--ink); border-bottom: .45rem solid #688bff; }
.nav, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.2rem; }
.nav { border-bottom: 1px solid #566684; }
.nav div, .footer div { display: flex; flex-wrap: wrap; gap: .6rem 1.35rem; }
.nav a, .footer a { text-decoration: none; }
.nav a:hover, .footer a:hover { text-decoration: underline; }
.wordmark { font-family: Georgia, serif; font-size: 1.5rem; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) clamp(8rem, 17vw, 13rem); gap: 2.5rem; align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.label, figcaption { font: 600 .875rem/1.5 ui-monospace, monospace; margin-block: 0 .65rem; letter-spacing: .035em; color: var(--accent); }
.intro .label, figcaption { color: var(--light); }
h1, h2 { font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(2.7rem, 7.4vw, 6.2rem); line-height: .98; letter-spacing: -.055em; margin: 0; }
h1 span { font-style: italic; color: #bacaff; }
.summary { font-size: clamp(1.05rem, 2vw, 1.24rem); max-width: 52ch; margin: 1.5rem 0 1.3rem; color: var(--light); }
.links { display: flex; gap: 1.3rem; align-items: center; font-weight: 650; }
.button { color: var(--ink); background: var(--paper); padding: .5rem .9rem; border-radius: .2rem; text-decoration: none; }
.button:hover { background: var(--light); }
.button:focus-visible { outline-color: var(--paper); }
.portrait { max-width: 100%; padding-bottom: .4rem; border-bottom: 1px solid #566684; }
.portrait img { width: 100%; height: auto; display: block; aspect-ratio: 1; object-fit: cover; border-radius: .25rem; }
figcaption { margin: .75rem 0 0; }
main { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem 1.5rem; margin-bottom: 1.25rem; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.04em; line-height: 1.15; margin: 0; }
.section-head p { color: var(--muted); margin: 0; }
.lead { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem 2rem; align-items: start; padding: 1.5rem clamp(1.1rem, 4vw, 2.5rem); border-left: .4rem solid var(--accent); background: #e8eefb; }
.lead p:not(.label) { margin: 0; max-width: 65ch; }
.lead h3 { font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
h3 { font-size: 1.25rem; line-height: 1.25; margin: 0; }
h3 a { text-decoration-color: #7589d5; }
h3 a:hover { color: var(--accent); text-decoration-color: currentColor; }
.projects { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.2rem; margin-top: 2rem; }
.projects article { border-top: 1px solid var(--rule); padding: 1.1rem 0 1.4rem; }
.projects article p:not(.label) { color: var(--muted); margin: .65rem 0 0; max-width: 50ch; }
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem 2rem; border-top: 1px solid var(--rule); margin-top: 2.25rem; padding-top: 2rem; }
.about p { max-width: 65ch; margin: 0 0 .75rem; }
footer { border-top: 1px solid var(--rule); }
.footer { font-size: .95rem; color: var(--muted); padding-block: 1.4rem; }
@media (max-width: 46rem) {
  .intro { gap: 1.5rem; }
  .lead, .about { grid-template-columns: 1fr; }
}
@media (max-width: 35rem) {
  .wrap { width: calc(100% - 2rem); }
  .intro { grid-template-columns: 1fr; }
  .portrait { display: flex; align-items: center; gap: .8rem; width: fit-content; padding-bottom: .65rem; }
  .portrait img { width: 4rem; }
  figcaption { margin: 0; }
  .projects { grid-template-columns: 1fr; }
}
