@font-face {
  font-family: "Spectral Local";
  src: url("fonts/Spectral-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "EB Garamond Local";
  src: url("fonts/EBGaramond-SemiBold.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "IBM Plex Sans Local";
  src: url("fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --paper: #f5f3ec;
  --ink: #172019;
  --forest: #244936;
  --line: #c9cabf;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Spectral Local", Georgia, serif;
  font-size: 18px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--forest);
  text-decoration-color: color-mix(in srgb, currentColor 38%, transparent);
  text-underline-offset: 0.24em;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 5px;
}

::selection {
  color: var(--paper);
  background: var(--forest);
}

.home {
  min-height: 100svh;
  padding: clamp(3rem, 12vh, 7rem) clamp(1.25rem, 5vw, 3rem);
}

.profile {
  width: min(100%, 36rem);
  margin: 0 auto;
  padding-top: 0.35rem;
}

h1 {
  margin: 0;
  font: 600 clamp(2.45rem, 6vw, 3.55rem) / 0.98 "EB Garamond Local",
    "Iowan Old Style", Baskerville, serif;
  letter-spacing: -0.035em;
}

.role {
  max-width: 31rem;
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.18rem);
  line-height: 1.55;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  margin-top: 1.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font: 400 0.76rem/1.4 "IBM Plex Sans Local", Arial, sans-serif;
}

@media (max-width: 620px) {
  .home {
    padding-top: 3rem;
  }
}
