/* ==================================================
   VANITY BLUE
   MAIN STYLESHEET
   ================================================== */


/* ==================================================
   1. VARIABLES / GLOBAL
   ================================================== */

:root {
  --black: #0d0d0d;
  --white: #f2f2f2;
  --grey: #444444;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--black);
  color: var(--white);

  font-family: Arial, Helvetica, sans-serif;

  overflow-x: hidden;
}

img {
  max-width: 100%;
}


/* ==================================================
   2. HEADER / NAVIGATION
   ================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  padding: 18px 24px;

  background: var(--black);
  border-bottom: 1px solid var(--white);
}

.site-name {
  display: flex;
  align-items: center;

  color: var(--white);
  text-decoration: none;

  font-size: 0.85rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-evenly;

  width: 100%;
  padding: 0 40px;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;

  font-size: 0.75rem;
}

.site-nav a:hover {
  opacity: 0.65;
}

.header-logo {
  display: block;

  width: 40px;
  height: 40px;

  object-fit: contain;
}


/* ==================================================
   3. HOMEPAGE HERO
   ================================================== */

.hero {
  min-height: calc(100vh - 77px);

  display: flex;
  flex-direction: column;

  padding: 32px;

  background: var(--black);
  color: var(--white);
}

.hero-left {
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  margin: 0;
  padding: 0;

  background: transparent;
  color: var(--white);

  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.tagline,
.hero .tagline {
  margin-top: 24px;

  color: var(--white);

  font-size: 1rem;
  line-height: 1.25;
}

.hero-meta {
  width: 100%;
  margin-top: auto;

  display: flex;
  justify-content: space-between;
  gap: 20px;

  color: var(--white);

  font-size: 0.75rem;
  text-transform: uppercase;
}


/* ==================================================
   4. GENERAL SECTION LABEL
   ================================================== */

.section-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 40px;

  font-size: 0.75rem;
  text-transform: uppercase;
}


/* ==================================================
   5. LATEST BROADCAST
   ================================================== */

.latest {
  padding: 32px;

  background: var(--black);
  color: var(--white);

  border-top: 1px solid var(--white);
}

.latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;

  align-items: stretch;
}


/* Artwork */

.show-artwork {
  width: 100%;
  aspect-ratio: 1 / 1;

  overflow: hidden;

  background: var(--black);
}

.show-artwork img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;
}


/* Show information */

.show-info {
  display: flex;
  flex-direction: column;

  width: 100%;
  height: 100%;
}

.show-number {
  margin: 0 0 24px 0;

  font-size: 0.8rem;
  font-weight: 600;
}

.show-info h2 {
  margin: 0 0 36px 0;

  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.show-description {
  max-width: 460px;

  margin: 0 0 30px 0;

  font-size: 1rem;
  line-height: 1.45;
}

.show-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;

  margin-bottom: 30px;

  font-size: 0.85rem;
  font-weight: 700;

  text-transform: uppercase;
}


/* Mixcloud */

.mixcloud-player {
  width: 100%;
  margin-top: auto;
}

.mixcloud-player iframe {
  display: block;

  width: 100%;
  max-width: 100%;

  border: 0;
}


/* ==================================================
   6. RECENT BROADCASTS
   ================================================== */

.recent {
  padding: 32px;

  background: var(--black);
  color: var(--white);

  border-top: 1px solid var(--white);
}

.broadcast-list {
  border-top: 1px solid var(--white);
}

.broadcast-row {
  display: grid;
  grid-template-columns: 100px 2fr 1fr 100px;
  gap: 20px;

  padding: 22px 0;

  border-bottom: 1px solid var(--grey);

  font-size: 0.8rem;
  text-transform: uppercase;
}

.broadcast-row:hover {
  background: var(--white);
  color: var(--black);
}


/* ==================================================
   7. RESIDENTS LIST
   ================================================== */

.residents {
  padding: 32px;

  background: var(--black);
  color: var(--white);

  border-top: 1px solid var(--white);
}

.resident-list {
  border-top: 1px solid var(--white);
}

.resident-row {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 20px;

  padding: 24px 0;

  border-bottom: 1px solid var(--grey);

  color: var(--white);
  text-decoration: none;

  text-transform: uppercase;
}

