/* A compact, responsive adaptation of Jon Barron's personal website layout. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #222;
  background: #fff;
  font-family: Lato, Verdana, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main { width: min(100%, 800px); margin: 28px auto 0; padding: 0 20px; }
a { color: #1772d0; text-decoration: none; }
a:hover { color: #b8660a; text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid #1772d0; outline-offset: 4px; border-radius: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: 32px; font-weight: 400; line-height: 1.2; text-align: center; }
h2 { margin-bottom: 25px; font-size: 22px; font-weight: 400; line-height: 1.3; }
h3 { margin-bottom: 7px; font-size: 14px; font-weight: 700; line-height: 1.5; }
p { margin-bottom: 13px; }
.introduction { display: grid; grid-template-columns: 1.65fr 1fr; align-items: center; gap: 32px; padding: 22px 0 38px; }
.portrait { display: block; width: 100%; height: auto; border-radius: 50%; }
.current-role { color: #555; text-align: center; }
.social-links { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.social-links span { color: #555; }
section { scroll-margin-top: 24px; }
#projects { padding-top: 8px; }
.project { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 30px; align-items: center; margin: 0 0 33px; }
.project-image img { display: block; width: 100%; max-height: 155px; object-fit: contain; border-radius: 3px; }
.project-details p { margin-bottom: 8px; }
.project-details > :last-child { margin-bottom: 0; }
.achievement { color: #5e4a26; font-style: italic; }
.tags { color: #666; font-size: 12px; }
.project-link { font-size: 13px; }
#experience { padding-top: 14px; }
.experience-item { margin-bottom: 23px; }
.experience-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.experience-heading h3 { margin-bottom: 2px; }
.dates { color: #666; font-size: 12px; white-space: nowrap; margin-bottom: 2px; }
.role { margin-bottom: 5px; }
.experience-item > p:last-child { margin-bottom: 0; }
footer { margin-top: 43px; padding: 0 0 22px; color: #777; text-align: right; font-size: 12px; }
footer p { margin-bottom: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; padding: 10px 14px; background: #fff; border: 1px solid #1772d0; z-index: 1; }
.skip-link:focus { top: 12px; }
@media (max-width: 560px) {
  main { margin-top: 12px; padding: 0 22px; }
  .introduction { display: flex; flex-direction: column-reverse; gap: 25px; padding-top: 18px; padding-bottom: 40px; }
  .portrait { width: 160px; }
  h1 { font-size: 30px; margin-bottom: 18px; }
  h2 { margin-bottom: 22px; }
  .project { grid-template-columns: 1fr; gap: 15px; margin-bottom: 34px; }
  .project-image img { width: auto; max-width: 100%; max-height: 185px; }
  .experience-heading { display: block; }
  .dates { margin-bottom: 6px; }
  footer { margin-top: 35px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  main { width: 100%; margin-top: 0; }
  .skip-link { display: none; }
  .project, .experience-item { break-inside: avoid; }
  a { color: inherit; }
}
