:root {
  --link: #1772d0;
  --link-hover: #f09228;
  --text: #222;
  --muted: #646464;
  --line: #e8e8e8;
  --highlight: #ffffd0;
  --surface: #fafafa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--link-hover);
}

.site-shell {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: 24px 0 36px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(190px, 1fr);
  align-items: center;
  gap: 22px;
}

.intro-copy {
  padding: 20px 0 14px;
}

h1 {
  margin: 0 0 20px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}

h3 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0 0 12px;
}

.profile-links {
  margin-top: 18px;
  text-align: center;
  white-space: nowrap;
}

.profile-links span {
  padding: 0 7px;
  color: #777;
}

.intro-photo {
  padding: 18px;
}

.intro-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: var(--surface);
}

.section-block {
  padding: 22px 16px 10px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 4px;
  transition: background-color 160ms ease;
}

.project-card:hover {
  background: #fbfbfb;
}

.project-card.featured {
  background: var(--highlight);
}

.project-card.featured:hover {
  background: #fffec2;
}

.project-media {
  width: 100%;
}

.project-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f4f4f4;
}

.project-content h3 {
  color: var(--link);
  font-size: 15px;
}

.project-meta {
  line-height: 1.45;
}

.project-tags {
  color: var(--muted);
  font-size: 13px;
}

.project-links {
  margin-bottom: 0;
  color: var(--link);
}

.placeholder-links {
  opacity: 0.68;
  font-style: italic;
}

.compact .project-card {
  align-items: start;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  padding-top: 34px;
}

.detail-entry {
  margin-bottom: 20px;
}

.detail-entry p {
  margin-bottom: 7px;
}

.small-text {
  color: var(--muted);
}

.timeline-entry {
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
}

.timeline-entry:last-child {
  border-bottom: 0;
}

.timeline-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 4px;
}

.timeline-title span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

footer {
  margin-top: 28px;
  padding: 18px 16px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 24px, 820px);
    padding-top: 8px;
  }

  .intro {
    display: flex;
    flex-direction: column-reverse;
    gap: 0;
  }

  .intro-copy {
    padding-top: 8px;
  }

  .intro-photo {
    width: min(230px, 70vw);
    padding-bottom: 4px;
  }

  .project-card {
    grid-template-columns: 125px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 14px 8px;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-title {
    display: block;
  }
}

@media (max-width: 500px) {
  .project-card {
    display: block;
  }

  .project-media {
    width: 170px;
    margin: 0 auto 14px;
  }

  .profile-links {
    white-space: normal;
  }
}
