:root { color-scheme: light dark; }

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "avenir-lt-pro", sans-serif;
  font-weight: 800;
  color: #0600A2;
  line-height: 1.5;
  display: block;
  overflow-x: hidden;
  position: relative;
}

/* Header / Nav */
.site-header {
  position: relative;
  top: auto;
  background: transparent;
  z-index: 10;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 16px 24px;
}

.logo { height: 160px; width: 160px; display: block; }

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: #0600A2;
  font-size: 24px;
}

.nav-list a.active {
  color: #F96CD0;
  text-shadow: 2px 2px 0 #6CF1FF;
}

main { width: 100%; max-width: 92vw; padding: 24px; margin: 48px auto; position: relative; z-index: 1; }

/* Hero background image */
/* Intrinsically sized hero image that overflows horizontally */
.hero-bg {
  position: absolute;
  top: 10vh;
  width: 100vw;
  height: auto;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

@media (max-width: 768px) {
  .hero-bg { left: 50%; transform: translateX(-50%); width: 290vw; height: auto; }
  .nav-list { display: none; }
}

/* Tablet / small desktop adjustments (only between 769px and 1215px) */
@media (max-width: 1215px) and (min-width: 769px) {
  .site-nav { gap: 24px; flex-wrap: wrap; }
  .logo { height: 120px; width: 120px; }
  .nav-list a { font-size: 16px; }
  
  * {overflow: hidden;}

  /* Reposition hero to avoid text overlap */
  .hero-bg {
    top: unset;
    left: 50%;
    transform: translateX(-50%);
    bottom: -20%;
    width: 100vw;
  }
}

/* Mobile layout */
@media (max-width: 700px) {
  /* Use center third of image; crop top/bottom via object-fit */
  .hero-bg {
    top: unset;
    bottom: -23vh;
    left: 50%;
    transform: translateX(-50%);
    width: 290vw;
    height: auto;
    object-fit: cover;
    object-position: center center;
  }

  .site-nav { gap: 16px; }
  .logo { height: 96px; width: 96px; }
  .nav-list a { font-size: 18px; }
  main { margin: 0 auto;}
}

/* Intro text block */
.intro-wrap { position: relative; max-width: 640px; padding: 24px; margin-top: 10vh;}
.intro {
  font-size: 28px;
  margin: 0;
  text-shadow: 0px 0px 6px white;
}

/* Baseline-centered highlight for the name */
.name-highlight {
  position: relative;
  color: inherit;
}
.name-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px; /* 4px above + 4px below baseline */
  background: #6CF1FF;
  bottom: 0.2em; /* approximate baseline offset */
  transform: translateY(4px); /* center around baseline visually */
  z-index: -1;
}

.cta-button {
  text-decoration: none;
  color: #0600A2;
  font-size: 28px;
  text-shadow: 3px 0px 0 #6CF1FF;
}

/* Removed headshot and scroll indicator (merged into background) */

@media (max-width: 900px) {
  .intro-wrap { max-width: 100%; margin: unset;}
  .intro { font-size: 16px; }
  .cta-button { font-size: 16px; }
  .intro-shape { width: 40%; height: 45vh; }
}

h1 { margin: 0; font-size: 2rem; font-weight: 600; }


/* Sections */
.sections { max-width: 50vw; margin: 90vh auto 120px; display: grid; gap: 48px; position: relative; z-index: 3; }
.section { background: rgba(255,255,255,0.85); backdrop-filter: blur(4px); padding: 24px; border-radius: 12px; }
.section-title { margin: 0 0 8px 0; font-size: 32px; color: #0600A2; text-shadow: 0 0 6px white; }
.section-text { margin: 0 0 12px 0; font-size: 22px; line-height: 1.6; }
.section-links a { margin-right: 16px; text-decoration: none; color: #0600A2; text-shadow: 2px 0 0 #6CF1FF; }

@media (max-width: 900px) {
  .sections { gap: 24px; margin: 70vh auto 96px; max-width: 80vw;}
  .section { padding: 20px; }
}
