/* ==========================================================================
   pixel03 — Pastel Soft
   파스텔 핑크/라벤더 + 둥근 모서리 + 부드러운 그림자.
   ========================================================================== */

:root {
    --bg:        #fdf6f9;
    --surface:   #ffffff;
    --text:      #4a3a4a;
    --muted:     #a89bb0;
    --accent:    #ff8eb3;
    --accent-2:  #b8a5e3;
    --border:    #f0e3eb;
    --shadow:    0 8px 24px rgba(168, 155, 176, 0.18);
    --radius:    18px;
    --sans:      "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header { padding: 2rem 0; }
.site-header__inner {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    background: var(--surface); border-radius: var(--radius); padding: 1.25rem 1.75rem;
    box-shadow: var(--shadow);
}
.site-header__title { margin: 0; font-size: 1.5rem; font-weight: 700; }
.site-header__title a { color: var(--text); background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.site-header__nav { display: flex; gap: 1.25rem; }
.site-header__nav a { color: var(--muted); font-size: 0.95rem; padding: 0.4rem 0.85rem; border-radius: 999px; }
.site-header__nav a:hover { background: var(--bg); color: var(--accent); }

/* ---------- Site Switcher ---------- */
.site-switcher { margin-left: auto; position: relative; }
.site-switcher__summary {
    list-style: none; cursor: pointer; padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ffe5ee, #ece0ff); border: none; border-radius: 999px;
    font-size: 0.9rem; color: var(--text);
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.site-switcher__summary::-webkit-details-marker { display: none; }
.site-switcher__list {
    position: absolute; right: 0; top: calc(100% + 0.5rem);
    background: var(--surface); border: 1px solid var(--border);
    margin: 0; padding: 0.5rem; min-width: 220px; list-style: none;
    z-index: 10; box-shadow: var(--shadow); border-radius: var(--radius);
}
.site-switcher__item a { display: block; padding: 0.55rem 0.9rem; color: var(--text); font-size: 0.9rem; border-radius: 12px; }
.site-switcher__item a:hover { background: var(--bg); color: var(--accent); }
.site-switcher__item.is-current a { background: linear-gradient(135deg, #ffe5ee, #ece0ff); font-weight: 700; }

/* ---------- Main ---------- */
.site-main { max-width: 1200px; margin: 0 auto; padding: 2rem; }

.hero { padding: 3.5rem 2.5rem; background: linear-gradient(135deg, #ffe5ee 0%, #ece0ff 100%); border-radius: var(--radius); margin-bottom: 3rem; box-shadow: var(--shadow); }
.hero__title { font-size: 2.75rem; margin: 0 0 0.75rem; font-weight: 700; }
.hero__lead { color: var(--muted); font-size: 1.1rem; margin: 0; }

.latest-gallery__header,
.board__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.75rem; padding: 0 0.5rem; }
.latest-gallery__header h2, .board__header h2 { font-size: 1.5rem; margin: 0; font-weight: 700; }
.latest-gallery__more { font-size: 0.9rem; color: var(--accent); }
.latest-gallery__empty, .board__empty { color: var(--muted); padding: 3rem 0; text-align: center; }
.board__count { color: var(--muted); margin: 0; font-size: 0.95rem; }
.board__count strong { color: var(--accent); }

/* ---------- Thumb Grid ---------- */
.thumb-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
.thumb-grid--list { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .thumb-grid, .thumb-grid--list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .thumb-grid, .thumb-grid--list { grid-template-columns: 1fr; } }

.thumb-card { display: block; color: inherit; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.thumb-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(168, 155, 176, 0.28); text-decoration: none; }
.thumb-card__image { display: block; aspect-ratio: 4/3; background: linear-gradient(135deg, #ffe5ee, #ece0ff); overflow: hidden; }
.thumb-card__image img { width: 100%; height: 100%; object-fit: cover; }
.thumb-card__title { display: block; padding: 1rem 1rem 0.4rem; font-size: 1rem; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.thumb-card__date, .thumb-card__meta { display: block; padding: 0 1rem 1rem; color: var(--muted); font-size: 0.8rem; }
.thumb-card__meta { display: flex; gap: 1rem; padding-bottom: 1rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 3.2rem; height: 3.2rem; padding: .4rem .6rem;
    font-size: .88rem; text-decoration: none;
    border-radius: 12px;
    color: #a89bb0;
    border: 1px solid currentColor;
    transition: background-color .15s ease, color .15s ease;
}
.pagination a:hover { color: #ff8eb3; border-color: #ff8eb3; text-decoration: none; }
.pagination a.current {
    background: #ff8eb3; color: #ffffff; border-color: #ff8eb3;
    font-weight: 700; pointer-events: none;
}
.pagination a.pagination-prev,
.pagination a.pagination-next { font-size: 1.1rem; font-weight: 700; }
.pagination a.pagination-prev::before { content: '‹'; }
.pagination a.pagination-next::before { content: '›'; }

/* ---------- Board View ---------- */
.board-view { background: var(--surface); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.board-view__header { padding-bottom: 1.5rem; border-bottom: 2px dashed var(--border); margin-bottom: 2rem; }
.board-view__title { font-size: 2rem; margin: 0 0 1rem; }
.board-view__meta { display: flex; gap: 1.5rem; color: var(--muted); font-size: 0.85rem; margin: 0; flex-wrap: wrap; }
.board-view__meta dt { display: inline; font-weight: normal; opacity: 0.7; }
.board-view__meta dd { display: inline; margin: 0 0 0 0.4rem; color: var(--text); }
.board-view__thumb { margin-bottom: 2rem; }
.board-view__thumb img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.board-view__body { font-size: 1rem; line-height: 1.8; padding: 1.5rem 0; }
.board-view__footer { padding-top: 2rem; border-top: 1px dashed var(--border); margin-top: 2rem; }

.btn { display: inline-block; padding: 0.65rem 1.5rem; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; font-size: 0.9rem; border-radius: 999px; }
.btn:hover { color: white; opacity: 0.9; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 4rem; padding: 2rem 0; }
.site-footer__inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; color: var(--muted); font-size: 0.8rem; text-align: center; }
.site-footer__id { font-family: monospace; opacity: 0.6; }
