/* Colours used on the website. */
:root {
  --purple: #3b294d;
  --dark-purple: #352344;
  --light-purple: #c9a8f2;
  --dark: #241832;
  --grey: #e2d9ec;
  --white: #ffffff;
  --background: #241832;
}

/* Basic page styles. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--white);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

/* The name and menu at the top of the page. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 8%;
  background: var(--purple);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-name {
  color: var(--white);
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}

.navigation {
  display: flex;
  gap: 24px;
}

.navigation a {
  color: var(--white);
  text-decoration: none;
}

.navigation a:hover {
  text-decoration: underline;
}

.menu-button {
  display: none;
}

/* The large heading at the top of the page. */
.home-section {
  padding: 100px 8%;
  background: var(--purple);
  text-align: center;
}

.small-heading {
  color: var(--light-purple);
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
}

h1 {
  margin: 10px 0;
  color: var(--white);
  font-size: 52px;
  line-height: 1.15;
}

.home-section > p:not(.small-heading) {
  margin-bottom: 28px;
  color: var(--white);
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 4px;
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
}

.button:hover {
  background: var(--dark-purple);
}

/* The About Us, Interviews, and Event & Report sections. */
.content-section {
  padding: 64px 8%;
}

.alternate-section {
  background: var(--purple);
}

h2 {
  margin-top: 0;
  color: var(--white);
  font-size: 32px;
}

.content-section p,
.site-footer > p {
  color: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: center;
  gap: 48px;
}

.about-text p:last-child {
  max-width: 700px;
}

.about-photo {
  width: 280px;
  height: 280px;
  border: 4px solid var(--light-purple);
  border-radius: 50%;
  background-image: url("Images/founder-photo.jpg");
  background-position: 87% 8%;
  background-size: 200% auto;
}

/* The heading on the separate Interviews page. */
.interviews-heading {
  padding: 72px 8%;
  background: var(--purple);
}

.interviews-heading h1 {
  margin-top: 10px;
}

.interviews-heading > p:last-child {
  max-width: 700px;
}

/* YouTube video cards on the Interviews page. */
.video-section {
  min-height: 300px;
}

.latest-videos {
  background: var(--purple);
}

.latest-videos .video-card {
  background: var(--dark);
}

.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.latest-videos .video-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-card {
  padding: 16px;
  border-radius: 6px;
  background: var(--purple);
}

.video-card h3 {
  margin: 16px 0 8px;
}

.video-card p {
  margin-bottom: 0;
}

.featured-video-card {
  margin-top: 24px;
  padding: 20px;
}

.featured-video-card .video-placeholder {
  max-width: 900px;
  margin: 0 auto;
}

.featured-video-card h3,
.featured-video-card p {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.latest-heading {
  margin-top: 56px;
}

.video-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  padding: 16px;
  overflow: hidden;
  background: var(--dark-purple);
  color: var(--light-purple);
  text-align: center;
  overflow-wrap: anywhere;
}

.watch-more-button {
  margin-top: 32px;
  background: var(--light-purple);
  color: var(--dark);
}

.youtube-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Contact information at the bottom of the page. */
.site-footer {
  padding: 48px 8%;
  background: var(--dark);
  color: var(--white);
}

.site-footer h2 {
  color: var(--white);
}

.site-footer > p {
  color: var(--white);
}

.site-footer a {
  color: var(--light-purple);
}

.site-footer .copyright {
  margin-top: 36px;
  font-size: 13px;
}

#founder-name {
  font-weight: bold;
  font-size: 20px;
  color: var(--light-purple);
}

/* Stack the menu and page content on small screens. */
@media (max-width: 650px) {
  .site-header {
    position: relative;
    flex-wrap: wrap;
    padding: 16px 6%;
  }

  .menu-button {
    display: block;
    padding: 8px 12px;
    border: 1px solid var(--light-purple);
    border-radius: 4px;
    background: var(--dark-purple);
    color: var(--white);
  }

  .navigation {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
  }

  .navigation.is-open {
    display: flex;
  }

  .navigation a {
    padding: 10px 0;
  }

  .home-section {
    padding: 72px 6%;
  }

  .interviews-heading {
    padding: 56px 6%;
  }

  .latest-videos .video-list {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 40px;
  }

  .content-section,
  .site-footer {
    padding: 48px 6%;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-photo {
    width: 240px;
    height: 240px;
    justify-self: center;
  }
}
