
:root {
  --black: #000;
  --white: #fff;
  --grey: #c9c9c9;
  --rule: #2a2a2a;
  --link: #9fc2ff;

  --gutter: 2rem;
  --measure: 62ch;
}

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

html {
  -webkit-font-smoothing: antialiased;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}


/* ---------- layout ---------- */

#top-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter) 8rem;
}


/* ---------- top menu ---------- */

#top-menu-container {
  /*
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("./images/apollo11_17m50s-17m55s_slow4x.gif");
  background-blend-mode: normal, lighten;
  */
  padding: 0 var(--gutter) 8rem;
  max-width: 900px;
  margin: 0 auto;
}

#top-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2.5rem;
  padding: 2.5rem 0;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--rule);

}

#top-menu a {
  color: var(--white);
  text-decoration: none;
  border-bottom: none;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#top-menu a:hover {
  color: var(--link);
}


/* ---------- headings ---------- */

h1 {
  font-size: 0.8rem;
      text-align: right;
  padding: 0 auto;
  margin: 0 auto;
  padding-top: 1rem;
}

h2 {
  margin: 7rem 0 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--white);
  font-size: clamp(3.5rem, 13vw, 8rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

#top-menu + h2 {
  margin-top: 0;
}

h3 {
  margin: 3.5rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h4 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* ---------- text ---------- */

p {
  max-width: var(--measure);
  margin: 0 0 1.5rem;
  color: var(--grey);
}

ul {
  max-width: var(--measure);
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  padding: 0.6rem 0;
  color: var(--grey);
}


/* ---------- links ---------- */

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

a:hover {
  color: var(--white);
}


/* ---------- music ---------- */

.music-song-card {
  display: inline-block;
  vertical-align: top;
  width: 200px;
  margin: 2rem 2rem 0 0;
}

.music-song-cover {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.music-song-card a {
  margin-right: 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ---------- small screens ---------- */

@media (max-width: 3000px) {
  :root {
    --gutter: 1.25rem;
  }

  /* wholescreen menu for mobile */
  #top-menu {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 0;
    height: 100vh;
    height: 100svh;
    max-height: 800px;
    padding: 5rem 0 6rem;
    margin-bottom: 6rem;
  }

  #top-menu span {
    display: block;
  }

  h2 {
    margin: 4.5rem 0 2rem;
  }

  /* top menu zigzag layout */
  #top-menu span:nth-child(even) {
    text-align: right;
  }

  #top-menu a {
    display: inline-block;
    line-height: 0.85;
    letter-spacing: -0.04em;
  }

  #top-menu .top-menu-xm a {
    font-size: 2.5rem;
  }

  #top-menu .top-menu-xl a {
    font-size: 4.5rem;
  }

  #top-menu span:nth-child(1) a { margin-left: 0.25rem; }
  #top-menu span:nth-child(2) a { margin-right: 0.5rem; }
  #top-menu span:nth-child(3) a { margin-left: 0.25rem; }
  #top-menu span:nth-child(4) a { margin-right: 0.25rem; }
  #top-menu span:nth-child(5) a { margin-left: 0.25rem; }
  #top-menu span:nth-child(6) a { margin-right: 0.5rem; }
  #top-menu span:nth-child(7) a { margin-left: 0.25rem; }
  #top-menu span:nth-child(8) a { margin-right: 0.25rem; }

  /* music in small screen */
  .music-song-card
  {
    width: 40%;
    max-width: 200;
  }

}
