:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #262626;
  --muted: #636363;
  --link: #1646a2;
  --visited: #754080;
  --rule: #d4d4d4;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 Georgia, 'Times New Roman', serif;
}
a { color: var(--link); text-underline-offset: 3px; }
a:visited { color: var(--visited); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 5px;
}
::selection { background: #e0e9ff; color: #152d5c; }
.page { max-width: 790px; margin: 45px auto 30px; padding: 0 25px; }
.skip-link { position: absolute; top: -60px; left: 20px; background: var(--paper); }
.skip-link:focus { top: 10px; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 25px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 15px;
  font: 14px/1.5 'Courier New', monospace;
}
.wordmark { font-weight: bold; color: var(--ink); text-decoration: none; margin-right: auto; }
.wordmark:visited { color: var(--ink); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.theme-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

section { margin-top: 38px; }
.intro-section { margin-top: 40px; display: flow-root; }
p { margin: 0 0 15px; }
h1 { font-size: 36px; line-height: 1.15; letter-spacing: -1px; font-weight: normal; margin: 16px 0 21px; }
h2 { font-size: 25px; line-height: 1.3; font-weight: normal; margin: 0 0 14px; }
h3 { font-size: 18px; line-height: 1.6; margin: 0; }
.hello { font-size: 20px; margin: 0; }
.portrait { float: right; width: 112px; margin: 3px 0 16px 30px; }
.portrait img { width: 100%; height: auto; display: block; }
.portrait figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; text-align: center; }
.aside { font-size: 15px; color: var(--muted); font-style: italic; }
.section-intro { margin-bottom: 21px; }

.project-list { list-style: none; margin: 0 0 20px; padding: 0; }
.project-list li { display: grid; grid-template-columns: 105px 1fr; gap: 14px; margin-bottom: 17px; }
.project-list p { margin: 0; }
.project-list h3 { font-weight: normal; }
.project-list .graveyard-note { margin-top: 9px; font-size: 16px; color: var(--muted); }

.career { font-size: 15px; margin: 23px 0; }
.career div { display: grid; grid-template-columns: 105px 1fr; gap: 14px; margin-bottom: 8px; }
.career dt { color: var(--muted); font: 13px/1.85 'Courier New', monospace; }
.career dd { margin: 0; }
.career dd span { color: var(--muted); }
blockquote { margin: 26px 0 0; padding: 0 0 0 19px; border-left: 2px solid var(--rule); }
blockquote p:first-child { font-style: italic; margin-bottom: 7px; }
blockquote p:nth-child(2) { font-size: 16px; margin-bottom: 8px; }
blockquote cite { font-size: 14px; font-style: normal; color: var(--muted); }
.currently { border-top: 1px solid var(--rule); padding-top: 27px; }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: baseline;
  padding-top: 17px;
  border-top: 1px solid var(--rule);
  margin-top: 38px;
  font: 12px/1.6 'Courier New', monospace;
  color: var(--muted);
}
footer span:last-child { margin-left: auto; }

body.night {
  color-scheme: dark;
  --paper: #202123;
  --ink: #e3e3df;
  --muted: #b6b6b1;
  --link: #9abcf6;
  --visited: #ceace0;
  --rule: #505153;
}

@media (max-width: 600px) {
  .page { margin-top: 25px; padding: 0 22px; }
  .site-header { gap: 13px 20px; }
  .site-header nav { order: 3; flex-basis: 100%; gap: 10px 18px; }
  .intro-section { margin-top: 29px; }
  h1 { font-size: 32px; clear: both; padding-top: 12px; margin-top: 10px; }
  .portrait { width: 85px; margin-left: 17px; margin-bottom: 8px; }
  .portrait figcaption { display: none; }
  .hello { font-size: 21px; line-height: 1.4; padding-top: 10px; }
  .project-list li { grid-template-columns: 1fr; gap: 3px; margin-bottom: 22px; }
  .project-list h3 { font-size: 20px; }
  .career div { grid-template-columns: 1fr; gap: 0; margin-bottom: 13px; }
  footer span:last-child { margin-left: 0; flex-basis: 100%; }
}
