:root {
  --font-mono: "Cascadia Mono", "JetBrains Mono", "SFMono-Regular", Consolas,
    "Liberation Mono", monospace;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --page-bg: #050606;
  --surface: #090b0a;
  --text: #e5e7e4;
  --muted: #8b948d;
  --faint: #565d58;
  --line: #242925;
  --green: #70d77b;
  --amber: #b7a16b;
  color: #70d77b;
  background: #000;
  font-family: var(--font-mono);
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
  margin: 0;
  background: #000;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

.loading-screen,
.main-content {
  min-height: 100dvh;
  background: #000;
}

.main-content {
  opacity: 0;
  transition: opacity 420ms ease-out;
}

.main-content--visible {
  opacity: 1;
}

.main-content--closing {
  opacity: 0;
}

.main-content--connection-closed {
  min-height: 100dvh;
  opacity: 1;
}

.connection-closed {
  display: grid;
  min-height: 100dvh;
  color: #506053;
  font-size: 0.78rem;
  place-items: center;
}

.loading-screen {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: clamp(1.25rem, 2.5vw, 2.75rem);
  opacity: 1;
  text-align: left;
  transition: opacity 480ms ease-out;
}

.loading-screen--leaving {
  opacity: 0;
}

.build-log {
  width: min(48rem, 100%);
  color: #64c870;
  font-size: clamp(0.8rem, 0.74rem + 0.18vw, 0.92rem);
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: 0.005em;
  text-align: left;
}

.build-log__line {
  min-height: 1.55em;
  overflow-wrap: anywhere;
  opacity: 0;
  animation: line-arrival 110ms ease-out forwards;
}

.build-log__line--spacer {
  height: 0.72em;
  min-height: 0;
}

.build-log__line--success {
  color: #83e68d;
  font-weight: 650;
}

.build-log__download-part {
  display: inline;
}

@keyframes line-arrival {
  from {
    opacity: 0;
    transform: translateY(0.2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 48rem) {
  .loading-screen {
    padding: clamp(0.5rem, 3vw, 1.25rem);
  }

  .build-log {
    width: 100%;
    font-size: clamp(0.625rem, 0.485rem + 0.7vw, 0.8rem);
    line-height: 1.48;
  }

  .build-log__line {
    min-height: 1.48em;
  }
}

@media (max-width: 32rem) {
  .build-log__line--download .build-log__download-part {
    display: block;
  }

  .build-log__download-part--continuation {
    padding-left: 1.15em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-screen {
    transition-duration: 120ms;
  }

  .build-log__line {
    animation: none;
    opacity: 1;
  }

  .main-content {
    transition: none;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

.site-shell {
  width: min(70rem, calc(100% - 2rem));
  margin: 0 auto;
  color: var(--text);
  background: var(--page-bg);
  font-family: var(--font-sans);
}

.main-content,
.site-shell {
  background: var(--page-bg);
}

.main-content.main-content--connection-closed {
  background: #000;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 4.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.site-nav__link::before {
  content: "./";
  color: var(--faint);
}

.site-nav__link::after {
  content: "";
}

.site-nav__link--active {
  color: var(--text);
}

.site-nav__link--active::after {
  content: "_";
  color: var(--green);
  animation: terminal-cursor 1s steps(1, end) infinite;
}

@keyframes terminal-cursor {
  50% {
    opacity: 0;
  }
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--text);
}

.language-switch {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--faint);
}

.language-switch button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--green);
}

.language-switch button:hover,
.language-switch button:focus-visible {
  color: var(--text);
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 20rem);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
  min-height: min(39rem, calc(100dvh - 4.75rem));
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(4rem, 9vw, 7.5rem);
}

.profile__identity {
  align-self: center;
  max-width: 42rem;
}

.profile__eyebrow,
.content-section h2,
.stack-group h3,
.project__status,
.interest h3,
.site-footer {
  font-family: var(--font-mono);
}

.profile__eyebrow {
  margin: 0 0 1.25rem;
  color: var(--green);
  font-size: 0.82rem;
}

.profile h1 {
  max-width: 17ch;
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 620;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.profile h1 span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.56em;
  font-weight: 470;
  letter-spacing: -0.025em;
}

.profile__bio {
  max-width: 39rem;
  margin: 1.75rem 0 0;
  color: #c8ccc8;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.65;
}

.profile__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin: 2.5rem 0 0;
}

.profile__facts div {
  min-width: 0;
}

.profile__facts dt {
  margin-bottom: 0.45rem;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: lowercase;
}

.profile__facts dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.45;
}

.profile__photo-frame {
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 1 / 1;
  justify-self: end;
  margin: 0;
  overflow: hidden;
  border: 1px solid #2b302c;
  border-radius: 0.35rem;
  background: #000;
}

.profile__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.birthday-value {
  position: relative;
  display: inline-grid;
  min-width: 13.5rem;
  height: 1.45em;
  overflow: hidden;
  vertical-align: bottom;
}

.birthday-value__text {
  grid-area: 1 / 1;
  white-space: nowrap;
}

