@font-face {
  font-family: Pretendard;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Pretendard-Regular.subset.woff2") format("woff2");
}
@font-face {
  font-family: Pretendard;
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Pretendard-Medium.subset.woff2") format("woff2");
}
@font-face {
  font-family: Pretendard;
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Pretendard-SemiBold.subset.woff2") format("woff2");
}

/* 색은 여섯 개뿐: paper ink gray1 gray2 gray3 line. 밝은/어두운 화면 한 쌍씩. */
:root {
  --paper: #FFFFFF;
  --ink: #111111;
  --gray1: #555555;
  --gray2: #8E8E8E;
  --gray3: #C7C7C7;
  --line: #E9E9E9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000;
    --ink: #F2F2F2;
    --gray1: #B0B0B0;
    --gray2: #7A7A7A;
    --gray3: #454545;
    --line: #222222;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  /* Pretendard 서브셋(web/fonts)을 먼저 쓰고, 불러오는 동안·실패하면 시스템 글씨체 */
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
[hidden] { display: none !important; }

.page { max-width: 560px; margin: 0 auto; padding: 24px 16px 40px; }

.head { font-size: 22px; font-weight: 600; margin: 0 0 16px; }
.day-head { font-size: 15px; font-weight: 600; margin: 0 0 4px; color: var(--gray1); }
.day-block { padding: 12px 0; border-top: 1px solid var(--line); }
.day-block:first-of-type { border-top: 0; }

.events { list-style: none; margin: 0; padding: 0; }
.event { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.day-block .event:last-child, .events .event:last-child { border-bottom: 0; }
.time { flex: 0 0 8.5em; width: 8.5em; color: var(--gray1); font-variant-numeric: tabular-nums; }
.title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.none { color: var(--gray2); margin: 4px 0; }

/* 달 격자 */
.grid { display: grid; grid-template-columns: repeat(7, 1fr); margin: 0 0 16px; border-top: 1px solid var(--line); }
.wd { text-align: center; font-size: 12px; color: var(--gray2); padding: 6px 0; }
.cell { min-height: 48px; padding: 4px 0; text-align: center; border-top: 1px solid var(--line); }
.cell.blank { color: transparent; }
.num { display: block; font-size: 14px; }
.dots { display: flex; justify-content: center; gap: 3px; margin-top: 4px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gray1); }

.intro { font-size: 18px; font-weight: 500; margin: 48px 0 12px; }
.store { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.notice { margin: 48px 0; font-size: 17px; font-weight: 500; }
.footer { margin-top: 32px; color: var(--gray2); font-size: 13px; }
.links { margin-top: 24px; font-size: 13px; }
.links a, .page a { color: var(--gray2); }
.page h2.lang { font-size: 18px; margin: 28px 0 8px; }
.page p { margin: 8px 0; }
.page ul.plain { padding-left: 20px; }
