/* A personal homepage. System fonts, no dependencies, no runtime JavaScript. */
:root {
  color-scheme: light;
  --paper: #f4f2eb;
  --ink: #252c29;
  --muted: #62675e;
  --rule: #d4d6cb;
  --accent: #3158bd;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: #d8e1fc; color: var(--ink); }
a { color: var(--accent); text-decoration-color: #9aaad3; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 1px; }
.page { width: min(720px, calc(100% - 56px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 2; padding: 10px 16px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; color: white; }
.site-header { display: flex; justify-content: space-between; align-items: baseline; padding-block: 35px 30px; }
.home-link { color: var(--ink); font-size: 27px; font-weight: 650; letter-spacing: -2px; text-decoration: none; }
.home-link span { color: var(--accent); }
.site-address { font: 11px/1.5 var(--mono); color: var(--muted); }
.intro { padding-top: 16px; }
h1 { font-size: clamp(38px, 6vw, 51px); line-height: 1.15; letter-spacing: -.055em; font-weight: 570; margin: 0 0 11px; }
.name-dot { color: var(--accent); }
.intro-line { font-family: Georgia, "Times New Roman", serif; color: var(--muted); font-size: 21px; font-style: italic; line-height: 1.5; margin-bottom: 29px; }
p { margin: 0 0 17px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 12px 25px; margin: 27px 0 0; font-size: 14px; }
.profile-links a { text-decoration: none; }
.profile-links a:hover { text-decoration: underline; }
.file-type { color: var(--muted); font: 9px var(--mono); padding-left: 3px; }
section + section { margin-top: 39px; }
.work { border-top: 1px solid var(--rule); padding-top: 30px; margin-top: 33px; }
h2 { font-size: 20px; line-height: 1.4; font-weight: 580; letter-spacing: -.025em; margin: 0 0 17px; }
.project-list { list-style: none; padding: 0; margin: 0; }
.project-list li { position: relative; padding-left: 19px; margin-bottom: 23px; }
.project-list li::before { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #8b9182; left: 1px; top: 13px; }
.project-list li p { margin-bottom: 7px; }
.project-name { font-weight: 600; }
.artifact-link { font-size: 13px; white-space: nowrap; }
.aside { font-size: 14px; line-height: 1.75; color: var(--muted); }
.small-note { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 2px 0 0; }
.compact-list { padding-left: 19px; margin: 0; }
.compact-list li { padding-left: 1px; margin-bottom: 9px; }
.compact-list li::marker { font-size: 11px; color: #737969; }
.background p:last-child, .contact p:last-child { margin-bottom: 0; }
.contact { border-top: 1px solid var(--rule); padding-top: 28px; margin-top: 37px; }
footer { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 11px; padding-block: 35px 40px; margin-top: 12px; }
footer a { color: var(--muted); text-decoration: none; }
@media (max-width: 540px) {
  body { font-size: 15px; line-height: 1.85; }
  .page { width: calc(100% - 40px); }
  .site-header { padding-block: 22px 25px; }
  .intro { padding-top: 12px; }
  h1 { font-size: 39px; }
  .intro-line { font-size: 19px; margin-bottom: 25px; }
  .profile-links { gap: 10px 22px; font-size: 13px; }
  h2 { font-size: 19px; }
  section + section { margin-top: 32px; }
  .work { margin-top: 29px; padding-top: 26px; }
  .project-list li { padding-left: 16px; }
  .aside { font-size: 13px; }
  .contact { padding-top: 25px; }
  .contact a { overflow-wrap: anywhere; }
}
@media (max-width: 350px) {
  h1 { font-size: 34px; }
  .intro-line { font-size: 18px; }
  .profile-links { gap: 9px 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; font-size: 11pt; }
  .page { width: 100%; }
  .site-header, .skip-link, footer { display: none; }
  .intro { padding-top: 0; }
  h1 { font-size: 30pt; }
  h2 { break-after: avoid; }
  li { break-inside: avoid; }
  a { color: inherit; }
}
