:root {
  color-scheme: light;
  --text: #303a34;
  --muted: #647068;
  --green: #296044;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 20px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #deebdf; }
a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: #b0c8b8;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--green); }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; border-radius: 2px; }
.page {
  width: min(960px, calc(100% - 80px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  align-content: center;
}
.identity { text-align: center; }
.portrait { display: block; width: 230px; height: 230px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; }
h1 { margin: 0; font-size: 32px; font-weight: 600; line-height: 1.3; letter-spacing: -.6px; color: #233d2d; }
.location { margin: 5px 0 12px; font-size: 13px; color: var(--muted); }
nav { display: flex; justify-content: center; gap: 18px; font-size: 14px; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.bio { padding-top: 0; }
.bio p { margin: 0 0 21px; }
.bio .contact { margin-top: 25px; margin-bottom: 0; }
@media (max-width: 760px) {
  body { font-size: 17px; }
  .page { width: min(490px, calc(100% - 44px)); min-height: auto; padding: 32px 0; grid-template-columns: 1fr; gap: 26px; }
  .identity { text-align: left; display: grid; grid-template-columns: 100px 1fr; column-gap: 22px; align-items: center; }
  .portrait { width: 100px; height: 100px; grid-row: 1 / 4; margin: 0; }
  h1 { font-size: 27px; align-self: end; }
  .location { margin: 2px 0 7px; }
  nav { justify-content: flex-start; gap: 16px; align-self: start; }
  .bio p { margin-bottom: 16px; }
}
@media (max-width: 360px) {
  .identity { grid-template-columns: 80px 1fr; column-gap: 17px; }
  .portrait { width: 80px; height: 80px; }
  h1 { font-size: 25px; }
  nav { font-size: 12px; gap: 12px; }
  .location { font-size: 12px; }
}
