:root {
  --text: #002b36;
  --background: #fdf6e3;
  --primary: #008060;
  --secondary: #d9e1d0;
  --accent: #008080;
}

body {
  font-family: Helvetica, sans-serif;
  font-size: 16px;
  margin: auto;
  padding: 1em .5em;
  max-width: 120ch;
  color: var(--text);
  background-color: var(--background);
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: .5em 0;
}

p {
  margin-top: .5em;
}

ul,
ol {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

nav {
  text-align: center;
}

li:not(:last-child) {
  margin-bottom: .25em;
}

details {
  padding: .5em;
  border-radius: .5em;
  background-color: var(--secondary);
}

summary {
  cursor: pointer;
}

details[open] summary {
  margin-bottom: .5em;
}

footer {
  margin-top: 3em;
  text-align: center;
}

img {
  height: auto;
}

figure {
  margin: 1em 0;
  display: flex;
  justify-content: center;

  figcaption {
    line-height: 2em;
  }
}

section {
  margin-bottom: 1em;
}

.metadata {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: fit-content;

  li {
    display: flex;
    align-items: flex-end;
    gap: .5em;
  }
}

.previous-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  margin: 1em auto;
}

.photo {
  border: 8px solid white;
  box-shadow: rgba(149, 157, 165, 0.1) 0px 4px 8px;
}

.photo-list {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .5em;
  padding: 0;

  li {
    margin: 0;
    padding: 0;
  }

  img {
    max-height: 320px;
    width: auto;
  }
}

.recipe-list {
  list-style: none;
  padding: 0;

  li {
    padding: .5em;

    &:not(:last-child) {
      border-bottom: 1px solid lightgrey;
    }
  }
}

.link {
  margin: 1em 0;

  a {
    color: var(--primary)
  }

  span {
    opacity: 50%;
  }
}

blockquote {
  padding: 1em;
  margin: 1em 0;
  border-left: 0.25em solid var(--accent);
  border-radius: 0.25em;
  position: relative;

  p {
    margin: 0;
    padding: 0;
  }
}

blockquote::before {
  content: "“";
  font-size: 2em;
  position: absolute;
  left: 0.5em;
  top: 0;
  color: var(--accent);
  line-height: 1;
}