/* 달나 (Dalna) — 공용 스타일.
   디자인 토큰은 브랜드 심벌(favicon.svg)에서 그대로 가져온다:
   더스티 모브 #9B6A80 · 깊은 모브 #855369 · 달빛 크림 #FAF6F4.
   phase 색도 같은 채도대(더스티)로 낮춰 아이콘과 한 벌로 보이게 맞췄다. */
:root {
  --bg: #FAF6F4;          /* 심벌의 달빛 크림 */
  --surface: #FFFFFF;
  --ink: #2C2329;
  --muted: #6E6069;
  --line: #E8DFE3;
  --accent: #855369;      /* 심벌의 깊은 모브 (흰 배경 대비 6.1:1) */
  --accent-ink: #FFFFFF;
  --accent-soft: #F1E7EB;
  --brand: #9B6A80;       /* 심벌 본체의 더스티 모브 — 장식용 */
  --good: #40766A;
  --ph-men: #8E5670;
  --ph-fol: #45766A;
  --ph-ovu: #8F6A28;
  --ph-lut: #6A5C8C;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1F191D;
    --surface: #2A2329;
    --ink: #EFE6EA;
    --muted: #AA9AA2;
    --line: #443A40;
    --accent: #C99AAD;
    --accent-ink: #2A1620;
    --accent-soft: #3C2D35;
    --brand: #B98BA0;
    --good: #63B09E;
    --ph-men: #C99AAD;
    --ph-fol: #63B09E;
    --ph-ovu: #C9A35E;
    --ph-lut: #A08FCB;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  /* 심벌의 파낸 보름달 자국 — 오른쪽 위에 옅은 원 하나로 되풀이한다 */
  background: var(--bg) radial-gradient(circle at calc(50% + 300px) -110px, var(--accent-soft) 0, var(--accent-soft) 260px, transparent 261px) no-repeat;
  color: var(--ink);
  font-family: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 640px; margin: 0 auto; padding: 56px 24px 88px; }
.page--narrow { max-width: 480px; }

h1, h2, .serif {
  font-family: 'Gowun Batang', 'Apple SD Gothic Neo', serif;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}
h1 { font-size: 1.9rem; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 36px 0 10px; }
p { margin: 0 0 14px; }
a { color: var(--accent); }

/* 심벌 + 이름 락업 — 모든 페이지의 머리에 같은 모양으로 놓는다 */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand__mark {
  width: 34px; height: 34px; border-radius: 8px; display: block; flex: none;
}
.brand__name {
  font-family: 'Gowun Batang', 'Apple SD Gothic Neo', serif;
  font-weight: 700; font-size: 1.35rem; line-height: 1;
}
.brand__sub {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--muted); text-transform: uppercase; align-self: center;
}
.brand + h1, .brand + .eyebrow { margin-top: 22px; }

/* 이전 이름 유지 (문서·외부 링크 호환) */
.wordmark {
  font-family: 'Gowun Batang', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}
.eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 6px;
}
.lead { color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  margin-top: 24px;
}

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field .hint { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.field input, .field select {
  font: inherit; color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  width: 100%;
}
.field input:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}

.btn {
  font: inherit; font-weight: 700; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: 8px;
  padding: 13px 24px;
  width: 100%;
}
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-row { display: grid; gap: 10px; margin-top: 8px; }

.notice {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.9rem;
  margin: 16px 0 0;
}
.error { color: var(--accent); font-weight: 700; font-size: 0.9rem; margin: 12px 0 0; display: none; }
.fine { font-size: 0.78rem; color: var(--muted); }

footer {
  margin-top: 64px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--muted);
}
footer a { color: var(--muted); }

/* 가입 완료 후 예보 일정 */
.sched { list-style: none; margin: 14px 0 0; padding: 0; }
.sched li {
  display: grid; grid-template-columns: 104px 56px 1fr; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 0.88rem; align-items: baseline;
}
.sched .date { font-variant-numeric: tabular-nums; font-weight: 700; }
.sched .day { color: var(--muted); font-variant-numeric: tabular-nums; }

/* 3단계 요약 (홈) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.steps .step {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px;
}
.steps .n { font-family: 'Gowun Batang', serif; font-weight: 700; color: var(--brand); margin-bottom: 2px; }
.steps p { margin: 0; font-size: 0.84rem; color: var(--muted); }

.center { text-align: center; }
.icon-big { font-size: 2.2rem; line-height: 1; margin-bottom: 12px; }
.mark-big { width: 56px; height: 56px; border-radius: 14px; display: block; margin: 0 auto 14px; }

/* 시작일 달력 */
.cal { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin-top: 4px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal__title { font-weight: 700; font-size: 0.95rem; }
.cal__nav {
  font: inherit; font-size: 1.1rem; line-height: 1;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.cal__nav:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cal__nav:disabled { opacity: 0.3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__dow { margin-bottom: 4px; }
.cal__dow span { text-align: center; font-size: 0.75rem; color: var(--muted); padding: 2px 0; }
.cal__day {
  font: inherit; font-size: 0.88rem;
  aspect-ratio: 1; min-height: 34px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); cursor: pointer;
}
.cal__day:hover:not(:disabled) { background: var(--accent-soft); }
.cal__day:disabled { color: var(--muted); opacity: 0.35; cursor: default; }
.cal__day--today { box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.cal__day--on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.cal__day--on:hover { background: var(--accent); }

/* 받을 시간 (시 + 분) */
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* 텍스트 버튼 (달력 열기 등) */
.linkish {
  display: inline-block;
  margin-top: 14px;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  border: 0;
  background: none;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#cal-wrap { margin-top: 12px; }

/* 운영 화면 */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--card, transparent); }
.stat__n { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.stat__l { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.86rem; }
th, td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 0.76rem; color: var(--muted); font-weight: 700; letter-spacing: 0.4px; }
td.muted, .muted { color: var(--muted); }
