/* 연간 피부 설계 — 월별 구성 달력과 범위 카드.
   좁은 화면이 기준이고, 넓어질수록 열이 늘어난다. */

.an-section {
  --an-ink: var(--ink-900, #241b1b);
  --an-muted: var(--ink-600, #67595a);
  --an-accent: var(--key-700, #7b2d44);
  --an-paper: var(--ivory-0, #fffcf8);
  --an-tint: var(--ivory-50, #f6f0ea);
  --an-line: rgba(36, 27, 27, 0.14);
  --an-line-strong: rgba(36, 27, 27, 0.26);
  --an-deep: var(--wine-700, #4b1428);
}

.an-section--tint { background: var(--an-tint); }

/* ---- 월별 구성 ---- */

.an-calendar {
  display: grid;
  gap: clamp(var(--space-3), 1.6vw, var(--space-5));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: clamp(var(--space-8), 4vw, var(--space-12)) 0 0;
  padding: 0;
}

.an-calendar li {
  background: var(--an-paper);
  border: 1px solid var(--an-line);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(var(--space-4), 2vw, var(--space-6));
  position: relative;
}

.an-calendar__month {
  color: var(--an-muted);
  font-size: 0.875rem;
  margin: 0;
}

.an-calendar__month b {
  color: var(--an-ink);
  font-family: var(--font-editorial-latin, inherit);
  font-size: 1.375rem;
  font-weight: 400;
  margin-right: 0.1em;
}

.an-calendar h3 {
  font-family: var(--font-body, inherit);
  font-size: 1.0625rem;
  font-weight: 500;
  margin: 0;
}

.an-calendar__focus {
  color: var(--an-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

/* 상담 후 바꿀 수 있는 달 — 나머지와 구분되어야 안내가 산다 */
.an-calendar__flex {
  color: var(--an-accent);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0.15rem 0 0;
}

.an-calendar__flex::before {
  content: "+ ";
}

/* 이번 달 — 스크립트가 붙인다. 스크립트가 없으면 그냥 평범한 칸으로 남는다. */
.an-calendar li.is-current {
  background: var(--an-deep);
  border-color: var(--an-deep);
  color: var(--ivory-0, #fffcf8);
}

.an-calendar li.is-current .an-calendar__month,
.an-calendar li.is-current .an-calendar__month b,
.an-calendar li.is-current .an-calendar__focus {
  color: var(--ivory-100, #e9ddd5);
}

.an-calendar li.is-current .an-calendar__flex {
  color: var(--key-200, #d7a6b5);
}

.an-calendar__badge {
  background: var(--an-accent);
  border-radius: 999px;
  color: var(--ivory-0, #fffcf8);
  /* 모바일 최소 가독 크기(12px) 아래로 내려가지 않게 한다. */
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.4em 0.7em;
  position: absolute;
  right: clamp(var(--space-3), 1.5vw, var(--space-5));
  top: 0;
  transform: translateY(-50%);
}

/* ---- 다루는 범위 ---- */

.an-tiers {
  display: grid;
  gap: clamp(var(--space-4), 2vw, var(--space-6));
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none;
  margin: clamp(var(--space-8), 4vw, var(--space-12)) 0 0;
  padding: 0;
}

.an-tiers li {
  border: 1px solid var(--an-line);
  border-radius: 2px;
  padding: clamp(var(--space-5), 2.5vw, var(--space-8));
}

.an-tiers h3 {
  font-family: var(--font-display, inherit);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 var(--space-3);
}

.an-tiers p {
  color: var(--an-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin: 0;
}

.an-note {
  color: var(--an-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin: clamp(var(--space-6), 3vw, var(--space-10)) 0 0;
  max-width: 34rem;
}

/* ---- 이용 안내 ---- */

.an-guide {
  list-style: none;
  margin: clamp(var(--space-6), 3vw, var(--space-10)) 0 0;
  max-width: 40rem;
  padding: 0;
}

.an-guide li {
  border-top: 1px solid var(--an-line);
  font-size: 1rem;
  line-height: 1.8;
  padding: var(--space-4) 0 var(--space-4) var(--space-5);
  position: relative;
}

.an-guide li:last-child { border-bottom: 1px solid var(--an-line); }

.an-guide li::before {
  color: var(--an-accent);
  content: "—";
  left: 0;
  position: absolute;
}

.an-disclaimer {
  color: var(--an-muted);
  font-size: 0.875rem;
  line-height: 1.8;
  margin: var(--space-8) 0 0;
  max-width: 40rem;
}

.an-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-8);
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
}

/* ---- 넓은 화면 ---- */

@media (min-width: 48rem) {
  .an-calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .an-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- 히어로 — 어두운 바탕에 흰 버튼 ---- */

.an-hero {
  background: var(--wine-700, #4b1428);
  color: var(--ivory-0, #fffcf8);
  padding-block: clamp(4rem, 12vw, 8rem);
}

.an-hero__eyebrow {
  color: var(--key-200, #d7a6b5);
  font-family: var(--font-editorial-latin, inherit);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
}

.an-hero h1 {
  font-family: var(--font-display, inherit);
  font-size: clamp(2.125rem, 7vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
}

.an-hero__lead {
  color: var(--ivory-100, #e9ddd5);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin: 0 0 clamp(2rem, 5vw, 3rem);
}

.an-hero__cta {
  background: var(--ivory-0, #fffcf8);
  color: var(--wine-700, #4b1428);
  display: inline-block;
  font-size: 0.9375rem;
  min-height: 3.25rem;
  padding: 1rem 1.75rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.an-hero__cta:hover,
.an-hero__cta:focus-visible {
  background: var(--ivory-100, #e9ddd5);
}

.an-hero__note {
  color: var(--key-200, #d7a6b5);
  font-size: 0.8125rem;
  line-height: 1.7;
  margin: clamp(1rem, 2.5vw, 1.5rem) 0 0;
}

/* ---- 포함되는 영역 ---- */

.an-scope {
  background: var(--ivory-0, #fffcf8);
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
  text-align: center;
}

.an-scope__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  justify-content: center;
  list-style: none;
  margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
  padding: 0;
}

.an-scope__list li {
  border: 1px solid rgba(36, 27, 27, 0.2);
  color: var(--ink-900, #241b1b);
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.9em 1.3em;
}

.an-scope__note {
  color: var(--ink-600, #67595a);
  font-size: 0.9375rem;
  line-height: 1.85;
  margin: 0;
}

/* home.bundle.css 의 `<테마클래스> p { margin: 0 }` 가 클래스 하나짜리 규칙을 이긴다.
   여백이 필요한 문단만 특이도를 한 단계 올려 되찾는다. */

.an-hero p.an-hero__eyebrow { margin: 0 0 clamp(1.25rem, 3vw, 2rem); }
.an-hero p.an-hero__lead { margin: 0 0 clamp(2rem, 5vw, 3rem); }
.an-hero p.an-hero__note { margin: clamp(1rem, 2.5vw, 1.5rem) 0 0; }

.an-scope p.an-scope__note { margin: 0; }

.an-section p.an-note { margin: clamp(var(--space-6), 3vw, var(--space-10)) 0 0; }
.an-section p.an-disclaimer { margin: var(--space-8) 0 0; }

.an-calendar p.an-calendar__month,
.an-calendar p.an-calendar__focus { margin: 0; }
.an-calendar p.an-calendar__flex { margin: 0.15rem 0 0; }

.an-tiers li p { margin: 0; }
