/* ───────────────────────────────────────────
   공통 디자인: index, diary, likes, photos 가 같이 씀
   여기 색만 바꾸면 네 페이지가 한 번에 바뀜
   (musics.html 은 자기 디자인을 따로 가짐)
   ─────────────────────────────────────────── */
:root {
  --bg: #f9d9ef;       /* 배경 핑크 */
  --text: #000;        /* 글자 */
  --link: #0000ee;     /* 링크 */
  --visited: #551a8b;  /* 눌렀던 링크 */
  --sub: #555;         /* 작은 설명 글씨 */
  --sparkle: #2a2ad4;  /* 반짝이 */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Times New Roman", Times, "Batang", serif;
  margin: 16px;
  max-width: 720px;
}
h1 { font-size: 2.2em; margin: 0.3em 0 0.6em; }
.fancy { font-family: "Lobster", cursive; font-style: italic; letter-spacing: 1px; }
a { color: var(--link); }
a:visited { color: var(--visited); }

ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
li { margin: 4px 0; }
li::before { content: "☆ "; }
small, .sub { color: var(--sub); }
.cat small { margin-left: 6px; }

img { display: block; max-width: 100%; border: 1px solid #000; }

.sparkles { position: absolute; top: 12px; right: 16px; }
.sparkles span {
  position: absolute; color: var(--sparkle); font-size: 14px;
  animation: twinkle 1.6s infinite steps(2);
}
@keyframes twinkle { 50% { opacity: 0; } }

marquee { background: #000; color: #fff; padding: 2px 0; margin: 1em 0; }
hr { border: 0; border-top: 1px dashed #000; margin: 1.5em 0; }

/* 일기 / 좋아하는 것 */
.entry { margin: 0 0 1.8em; }
.date { font-weight: bold; margin-bottom: 0.3em; }
.date::before { content: "☆ "; }
.entry p { margin: 0 0 0.5em; }
.entry img { margin: 0.5em 0; }

/* 사진 */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption { margin-top: 4px; font-size: 0.95em; }