a.resident-row,
a.resident-row:link,
a.resident-row:visited,
a.resident-row:active {
  color: var(--white);
  text-decoration: none;
}

.resident-row a,
.resident-row a:link,
.resident-row a:visited,
.resident-row a:active {
  color: inherit;
  text-decoration: none;
}

.resident-row span {
  color: inherit;
  text-decoration: none;
}

.resident-row:hover {
  background: var(--white);
  color: var(--black);
}

.resident-row:hover a,
a.resident-row:hover {
  color: var(--black);
  text-decoration: none;
}


/* ==================================================
   8. ABOUT
   ================================================== */

.about {
  padding: 32px;

  background: var(--black);
  color: var(--white);

  border-top: 1px solid var(--white);
}

.about-text {
  max-width: 1000px;
  margin-top: 80px;
}

.about-text p {
  margin: 0 0 60px 0;

  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}


/* ==================================================
   9. SUBMIT / CONTACT
   ================================================== */

.submit {
  padding: 32px;

  background: var(--black);
  color: var(--white);

  border-top: 1px solid var(--white);
}

.submit a {
  color: var(--white);
  text-decoration: none;
}

.submit a:hover {
  opacity: 0.65;
}


/* ==================================================
   10. FOOTER
   ================================================== */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  font-size: 0.8rem;
  text-transform: uppercase;
}


/* ==================================================
   11. RESIDENT PROFILE PAGE
   ================================================== */

.resident-profile {
  min-height: 100vh;

  padding: 60px 32px;

  background: var(--black);
  color: var(--white);
}


/* Resident hero */

.resident-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;

  width: 100%;
  min-height: 75vh;

  align-items: start;
}

.resident-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.resident-number {
  margin: 0 0 20px 0;

  font-size: 0.8rem;
  font-weight: 700;

  text-transform: uppercase;
}

