:root {
  --bg-main: #fafafa;
  --bg-alt: #f2f2f2;
  --text-main: #333;
  --font-body: Avenir, Montserrat, Corbel, "URW Gothic", source-sans-pro,
    sans-serif;
  --font-display: "Segoe Print", "Bradley Hand", Chilanka, TSCu_Comic, casual,
    cursive;
}

html,
body {
  height: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
}

.page__container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header__logo {
  width: max(6.25rem, 6.5vw);
}

.header__title {
  font-family: var(--font-display);
  font-weight: normal;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.recipe {
  border: 1px solid #ccc;
  border-radius: 8px;
}

.recipe__img {
  width: 100%;
  display: block;
  border-radius: 0.5rem;
}

.recipe__content {
  padding: 15px;
}

.recipe__subtitle {
  margin: 0;
  font-size: clamp(0.9375rem, 3vw, 1.25rem);
}

.recipe__list {
  max-width: 60ch;
}

.home-link {
  margin-top: 1.25rem;
  color: var(--text-main);
  text-decoration: none;
}

.home-link:hover {
  transform: scale(1.05);
}

.footer {
  background-color: var(--bg-alt);
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.625rem;
}

.footer__list {
  max-width: 65ch;
  padding: 0;
  list-style-type: none;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__list > li:hover {
  transform: scale(1.05);
}

.footer__link:link,
.footer__link:visited {
  color: var(--text-main);
  text-decoration: none;
}
