@font-face {
  font-family: "ZenzaiItacha";
  src: url("../fonts/ZenzaiItacha-vElZ.ttf") format("truetype");
}

:root {
  --bg-paper: #ffffff;
  --bg-cream: #fbfbf8;
  --ink: #0b1220;
  --muted: #58606a;
  --accent: #e23b3b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: linear-gradient(180deg, var(--bg-paper), var(--bg-cream));
  color: var(--ink);
  user-select: none;
}

html,
body,
* {
  cursor: none !important;
}

.cursor,
.cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
}
.cursor.hover {
  width: 30px;
  height: 30px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(0, 0, 0, 0.05), transparent 18%),
    radial-gradient(circle at 90% 85%, rgba(0, 0, 0, 0.04), transparent 20%);
  pointer-events: none;
}

nav {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(250, 250, 248, 0.85)
  );
  border-bottom: 1px solid rgba(3, 7, 16, 0.05);
}

nav .logo {
  font-family: "ZenzaiItacha", sans-serif;
  font-size: 30px;
  line-height: 1;
}

nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  font-size: 18px;
}

.viewport {
  height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.core {
  width: 100%;
  max-width: 880px;
  padding: 36px 32px;
  border-radius: 20px;
  background: radial-gradient(
    circle at 1px 1px,
    rgba(0, 0, 0, 0.06) 0.8px,
    transparent 0
  );
  background-size: 6px 6px;
}

.core-header {
  margin-bottom: 30px;
}

.core-title {
  font-size: 2.4rem;
  font-weight: 800;
}

.core-subtitle {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--muted);
}

.stack-grid {
  display: grid;
  margin-top: 8px;
  grid-template-columns: repeat(4, 72px);
  gap: 18px 20px;
  align-items: start;
}

.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stack-item img {
  width: 42px;
  height: 42px;
}

.stack-item span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.3px;
  text-align: center;
}

.corner-art {
  position: fixed;
  right: -40px;
  bottom: -20px;
  width: 400px;
  opacity: 0.9;
  pointer-events: none;
}
footer {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

body.invert {
  background: #000;
}
body.invert .app {
  filter: invert(1) hue-rotate(180deg);
}

@media (max-width: 820px) {
  .stack-grid {
    grid-template-columns: repeat(2, max-content);
  }
}

@media (max-width: 720px) {
  .cursor,
  .cursor-dot {
    display: none;
  }
  body {
    cursor: default;
  }
}
.contact-body {
  margin-top: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 14px 16px;
  margin-top: 10px;
}

.contact-badge {
  display: inline-block;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.contact-badge:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: repeat(2, max-content);
  }
}
