:root {
  /* Colors */
  --color-dark: #13161b;
  --color-light: #e9e7e2;
  --color-orange: #e7562b;

  /* Typography */
  --font-body: "helvetica-neue-lt-pro", sans-serif;
  --font-weight-regular: 400;
}

p {
  font-family: var(--font-body);
  font-weight: var(--font-weight-regular);
  font-style: normal;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  color: var(--color-dark);
  background-color: var(--color-orange);
  -webkit-font-smoothing: antialiased;
}

.hero {
  display: flex;
  position: relative;
  min-height: 100svh;
  background-color: var(--color-orange);
  overflow: hidden;
}

/* Header */
.hero__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-left: auto;
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 99;
}

.hero__photo {
  width: 64px;
  height: auto;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 350px;
  top: 64px;
  left: 32px;
  position: absolute;
}

.hero__intro p {
  font-size: 14px;
}

.hero__nav {
  display: flex;
  gap: 2rem;
}

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

.hero__nav a:hover {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.4em; /* Moves the underline further down on hover */
}

/* Main composition */
.hero__content {
  width: 100%;
  height: 100vh;
  position: relative;
}

/* Rotating logo */
.hero__logo {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  display: block;
  width: clamp(400px, 50vw, 800px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: transparent;
}

.hero__name {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Scattered name */
.hero__letters {
  position: absolute;
  inset: 0;
}

.hero__letters span {
  position: absolute;
  display: block;
  font-family: var(--font-body);
  font-size: clamp(14px, 2.5vw, 20px);
  font-weight: 400;
  line-height: 1;
  color: var(--color-dark);
}

/* Accessible text */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  /* Hero layout */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    overflow: hidden;
  }

  /* Navigation */
  .hero__header {
    position: relative;
    top: auto;
    right: auto;
    margin-left: 0;
    padding: 24px 24px 0;
    width: 100%;
    justify-content: space-between;
    z-index: 10;
  }

  .hero__nav {
    width: 100%;
    justify-content: space-between;
    gap: 24px;
  }

  /* Introduction */
  .hero__intro {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: none;
    padding: 32px 24px 0;
    gap: 16px;
    z-index: 3;
  }

  .hero__intro p {
    font-size: 14px;
    line-height: 1.5;
  }

  .hero__photo {
    width: 64px;
  }

  /* Logo and scattered letters */
  .hero__content {
    height: 560px;
    margin-top: 32px;
  }

  .hero__letters span {
    font-size: 20px;
  }
}
