@font-face {
  font-family: "DM Mono";
  src: url("/fonts/dm-mono-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #243c78;
  --ink: #fffdf8;
  /* Interpolate the existing phone and desktop spacing from 390px to 1280px. */
  --fluid-step: clamp(0rem, (100vw - 24.375rem) / 55.625, 1rem);
  --text-name: clamp(3rem, 2.35rem + 5.36vw, 7rem);
  --text-role: calc(0.9375rem + 0.375 * var(--fluid-step));
  --text-bio: calc(1rem + 0.25 * var(--fluid-step));
  --text-contact: calc(1.0625rem + 0.1875 * var(--fluid-step));
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: calc(2.25rem + 2.25 * var(--fluid-step))
    calc(6.75rem + 0.25 * var(--fluid-step));
  padding-inline: calc(1.625rem + 3.975 * var(--fluid-step));
  background: var(--background);
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.identity {
  width: min(100%, 1040px);
  min-width: 0;
}

h1,
p {
  margin: 0;
  font-weight: 400;
}

h1 {
  font-size: var(--text-name);
  line-height: 1.04;
  letter-spacing: -0.065em;
  overflow-wrap: anywhere;
}

.role {
  margin-block-start: calc(1.25rem + 0.375 * var(--fluid-step));
  font-size: var(--text-role);
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.bio {
  max-width: 720px;
  margin-block-start: calc(1.75rem + 1.25 * var(--fluid-step));
  font-size: var(--text-bio);
  line-height: 1.7;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.bio p + p {
  margin-top: 1em;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px calc(1.75rem + 0.5 * var(--fluid-step));
  margin-block-start: calc(1.5rem + 0.625 * var(--fluid-step));
  font-size: var(--text-contact);
  line-height: 1.5;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

.contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 44px;
  padding: 7px 0;
  text-decoration: none;
}

.contact a:active {
  text-decoration: underline;
}

@media (hover: hover) and (pointer: fine) {
  .contact a:hover {
    text-decoration: underline;
  }
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 7px;
}

::selection {
  background: var(--ink);
  color: var(--background);
}

@media (max-width: 760px) {
  body {
    place-items: start center;
  }

  .bio {
    line-height: 1.65;
    letter-spacing: -0.04em;
  }
}

@media print {
  body {
    min-height: auto;
    padding: 30px;
    background: white;
    color: black;
  }
}
