:root {
  --black: #000000;
  --soft-black: #080608;
  --white: #fffafa;
  --pink: #ff5ca8;
  --light-pink: #ffb7d4;
  --dark-pink: #681c42;
  --muted: #b69daa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  background: var(--black);
  font-family: "Press Start 2P", ui-monospace, monospace;
  cursor: none;
}

a,
button {
  cursor: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  min-height: 92px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.98),
      rgba(0, 0, 0, 0.82),
      transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: clamp(0.72rem, 1.25vw, 1rem);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
}

.brand-sparkle {
  color: var(--pink);
}

nav {
  display: flex;
  gap: clamp(1.5rem, 5vw, 5rem);
}

nav a {
  position: relative;
  padding: 15px 4px;
  color: var(--white);
  text-decoration: none;
  font-size: clamp(0.5rem, 0.8vw, 0.7rem);
}

nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 150ms steps(4, end);
}

nav a:hover,
nav a:focus-visible {
  color: var(--pink);
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.world-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  image-rendering: pixelated;
  user-select: none;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, .08), transparent 50%),
    linear-gradient(to bottom, rgba(0, 0, 0, .10), transparent 26%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  z-index: 10;
  left: 6%;
  top: 27%;
  width: min(52%, 760px);
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-shadow: 5px 5px 0 rgba(255, 92, 168, 0.12);
}

.pixel-divider {
  width: min(92%, 580px);
  margin: 1.8rem 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--pink);
}

.pixel-divider::before,
.pixel-divider::after {
  content: "";
  flex: 1;
  height: 4px;
  background: var(--pink);
}

.tagline {
  margin: 0 0 2.5rem;
  font-size: clamp(0.62rem, 1.2vw, 0.95rem);
  line-height: 1.9;
}

.pixel-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  color: var(--pink);
  border: 3px solid var(--pink);
  text-decoration: none;
  font-size: clamp(0.58rem, 0.9vw, 0.75rem);
  background: #000000;
  box-shadow: 6px 6px 0 var(--dark-pink);
  transition:
    transform 120ms steps(3, end),
    box-shadow 120ms steps(3, end),
    background 120ms steps(3, end);
}

.pixel-button:hover {
  color: var(--black);
  background: var(--pink);
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--dark-pink);
}

.hero-cat {
  position: absolute;
  z-index: 8;
  right: 16%;
  bottom: 7%;
  width: clamp(150px, 15vw, 240px);
  height: auto;
  image-rendering: pixelated;
  filter:
    saturate(0.6) drop-shadow(0 10px 0 rgba(0, 0, 0, .6));
  animation: cat-bob 3.2s steps(3, end) infinite;
  user-select: none;
  pointer-events: none;
}

.content-section {
  min-height: 58vh;
  padding: 8rem 8vw;
  display: grid;
  place-content: center;
  text-align: center;
  border-top: 2px dotted #341727;
  background:
    radial-gradient(circle, rgba(255, 92, 168, 0.07), transparent 30rem),
    var(--soft-black);
}

.projects-section {
  min-height: 100vh;
  padding: 8rem 8vw;
  color: var(--white);
  background: var(--soft-black);
  border-top: 2px dotted #341727;
}

.projects-section>h2 {
  margin: 1.5rem 0 4rem;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  line-height: 1.5;
}

.project-list {
  width: min(100%, 900px);
}

.project-item {
  padding: 2.5rem 0;
  border-top: 2px dotted #452034;
}

.project-item:last-child {
  border-bottom: 2px dotted #452034;
}

.project-item h3 {
  margin: 0 0 1.2rem;
  color: var(--white);
  font-size: clamp(0.8rem, 1.5vw, 1.15rem);
  line-height: 1.7;
}

.project-item p {
  max-width: 650px;
  margin: 0 0 1.7rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  line-height: 1.8;
}

.project-links {
  display: flex;
  gap: 1.5rem;
}

.project-links a {
  color: var(--pink);
  text-decoration: none;
  font-size: 0.6rem;
  border-bottom: 2px solid var(--pink);
  padding-bottom: 0.4rem;
}

.project-links a:hover {
  color: var(--white);
  border-color: var(--white);
}

.projects-section {
  min-height: 100vh;
  padding: 8rem 8vw;
  color: var(--white);
  background:
    radial-gradient(circle at center,
      rgba(255, 92, 168, 0.08),
      transparent 34rem),
    var(--soft-black);
  border-top: 2px dotted #341727;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-heading h2 {
  margin: 1.4rem 0 1.8rem;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  line-height: 1.5;
}

.section-description {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  line-height: 1.8;
}

.project-grid {
  width: min(100%, 1000px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.project-card {
  padding: 1.4rem;
  background: #080608;
  border: 3px solid var(--pink);
  box-shadow: 8px 8px 0 var(--dark-pink);
  transition:
    transform 140ms steps(3, end),
    box-shadow 140ms steps(3, end);
}

.project-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--dark-pink);
}

