:root {
  --bg: #000;
  --text: #f7f7f7;
  --muted: #919191;
  --selection: #ffff00;
  --hairline: rgba(255, 255, 255, .18);
  --transition: 150ms;
}

html[data-theme="light"] {
  --bg: #f4f1ea;
  --text: #111;
  --muted: #626262;
  --selection: #9d8500;
  --hairline: rgba(0, 0, 0, .20);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-width: 100%;
  min-height: 100%;
  background: var(--bg);
}

html {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  color: var(--text);
  font-family: "Crimson Pro", Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.bio-page {
  position: relative;
  width: 100%;
  min-height: 100svh;
  padding: clamp(2rem, 5vh, 4.5rem) clamp(2rem, 5.5vw, 6rem) clamp(2.2rem, 5vh, 4rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
}

.bio-home {
  position: relative;
  z-index: 5;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  text-decoration: none;
  font-family: "Tilt Warp", sans-serif;
  font-size: clamp(.82rem, 1vw, 1rem);
  transition: color var(--transition) ease, transform var(--transition) ease;
}

.bio-home svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bio-home:hover, .bio-home:focus-visible {
  color: var(--selection);
  transform: translateX(-3px);
  outline: none;
}

.bio-stage {
  width: min(100%, 1040px);
  min-height: 0;
  align-self: center;
  justify-self: center;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 4.5rem;
  align-items: center;
  column-gap: clamp(1.35rem, 3.5vw, 3.8rem);
}

.bio-character {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, .82fr) minmax(340px, 1.18fr);
  gap: clamp(2.6rem, 5vw, 5rem);
  align-items: center;
}

.bio-art-wrap {
  position: relative;
  width: 100%;
  max-width: 255px;
  aspect-ratio: 677 / 1641;
  margin: 0 auto;
  overflow: hidden;
  background: #07243a;
}

.bio-art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.008);
}

.bio-copy {
  min-width: 0;
  align-self: center;
  padding-block: 1rem;
}

.bio-header {
  margin-bottom: clamp(2.5rem, 5.4vh, 4.1rem);
}

.bio-name {
  margin: 0;
  font-family: "Tilt Warp", sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 4.25vw, 4.75rem);
  line-height: .9;
  letter-spacing: .015em;
}

.bio-title {
  margin: .38rem 0 0;
  padding-left: clamp(4rem, 9vw, 8rem);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.55vw, 1.45rem);
  line-height: 1;
}

.bio-description, .bio-details, .bio-ink-review {
  max-width: 37rem;
}

.bio-description {
  margin-bottom: clamp(1.75rem, 3.8vh, 2.7rem);
}

.bio-description p, .bio-ink-review p {
  margin: 0;
  font-size: clamp(1.08rem, 1.35vw, 1.35rem);
  line-height: 1.3;
}

.bio-details {
  margin-bottom: clamp(2.1rem, 4.6vh, 3.3rem);
}

.bio-details h2, .bio-ink-review h2 {
  margin: 0 0 .45rem;
  font-family: "Tilt Warp", sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  font-weight: 400;
  letter-spacing: .025em;
}

.bio-details ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: clamp(1rem, 1.18vw, 1.2rem);
  line-height: 1.23;
}

.bio-ink-review p {
  font-style: normal;
}

.bio-ink-signature {
  margin-top: .65rem !important;
  font-style: italic !important;
  font-weight: 600;
}

.ink-rainbow {
  font-family: "Tilt Warp", sans-serif;
  font-style: normal;
  white-space: nowrap;
}

.rainbow-i {
  color: #ff4545;
}

.rainbow-n {
  color: #ffb72e;
}

.rainbow-k {
  color: #45c96f;
}

.rainbow-mark {
  color: #45a6ff;
}

.bio-nav {
  width: 4.2rem;
  height: 7rem;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: color var(--transition) ease, transform var(--transition) ease, opacity var(--transition) ease;
}

.bio-nav svg {
  width: 3rem;
  height: 3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bio-nav:hover:not(:disabled), .bio-nav:focus-visible:not(:disabled) {
  color: var(--selection);
  outline: none;
  transform: scale(1.08);
}

.bio-nav:disabled {
  opacity: .22;
  cursor: default;
}

.bio-count {
  justify-self: center;
  margin: 1rem 0 0;
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  font-size: .72rem;
  letter-spacing: .08em;
  opacity: .7;
}

.bio-character.is-leaving {
  pointer-events: none;
}

.bio-character.is-leaving .bio-art-wrap, .bio-character.is-leaving .bio-animate-item {
  opacity: 0;
  transform: translateY(-12px);
}

.bio-art-wrap, .bio-animate-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 390ms ease, transform 500ms cubic-bezier(.2, .72, .2, 1);
}

.bio-character.is-entering .bio-art-wrap, .bio-character.is-entering .bio-animate-item {
  opacity: 0;
  transform: translateY(28px);
}

.bio-character.is-entering .bio-art-wrap {
  transition-delay: 20ms;
}

.bio-character.is-entering .bio-header {
  transition-delay: 70ms;
}

.bio-character.is-entering .bio-description {
  transition-delay: 120ms;
}

.bio-character.is-entering .bio-details {
  transition-delay: 165ms;
}

.bio-character.is-entering .bio-ink-review {
  transition-delay: 210ms;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html.reduce-motion .bio-home, html.reduce-motion .bio-nav, html.reduce-motion .bio-art-wrap, html.reduce-motion .bio-animate-item {
  transition: none !important;
}

@media (max-width:900px) {
  .bio-page {
    min-height: 100svh;
    padding: 1.4rem 1.25rem 2rem;
  }

  .bio-stage {
    width: 100%;
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    column-gap: .35rem;
    align-self: start;
    margin-top: 2rem;
  }

  .bio-character {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .bio-art-wrap {
    width: min(62vw, 260px);
    max-width: none;
  }

  .bio-copy {
    padding: 0;
  }

  .bio-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .bio-name {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .bio-title {
    padding-left: 0;
    margin-top: .55rem;
  }

  .bio-description, .bio-details, .bio-ink-review {
    max-width: 37rem;
    margin-inline: auto;
  }

  .bio-nav {
    width: 2.75rem;
    height: 4.5rem;
    position: sticky;
    top: 42svh;
  }

  .bio-nav svg {
    width: 2rem;
    height: 2rem;
  }

  .bio-count {
    margin-top: 2rem;
  }
}

@media (max-width:520px) {
  .bio-page {
    padding-inline: .8rem;
  }

  .bio-home {
    margin-left: .2rem;
  }

  .bio-stage {
    grid-template-columns: 2rem minmax(0, 1fr) 2rem;
    gap: .15rem;
  }

  .bio-art-wrap {
    width: min(68vw, 240px);
  }

  .bio-description p, .bio-ink-review p {
    font-size: 1.08rem;
    line-height: 1.34;
  }

  .bio-details ul {
    font-size: 1rem;
    line-height: 1.28;
  }

  .bio-nav {
    width: 2rem;
  }

  .bio-nav svg {
    width: 1.65rem;
    height: 1.65rem;
  }
}
