/* LAYOUT */

html {
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #333;
  line-height: 1.5;
  max-width: 65rem;
  padding: 1rem;
  margin: 0 auto;
}

.home-title {
  font-weight: bold;
  font-size: 8rem;
  text-transform: uppercase;
}

.content {
  margin-bottom: 2rem;
}

/* NAVIGATION */

.site-nav {
  display: flex;
  justify-content: center;
}

.site-nav a {
  display: block;
  padding: 0.5rem;
}

.main-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: black;
  font-weight: bold;
  text-transform: uppercase;
}

.nav-link-active {
  color: white;
  background-color: black;
  font-weight: bold;
  text-transform: uppercase;
}

.nav-link:hover {
  color: white;
  background-color: black;
}

@media screen and (max-width: 48rem) {
  .home-title {
    font-size: 3rem;
  }

  .site-nav,
  .main-menu {
    /* flex-direction: column; */
  }

  .site-nav a {
    padding: 0.5rem;
    padding-left: 0;
  }
}

/* LISTS */

.post-snippet {
  margin-bottom: 1rem;
}

.post-snippet h3 {
  margin-bottom: 0.25rem;
}

/* SEARCH BAR */

.search-container {
  margin: 2rem 0;
}

.search-bar {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  border: 2px solid black;
  background-color: white;
  color: black;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.search-bar:focus {
  background-color: black;
  color: white;
}

.search-bar::placeholder {
  color: #666;
}

.search-bar:focus::placeholder {
  color: #ccc;
}

/* POST PAGE */
.post-title {
  font-weight: bold;
  font-size: 3rem;
  text-transform: uppercase;
}

pre code {
    color: white;
    padding: 1rem;
    display: block;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: "Open Sans", sans-serif;
}

/* POSTS GRID */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows: auto;
  gap: 1rem;
  margin: 2rem 0;
  justify-content: center;
}

.post-square {
  border: 6px solid black;
  background-color: white;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem;
  transition: transform 0.2s ease;
  min-height: 200px;
  width: 100%;
}

.post-square:hover {
  transform: scale(1.02);
  background-color: black;
}

.post-square:hover .post-square-title {
  color: white;
}

.post-square-link {
  text-decoration: none;
  color: black;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
}

.post-square-title {
  margin: 0;
  text-align: left;
  font-size: 2rem;
  line-height: 1.1;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  font-weight: bold;
}

.vinyl-square {
  border: 6px solid black;
  background-color: white;
  display: flex;
  padding: 1rem;
  transition: transform 0.2s ease;
  width: 100%;
}

.regular-marker {
  text-decoration-line: underline;
  text-decoration-color: #a9606c;
  text-decoration-thickness: 0.2em;
  text-decoration-style: solid;
  text-underline-offset: -0.1em;
  text-decoration-skip-ink: none;
}

.vegetarian-marker {
  text-decoration-line: underline;
  text-decoration-color: #1b8700;
  text-decoration-thickness: 0.2em;
  text-decoration-style: solid;
  text-underline-offset: -0.1em;
  text-decoration-skip-ink: none;
}

.recipe-hr {
  border: 2px dashed red;
  margin: 2rem 2rem;
}

img {
  width: 100%;
  max-width: 100%;
  display: block;
}
