@font-face {
  font-family: 'Public Sans';
  src: url('./assets/public-sans-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('./assets/instrument-serif-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: 'Public Sans', Arial, sans-serif;
  color: #031423;
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }

.page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.card {
  width: 700px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  line-height: 21px;
}

.location span, .year { opacity: .3; }
.location img, .chip img, .avatar { display: block; flex-shrink: 0; }
img.mobile-asset { display: none; }

.headline {
  width: 100%;
  margin: 0;
  padding: 4px 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 56px;
  text-align: center;
}

.portrait { display: inline-block; width: 48px; height: 48px; vertical-align: -.12em; }
.avatar { width: 100%; height: 100%; }

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 47px;
  padding: 12px 20px;
  border: 1px solid #e6e6e6;
  border-radius: 55px;
  font-size: 18px;
  line-height: 21px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.year {
  font-size: 16px;
  letter-spacing: -1.6px;
  font-variant-numeric: lining-nums tabular-nums;
}

@media (min-width: 601px) {
  .chip:nth-child(1) { width: 117px; }
  .chip:nth-child(2) { width: 142px; }
  .chip:nth-child(3) { width: 127px; }
  .chip:nth-child(4) { width: 146px; }
  .chip:nth-child(5) { width: 144px; }
  .chip:nth-child(6) { width: 128px; }
  .chip:nth-child(7) { width: 152px; }
}

.chip:hover { border-color: #b3b8bd; background: #fafafa; }
a:focus-visible { outline: 2px solid #031423; outline-offset: 5px; }

@media (max-width: 600px) {
  .page {
    align-items: stretch;
    padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  }
  .card {
    width: 100%;
    min-height: calc(100svh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
    justify-content: space-between;
    gap: 24px;
  }
  .intro { align-items: flex-start; gap: 16px; }
  .location { font-size: 16px; line-height: 19px; }
  img.desktop-asset { display: none; }
  img.mobile-asset { display: block; }
  .headline { font-size: 36px; line-height: 44px; text-align: left; }
  .portrait { width: 40px; height: 40px; }
  .links { justify-content: flex-start; align-items: flex-start; }
  .chip { min-height: 45px; padding: 12px 20px; font-size: 16px; line-height: 19px; }
  .chip:nth-child(1) { width: 110px; }
  .chip:nth-child(2) { width: 132px; }
  .chip:nth-child(3) { width: 118px; }
  .chip:nth-child(4) { width: 135px; }
  .chip:nth-child(5) { width: 134px; }
  .chip:nth-child(6) { width: 119px; }
  .chip:nth-child(7) { width: 140px; }
  .year { font-size: 14px; letter-spacing: -1.4px; }
}

@media (prefers-reduced-motion: reduce) {
  .chip { transition: none; }
}
