@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --background: #eef3ec;
  --heading: #283b32;
  --text: #53655b;
  --link: #37664c;
  --rule: #cbd7ca;
  background: var(--background);
  color: var(--text);
  font-family: "DM Sans", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
}

.landing {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 7%;
  width: 88%;
  max-width: 1100px;
  margin-inline: auto;
  padding-block: 84px;
}

.portrait {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  border-radius: 50%;
}

/* Match the approved head-and-shoulders crop without altering the photograph. */
.portrait img {
  position: absolute;
  display: block;
  width: 140%;
  max-width: none;
  height: auto;
  left: -20%;
  top: -9%;
}

.introduction {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

h1 {
  color: var(--heading);
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(2.375rem, 5.2vw, 4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}

.introduction p,
.not-found > p:not(.error-code) {
  max-width: 440px;
  margin: 0;
  font-size: clamp(1.0625rem, 1.95vw, 1.3125rem);
  line-height: 1.65;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 34px;
}

.contact a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding-block: 8px;
  border-bottom: 1px solid var(--rule);
  color: var(--link);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
}

a:hover {
  border-color: currentColor;
}

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

::selection {
  background: #d3e2d0;
  color: var(--heading);
}

.not-found {
  width: 88%;
  max-width: 650px;
  margin-inline: auto;
  padding-block: 64px;
}

.error-code {
  margin: 0 0 20px;
  color: var(--link);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.not-found .text-link {
  margin-top: 28px;
}

@media (max-width: 639px) {
  body {
    align-items: start;
  }

  .landing {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    width: calc(100% - 50px);
    max-width: 440px;
    padding-block: 44px;
  }

  .portrait {
    width: 220px;
    max-width: 100%;
    align-self: center;
  }

  h1 {
    font-size: 2.5rem;
    margin-bottom: 17px;
  }

  .introduction p,
  .not-found > p:not(.error-code) {
    font-size: 1.0625rem;
    line-height: 1.6;
  }

  .contact {
    gap: 12px 22px;
    margin-top: 22px;
  }

  .not-found {
    width: calc(100% - 50px);
    padding-block: 64px;
  }
}
