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

body {
  min-height: 100dvh;
  overflow: hidden;
}

.bg {
  position: fixed;
  inset: -40px;
  background: url('bg-wide.jpg') center center / cover no-repeat;
  z-index: 0;
  will-change: transform;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, 0.42);
  z-index: 2;
}

/* Name nearly sitting on the horizon */
.name-block {
  position: fixed;
  z-index: 3;
  top: 22vh;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 6rem);
  text-align: left;
}

h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3.8rem, 10vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

/* Details centered as a block, content left-justified within */
.detail-block {
  position: fixed;
  z-index: 3;
  top: 42vh;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 6rem);
}

.bio {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.8rem;
}

.bio p {
  font-family: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.bio strong {
  font-weight: 700;
  font-size: 1.15em;
  color: #ffffff;
  letter-spacing: 0.02em;
}

/* Inline source link */
.bio a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(220, 235, 245, 0.45);
  padding-bottom: 0.08em;
  transition: border-color 0.25s, color 0.25s;
}

.bio a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.bio a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-bottom-color: transparent;
}

.links {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(200, 220, 235, 0.5);
  border-radius: 50%;
  color: #d0e4f0;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.icon-btn:hover {
  background: rgba(200, 220, 235, 0.15);
  border-color: rgba(200, 220, 235, 0.8);
  color: #ffffff;
}

/* Photo copyright credit */
.credit {
  position: fixed;
  z-index: 3;
  bottom: 0.9rem;
  left: 1.1rem;
  font-family: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(235, 244, 250, 0.55);
}

/* Visible keyboard focus */
.icon-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  background: rgba(200, 220, 235, 0.15);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .bg {
    transform: none !important;
  }

  .icon-btn,
  .bio a {
    transition: none;
  }
}

/* ── Tablet ── */
@media (max-width: 1024px) {
  .name-block {
    top: 20vh;
    max-width: calc(100vw - 4rem);
  }

  h1 {
    font-size: clamp(3rem, 9vw, 5rem);
    white-space: normal;
  }

  .detail-block {
    top: 40vh;
    max-width: calc(100vw - 4rem);
  }

  .bio p {
    font-size: clamp(1rem, 2.4vw, 1.3rem);
  }
}

/* ── Mobile landscape: side-by-side layout ── */
@media (max-width: 900px) and (orientation: landscape) {
  body {
    overflow: hidden;
  }

  .bg {
    background-image: url('bg-mobile.jpg');
  }

  .name-block {
    position: fixed;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    width: 44%;
    max-width: 44%;
    text-align: left;
  }

  h1 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    white-space: normal;
    word-break: break-word;
  }

  .detail-block {
    position: fixed;
    top: 50%;
    left: 52%;
    transform: translateY(-50%);
    width: 43%;
    max-width: 43%;
  }

  .bio p {
    font-size: clamp(0.8rem, 1.8vw, 1rem);
  }
}

/* ── Mobile portrait ── */
@media (max-width: 768px) {
  body {
    overflow: hidden;
  }

  main {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    position: relative;
    z-index: 3;
  }

  .bg {
    position: fixed;
    background-image: url('bg-mobile.jpg');
  }

  .name-block {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 18vh 1.5rem 0;
    text-align: center;
    flex-shrink: 0;
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
    white-space: normal;
    word-break: break-word;
  }

  .detail-block {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    max-width: 100%;
    padding: 0 1.5rem 3rem;
    margin-top: auto;
  }

  .bio p {
    font-size: 1.05rem;
  }

  .bio {
    margin-bottom: 1.5rem;
  }
}