.resident-profile h1 {
  margin: 0;

  font-size: clamp(5rem, 12vw, 12rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.resident-location {
  margin-top: 30px;

  font-size: 0.85rem;
  font-weight: 700;

  text-transform: uppercase;
}


/* Resident photo */

.resident-photo {
  width: 100%;
  height: 75vh;

  margin-top: 78px;

  overflow: hidden;
}

.resident-photo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}


/* Resident biography */

.resident-about {
  max-width: 900px;

  padding: 70px 0;

  font-size: 1rem;
  line-height: 1.5;
}

.resident-about p {
  margin: 0 0 18px 0;
}


/* Resident broadcasts */

.resident-shows {
  margin-top: 20px;
  padding-top: 30px;

  border-top: 1px solid var(--white);
}

.resident-show {
  display: grid;
  grid-template-columns: 120px 1fr 100px;
  gap: 20px;

  padding: 25px 0;

  color: var(--white);
  text-decoration: none;

  border-bottom: 1px solid var(--grey);

  text-transform: uppercase;
}

.resident-show:visited {
  color: var(--white);
}

.resident-show:hover {
  background: var(--white);
  color: var(--black);
}


/* ==================================================
   12. MOBILE
   ================================================== */

@media (max-width: 700px) {

  /* Header */

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;

    padding: 14px 16px;
  }

  .site-name {
    font-size: 0.75rem;
  }

  .header-logo {
    width: 32px;
    height: 32px;
  }

  .site-nav {
    grid-column: 1 / -1;

    justify-content: flex-start;
    gap: 22px;

    padding: 8px 0 0 0;

    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;

    font-size: 0.65rem;

    white-space: nowrap;
  }


  /* Hero */

  .hero {
    min-height: 80vh;

    padding: 20px 16px;
  }

  .hero-title {
    font-size: 4rem;
    line-height: 0.86;
  }

  .hero .tagline {
    font-size: 0.9rem;
  }

  .hero-meta {
    font-size: 0.7rem;
  }


  /* General sections */

  .latest,
  .recent,
  .residents,
  .about,
  .submit {
    padding: 20px 16px;
  }

  .section-label {
    margin-bottom: 24px;

    font-size: 0.65rem;
  }


  /* Latest broadcast */

  .latest-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .show-artwork {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .show-artwork img {
    width: 100%;
    height: 100%;

    object-fit: contain;
  }

  .show-info {
    width: 100%;
    height: auto;
  }

  .show-number {
    font-size: 0.75rem;
  }

  .show-info h2 {
    margin-bottom: 24px;

    font-size: 3rem;
    line-height: 0.9;
  }

  .show-description {
    max-width: 100%;

    font-size: 0.95rem;
    line-height: 1.5;
  }

  .show-meta {
    gap: 16px;

    font-size: 0.8rem;
  }

  .mixcloud-player {
    margin-top: 24px;
  }

  .mixcloud-player iframe {
    width: 100%;
  }


  /* Recent broadcasts */

  .broadcast-row {
    grid-template-columns: 60px 1fr;
    gap: 12px;

    padding: 18px 0;
  }

  .broadcast-row span:nth-child(3),
  .broadcast-row span:nth-child(4) {
    display: none;
  }


  /* Residents */

  .resident-row {
    grid-template-columns: 45px 1fr;
    gap: 12px;

    padding: 18px 0;
  }

  .resident-row span:last-child {
    display: none;
  }


  /* About */

  .about-text {
    margin-top: 50px;
  }

  .about-text p {
    margin-bottom: 40px;

    font-size: 2rem;
  }

/* ==================================================
   RESIDENT PROFILE
   ================================================== */

.resident-profile {
  min-height: 100vh;

  padding: 48px 32px;

  background: var(--black);
  color: var(--white);
}


/* MAIN TWO-COLUMN LAYOUT */

.resident-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;

  width: 100%;

  align-items: start;
}


/* LEFT SIDE */

.resident-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


.resident-number {
  margin: 0 0 20px 0;

  font-size: 0.8rem;
  font-weight: 700;

  text-transform: uppercase;
}


.resident-profile h1 {
  margin: 0;

  font-size: clamp(5rem, 12vw, 12rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
}


.resident-location {
  margin: 30px 0 0 0;

  font-size: 0.85rem;
  font-weight: 700;

  text-transform: uppercase;
}

/* =========================
   RESIDENT BIOGRAPHY
   ========================= */

.resident-about {
  width: 100%;
  max-width: 600px;

  margin-top: 50px;
  padding: 0;

  font-size: clamp(1.3rem, 1.5vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.resident-about p {
  margin: 0 0 30px 0;
}


/* =========================
   RESIDENT IMAGE
   ========================= */

.resident-photo {
  width: 100%;
  max-width: 520px;

  justify-self: end;

  /* Pull image towards white header line */
  margin-top: -35px;

  overflow: visible;
}

.resident-photo img {
  display: block;

  width: 100%;
  height: auto;

  /* keeps the complete original photo */
  object-fit: initial;
}

/* BROADCASTS */

.resident-shows {
  width: 100%;

  margin-top: 70px;
  padding-top: 30px;

  border-top: 1px solid var(--white);
}


.resident-show {
  display: grid;
  grid-template-columns: 120px 1fr 100px;
  gap: 20px;

  padding: 25px 0;

  color: var(--white);
  text-decoration: none;

  border-bottom: 1px solid var(--grey);

  text-transform: uppercase;
}


.resident-show:link,
.resident-show:visited,
.resident-show:active {
  color: var(--white);
  text-decoration: none;
}


.resident-show:hover {
  background: var(--white);
  color: var(--black);
}

/* ==================================================
   RESIDENT PROFILE — MOBILE
   ================================================== */

@media (max-width: 700px) {

  .resident-profile {
    padding: 32px 16px;
  }


  .resident-hero {
    display: flex;
    flex-direction: column;

    gap: 30px;
  }


  .resident-intro {
    width: 100%;
  }


  .resident-profile h1 {
    font-size: 4rem;
  }


  .resident-location {
    margin-top: 20px;
  }


  .resident-about {
    max-width: 100%;

    margin-top: 30px;

    font-size: 0.95rem;
    line-height: 1.5;
  }


  .resident-photo {
    width: 100%;
    max-width: 100%;

    aspect-ratio: 9 / 16;

    margin-top: 0;

    justify-self: auto;
  }


  .resident-photo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: top center;
  }


  .resident-shows {
    margin-top: 50px;
  }


  .resident-show {
    grid-template-columns: 80px 1fr;
  }


  .resident-show span:last-child {
    display: none;
  }

}
