:root {
  color-scheme: dark;
  font-family: Ubuntu, "Ubuntu Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  --ubuntu-orange: #e95420;
  --ubuntu-orange-light: #f76f3b;
  --aubergine: #2c001e;
  --aubergine-light: #5e2750;
  --terminal: #300a24;
  --paper: #fff7f0;
  --muted: #c9b9c4;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 100% 0%, rgb(233 84 32 / 13%), transparent 34rem),
    var(--terminal);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.desktop {
  min-height: 100vh;
  min-height: 100svh;
}

.window {
  min-height: 100vh;
  min-height: 100svh;
}

.window__content {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: clamp(2rem, 8vh, 6rem) clamp(1.5rem, 6vw, 5rem);
}

.command {
  margin: 0 0 1.4rem;
  color: #eee7eb;
  font-family: "Ubuntu Mono", "Cascadia Code", Consolas, monospace;
  font-size: clamp(0.8rem, 1.6vw, 0.96rem);
}

.command__prompt {
  color: var(--ubuntu-orange-light);
  font-weight: 700;
}

h1 {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  font-size: clamp(2rem, 5.7vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.06;
  text-wrap: balance;
}

.projects {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(0.8rem, 2.5vw, 1.5rem);
  align-items: center;
  min-height: 96px;
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 8px;
  color: inherit;
  background: rgb(255 255 255 / 5%);
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.project__link:hover {
  border-color: rgb(233 84 32 / 70%);
  background: rgb(233 84 32 / 13%);
  transform: translateY(-2px);
}

.project__link:focus-visible {
  outline: 3px solid var(--ubuntu-orange-light);
  outline-offset: 3px;
}

.project__number {
  color: var(--ubuntu-orange-light);
  font-family: "Ubuntu Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

.project__info {
  display: grid;
  gap: 0.35rem;
}

.project__name {
  font-size: clamp(1.05rem, 2.5vw, 1.28rem);
  font-weight: 600;
}

.project__description {
  color: var(--muted);
  font-size: clamp(0.86rem, 2vw, 0.98rem);
  line-height: 1.45;
}

.project__arrow {
  color: var(--ubuntu-orange-light);
  font-size: 1.55rem;
  transition: transform 180ms ease;
}

.project__link:hover .project__arrow {
  transform: translate(3px, -3px);
}

.command--footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 0;
}

.cursor {
  width: 0.6em;
  height: 1.1em;
  background: var(--paper);
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 560px) {
  .window__content {
    padding-top: 2.5rem;
  }

  .project__link {
    min-height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
