@font-face {
  font-family: Inconsolata;
  src: url('/assets/fonts/inconsolata.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Source;
  src: url('/assets/fonts/source-serif-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }

html {
  --ink: #30332e;
  --link: #345775;
  background: #f8f6ed;
  color: var(--ink);
  font: 15px/1.7 Source, Georgia, serif;
}

body { margin: 0; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: #34597966;
}

a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: #dce6ed; color: #192a36; }

.site {
  max-width: 510px;
  width: calc(100% - 44px);
  margin: clamp(70px, 17vh, 160px) auto 70px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 27px;
}

.identity { min-width: 0; }

h1 {
  font: 400 31px/1.2 Inconsolata, monospace;
  letter-spacing: -.7px;
  margin: 0 0 12px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font: 11px/1.6 Inconsolata, monospace;
}

.links a { white-space: nowrap; }

.portrait {
  display: block;
  object-fit: cover;
  width: 88px;
  height: 100px;
  flex: none;
  padding: 3px;
  border: 1px solid #c6c8be;
  background: #fffdf7;
}

.bio p { margin: 0 0 17px; }
.bio p:last-child { margin: 0; }
.bio p:first-child { font-size: 1.08em; line-height: 1.6; }
.bio p + p { color: #50534d; }

@media (max-width: 620px) {
  .site { margin-top: 68px; }
  header { gap: 20px; }
  h1 { font-size: 29px; }
  .portrait { width: 79px; height: 91px; }
}

@media (max-width: 380px) {
  .site { width: calc(100% - 34px); }
  header { gap: 14px; }
  h1 { font-size: 28px; }
  .portrait { width: 69px; height: 81px; }
}

@media (max-height: 600px) {
  .site { margin-top: 40px; }
}