.birthday-value__text--incoming {
  animation: birthday-in 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.birthday-value__text--outgoing {
  animation: birthday-out 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes birthday-in {
  from {
    transform: translateY(110%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes birthday-out {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-110%);
  }
}

.content-section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
}

.content-section h2 {
  margin: 0 0 clamp(2rem, 5vw, 3.75rem);
  color: var(--green);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 520;
}

.about {
  display: grid;
  grid-template-columns: minmax(10rem, 0.55fr) minmax(0, 1.45fr);
  gap: 2rem;
}

.about h2 {
  margin: 0;
}

.about__text {
  max-width: 43rem;
  margin: 0;
  color: #c7cbc7;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.7;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.stack-group h3,
.interest h3 {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 520;
}

.stack-group p {
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: minmax(9rem, 0.52fr) minmax(0, 1.48fr) auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.project__name {
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 560;
}

.project__description,
.project__merged-note {
  margin: 0;
  color: #b8bdb8;
  line-height: 1.65;
}

.project__description {
  white-space: pre-line;
}

.project__merged-note {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.project__status {
  color: var(--muted);
  font-size: 0.74rem;
}

.project__status--active {
  color: #75b67c;
}

.project__status--paused {
  color: var(--amber);
}

.project--merged .project__name {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.project--merged .project__status,
.project--merged .project__body {
  color: #4d534f;
}

.interests-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: clamp(2.5rem, 8vw, 7rem);
}

.interest {
  padding: 0.25rem 0;
}

.interest p {
  margin: 0;
  color: #bec3be;
  line-height: 1.75;
}

.interest--dnd {
  align-self: start;
  padding: 0.25rem 0 0.25rem 1.35rem;
  border-left: 2px solid #405b44;
}

.interest--dnd h3 {
  color: var(--text);
  font-size: 0.92rem;
}

.interest__link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration-color: var(--faint);
  text-underline-offset: 0.25rem;
}

.interest__link:hover,
.interest__link:focus-visible {
  color: var(--text);
}

.interests-layout__secondary {
  display: grid;
  gap: 2.5rem;
}

.game-list,
.track-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-list__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #c9cdc9;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.game-list__icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  object-fit: contain;
  opacity: 0.72;
}

.track-list {
  color: #b4bab5;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.track-list span {
  color: var(--text);
}

.interest--minimal p {
  color: var(--faint);
  font-size: 0.9rem;
}

.terminal {
  overflow: hidden;
  border: 1px solid #2d332e;
  border-radius: 0.25rem;
  background: #030403;
  font-family: var(--font-mono);
}

.terminal__output {
  min-height: 12rem;
  max-height: 23rem;
  overflow: auto;
  padding: 1rem;
  color: #bdc5bd;
  font-size: 0.86rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal__line + .terminal__line {
  margin-top: 0.45rem;
}

.terminal__line--muted {
  color: var(--faint);
}

.terminal__line--command {
  color: var(--green);
}

.terminal__line--error {
  color: #c58c82;
}

.terminal__link {
  color: var(--green);
  text-underline-offset: 0.2rem;
}

.terminal__form {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  border-top: 1px solid var(--line);
}

.terminal__prompt {
  flex: 0 0 auto;
  padding-left: 1rem;
  color: var(--green);
  font-size: 0.82rem;
}

.terminal__input {
  min-width: 0;
  min-height: 3.25rem;
  flex: 1;
  padding: 0.7rem 1rem 0.7rem 0.65rem;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  caret-color: var(--green);
}

.terminal__input::placeholder {
  color: #414642;
}

.terminal__input:focus,
.terminal__input:focus-visible {
  border: 0;
  outline: none;
}

.terminal__form:focus-within {
  border-top-color: #384039;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.contact__icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.55rem;
  object-fit: contain;
  opacity: 0.72;
}

.contact__service::before {
  content: "→ ";
  color: var(--faint);
}

.contact__username {
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  color: var(--muted);
  opacity: 0;
  white-space: nowrap;
  transition: max-width 180ms ease, margin-left 180ms ease, opacity 180ms ease;
}

.contact:hover .contact__username,
.contact:focus-visible .contact__username {
  max-width: 16rem;
  margin-left: 0.65rem;
  opacity: 1;
}

.contact-feedback {
  min-height: 1.3rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: #444a45;
  font-size: 0.72rem;
}

:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 4px;
}

@media (max-width: 56rem) {
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
    gap: 2.5rem;
  }
}

@media (max-width: 48rem) {
  .site-shell {
    width: min(calc(100% - 2rem), 42rem);
  }

  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 0 0.85rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .site-nav__link {
    flex: 0 0 auto;
  }

  .profile {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  .profile__identity {
    order: 1;
  }

  .profile__photo-frame {
    order: 2;
    width: min(100%, 20rem);
  }

  .about,
  .interests-layout {
    grid-template-columns: 1fr;
  }

  .about h2 {
    margin-bottom: 0.2rem;
  }

  .project {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem 1rem;
  }

  .project__body {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .project__status {
    justify-self: end;
  }

  .interests-layout__secondary {
    padding-left: 1.35rem;
    border-left: 1px solid var(--line);
  }

  .contact__username {
    max-width: 16rem;
    margin-left: 0.65rem;
    opacity: 1;
  }
}

@media (max-width: 35rem) {
  .site-shell {
    width: calc(100% - 2rem);
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 0 0.7rem;
  }

  .site-nav__link {
    min-height: 2.75rem;
    font-size: 0.75rem;
  }

  .language-switch {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .profile h1 {
    font-size: clamp(1.85rem, 9.4vw, 2.45rem);
  }

  .profile__facts,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .birthday-value {
    min-width: 0;
    width: 100%;
  }

  .terminal__form {
    align-items: stretch;
    flex-direction: column;
  }

  .terminal__prompt {
    padding: 0.8rem 0.8rem 0;
  }

  .terminal__input {
    width: 100%;
    padding: 0.45rem 0.8rem 0.8rem;
  }

  .contacts {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .birthday-value__text--incoming,
  .birthday-value__text--outgoing {
    animation-duration: 1ms;
  }

  .contact__username {
    transition: none;
  }
}
