/* Base */
body {
  font-family: Georgia, serif;
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px 0;
  color: #1a1a1a;
  background: #fdfaf6;
  line-height: 1.7;
}

body.has-header {
  padding-top: 64px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: #fdfaf6;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.site-header a {
  font-family: Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
}

.site-header a:hover {
  color: #888;
}

/* Typography */
h1 {
  font-size: 2.2rem;
  font-weight: normal;
  margin-top: 0;
  margin-bottom: 4px;
}

h2 {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: normal;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
  margin-top: 40px;
  margin-bottom: 16px;
}

h3 {
  font-weight: normal;
  font-size: 1rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

ul, ol {
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

/* Recipe components */
.serves {
  font-size: 0.9rem;
  color: #888;
  margin-top: 4px;
  margin-bottom: 16px;
}

.section {
  margin-bottom: 40px;
}

.recipe-image {
  display: block;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 440px;
  margin-top: 16px;
}

.tip {
  background: #f3efe8;
  border-left: 3px solid #c8b89a;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.95rem;
  margin-top: 24px;
}

.source {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.source a {
  color: #aaa;
}

/* Index */
.index-title {
  margin-bottom: 40px;
}

.recipe-list a {
  display: block;
  font-size: 1.1rem;
  color: #1a1a1a;
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
}

.recipe-list a:hover {
  color: #888;
}

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 16px;
  background: #ede8e0;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-track img {
  min-width: 100%;
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.75);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.95);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dots span.active {
  background: #fff;
}

/* Mobile */
@media (max-width: 600px) {
  body {
    padding: 60px 16px 0;
  }

  body.has-header {
    padding-top: 64px;
  }

  h1 {
    font-size: 1.7rem;
  }

  .carousel-track img {
    height: 280px;
  }

  .index-title {
    margin-bottom: 24px;
  }

  .recipe-list a {
    padding: 20px 0;
    font-size: 1rem;
  }
}
