@font-face {
  font-family: "Kapakana";
  src: url("../public/fonts/Kapakana-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Kapakana";
  src: url("../public/fonts/Kapakana-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

:root {
  /* colors (sampled from design) */
  --c-dark: #22232f;                  /* script titles, names, icons */
  --c-text: rgba(34, 35, 47, 0.8);    /* body text, 버튼 선·글자·아이콘 */
  --c-sun: #b73a14;
  --c-sat: #006990;
  --c-bg-light: #ebe8e2;              /* 아이보리 */
  --c-bg-soft: #eeece7;               /* 아이보리 70% (방명록·계좌·공유·팝업) */
  --c-bg-white: #f6f6f6;
  --c-line: rgba(34, 35, 47, 0.2);    /* 캘린더·안내 구분선, 카드 테두리 */
  --c-fill: rgba(34, 35, 47, 0.1);    /* 버튼 채움 */

  --f-script: "Kapakana", cursive;   /* 방명록 날짜 숫자에 사용 */
  --f-en: "Antic Didone", serif;       /* 영문 제목·문구 */
  --f-serif: "Nanum Myeongjo", serif;

  --page-w: 440px;
  --gutter: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  touch-action: pan-x pan-y; /* 핀치·더블탭 확대 방지 (스크롤은 허용) */
}

body {
  margin: 0;
  background: #e4e1da;
  color: var(--c-text);
  font-family: var(--f-serif);
  font-size: 15px;
  line-height: 1.6;
  word-break: keep-all;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.page {
  position: relative;
  width: 100%;
  max-width: var(--page-w);
  margin: 0 auto;
  overflow: hidden;
  background: var(--c-bg-light);
}

/* section backgrounds (canvas texture from design) */
.bg-light { background: var(--c-bg-light) url("../public/images/bg-ivori.jpg") 0 0 / 375px 372px repeat; }
/* 아이보리 텍스처 위에 흰색 30%를 얹어 한 톤 밝게 (디자인 #eeece7) */
.bg-pink  { background: linear-gradient(rgba(246, 246, 246, 0.3), rgba(246, 246, 246, 0.3)), var(--c-bg-light) url("../public/images/bg-ivori.jpg") 0 0 / 375px 372px repeat; }
.bg-white { background: var(--c-bg-white) url("../public/images/bg-white.jpg") 0 0 / 375px 593px repeat; }

/* shared typography */
.script-title {
  font-family: var(--f-en);
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: var(--c-dark);
  text-align: center;
}
.sub-title {
  font-size: 13.5px;
  line-height: 1;
  text-align: center;
  color: var(--c-text);
}

/* pill button */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 35px;
  border: 0.5px solid var(--c-text);
  border-radius: 999px;
  padding-top: 2px; /* 나눔명조 글리프가 위로 치우쳐 보여 광학 중앙 보정 */
  font-size: 11.5px;
  line-height: 1;
  color: var(--c-text);
}
.pill--fill { background: var(--c-fill); }
.pill .arrow { width: 6px; height: 6px; }

/* round icon button */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-fill);
}

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(34, 35, 47, 0.85);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.toast.is-show { opacity: 1; }
