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

:root {
  --text-hsl: 60, 24%, 80%;
  --highlighted-text-hsl: 60, 36%, 86%;
  --red-hsl: 13, 78%, 53%;
  --background-hsl: 0, 0%, 1%;

  --text: hsl(var(--text-hsl));
  --highlighted-text: hsl(var(--highlighted-text-hsl));
  --red: hsl(var(--red-hsl));
  --background: hsl(var(--background-hsl));

  --ease: cubic-bezier(0.075, 0.82, 0.165, 1);

  --font-movie: "Bodoni Campanile Five", "Cambria", "Cochin", "Georgia", "Times",
    "Times New Roman", serif;
  --font-director: "Raleigh Gothic", sans-serif;
  --font-text: "Vollkorn", "Cambria", "Cochin", "Georgia", "Times",
    "Times New Roman", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  width: 100dvw;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-family: var(--font-text);
  color: var(--text);
  background: var(--background);
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fddfce' fill-opacity='0.065' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

/* GENERAL */

a {
  position: relative;
  display: inline-block;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.underlined-anchor::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50%;
  height: 2px;
  background: hsla(var(--red-hsl), 0.8);
  transition: var(--ease) transform 150ms;
  transform-origin: left;
}

.underlined-anchor:hover::before {
  transform: scaleX(2);
}

p {
  line-height: 1.5;
  /* color: rgba(255, 255, 255, 0.75); */
  color: hsl(0deg 19.21% 73.51%);
  max-width: 400px;
}

h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
ul {
  margin: 0;
  padding: 0;
}

.horizontal-line {
  width: 100%;
  margin: 2em 0;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.25em;
}

.img-container {
  position: relative;
  padding: 0.65em;
  flex-shrink: 0;
  background: hsla(var(--highlighted-text-hsl), 0.8);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 1.15em;

  img {
    display: block;
    border-radius: 0.5em;
  }
}

/* CONTAINER STYLING */

#container {
  padding: 2em 4em;
  width: 100%;
  height: 100%;
}

/* HEADER STYLING */

header,
footer {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 1em;
}

#header-text {
  line-height: 1.1;
}

#director-tag {
  display: flex;
  flex-direction: row;
  gap: 0.25em;
  align-items: center;
}

.stylized-line {
  width: 100%;
  border-color: rgba(0, 0, 0, 0.5);
}

.movie {
  color: var(--red);
  font-size: 6.5rem;
  font-family: var(--font-movie);
  text-align: center;
  letter-spacing: -0.2rem;
}

.director {
  color: var(--highlighted-text);
  font-size: 1.5rem;
  font-weight: 500;
  font-family: var(--font-director);
  text-transform: uppercase;
  text-align: center;
  flex-shrink: 0;
}

.slogan {
  margin-top: 1.25em;
  text-align: center;
  letter-spacing: 0.5px;
}

/* NAV STYLING */

#nav-ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 3rem;
  font-size: 1em;
  letter-spacing: 1.5px;
  color: var(--highlighted-text);
}

/* FOOTER STYLING */

.horizontal-list {
  display: flex;
  gap: 3em;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.vertical-list {
  margin-top: 0.5em;
  padding-inline-start: 2px;
  display: flex;
  flex-direction: column;
  gap: 1.65em;
}

.w3 {
  width: 350px;
}

/* CONTENT STYLING */

main,
#content {
  padding: 5ch 1em;
}

.page-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1em;
  font-family: var(--font-director);
  letter-spacing: 1px;
  text-align: center;
}

/* HOME PAGE STYLING */

#home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3em;
}

iframe {
  border-radius: 1.15em;
}

#home-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2.5em;
}

#poster-img {
  width: 100%;
  max-width: 350px;
}

#info-movie-heading {
  display: flex;
  align-items: center;
  font-family: var(--font-movie);
  font-size: 3em;
  gap: 0.2em;
  line-height: 1.2;
}

#info-movie-date {
  color: rgba(255, 255, 255, 0.75);
  font-size: 2.25rem;
}

#movie-info {
  font-family: var(--font-text);
  color: var(--highlighted-text);
}

.red {
  color: var(--red);
}

#info {
  display: flex;
  flex-direction: column;
  gap: 2em;
  text-align: left;
}

.movie-label {
  font-size: 1.5em;
  letter-spacing: 1px;
  font-family: var(--font-director);
}

#extra-info {
  display: flex;
  flex-direction: row;
  gap: 2em;
  flex-wrap: wrap;
  max-width: 500px;
}

/* CAST STYLING */

#cast-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3em;
  flex-wrap: wrap;
}

.cast-member {
  position: relative;
  padding: 0.45em;
  flex-shrink: 0;
  background: hsla(var(--highlighted-text-hsl), 0.8);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 1.15em;
  list-style: none;
  transition: var(--ease) transform 250ms;

  img {
    display: block;
    border-radius: 0.7em;
    aspect-ratio: 3 / 4;
    width: 200px;
  }
}

.cast-member:hover {
  transform: scale(1.02) translateY(-5px);
}

.cast-member-name {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-top: 0.5em;
  color: rgba(0, 0, 0, 0.75);
  font-weight: 700;
}

/* https://github.com/hexiro/hexiro.me/blob/main/src/components/layout/LinkOverlay.tsx */
.link-overlay {
  position: static;
  color: inherit;
}

.link-overlay:focus-visible {
  outline: none;
}

.link-overlay::before {
  content: "";
  cursor: inherit;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
}

/* REVIEW STYLING */

#review-container {
  max-width: 800px;
  margin: 0 auto;

  p {
    max-width: inherit;
  }
}

.review-content {
  padding-bottom: 2em;
}

.reviewer-meta {
  margin-bottom: 2em;

  * {
    line-height: 1.1;
  }
}

.reviewer-name {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--red);
}

.reviewer-date {
  color: var(--highlighted-text);
}

.review-text {
  line-height: 1.8;
}

.trivia-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--red);
}

.paragraph-with-source {
  display: flex;
  flex-direction: column;
  gap: 0.5em;

  a {
    color: var(--highlighted-text);
  }
}
