* {
  margin: 0;
  padding: 0;
}

:root {
  --padding: 1.5rem;
  --color-black: #000;
  --color-white: #fff;
  --color-grey: #555;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  font-family: var(--font);
  color: var(--color-black);
  background: var(--color-white);
}

body {
  padding: var(--padding);
  max-width: 42rem;
  margin: 0 auto;
}

li {
  list-style: none;
}

a {
  color: currentColor;
  text-decoration: none;
}

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

/* Header */
.header {
  padding-top: 2rem;
}

.logo {
  font-weight: 300;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1rem;
}

.header-line {
  border: 0;
  height: 1px;
  background: var(--color-black);
  width: 100%;
  margin: 0 0 0.5rem 0;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  margin-bottom: 3rem;
}

.menu a {
  font-weight: 300;
  text-transform: lowercase;
}

.menu a:hover {
  text-decoration: underline;
}

.menu a[aria-current] {
  text-decoration: underline;
}

/* Home */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}

.home-elephant {
  width: 10rem;
  height: auto;
}

/* Page titles */
h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

/* Recipes list */
.recipes-list li {
  border-bottom: 1px solid #e0e0e0;
}

.recipes-list li:first-child {
  border-top: 1px solid #e0e0e0;
}

.recipes-list a {
  display: block;
  padding: 0.75rem 0;
  transition: padding-left 0.2s ease;
}

.recipes-list a:hover {
  padding-left: 0.5rem;
}

/* Recipe detail */
.recipe h1 {
  font-size: 2rem;
  margin-bottom: 3rem;
}

.recipe h2 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.recipe-ingredients {
  margin-bottom: 3rem;
}

.recipe-ingredients p {
  line-height: 1.8;
}

.recipe-steps {
  margin-bottom: 3rem;
}

.recipe-steps p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.recipe-back {
  padding-top: 3rem;
  border-top: 1px solid var(--color-black);
}

.recipe-back a:hover {
  text-decoration: underline;
}

/* Grid cards (photos, projects) */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-cards li a {
  display: block;
}

.grid-cards img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.grid-cards span {
  font-size: 0.875rem;
}

.grid-cards a:hover span {
  text-decoration: underline;
}

.empty {
  color: var(--color-grey);
}

/* Project detail */
.project h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.project-text {
  line-height: 1.7;
  margin-bottom: 3rem;
}

.project-text p {
  margin-bottom: 1rem;
}

.project-gallery {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.project-gallery img {
  width: 100%;
}

/* Responsive */
@media screen and (min-width: 60rem) {
  body {
    --padding: 3rem;
  }
}
