* { box-sizing: border-box; }

:root{
  --max: 1100px;
  --pad: 1rem;
  --border: #e6e6e6;
  --text: #222;
  --muted: #666;
  --bg: #fff;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: black;
  background: white;
}

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

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.site-header{
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--pad);
  display: flex;
  gap: 1rem;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}

.brand{
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand__logo{
  width: 44px;
  height: 44px;
}

.brand__title{
  margin: 0;
  font-family: "Amatic SC", cursive;
  font-size: 3rem;
  line-height: 1;
}

.search{
  display: flex;
  align-items: stretch;
  gap: .5rem;
}

.search__input{
  flex: 1 1 auto;
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  font-size: 1rem;
}

.search__btn{
  flex: 0 0 auto;
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  background: #f7f7f7;
  border-radius: .75rem;
  cursor: pointer;
}

.search__icon{
  width: 20px;
  height: 20px;
}

.page{
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--pad) 2rem;
}

.recipe{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  margin-bottom: 2rem;
}

.recipe__image img{
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.recipe__content{
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1 1 auto;
}

.recipe__title{
  margin: 0;
  font-family: "Amatic SC", cursive;
  font-size: 2.6rem;
  line-height: 1;
}

.recipe__meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
}

.recipe__time,
.recipe__servings{
  font-size: .95rem;
}

.recipe__desc{
  margin: 0;
  color: var(--text);
}

.recipe__tags{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tag{
  border: 1px solid var(--border);
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .9rem;
  color: var(--muted);
}

.recipe__link{
  align-self: flex-start;
  text-decoration: none;
  padding: .6rem .9rem;
  border-radius: .75rem;
  border: 1px solid var(--border);
  background: #f7f7f7;
  color: var(--text);
  margin-top: auto;
}

.site-footer{
  border-top: 1px solid var(--border);
}

.footer__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad) 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer__inner a{
  color: var(--muted);
}

.social{
  display: flex;
  gap: .75rem;
  align-items: center;
}

.social img{
  width: 28px;
  height: 28px;
}

@media (min-width: 700px){

  .site-header{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .search{
    width: 360px;
  }

  .recipe{
    flex-direction: row;
    align-items: stretch;
  }

  .recipe__image{
    flex: 0 0 420px;
  }

  .recipe__image img{
    width: 100%;
    height: 260px;
    object-fit: cover;
  }

  .recipe__content{
    flex: 1 1 auto;
  }

  .footer__inner{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 699px){
  .recipe__desc{
    display: none;
  }
}