* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  font-family: editorial;
}

@font-face {
  font-family: editorial;
  src: url("./fonts/PPEditorialSans-Regular.woff2");
}

:root {
  font-size: clamp(0.8rem, 1vw, 1.5rem);
  line-height: 1.4;
  --background: #f1efe3;
  --primary-color: #403c39;
}

body {
  font-family: editorial;
  background-color: var(--background);
  color: var(--primary-color);
}

p + p {
  margin-top: 1em;
}

a {
  color: inherit;
}

/* HEADER */

header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  padding: 2rem 2.5rem 0;
  height: 5rem;
  color: var(--background);
  transition: color 0.3s ease;
  z-index: 10;
  text-transform: uppercase;
  font-size: 0.85rem;
}

header.scrolled {
  color: var(--primary-color);
}

header .logo {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  cursor: pointer;
  z-index: 100;
  margin-top: -0.5rem;
}

header .logo span {
  display: inline-block;
  transition: transform 0.4s ease-out;
  text-decoration: none;
}

header > * {
  width: 50%;
}

header > nav > ul {
  display: flex;
  justify-content: space-between;
  padding-left: 2.5rem;
}

header > nav > ul > li {
  cursor: pointer;
}

header > nav > ul > li:hover {
  text-decoration: underline;
}

header > nav > ul > li.active {
  text-decoration: underline;
}

header > nav > ul > li:last-child {
  display: flex;
  gap: 1rem;
}

header span {
  text-decoration: underline;
}

header a {
  text-decoration: none;
}

header .burger {
  position: fixed;
  top: 1.75rem;
  right: 1.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 100%;
  z-index: 100;
  cursor: pointer;
  display: none;
}

header .burger span {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 100%;
  background-color: var(--background);
}

@media (max-width: 900px) {
  header {
    justify-content: space-between;
  }
  header > * {
    width: auto;
  }
  header > nav {
    position: fixed;
    top: -100%;
    left: 0;
    background-color: var(--primary-color);
    width: 100%;
    transition: top 0.5s ease;
    color: var(--background);
  }

  header > nav.active {
    top: 0;
  }

  header > nav > ul {
    display: block;
    padding: 12rem 2.5rem 4rem;
    line-height: 2;
    font-size: 1.15rem;
  }

  header .burger {
    display: block;
  }

  header.scrolled .burger span {
    background-color: var(--primary-color);
  }

  header.menu-active .logo {
    color: var(--background);
  }

  header.menu-active .burger span {
    background-color: var(--background);
  }
}

/* grid */
.grid {
  display: grid;
  grid-template-columns: 50% 50%;
}

.grid.reverse > *:nth-child(2) {
  order: -1;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 100%;
  }

  .grid .card-image {
    order: -1;
  }
}

/* main */
main {
  margin-top: -5rem;
}

/* hero */

section#hero {
  position: relative;
}

section#hero video {
  width: 100%;
  height: 100dvh;
  object-fit: cover;
}

section#hero button {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 10;
  background: transparent;
  border: 1px solid var(--background);
  color: var(--background);
  filter: grayscale(1);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.5rem 2rem;
  text-transform: uppercase;
}

section#hero .hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  padding: 2.5rem;
  color: var(--background);
  font-size: 1.15rem;
}

@media (max-width: 900px) {
  section#hero .hero-text {
    width: 75%;
  }
}

@media (max-width: 540px) {
  section#hero .hero-text {
    bottom: 5rem;
    width: 90%;
  }
}
/* about */

section#about > div {
  width: 65%;
  margin: auto;
  padding: 6rem 0;
}

section#about > div:nth-child(1) {
  display: flex;
  align-items: center;
}

section#about .about-title {
  text-transform: uppercase;
  font-size: 1.4rem;
  line-height: 1.3;
}

section#about .about-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

section#about .about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 540px) {
  section#about {
    padding: 3rem 0;
  }

  section#about > div {
    width: 100%;
    margin: auto;
    padding: 2.5rem;
  }

  section#about .about-image {
    width: 70%;
    margin: auto;
  }
}

/* intro */

section#intro > div {
  width: 65%;
  margin: auto;
  padding: 6rem 0;
}

section#intro > div:nth-child(1) {
  display: flex;
  align-items: center;
}

section#intro .intro-title {
  text-transform: uppercase;
  font-size: 1.4rem;
  line-height: 1.3;
}

