/* =========================================================
   My Favorite Things — 공통 디자인
   색을 바꾸고 싶으면 아래 :root 의 색상 코드만 바꾸면 돼요.
   ========================================================= */

:root {
  --bg: #F3F7EC;          /* 연한 풀밭 배경 */
  --paper: #FCFEF8;       /* 카드 배경 */
  --leaf: #E4EFD6;        /* 연두 상자 */
  --line: #D2E1C0;        /* 얇은 선 */
  --text: #2F4130;        /* 본문 짙은 숲색 */
  --muted: #6D8265;       /* 흐린 글씨 */
  --accent: #4E8A3E;      /* 포인트 잎사귀 초록 */
  --glow: rgba(222, 240, 200, 0.85); /* 위쪽 햇살 */

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 90% 340px at 50% -80px, var(--glow), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: inherit; }

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 상단 사이트 이름 ---------- */
.site-bar { padding: 20px 0 0; }
.site-bar a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
}

/* ---------- 메인 페이지 ---------- */
.hero {
  padding: 32px 0 36px;
  text-align: center;
}
.meadow {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto 22px;
  /* 그림 아래쪽이 배경에 스르르 녹아들게 */
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.hero h1 {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.hero p {
  margin: 0 auto;
  max-width: 30em;
  color: var(--muted);
  font-size: 16px;
}
.hero .theme {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--leaf);
  color: var(--text);
  font-size: 14px;
}

.list-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.week-list {
  display: grid;
  gap: 12px;
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) {
  .week-list { grid-template-columns: 1fr 1fr; }
}

.week-card {
  display: block;
  height: 100%;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.week-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.week-no {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.week-title {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}
.week-date {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* 아직 안 쓴 주차: 흐리게, 누를 수 없게 */
.week-card.is-soon {
  opacity: 0.5;
  pointer-events: none;
  background: transparent;
  border-style: dashed;
  padding-top: 12px;
  padding-bottom: 12px;
}
.week-card.is-soon .week-no { color: var(--muted); }
.week-card.is-soon .week-title { font-size: 15px; font-weight: 500; }
.week-card.is-soon .week-date { margin-top: 0; }

/* ---------- 주차별 페이지 ---------- */
.entry-head {
  padding: 40px 0 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.entry-meta {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.entry-head h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.chapter { margin-bottom: 52px; }
.chapter-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.chapter h2 {
  margin: 4px 0 18px;
  font-size: 21px;
  line-height: 1.5;
}

/* Chapter A: 짧은 목록 */
.drain-list {
  margin: 0;
  padding: 16px 20px 16px 40px;
  background: var(--leaf);
  border-radius: 12px;
  font-size: 16px;
}
.drain-list li + li { margin-top: 4px; }

/* Chapter B: 채워 준 것들 */
.intro { margin: 0 0 12px; }

.item {
  padding: 20px 0;
  border-top: 1px dashed var(--line);
}
.intro + .item { border-top: 0; }
.item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.5;
}
.item h3::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 0 70% 0 70%;   /* 작은 잎사귀 모양 */
  background: var(--accent);
}
.item p { margin: 0; }
.item p + p { margin-top: 10px; }

/* ---------- 에세이형 글 ---------- */
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 700; color: var(--accent); }
.lede { margin-bottom: 44px; }

/* 한눈에 보기 상자 */
.summary {
  margin: 0 0 28px;
  padding: 18px 20px;
  background: var(--leaf);
  border-radius: 12px;
  font-size: 15.5px;
  line-height: 1.7;
}
.summary-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.summary ul { margin: 0; padding: 0; list-style: none; }
.summary li { padding: 9px 0; border-top: 1px dashed #C6DAB0; }
.summary li:first-child { border-top: 0; padding-top: 0; }
.summary .then {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14.5px;
}
.summary .then::before { content: "→ "; color: var(--accent); }
.summary-key {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #C6DAB0;
  font-weight: 700;
}

/* 마무리 섹션 */
.closing { padding-top: 36px; border-top: 1px solid var(--line); }
.pull {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--accent);
}

/* 12주차: 최종 목록 */
.fav-list {
  margin: 0;
  padding: 0 0 0 24px;
}
.fav-list li { padding: 8px 0; }
.fav-list li::marker { color: var(--accent); font-weight: 700; }
.fav-list strong { font-weight: 700; }

/* 아직 안 쓴 주차 페이지 */
body[data-status="soon"] .entry { display: none; }
body[data-status="open"] .soon-note { display: none; }
.soon-note {
  padding: 96px 0;
  text-align: center;
  color: var(--muted);
}
.soon-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 20px;
}

/* 이전 / 목록 / 다음 버튼 */
.week-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.btn:hover { border-color: var(--accent); }
.btn.prev { justify-self: start; }
.btn.home { justify-self: center; }
.btn.next { justify-self: end; }
.btn.is-hidden { visibility: hidden; }

/* ---------- 바닥글 ---------- */
.site-footer {
  padding: 40px 0 8px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* 모든 페이지 맨 아래, 화면 폭 가득 낮은 잔디 언덕 */
body::after {
  content: "";
  display: block;
  height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C80 18 160 22 230 36 C300 50 350 30 400 32 V70 H0Z' fill='%23D7E8C4'/%3E%3Cpath d='M0 52 C90 40 170 44 250 54 C320 62 370 50 400 48 V70 H0Z' fill='%23B6D59C'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
