:root {
  color-scheme: light;
  --panel: #f8f5f2;
  --ink: #333333;
  --muted: #5b5652;
  --line: #8f8a86;
  --button: #ece8e4;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  background: var(--panel);
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("photo-background.jpeg");
  background-position: center 30%;
  background-size: cover;
  opacity: 0.34;
  pointer-events: none;
}

.frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100svh;
  width: 100%;
  padding: 1.2rem 1.15rem 0.78rem;
  overflow: hidden;
  background: rgba(248, 245, 242, 0.65);
}

.centerpiece {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(74rem, calc(100% - 2rem));
  transform: translate(-50%, -50%);
  text-align: center;
}

.intro {
  max-width: 72rem;
  margin-inline: auto;
}

.identity {
  position: absolute;
  top: 0.75rem;
  right: 1.15rem;
  z-index: 1;
  width: min(30rem, 38vw);
  color: var(--ink);
  text-align: right;
  pointer-events: none;
}

.identity p {
  margin: 0;
}

.identity-name {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.18rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
}

.identity-role {
  margin-top: 0.22rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.kicker {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 4.35rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand-list {
  font-family: Didot, "Bodoni 72", "Bodoni 72 Oldstyle", "Times New Roman", serif;
  font-style: italic;
  text-align: center;
}

.brand-list span,
.brand-list a {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  padding-bottom: 0.08em;
  white-space: nowrap;
  color: var(--ink);
  cursor: default;
  text-decoration: none;
  background-image: linear-gradient(
    90deg,
    #f04b45,
    #f4a629,
    #e9d83d,
    #5bc66a,
    #34a6de,
    #7957d5,
    #e052ad,
    #f04b45
  );
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  transition: color 160ms ease, transform 180ms ease;
  overflow: visible;
}

.brand-list a {
  cursor: pointer;
}

.brand-list span:hover,
.brand-list a:hover {
  color: transparent;
  transform: scale(1.035);
  animation: rainbow-text 1.25s linear infinite;
}

@keyframes rainbow-text {
  to {
    background-position: 300% 0;
  }
}

@keyframes about-pulse {
  0%,
  100% {
    opacity: 0.68;
  }

  50% {
    opacity: 1;
  }
}

.profile {
  width: min(34rem, 100%);
  margin: 2.9rem auto 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.profile p {
  margin: 0;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.73rem;
  line-height: 1.1;
}

.nav {
  display: block;
}

.nav a {
  display: inline-block;
  color: var(--ink);
  font-size: 0.86rem;
  background: transparent;
  border: 0;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  animation: about-pulse 2.4s ease-in-out infinite;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 0.78;
  transform: scale(1.08);
}

.caption {
  position: absolute;
  top: 0.75rem;
  left: 1.15rem;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  text-align: left;
}

.nav {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

@media (max-width: 900px) {
  .frame {
    padding: 1rem 0.9rem 0.75rem;
  }

  .identity {
    top: 0.65rem;
    right: 0.9rem;
    width: 16rem;
  }

  .identity-name {
    font-size: 0.96rem;
  }

  .identity-role {
    margin-top: 0.18rem;
    font-size: 0.64rem;
  }

  h1 {
    font-size: 3.5rem;
    line-height: 1.18;
  }

  .footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .nav {
    grid-column: 1;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .frame {
    padding: 0.85rem 0.75rem 0.7rem;
  }

  .identity {
    top: 0.65rem;
    right: 0.75rem;
    width: 10.5rem;
  }

  .caption {
    top: 0.65rem;
    left: 0.75rem;
  }

  .identity-name {
    font-size: 0.84rem;
  }

  .identity-role {
    margin-top: 0.15rem;
    font-size: 0.52rem;
    white-space: normal;
  }

  .kicker {
    margin-bottom: 0.75rem;
  }

  h1 {
    font-size: 2.36rem;
    line-height: 1.2;
  }

  .brand-list span,
  .brand-list a {
    white-space: normal;
  }

  .profile {
    margin-top: 2rem;
    font-size: 0.94rem;
  }

  .footer {
    gap: 0.9rem;
    padding-top: 1.1rem;
  }
}

@media (max-height: 700px) {
  .frame {
    padding-top: 0.75rem;
  }

  .kicker {
    margin-bottom: 0.45rem;
  }

  h1 {
    font-size: 3.48rem;
    line-height: 1.15;
  }

  .profile {
    margin-top: 1.85rem;
    font-size: 0.94rem;
  }

  .footer {
    padding-top: 0.8rem;
  }
}

@media (max-width: 560px) and (max-height: 700px) {
  h1 {
    font-size: 2.1rem;
    line-height: 1.16;
  }

  .profile {
    font-size: 0.84rem;
  }
}
