:root {
  --ink: #f3efe6;
  --muted: color-mix(in srgb, #f3efe6 58%, #1a1c22);
  --line: color-mix(in srgb, #f3efe6 16%, transparent);
  --accent: #d85a30;
  --bg-0: #101218;
  --bg-1: #171a22;
  --bg-2: #242033;
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg-0);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, #534ab733 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 80%, #d85a301f 0%, transparent 50%),
    linear-gradient(165deg, var(--bg-1) 0%, var(--bg-0) 48%, var(--bg-2) 100%);
  animation: atmosphere-shift 18s ease-in-out infinite alternate;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      color-mix(in srgb, var(--ink) 4%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--ink) 4%, transparent) 1px,
      transparent 1px
    );
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 75%);
  opacity: 0.35;
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 8vh, 4.5rem);
  padding: 2rem 1.25rem 3rem;
}

.brand {
  text-align: center;
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-logo {
  display: block;
  width: min(78vw, 320px);
  height: auto;
  margin: 0 auto;
}

.projects {
  width: min(100%, 22rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.project {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.15rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.project:hover,
.project:focus-visible {
  color: #fff;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  outline: none;
  transform: translateX(2px);
}

.project-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-hint {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 180ms ease;
}

.project:hover .project-hint,
.project:focus-visible .project-hint {
  color: var(--accent);
}

.coming-soon {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  animation: rise 1100ms cubic-bezier(0.22, 1, 0.36, 1) 220ms both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes atmosphere-shift {
  from {
    filter: hue-rotate(0deg) saturate(1);
  }
  to {
    filter: hue-rotate(8deg) saturate(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .brand,
  .projects,
  .coming-soon {
    animation: none;
  }

  .project {
    transition: none;
  }
}
