:root {
  --bg: #040507;
  --bg-deep: #020304;
  --text: #f2ede2;
  --accent: #98b95e;
  --shadow: rgba(0, 0, 0, 0.7);
}

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

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Fira Code", monospace;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 22%, rgba(60, 70, 44, 0.06), transparent 24%),
    radial-gradient(circle at 78% 34%, rgba(255, 255, 255, 0.03), transparent 26%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.12;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 5px
    );
  mix-blend-mode: soft-light;
}

body::after {
  opacity: 0.2;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 42%, rgba(255, 255, 255, 0.035) 0 1px, transparent 1.5px),
    radial-gradient(circle at 58% 74%, rgba(255, 255, 255, 0.025) 0 1px, transparent 1.5px);
  background-size: 220px 220px, 280px 280px, 340px 340px;
}

a {
  color: inherit;
}

.page,
.terminal-hero {
  min-height: 100vh;
}

.terminal-hero {
  padding: clamp(2.25rem, 5.5vw, 3.5rem) clamp(0.75rem, 3.5vw, 2.875rem);
}

.terminal-hero__inner {
  max-width: 36rem;
}

.hero-title,
.hero-tagline,
.contact-line,
.terminal-line {
  margin: 0;
  text-transform: uppercase;
}

.hero-title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  font-size: clamp(1.5rem, 3.15vw, 2.6rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.14em;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.03);
}

.hero-title__cursor {
  color: var(--accent);
}

.hero-tagline {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  color: var(--accent);
  font-size: clamp(0.6rem, 1.2vw, 1rem);
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.contact-line,
.terminal-line {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  font-style: normal;
  font-size: clamp(0.625rem, 1.1vw, 0.975rem);
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.contact-line {
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
}

.terminal-line {
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  color: var(--accent);
}

.contact-line__prompt,
.terminal-line__prompt,
.contact-line__link {
  color: var(--accent);
}

.contact-line__prompt,
.terminal-line__prompt {
  font-weight: 500;
}

.contact-line__label {
  color: var(--text);
}

.contact-line__link {
  text-decoration: none;
  text-transform: none;
}

@media (max-width: 900px) {
  .hero-title {
    letter-spacing: 0.1em;
  }

  .hero-tagline {
    max-width: 11rem;
  }

  .contact-line {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }
}

@media (max-width: 640px) {
  .terminal-hero {
    padding: 1.5rem 0.75rem;
  }

  .hero-title {
    font-size: clamp(1.15rem, 6vw, 1.85rem);
    line-height: 1.08;
    letter-spacing: 0.08em;
  }

  .hero-tagline {
    margin-top: 1rem;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }

  .contact-line,
  .terminal-line {
    gap: 0.4rem;
    font-size: 0.56rem;
  }

  .contact-line__link {
    overflow-wrap: anywhere;
  }
}
