@import "reset.css";

:root {
  --red: #682830;
  --brown: #382322;
  --purple: #4f3852;
  --black: #0b0705;
  --pink: #74373d;
  --yellow: #9c8227;
  --white: #f0ede4;
}

body {
  margin: 0 auto;
  width: 60%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Inter;
  background-color: var(--white);
  color: var(--black);


  @media (max-width: 800px) {
    width: 90%;
  }
}

header {
  margin-top: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1em;

  h1 {
    font-size: 3rem;
    /* text-transform: uppercase; */
    color: var(--brown);
  }

  p {
    font-size: 1.5rem;
    color: var(--brown);
  }
}

main {
  margin: 1em 0;
  flex-grow: 1;

  h2,
  h3 {
    margin: 0.5em 0;
  }
}

#cover-photo {
  margin: 0 auto;
  max-height: 50vh;
  width: 100%;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 5px;
  margin-bottom: 1rem;
}

#details {
  display: flex;
  flex-direction: row;
  margin-bottom: 2em;

  div {
    width: 50%;
  }

  .header {
    font-variant-caps: all-small-caps;
    /* margin-bottom: 0.5em; */
  }

  p {
    font-size: 2em;

    a {
      color: inherit;
    }

    @media (max-width: 800px) {
      font-size: 1.25em;
    }
  }
}

footer {
  position: relative;
  bottom: 0;
  margin-bottom: 1em;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

hr {
  margin: 0.5em auto;
}

a {
  color: var(--brown);

  &:hover {
    color: var(--yellow);
  }
}

@media screen and (min-width: 800px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.5rem;
  }
}