/* 관엽 식물 가이드 — 레이아웃: 세로 스냅 섹션 + 우측 도트 내비 (다른 폴더 스타일과 구분) */

:root {
  --mint: #d8f3ea;
  --cream: #faf8f3;
  --forest: #1e3a32;
  --leaf: #2d6a4f;
  --text: #24302c;
  --muted: #5c6d66;
  --dot: rgba(30, 58, 50, 0.28);
  --dot-on: #1e3a32;
  --shadow: 0 20px 50px rgba(30, 58, 50, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .snap-home {
    scroll-snap-type: none !important;
  }
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
}

body.theme-dark {
  --cream: #0f1614;
  --mint: #1a2822;
  --text: #e8f0ec;
  --muted: #9cb0a6;
  --forest: #c5e6d5;
  --leaf: #95d5b2;
  --dot: rgba(232, 240, 236, 0.25);
  --dot-on: #e8f0ec;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* 상단 얇은 바 — 좌측 전체 레일과 다름 */
.top-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem 0.65rem 1.25rem;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 58, 50, 0.08);
}

body.theme-dark .top-strip {
  background: rgba(15, 22, 20, 0.9);
  border-bottom-color: rgba(232, 240, 236, 0.08);
}

.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 0.95rem;
  color: var(--forest);
  text-decoration: none;
}

body.theme-dark .brand {
  color: var(--leaf);
}

.top-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.top-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.top-links a:hover,
.top-links a.is-on {
  color: var(--leaf);
}

.btn-icon {
  border: 1px solid rgba(30, 58, 50, 0.15);
  background: var(--mint);
  color: var(--forest);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

body.theme-dark .btn-icon {
  border-color: rgba(232, 240, 236, 0.2);
  background: var(--mint);
  color: var(--text);
}

/* 우측 도트 — 세로 고정 */
.dot-nav {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dot-nav button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--dot);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dot-nav button[aria-current="true"] {
  background: var(--dot-on);
  transform: scale(1.25);
}

@media (max-width: 720px) {
  .dot-nav {
    display: none;
  }
}

/* 홈: 세로 스냅 풀섹션 */
.snap-home {
  padding-top: 3.25rem;
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 3.25rem;
}

.snap-section {
  min-height: calc(100vh - 3.25rem);
  scroll-snap-align: start;
  display: grid;
  align-content: center;
  padding: 2rem 1.5rem 3rem;
  max-width: 56rem;
  margin: 0 auto;
}

.snap-section:nth-child(odd) {
  background: linear-gradient(165deg, var(--cream), var(--mint));
}

.snap-section:nth-child(even) {
  background: linear-gradient(175deg, #eefaf5, var(--cream));
}

body.theme-dark .snap-section:nth-child(odd) {
  background: linear-gradient(165deg, #0f1614, #15221c);
}

body.theme-dark .snap-section:nth-child(even) {
  background: linear-gradient(175deg, #122018, #0f1614);
}

.snap-figure {
  margin: 0 0 1.25rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.snap-figure img {
  width: 100%;
  display: block;
  vertical-align: middle;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.snap-section h1,
.snap-section h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.snap-section p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  max-width: 38rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: 0;
  cursor: pointer;
}

.btn-line {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--leaf);
  color: var(--leaf);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  background: transparent;
}

/* 서브페이지: 비대칭 — 큰 이미지 + 본문 (about) */
.page-shell {
  padding-top: 3.25rem;
  min-height: 100vh;
}

.asymmetric {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 3.25rem);
}

@media (max-width: 900px) {
  .asymmetric {
    grid-template-columns: 1fr;
  }
}

.asym-visual {
  position: relative;
  min-height: 42vh;
}

@media (min-width: 901px) {
  .asym-visual {
    position: sticky;
    top: 3.25rem;
    align-self: start;
    height: calc(100vh - 3.25rem);
    min-height: calc(100vh - 3.25rem);
  }
}

.asym-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.asym-copy {
  padding: 2.5rem 2rem 3rem;
  max-width: 36rem;
}

.asym-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.03em;
}

.asym-copy .lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

/* 상세: 본문 + 오른쪽 주석 칼럼 (다른 사이트의 단일 컬럼/레일과 구분) */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15.5rem;
  gap: 2rem;
  max-width: 58rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  align-items: start;
}

@media (max-width: 960px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    order: -1;
  }
}

.detail-hero {
  margin: 0 0 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-hero img {
  width: 100%;
  display: block;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.detail-main h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.detail-main h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.15rem;
}

.detail-main p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.detail-aside {
  position: sticky;
  top: 4.5rem;
  padding: 1rem 1.1rem;
  background: var(--mint);
  border-radius: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

body.theme-dark .detail-aside {
  background: #1a2822;
}

.detail-aside strong {
  color: var(--forest);
}

body.theme-dark .detail-aside strong {
  color: var(--leaf);
}

.toc a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
  margin-left: -0.5rem;
  font-size: 0.85rem;
}

.toc a.is-active {
  color: var(--leaf);
  border-left-color: var(--leaf);
  font-weight: 700;
}

/* 연락 단순 페이지 */
.simple-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.simple-banner {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.simple-banner img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.simple-page h1 {
  margin: 0 0 0.75rem;
}

.simple-page .lead {
  color: var(--muted);
  margin: 0 0 1rem;
}

.mail-btn {
  margin-top: 0.5rem;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--forest);
  color: #fff;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 60;
  pointer-events: none;
}

.toast.is-on {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.site-foot {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(30, 58, 50, 0.1);
  font-size: 0.85rem;
  color: var(--muted);
}

.site-foot a {
  color: var(--leaf);
}
