/* ==========================================================================
   pixel01 — Clean Minimal (메인 사이트)
   화이트 배경 + 산세리프 + 단순 그리드 + 절제된 그레이.
   ========================================================================== */

:root {
    --bg:        #ffffff;
    --surface:   #fafafa;
    --text:      #18181b;
    --muted:     #71717a;
    --accent:    #18181b;     /* 강조도 검은색으로 — 미니멀 */
    --link:      #2563eb;
    --border:    #e4e4e7;
    --sans:      -apple-system, "Pretendard", "Inter", "Noto Sans KR", 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.6; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.site-header__inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.site-header__title { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.site-header__title a { color: var(--text); }
.site-header__nav { display: flex; gap: 1.5rem; }
.site-header__nav a { color: var(--muted); font-size: 0.92rem; }
.site-header__nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- Site Switcher ---------- */
.site-switcher { margin-left: auto; position: relative; }
.site-switcher__summary { list-style: none; cursor: pointer; padding: 0.4rem 0.85rem; border: 1px solid var(--border); background: var(--bg); font-size: 0.85rem; color: var(--muted); border-radius: 8px; display: inline-flex; align-items: center; gap: 0.4rem; }
.site-switcher__summary::-webkit-details-marker { display: none; }
.site-switcher__summary:hover { border-color: var(--text); color: var(--text); }
.site-switcher__list { position: absolute; right: 0; top: calc(100% + 0.4rem); background: var(--bg); border: 1px solid var(--border); margin: 0; padding: 0.4rem; min-width: 240px; list-style: none; z-index: 10; box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-radius: 8px; }
.site-switcher__item a { display: block; padding: 0.5rem 0.85rem; font-size: 0.88rem; color: var(--text); border-radius: 6px; }
.site-switcher__item a:hover { background: var(--surface); text-decoration: none; }
.site-switcher__item.is-current a { background: var(--text); color: var(--bg); font-weight: 600; }

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

.hero { padding: 0 0 3.5rem; margin-bottom: 4rem; }
.hero__title { font-size: 3rem; line-height: 1.05; margin: 0 0 1rem; font-weight: 700; letter-spacing: -0.03em; }
.hero__lead { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 60ch; }

.latest-gallery__header, .board__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2rem; }
.latest-gallery__header h2, .board__header h2 { font-size: 1.35rem; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.latest-gallery__more { font-size: 0.9rem; color: var(--muted); }
.latest-gallery__empty, .board__empty { color: var(--muted); padding: 4rem 0; text-align: center; }
.board__count { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Thumb Grid ---------- */
.thumb-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; 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; }
.thumb-card:hover { text-decoration: none; }
.thumb-card__image { display: block; aspect-ratio: 4/3; background: var(--surface); overflow: hidden; margin-bottom: 0.85rem; border-radius: 4px; }
.thumb-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.thumb-card:hover .thumb-card__image img { transform: scale(1.03); }
.thumb-card__title { display: block; font-size: 0.95rem; line-height: 1.4; margin-bottom: 0.4rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.thumb-card__date, .thumb-card__meta { display: block; color: var(--muted); font-size: 0.8rem; }
.thumb-card__meta { display: flex; gap: 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: 6px;
    color: #71717a;
    border: 1px solid currentColor;
    transition: background-color .15s ease, color .15s ease;
}
.pagination a:hover { color: #18181b; border-color: #18181b; text-decoration: none; }
.pagination a.current {
    background: #18181b; color: #ffffff; border-color: #18181b;
    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__header { padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.board-view__title { font-size: 2rem; margin: 0 0 1rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.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: 1.5rem; border-top: 1px solid var(--border); margin-top: 2rem; }

.btn { display: inline-block; padding: 0.55rem 1.25rem; border: 1px solid var(--border); color: var(--text); font-size: 0.9rem; border-radius: 6px; text-decoration: none; }
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); 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; }
.site-footer__id { font-family: monospace; opacity: 0.7; }