section#intro .intro-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

section#intro .intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 540px) {
  section#intro {
    padding-bottom: 3rem;
  }
  section#intro > div {
    width: 100%;
    margin: auto;
    padding: 2.5rem;
  }

  section#intro .intro-title {
    margin-bottom: -1.25rem;
    text-transform: uppercase;
    font-size: 1.4rem;
    line-height: 1.3;
  }
}

/* card */

.card .card-text {
  padding: 4rem 0;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}

.card .card-text .card-tag {
  width: 17.5%;
  padding-left: 2.5rem;
  text-transform: uppercase;
}

.card .card-text .card-info {
  width: 70%;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem 0;
}

.card .card-text .card-info .card-title {
  width: 37.5%;
  text-transform: uppercase;
  font-size: 1.4rem;
  line-height: 1.3;
}

.card .card-text .card-info .card-poetry {
  width: 62.5%;
}

.card .card-image {
  height: 100%;
}

.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 540px) {
  .card .card-text {
    padding: 4rem 0;
    display: block;
  }
  .card .card-text .card-info {
    width: 100%;
    padding: 1rem 2.5rem;
  }
  .card .card-text .card-info .card-title {
    width: 50%;
  }
  .card .card-text .card-info .card-poetry {
    width: 50%;
  }

  .card .card-image {
    aspect-ratio: 4/2.4;
  }
}
/* Joao */

section#joao-rodrigues > div:nth-child(1) {
  padding: 6rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

section#joao-rodrigues > div:nth-child(2) {
  padding: 6rem 2.5rem;
}

section#joao-rodrigues .joao-image {
  width: 50%;
  aspect-ratio: 4/4.5;
  object-fit: cover;
}

section#joao-rodrigues .joao-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

section#joao-rodrigues .joao-title {
  text-transform: uppercase;
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 3rem;
}

section#joao-rodrigues .joao-bio {
  width: 75%;
  margin: auto;
}

section#joao-rodrigues .joao-bio-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
  padding-top: 1rem;
}

section#joao-rodrigues .joao-bio-more.is-open {
  max-height: 2000px;
}

section#joao-rodrigues button {
  background: transparent;
  border: none;
  font-family: inherit;
  color: inherit;
  padding-top: 2rem;
  text-decoration: underline;
  font-size: 0.85rem;
  cursor: pointer;
}

@media (max-width: 540px) {
  section#joao-rodrigues > div:nth-child(1) {
    padding: 2.5rem;
  }

  section#joao-rodrigues > div:nth-child(2) {
    padding: 2.5rem;
  }

  section#joao-rodrigues .joao-image {
    width: 70%;
  }

  section#joao-rodrigues .joao-bio {
    width: 100%;
  }
}

/* Materia */

section#materia > div:nth-child(2) {
  padding: 6rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

section#materia > div:nth-child(1) {
  padding: 6rem 2.5rem 6rem 15%;
}

section#materia .materia-image {
  width: 80%;
  aspect-ratio: 4.5/3;
  object-fit: cover;
}

section#materia .materia-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

section#materia .materia-title {
  text-transform: uppercase;
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 3rem;
}

section#materia .materia-bio {
  width: 85%;
  margin: auto;
}

@media (max-width: 540px) {
  section#materia > div:nth-child(1) {
    padding: 2.5rem;
  }

  section#materia > div:nth-child(2) {
    padding: 2.5rem;
  }

  section#materia .materia-image {
    width: 100%;
  }

  section#materia .materia-bio {
    width: 100%;
  }
}

/* footer */
footer {
  min-height: 100dvh;
}

footer > div:nth-child(2) {
  padding: 5rem 2.5rem 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

footer .footer-image {
  height: 100dvh;
  object-fit: cover;
}

footer .footer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

footer .footer-text {
  width: 75%;
  margin: 0 auto;
}

footer .footer-text div {
  margin-top: 3rem;
}

footer .footer-credits {
  width: 75%;
  margin: 0 auto;
  text-transform: uppercase;
}

@media (max-width: 540px) {
  footer > div:nth-child(2) {
    padding: 2.5rem 2.5rem;
  }

  footer .footer-text {
    width: 100%;
    margin: 0 auto;
  }

  footer .footer-credits {
    width: 100%;
    margin: 0 auto;
  }
}
