:root {
  color-scheme: dark;
  --green: #4d5e4b;
  --cream: #f3f7f3;
  --sand: #d9cead;
  --logo-x: 0px;
  --logo-y: 0px;
  --light-x: 50%;
  --light-y: 32%;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--green);
  color: var(--cream);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 280px;
  margin: 0;
}

.ambient-light {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at var(--light-x) var(--light-y), rgb(231 232 201 / 10%), transparent 65%);
}

.site-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.site-header {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 1440px;
  min-height: 22px;
  margin-inline: auto;
}

.domain {
  font-size: 12px;
  line-height: 22px;
  letter-spacing: .05em;
  opacity: .8;
}

.hero {
  display: grid;
  place-items: center;
  width: 100%;
  padding-block: 28px 40px;
}

.identity {
  width: min(100%, 640px);
  text-align: center;
}

.portrait-entry {
  margin: 0 auto 16px;
  width: min(100%, 500px);
  max-width: 100%;
}

.portrait {
  position: relative;
  isolation: isolate;
  width: 100%;
  display: grid;
  place-items: center;
}

.cooper-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: translate3d(var(--logo-x), var(--logo-y), 0);
  transition: transform 220ms ease-out;
}

.name {
  margin: 0;
  font-weight: 400;
  transform-origin: center;
}

.given-name {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: .05em;
}

.family-name {
  display: block;
  margin-top: 3px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(56px, 11vw, 84px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -.045em;
}

.name-dot {
  color: var(--sand);
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgb(243 247 243 / 27%);
  border-radius: 50%;
  color: var(--cream);
  background: rgb(243 247 243 / 4%);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.social-link img {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.social-link:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 5px;
}

.social-link:active {
  transform: scale(.95);
  background: rgb(243 247 243 / 15%);
}

@media (hover: hover) and (pointer: fine) {
  .social-link:hover {
    transform: translateY(-4px);
    background: rgb(243 247 243 / 12%);
    border-color: rgb(243 247 243 / 55%);
  }
}

@media (min-width: 900px) {
  .site-shell {
    padding: 32px 48px 40px;
  }

  .hero {
    padding-block: 10px 20px;
  }

  .portrait-entry {
    width: min(100%, 500px, 54vh);
  }

  .social-links {
    margin-top: 24px;
  }
}

@media (min-width: 900px) and (max-height: 800px) {
  .portrait-entry {
    width: min(100%, 50vh);
  }

  .family-name {
    font-size: 76px;
  }
}

@media (max-height: 680px) {
  .site-shell {
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .hero {
    padding-block: 20px;
  }

  .portrait-entry {
    width: min(100%, 45vh, 360px);
    margin-bottom: 14px;
  }

  .family-name {
    font-size: clamp(54px, 10vw, 70px);
  }

  .social-links {
    margin-top: 24px;
  }
}

@media (max-width: 359px) {
  .site-shell {
    padding-inline: 20px;
  }

  .social-link {
    width: 50px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: arrive 800ms cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: var(--delay, 0ms);
  }

  .name {
    animation: name-appear 3000ms cubic-bezier(.4, 0, .2, 1) 0ms both;
  }
}

@keyframes name-appear {
  from {
    opacity: 0;
    transform: scale(.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cooper-logo {
    transform: none;
  }

  .cooper-logo,
  .social-link {
    transition: none;
  }

  .social-link:hover,
  .social-link:active {
    transform: none;
  }
}
