:root {
  --paper: #f2f0e8;
  --ink: #20312a;
  --muted: #68756e;
  --sage: #91a096;
  --line: rgba(32, 49, 42, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  background: #2e3c35;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
}

a {
  color: inherit;
}

.page {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(27, 38, 31, 0.16), rgba(27, 38, 31, 0.02)),
    url("https://images.unsplash.com/photo-1624818145490-b385d0593e5d?auto=format&fit=crop&w=2200&q=88")
      center 48% / cover no-repeat;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(29, 46, 37, 0.13) 45%,
    rgba(19, 31, 25, 0.03)
  );
  pointer-events: none;
}

.card {
  min-height: 100svh;
  width: min(48vw, 720px);
  min-width: 590px;
  padding: clamp(32px, 5vh, 58px) clamp(44px, 6vw, 96px) clamp(28px, 4vh, 48px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  box-shadow: 28px 0 80px rgba(19, 31, 25, 0.14);
  animation: panel-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  max-width: 400px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: "Newsreader", serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.content {
  margin: auto 0;
  padding: 7vh 0 6vh;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 540px;
  font-family: "Newsreader", serif;
  font-size: clamp(50px, 4.25vw, 76px);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

h1 em {
  color: #20604b;
  font-weight: 300;
}

.intro {
  margin: clamp(28px, 4vh, 42px) 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.contact-list {
  max-width: 440px;
  display: grid;
  border-top: 1px solid var(--line);
  font-style: normal;
}

.contact-list > * {
  min-height: 69px;
  padding: 12px 2px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-decoration: none;
}

.contact-list a {
  transition:
    color 180ms ease,
    padding-left 180ms ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  padding-left: 7px;
  color: #647a6e;
  outline: none;
}

.contact-list small {
  margin-bottom: 3px;
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

footer {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.photo-credit {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
}

@media (max-width: 760px) {
  .page {
    padding: 22px;
    display: flex;
    align-items: center;
    background-position: 61% center;
  }

  .page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 35, 27, 0.28);
    backdrop-filter: saturate(0.82);
  }

  .card {
    width: 100%;
    min-width: 0;
    min-height: calc(100svh - 44px);
    padding: 27px 27px 24px;
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    box-shadow: 0 24px 70px rgba(16, 28, 21, 0.28);
  }

  .content {
    padding: 5vh 0 4vh;
  }

  h1 {
    font-size: clamp(43px, 13vw, 60px);
  }

  .intro {
    margin: 25px 0;
  }

  .contact-list > * {
    min-height: 62px;
  }

  .photo-credit {
    display: none;
  }
}

@media (max-height: 720px) and (min-width: 761px) {
  .card {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .content {
    padding: 28px 0 24px;
  }

  h1 {
    font-size: 52px;
  }

  .intro {
    margin: 24px 0;
  }

  .contact-list > * {
    min-height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }

  .contact-list a {
    transition: none;
  }
}