.project-image-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 1.25rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000000;
  border: 2px solid #452034;
}

.project-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.project-card-content {
  padding: 1.6rem 0.4rem 0.4rem;
}

.project-card h3 {
  min-height: 3.5rem;
  margin: 0 0 1.2rem;
  color: var(--white);
  font-size: clamp(0.78rem, 1.3vw, 1rem);
  line-height: 1.7;
}

.project-card p {
  min-height: 4.8rem;
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  line-height: 1.7;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.store-button {
  flex: 1;
  min-width: 120px;
  padding: 1rem 0.8rem;
  color: var(--pink);
  background: var(--black);
  border: 2px solid var(--pink);
  text-align: center;
  text-decoration: none;
  font-size: 0.58rem;
  box-shadow: 4px 4px 0 var(--dark-pink);
  transition:
    transform 120ms steps(3, end),
    color 120ms steps(3, end),
    background 120ms steps(3, end),
    box-shadow 120ms steps(3, end);
}

.store-button:hover,
.store-button:focus-visible {
  color: var(--black);
  background: var(--pink);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--dark-pink);
}


.content-section h2 {
  max-width: 900px;
  margin: 1.5rem auto 2rem;
  font-size: clamp(1.4rem, 3vw, 2.8rem);
  line-height: 1.5;
}

.content-section p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  line-height: 1.9;
}

.section-label {
  color: var(--pink) !important;
  font-family: "Press Start 2P", ui-monospace, monospace !important;
  font-size: 0.65rem !important;
}

.contact-section {
  background: #050305;
}
.social-section {
  min-height: 70vh;
  padding: 8rem 8vw;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--white);
  background: #050305;
  border-top: 2px dotted #341727;
}

.social-section h2 {
  margin: 1.5rem 0 3rem;
  font-size: clamp(1.4rem, 3vw, 2.8rem);
  line-height: 1.5;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.6rem, 4vw, 3rem);
}

.social-link {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--white);
  text-decoration: none;
  transition:
    color 120ms steps(3, end),
    transform 120ms steps(3, end),
    filter 120ms steps(3, end);
}

.social-link svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--pink);
  transform: translateY(-5px);
  filter: drop-shadow(0 0 8px rgba(255, 92, 168, 0.85));
}

.social-link:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 8px;
}

.social-note {
  margin: 3rem auto 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  line-height: 1.8;
}

footer {
  padding: 2rem;
  color: var(--pink);
  text-align: center;
  border-top: 2px dotted #341727;
  font-size: 0.5rem;
}

/* Magic wand cursor */
.magic-cursor {
  position: fixed;
  z-index: 9999;
  width: 42px;
  height: 42px;
  pointer-events: none;
  transform: translate(-9px, -9px) rotate(-42deg);
  filter: drop-shadow(0 0 7px rgba(255, 92, 168, 0.9));
}

.magic-cursor::before {
  content: "★";
  position: absolute;
  top: -5px;
  left: 4px;
  color: var(--light-pink);
  font-family: monospace;
  font-size: 28px;
  text-shadow:
    2px 0 var(--pink),
    -2px 0 var(--pink),
    0 2px var(--pink),
    0 -2px var(--pink);
}

.magic-cursor::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 6px;
  height: 25px;
  background: linear-gradient(var(--white) 0 18%, var(--pink) 18% 100%);
  border: 2px solid var(--pink);
  box-shadow: 2px 2px 0 #51132d;
}

.cursor-star {
  position: fixed;
  z-index: 9998;
  pointer-events: none;
  color: var(--pink);
  font-family: monospace;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 92, 168, 0.9);
  animation: star-fall 1000ms steps(8, end) forwards;
}

@keyframes cat-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes star-fall {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
  }

  to {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--drift)), 34px) scale(0.2) rotate(90deg);
  }
}

@media (max-width: 900px) {

  body,
  a,
  button {
    cursor: auto;
  }

  .magic-cursor {
    display: none;
  }

  .site-header {
    min-height: 78px;
    padding: 0 1rem;
  }

  .brand {
    gap: 8px;
    font-size: 0.58rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.43rem;
  }

  .hero {
    min-height: 680px;
  }

  .world-background {
    object-position: 70% bottom;
  }

  .hero-copy {
    top: 16%;
    left: 1.25rem;
    width: calc(100% - 2.5rem);
  }

  h1 {
    font-size: clamp(2rem, 9vw, 3.5rem);
  }

  .tagline {
    max-width: 90%;
  }

  .hero-cat {
    right: 7%;
    bottom: 8%;
    width: min(38vw, 220px);
  }

  .pixel-button {
    padding: 1rem;
    gap: 0.6rem;
  }

  .content-section {
    min-height: 52vh;
    padding: 6rem 1.4rem;
  }
}



/* Center the Projects heading while keeping the project list readable */
.projects-section {
  text-align: center;
}

.project-list {
  margin: 0 auto;
  text-align: left;
}

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

  .hero-cat,
  .cursor-star {
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }
}
