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

/* Variables */
:root {
  --heading-font: "korolev", sans-serif;
  --body-font: "effra", sans-serif;

  --text-color: #ffffff;
}

html {
  font-family: var(--body-font);
  font-display: swap;
}

/* Page setup */
body {
  min-height: 100vh;
  font-family: var(--body-font);
}

/* Hero container */
.hero {
  min-height: 100vh;
  background-image: url("/images/cover.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  padding: 48px;

  position: relative;
}

/* Optional overlay for legibility */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0)
  );
}

/* Text wrapper */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1920px;
  color: var(--text-color);
}

/* Headline */
.hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(5rem, 4vw, 6rem);
  font-weight: 600;
  letter-spacing: .001em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Subhead */
.hero h2 {
  font-family: var(--body-font);
  font-weight: 300;
  font-size: 1.75rem;
  line-height: 1.4;
  word-spacing: 0.08em;
}


/* Link styling */
.hero h2 a {
  display: inline-block;
  padding-bottom: 2px;
  line-height: .75;
  color: rgba(255, 255, 255, 1);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* visited = same as default */
.hero h2 a:visited {
  color: rgba(255, 255, 255, 1);
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

/* hover/focus wins */
.hero h2 a:hover,
.hero h2 a:focus {
  color: rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}


/* Small-screen refinement */
@media (max-width: 600px) {
  .hero {
    padding: 32px 24px;
  }

  .hero h1 {
    letter-spacing: 0.04em;
  }
}
