/* 업적 기록 사이트 공통 스타일 — 검은 바탕 + 붉은 용비늘 + 금색 포인트 */
:root {
  --bg: #0B0809;
  --panel: #141012;
  --field: #0F0C0D;
  --shot: #241C1E;
  --line: #4A3A22;
  --line-gold: #6B5428;
  --line-soft: #3A2E1E;
  --text: #F1E8DC;
  --text-2: #DED3C6;
  --sub: #B9AC9F;
  --muted: #6F655D;
  --gold: #D4AF5A;
  --gold-soft: #E3C27A;
  --gold-dim: #8C6E33;
  --on-gold: #140A06;
  --danger: #F08A8E;
  --scale: #9A1722;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Gowun Batang', serif;
  min-height: 100vh;
}
a { color: var(--gold-soft); }
a:hover { color: #F3DCA3; }
button, input, select, textarea { font: inherit; color: inherit; }

/* 배경: 용비늘 + 가운데 어둡게 */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.backdrop svg { width: 100%; height: 100%; display: block; }
.page { position: relative; z-index: 1; padding-bottom: 64px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* 머리말 */
.top { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; padding-top: 44px; padding-bottom: 28px; }
.brand { display: flex; flex-direction: column; gap: 6px; }
.eyebrow { font-family: 'Cinzel', serif; font-size: 13px; font-weight: 600; letter-spacing: 0.32em; color: var(--gold); }
.site-title { font-family: 'Song Myung', serif; font-size: 42px; line-height: 1.1; margin: 0; font-weight: 400; }
.site-sub { font-size: 14px; color: var(--sub); }
.stats { display: flex; flex-wrap: wrap; gap: 20px 28px; font-size: 13px; color: var(--sub); align-items: baseline; }
.stats b { font-family: 'Cinzel', serif; color: var(--gold); font-size: 22px; font-weight: 600; margin-left: 4px; }

.ornament { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.ornament i { flex: 1; height: 1px; background: var(--line-gold); }
.ornament b { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gold); }
.ornament b.full { width: 11px; height: 11px; background: var(--gold); border: 0; }

main.wrap { display: flex; flex-direction: column; gap: 44px; }

/* 최근 기록 */
.featured { display: flex; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line-gold); border-radius: 6px; overflow: hidden; }
.featured .shot { flex: 999 1 560px; min-width: 0; aspect-ratio: 16 / 9; }
.featured .body { flex: 1 1 320px; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; border-top: 3px solid var(--gold); }
.featured h2 { margin: 0; font-family: 'Song Myung', serif; font-weight: 400; font-size: 32px; line-height: 1.3; }
.featured .content { font-size: 15px; }
.label { font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700; letter-spacing: 0.24em; color: var(--gold); }

/* 상단 슬라이드 */
.slider { display: flex; flex-direction: column; gap: 14px; }
.slider .featured[hidden] { display: none; }
.slide-nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.slide-nav[hidden] { display: none; }
.nav-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; border: 1px solid var(--line); background: var(--panel); color: var(--gold-soft); cursor: pointer; }
.nav-btn:focus-visible, .dot:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.dots { display: flex; gap: 4px; }
.dot { width: 28px; height: 44px; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.dot::before { content: ''; width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gold); }
.dot[aria-current="true"]::before { background: var(--gold); }

.more-wrap { display: flex; justify-content: center; }

.shot { background: var(--shot); display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 13px; overflow: hidden; position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.shot .more { position: absolute; right: 10px; bottom: 10px; background: rgba(11, 8, 9, 0.85); border: 1px solid var(--gold-dim); color: var(--gold-soft); font-size: 12px; padding: 2px 8px; border-radius: 3px; }

.meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--sub); }
.meta .date { font-family: 'Cinzel', serif; letter-spacing: 0.06em; }
.tag { padding: 1px 9px; border-radius: 3px; border: 1px solid var(--gold-dim); color: var(--gold-soft); }
.content { margin: 0; font-size: 14px; line-height: 1.75; color: var(--text-2); white-space: pre-line; }
.memo { margin: 0; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13px; line-height: 1.6; color: var(--sub); white-space: pre-line; }

/* 검색·필터 */
.filters { display: flex; flex-direction: column; gap: 14px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.field { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.field.search { flex: 1 1 300px; }
.field input, .field select { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--text); }
.field select { color-scheme: dark; }
.field .cap { font-size: 13px; color: var(--sub); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 44px; padding: 0 18px; border-radius: 3px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); font-size: 14px; font-weight: 700; cursor: pointer; }
.chip.on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.chip:focus-visible, .btn:focus-visible, .field:focus-within { outline: 2px solid var(--gold-soft); outline-offset: 2px; }

/* 월별 목록 */
.month { display: flex; flex-direction: column; gap: 18px; }
.month h3 { margin: 0; display: flex; align-items: center; gap: 14px; font-weight: 400; }
.month h3::before { content: ''; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); flex: 0 0 auto; }
.month h3 .name { font-family: 'Song Myung', serif; font-size: 22px; }
.month h3 .count { font-size: 13px; color: var(--sub); }
.month h3::after { content: ''; flex: 1; height: 1px; background: var(--line-gold); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.card .shot { aspect-ratio: 16 / 9; }
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 9px; }
.card h4 { margin: 0; font-family: 'Song Myung', serif; font-weight: 400; font-size: 20px; line-height: 1.35; }
.card .memo { padding-top: 10px; }

.empty { text-align: center; color: var(--sub); padding: 64px 0; font-size: 15px; }

footer.wrap { margin-top: 64px; }
.foot { padding-top: 20px; border-top: 1px solid var(--line-gold); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--sub); }
footer .en { font-family: 'Cinzel', serif; letter-spacing: 0.2em; color: var(--gold); }

/* 크게 보기 */
.lightbox { position: fixed; inset: 0; background: rgba(5, 3, 4, 0.94); display: none; align-items: center; justify-content: center; z-index: 10; padding: 16px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 4px; }

/* 버튼 */
.btn { height: 48px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 3px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); font-size: 15px; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 700; }
.btn.primary:disabled { opacity: 0.6; cursor: wait; }
.btn.small { height: 40px; padding: 0 14px; font-size: 13px; }
.btn.danger { color: var(--danger); border-color: #5E2128; background: transparent; }

@media (max-width: 560px) {
  .site-title { font-size: 34px; }
  .featured .body { padding: 24px 20px; }
  .featured h2 { font-size: 26px; }
}
