* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'EB Garamond', serif;
  background: #111111;
  color: #d4d4d4;
  line-height: 1.8;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  overflow: visible !important;
}
.main-content {
  padding-top: 40px;
  overflow: visible !important;
}
/* Top bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: #0a0a0a;
  z-index: 1000;
  border-bottom: 1px solid #1a1a1a;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 45px;
}
.header-headshot {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 35px rgba(0,0,0,0.7);
}
.site-title {
  margin: 0;
  font-size: 4.8rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 11px;
  text-transform: uppercase;
}
/* Nav bar */
.nav-bar {
  position: fixed;
  top: 200px;
  left: 0;
  width: 100%;
  height: 60px;
  background: #1a0000;
  z-index: 999;
}
.nav-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 90px;
}
.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: color 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
  color: #f0e0e0;
}
/* Hero */
#hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  max-height: 800px;
  margin-top: 260px;
  background: url('hero-bridge.jpg') no-repeat center 40%;
  background-size: cover;
  background-color: #000000;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}
.hero-overlay h2 {
  font-size: 4.2rem;
  margin: 0 0 15px;
  letter-spacing: 2px;
}
.hero-overlay p {
  font-size: 2.2rem;
  margin: 0;
  font-weight: 500;
  letter-spacing: 1px;
}
/* Tabs */
.tab-section {
  display: none;
  padding: 80px 20px 60px;
  scroll-margin-top: 280px;
}
.tab-section.active {
  display: block;
}
h2 {
  font-size: 3.4rem;
  text-align: center;
  margin-bottom: 45px;
  color: #eeeeee;
}
.player {
  margin: 50px 0;
  text-align: center;
}
iframe {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  width: 100%;
  max-width: 820px;
}
/* Top horizontal menu */
.sonnet-nav.top-nav {
  margin: 0 auto 50px;
  max-width: 1000px;
  text-align: center;
}
.sonnet-nav.top-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
}
.sonnet-nav.top-nav li a {
  color: #cccccc;
  text-decoration: none;
  font-size: 1.15rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.sonnet-nav.top-nav li a:hover {
  color: #ffffff;
  background: rgba(74, 0, 0, 0.3);
}
/* Layout: left numbers + right poems */
.poems-layout {
  display: flex;
  gap: 0; /* zero gap – numbers hard against red line */
  max-width: 1400px;
  margin: 0 auto;
}

/* Left sidebar – discrete numbers only */
.sonnet-sidebar {
  flex: 0 0 28px; /* ultra-narrow – numbers sit right next to red line */
  position: sticky;
  top: 260px;
  align-self: start;
  text-align: right;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  max-height: none !important;
  overflow: visible !important;
}

/* Numbers – clean, full list */
.sonnet-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sonnet-sidebar li {
  margin: 28px 0; /* vertical spacing to align with poem blocks */
}

.sonnet-sidebar a {
  display: block;
  color: #555;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.2s;
  padding: 0;
  margin: 0;
}

.sonnet-sidebar a:hover {
  color: #fff;
}

/* Main poems */
.poems-main {
  flex: 1;
  min-width: 0;
}

.poems-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Poem styling – red line hard against numbers */
.poem {
  margin-bottom: 70px;
  padding: 0 20px 0 0; /* no left padding – red line meets numbers */
  scroll-margin-top: 240px;
}

.poem h3 {
  font-size: 2.4rem;
  margin: 0 0 8px;
  color: #eeeeee;
  text-align: center;
  letter-spacing: 1.2px;
}

.poem-text {
  font-size: 1.38rem;
  line-height: 2.0;
  color: #e0e0e0;
  text-align: left;
  max-width: 760px;
  margin: 0 auto;
  hyphens: auto;
  background: rgba(20, 20, 20, 0.4);
  padding: 35px 45px;
  border-left: 4px solid #4a0000;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 25px rgba(0,0,0,0.5);
}

.poem-text br {
  content: "";
  margin-bottom: 1.2em;
  display: block;
}

/* Bio, Contact, Footer */
#bio {
  padding: 80px 20px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}
#bio h2 {
  font-size: 4rem;
  margin-bottom: 60px;
  letter-spacing: 1.5px;
}
.bio-main-image {
  text-align: center;
  margin: 40px 0 60px;
}
.bio-main-portrait {
  max-width: 500px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
}
#bio p {
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.95;
  margin: 0 auto 2rem;
  max-width: 820px;
  color: #e8e8e8;
  text-shadow: 0 1px 5px rgba(0,0,0,0.6);
  text-align: left;
  hyphens: auto;
  padding: 0 20px;
}
#contact {
  padding: 80px 20px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}
#contact h2 {
  font-size: 3.4rem;
}
#contact ul {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}
#contact li {
  margin: 15px 0;
}
#contact a {
  color: #cccccc;
  font-size: 1.3rem;
}
#contact a:hover {
  color: #ffffff;
}
footer {
  text-align: center;
  padding: 80px 20px;
  color: #666666;
  border-top: 1px solid #222222;
  font-size: 1rem;
}
/* General */
a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: #ffffff;
}
html {
  scroll-behavior: smooth;
}

/* MOBILE */
@media (max-width: 1024px) {
  .poems-layout {
    flex-direction: column;
    gap: 20px;
  }

  .sonnet-sidebar {
    position: static;
    flex: none;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .sonnet-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .sonnet-sidebar li {
    margin: 0;
  }

  .sonnet-sidebar a {
    font-size: 1rem;
    padding: 4px 8px;
    background: rgba(40, 0, 0, 0.4);
    border-radius: 4px;
  }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .top-bar { height: 140px; }
  .header-headshot { width: 90px; height: 90px; }
  .site-title { font-size: 2.8rem; letter-spacing: 5px; }
  .header-container { gap: 30px; }
  .nav-bar { top: 140px; height: 50px; }
  .nav-bar .container { gap: 30px; }
  .nav-link { font-size: 0.95rem; }
  #hero { margin-top: 190px; height: 48vh; min-height: 280px; }
  .hero-overlay h2 { font-size: 2.4rem; }
  .hero-overlay p { font-size: 1.6rem; }
  h2 { font-size: 2.6rem; }
  #bio p { font-size: 1.25rem; line-height: 1.85; }
  .bio-main-portrait { max-width: 380px; }
  .player iframe { height: 200px; }
  .tab-section {
    padding: 80px 15px 50px;
    scroll-margin-top: 220px;
  }
  .sonnet-nav.top-nav ul { gap: 12px 20px; }
  .sonnet-nav.top-nav li a { font-size: 1rem; }
  .poem h3 { font-size: 2rem; }
  .poem-text {
    font-size: 1.25rem;
    line-height: 1.9;
    padding: 25px 30px;
  }
  #contact { padding: 60px 15px; }
  footer { padding: 60px 15px; }
}

/* Very small screens */
@media (max-width: 480px) {
  .site-title { font-size: 2.6rem; }
  .hero-overlay h2 { font-size: 2.2rem; }
  .hero-overlay p { font-size: 1.5rem; }
  h2 { font-size: 2.4rem; }
  #bio p { font-size: 1.2rem; }
}
