/* Reset default margins and padding */
html, body, h1, h2, p, ul {
    margin: 0;
    padding: 0;
}

/* Base styling */
body {
    font-family: 'Source Code Pro', monospace;
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    text-align: center; /* only centers header block */
}

/* Header layout */
header {
    padding: 20px 0;
}

.center-title {
    margin-bottom: 10px;
}

.site-title {
    font-size: 28px;
    font-weight: normal;
    display: inline-block; /* allows link styling */
}

.subtitle {
    font-size: 19px;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Remove link styling from the site title (home link) */
#home-link {
    text-decoration: none;
    color: inherit;
}
#home-link:hover,
#home-link:active,
#home-link:visited {
    text-decoration: none;
    color: inherit;
}

/* Divider line */
hr {
    border: none;
    border-top: 1px solid rgb(255, 255, 255);
    margin: 10px auto;
    width: 80%;
}

/* Main navigation */
.main-nav {
    margin-top: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-links li a {
    text-decoration: none;
    color: rgb(156, 146, 74);
    font-size: clamp(14px, 4vw, 18px);
    font-weight: normal;
    cursor: pointer;
}

.site-header {
  padding: 5px 20px;
  /* you can set a background if you like, e.g.: background: #222; */
}

.social-nav {
  display: flex;
  justify-content: flex-end;   /* push links all the way to the right */
  font-size: 0.85em;            /* make links smaller */
  align-items: center;
}

.social-nav a {
  color: #db11b2;
  text-decoration: none;
  line-height: 1;               /* tighten vertical spacing */
}

/* insert a “|” before every link except the first */
.social-nav a + a:before {
  content: "|";
  margin: 0 8px;
  color: #fff;
}

/* Default homepage image */
#default-image img {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* About-section image (matches divider margins) */
.about-image {
    max-width: 60%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.instrument-image {
    max-width: 60%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.electronic-image {
    max-width: 60%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.fixedmedia-image {
    max-width: 60%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.multichannel-image {
    max-width: 60%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.intermedia-image {
    max-width: 60%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.livecoding-image {
    max-width: 60%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.contact-image {
    max-width: 60%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.max-image {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* Make embedded videos larger */
.content-section iframe {
    max-width: 90%;   /* bump up from 80% to 90% (or 100% for full width) */
    width: 100%;
    height: auto;     /* keep the aspect ratio */
    display: block;
    margin: 20px auto;
}

.video-wrapper {
  position: relative;
  width: 90%;           /* or 100% if you like */
  padding-top: 56.25%;  /* 9 ÷ 16 = 0.5625 = 56.25% */
  margin: 20px auto;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-wrapper {
  margin-bottom: 40px;
}

/* force SC visual embeds to the 450px they need */
.content-section iframe[src*="soundcloud.com"] {
  height: 166px !important;
}

/* Content area */
main {
    max-width: 800px;
    margin: 20px auto;
    text-align: left; /* left-aligns all section text */
}

/* Sections hidden by default */
.content-section {
    display: none;
    margin-bottom: 40px;
    text-align: left;
}

.content-section p {
    font-size: 17px;    /* ← increase or decrease as you like */
    line-height: 1.0;   /* nice even spacing */
    margin-bottom: 1em;   /* or 1.5em, 2em, whatever feels right */
}

.content-section blockquote {
    font-size: 17px;
}

.content-section ul li {
    font-size: 17px;
    margin-bottom: 0.1em; /* space between list items */
}

/* Acoustic works list links */
.music-list-links {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.music-list-links li {
    margin: 10px 0;
}
.music-list-links li a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: 17px;
}

.site-footer {
  text-align: right;
  margin: 40px 0 20px;
  font-size: 0.8em;
  color: #ffffff;
}

a {
  color: #db11b2;
  text-decoration: none;
}

h2 {
    color: #09e3d8;
    text-decoration:none;
}

@media (max-width: 600px) {

  /* Base text smaller */
  body {
    font-size: 14px;
  }

  .nav-links {
    flex-direction: column; /* stack nav links vertically */
    gap: 8px;
  }
  .nav-links li a {
    font-size: 10px;
  }

  .social-nav {
    font-size: 0.75em; /* smaller social links */
    justify-content: center; /* center social links */
  }

  /* Headings a bit smaller */
  h1.site-title {
    font-size: 20px;
  }
  .subtitle {
    font-size: 12px;
  }
  h2 {
    font-size: 18px;
  }
  h3 {
    font-size: 14px;
  }

  /* Nav links smaller and tighter */
  .nav-links li a {
    font-size: 13px;
  }

  /* Section paragraph text */
  .content-section p {
    font-size: 12px;
  }

  .content-section ul li {
    font-size: 12px;
  }

  .content-section blockquote {
    font-size: 12px;
  }

  /* Footer note */
  .site-footer p {
    font-size: 0.75em;
  }

  body {
    padding: 0 16px;    /* 16px space on left & right */
  }

  /* override the main container’s auto-margins */
  main {
    margin: 20px 0;     /* top/bottom stays, left/right removed */
    padding: 0;         /* no extra padding inside main */
  }

  /* similarly for header and footer */
  .site-footer {
    padding: 0 16px;
  }

  /* make the piece titles smaller on phones */
  .music-list-links li a {
    font-size: 12px;
  }
  /* tighten up the spacing a bit, too */
  .music-list-links li {
    margin: 5px 0;
  }

  header {
  padding: 20px 16px 10px; /* top 20px, left/right 16px, bottom 10px */
  }

  /* ── FORCE the submenu into the flow ── */
  .nav-links .dropdown-menu {
    position: static   !important;
    top:      auto     !important;
    left:     auto     !important;
    width:    100%     !important;
    box-shadow: none   !important;
  }

  /* Make sure the header/nav container can expand */
  header,
  .main-nav {
    overflow: visible !important;
    height:   auto    !important;
  }
}

/* ───── Dropdown under “works” ───── */
.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;    /* sits just below “works” */
  left: 0;
  background-color: #000;  /* match your navbar bg */
  list-style: none;
  padding: 5px 0;
  margin: 0;
  z-index: 10;
  min-width: 200px;
}

.nav-links .dropdown-menu li a {
  display: block;
  padding: 8px 20px;
  font-size: clamp(10px, 2.5vw, 14px);
  color: rgb(156, 146, 74);
  text-decoration: none;
  white-space: nowrap;
}

/* show only when .open class is present */
.nav-links .dropdown.open .dropdown-menu {
  display: block;
}

/* hover highlight inside submenu */
.nav-links .dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

