/* main.css — home page only */
:root {
  --bg: #F2F3F1;
  --text: #1E2422;
  --primary: #35443A;
  --secondary: #9FB0A3;
  --accent: #C0392B;
  --font-display: "Hahmlet", serif;
  --font-body: "Pretendard", "Noto Sans KR", sans-serif;
}
h1, h2 { font-weight: 600; }

/* full-bleed hero override */
.hero--fullbleed {
  position: relative;
  max-width: none;
  padding: 0;
  min-height: 620px;
  display: block;
}
@media (min-width: 1024px) {
  .hero--fullbleed { min-height: 800px; }
}
.hero--fullbleed .hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero--fullbleed .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  border-radius: 0;
}
.hero--fullbleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 36, 34, 0.88) 0%, rgba(30, 36, 34, 0.55) 55%, rgba(30, 36, 34, 0.25) 100%);
  z-index: 1;
}
.hero--fullbleed .hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 1120px;
  margin-inline: auto;
  padding: 90px 20px;
}
.hero--fullbleed .hero__lead { color: rgba(255, 255, 255, 0.85); }
.hero--fullbleed .btn-secondary { border-color: #fff; color: #fff; }

/* sticky index + prose */
.main-body {
  display: block;
  padding: 56px 20px;
}
.index-nav { display: none; }
.prose h2 { font-size: 1.4rem; color: var(--primary); }
.prose section { margin-bottom: 40px; }
.prose section:last-child { margin-bottom: 0; }

@media (min-width: 1024px) {
  .main-body {
    max-width: 1120px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 56px;
    padding: 80px 20px;
  }
  .index-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 96px;
    align-self: start;
  }
  .index-nav a {
    text-decoration: none;
    color: var(--text);
    padding-left: 10px;
    border-left: 2px solid transparent;
    font-size: 0.92rem;
  }
  .index-nav a.is-active {
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
  }
}

/* carousel */
.carousel { padding: 64px 0 72px; }
.carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.carousel__head h2 { font-size: 1.4rem; margin: 0; color: var(--primary); }
.carousel__nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 1.3rem;
  cursor: pointer;
  margin-left: 8px;
}
.carousel__nav button:hover { background: var(--primary); color: #fff; }

.carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 20px 8px;
  scrollbar-width: none;
  max-width: 1120px;
  margin-inline: auto;
}
.carousel__track::-webkit-scrollbar { display: none; }

@media (min-width: 1024px) {
  .carousel__track { justify-content: center; }
}
.carousel__card {
  flex: 0 0 39%;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.carousel__card img { aspect-ratio: 3 / 4; object-fit: cover; }
.carousel__card-title {
  display: block;
  font-weight: 600;
  padding: 14px 16px 2px;
}
.carousel__card-desc {
  display: block;
  padding: 0 16px 16px;
  font-size: 0.88rem;
  color: var(--secondary);
}

@media (min-width: 640px) {
  .carousel__card { flex-basis: 23%; }
}
@media (min-width: 1024px) {
  .carousel__card { flex-basis: 15%; }
}
