:root {
  --home-reading-font: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.home-page {
  min-height: 100svh;
  background: var(--body-background);
  color: var(--body-font-color);
  font-family: var(--home-reading-font);
}

.home-shell {
  display: grid;
  width: 100%;
  min-height: 100svh;
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.25rem, 5vw, 3rem);
  place-items: center;
}

.home-profile {
  width: min(100%, 32rem);
  transform: translate(3rem, -2.5rem) scale(1.08);
  transform-origin: center;
}

.home-identity {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin: 0 0 clamp(.85rem, 2vw, 1.1rem);
}

.home-identity h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2rem);
  font-weight: inherit;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.home-character {
  flex: none;
  width: 2.35rem;
  height: auto;
  margin: 0;
  border-radius: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform: translateY(-.2rem);
}

.home-gameboy-item {
  width: fit-content;
  max-width: 100%;
}

.home-socials {
  display: grid;
  width: 100%;
  align-items: center;
  grid-template-columns: repeat(4, max-content);
  justify-content: space-between;
  margin-top: .38rem;
  font-size: .82em;
  line-height: 1.35;
}

.home-socials a {
  display: inline;
  flex: none;
}

.home-copy {
  font-size: clamp(1.02rem, 1.35vw, 1.1rem);
  line-height: 1.6;
}

.home-copy p {
  max-width: 44rem;
  margin: 0 0 1.2rem;
}

.home-copy p:last-of-type {
  margin-bottom: 0;
}

.home-copy .home-intro {
  max-width: 32rem;
}

.home-copy a {
  color: var(--color-link);
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.home-copy a:hover {
  color: var(--body-font-color);
  text-decoration-style: solid;
}

.home-copy a:visited {
  color: var(--color-visited-link);
}

.home-copy a[href^="http"] {
  text-decoration: none;
  background-image: repeating-linear-gradient(
    90deg,
    currentColor 0 1px,
    transparent 1px 3px
  );
  background-position: 0 calc(100% - 1px);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.home-copy a[href^="http"]:hover {
  background-image: linear-gradient(currentColor, currentColor);
}

.home-copy a[href*="//friend.com/"]::after,
.home-copy a[href*="//bondu.com/"]::after,
.home-copy a[href*="//crater.so/"]::after {
  content: "";
  display: inline-block;
  margin-left: .16em;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  font-size: 1em;
  letter-spacing: 0;
}

.home-copy a[href*="//friend.com/"]::after {
  width: 1.35em;
  height: .68em;
  background-image: url("/home-assets/friend-mark.png?v=1");
  vertical-align: -.02em;
}

.home-copy a[href*="//bondu.com/"]::after {
  width: .82em;
  height: .82em;
  background-image: url("/home-assets/bondu-mark.png?v=1");
  vertical-align: -.11em;
}

.home-copy a[href*="//crater.so/"]::after {
  width: .78em;
  height: .78em;
  background-image: url("/home-assets/crater-mark.png?v=1");
  vertical-align: -.08em;
}

html:not(.light-mode) .home-copy a[href*="//friend.com/"]::after {
  background-image: url("/home-assets/friend-mark-dark.png?v=1");
}

html:not(.light-mode) .home-copy a[href*="//bondu.com/"]::after {
  background-image: url("/home-assets/bondu-mark-dark.png?v=1");
}

html:not(.light-mode) .home-copy a[href*="//crater.so/"]::after {
  background-image: url("/home-assets/crater-mark-dark.png?v=1");
}

.home-redaction {
  display: inline-flex;
  height: .78em;
  align-items: center;
  color: var(--body-font-color);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9em;
  letter-spacing: -.14em;
  line-height: .78;
  vertical-align: -.02em;
  white-space: nowrap;
  user-select: none;
}

.home-personal {
  margin-top: clamp(1.45rem, 3vw, 1.8rem);
}

.home-personal h2 {
  margin: 0 0 .55rem;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.home-personal ul {
  display: grid;
  gap: .25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.home-personal li {
  margin: 0;
}

.home-personal a {
  display: inline;
}

@media (min-width: 640px) {
  .home-personal li:last-child {
    white-space: nowrap;
  }
}

@media (max-width: 639px) {
  .home-shell {
    padding: 2.5rem 1.25rem;
  }

  .home-profile {
    width: min(calc(100% - 2rem), 32rem);
    transform: translate(1.25rem, -1.5rem) scale(1.08);
  }

  .home-identity {
    gap: .8rem;
    margin-bottom: .9rem;
  }

  .home-identity h1 {
    font-size: 1.7rem;
  }

  .home-character {
    width: 1.8rem;
  }

  .home-copy {
    font-size: 1.02rem;
  }

  .home-personal {
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-copy a,
  .home-socials a {
    transition: none;
  }
}
