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

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

body {
  font-family: 'Space Mono', monospace;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* noise texture overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ---- header ---- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  position: relative;
  z-index: 1;
}

.mark {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0;
  color: #fff;
  transition: opacity 0.3s ease;
}

.mark:hover {
  opacity: 0.7;
}

.contact-link {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.contact-link:hover {
  color: #fff;
}

.contact-link:hover::after {
  width: 100%;
}

/* ---- main ---- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

h1 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.about {
  max-width: 420px;
  text-align: center;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.email {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.email::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.email:hover {
  color: #fff;
}

.email:hover::after {
  width: 100%;
}

/* ---- footer ---- */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  position: relative;
  z-index: 1;
}

.legal {
  font-size: 0.75rem;
  color: #fff;
  letter-spacing: 0.05em;
}

.socials {
  display: flex;
  gap: 1.5rem;
}

.socials a {
  font-size: 0.75rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.socials a:hover {
  color: #fff;
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ---- mobile ---- */
@media (max-width: 640px) {
  header, footer {
    padding: 1.5rem;
  }

}
