:root {
  --bg: #0b0b0c;
  --line: #232327;
  --text: #f2f0ea;
  --muted: #8d8d95;
  --accent: #c8f24e;

  --page: min(1180px, 100% - 3rem);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'League Spartan', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A faint vignette so the black doesn't read as flat. */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(200, 242, 78, 0.07), transparent 55%);
}

main {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

p {
  margin: 0;
}

/* ---------- hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  width: var(--page);
  margin-inline: auto;
  padding-block: 4rem;
}

.hero__title {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.28em;
  font-size: clamp(3.5rem, 15vw, 12rem);
  letter-spacing: -0.035em;
}

.hero__title span:nth-child(2) {
  color: var(--accent);
}

.hero__tagline {
  margin-top: 1.75rem;
  max-width: 22ch;
  font-size: clamp(1.5rem, 3.4vw, 2.75rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ---------- contact (markup commented out in index.html) ---------- */

.contact {
  width: var(--page);
  margin-inline: auto;
  padding-block: clamp(5rem, 12vw, 9rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact__title {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
}

.contact__email {
  display: inline-block;
  margin-top: 2.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent);
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  font-weight: 500;
  transition: color 0.3s var(--ease);
}

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

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero__tagline.reveal {
  transition-delay: 0.12s;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
