/* ==========================================================================
   pixel02 — Dark Editorial
   진한 배경 + 큰 세리프 타이틀 + 시안 액센트.
   ========================================================================== */

:root {
    --bg:        #0d0d0f;
    --surface:   #16161a;
    --text:      #f5f5f7;
    --muted:     #8a8a92;
    --accent:    #00d4d4;
    --border:    #2a2a30;
    --serif:     "Source Serif Pro", Georgia, "Noto Serif KR", serif;
    --sans:      -apple-system, "Segoe UI", "Pretendard", "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;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); padding: 1.5rem 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-family: var(--serif); font-weight: 600; font-size: 1.75rem; }
.site-header__title a { color: var(--text); }
.site-header__nav { display: flex; gap: 1.5rem; }
.site-header__nav a { color: var(--muted); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; }
.site-header__nav a:hover { color: var(--accent); text-decoration: none; }

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

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

.hero { padding: 4rem 0; border-bottom: 1px solid var(--border); margin-bottom: 3rem; }
.hero__title { font-family: var(--serif); font-size: 3.5rem; margin: 0 0 1rem; line-height: 1.1; }
.hero__lead { color: var(--muted); font-size: 1.15rem; margin: 0; }

.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-family: var(--serif); font-size: 1.75rem; margin: 0;
}
.latest-gallery__more { font-size: 0.85rem; color: var(--muted); }
.latest-gallery__empty, .board__empty { color: var(--muted); padding: 3rem 0; text-align: center; }
.board__count { color: var(--muted); margin: 0; }

/* ---------- 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:hover .thumb-card__title { color: var(--accent); }
.thumb-card__image {
    display: block; aspect-ratio: 4/3; background: var(--surface);
    overflow: hidden; margin-bottom: 0.85rem;
}
.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.05); }
.thumb-card__title {
    display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.35;
    margin-bottom: 0.4rem;
    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: 0;
    color: #8a8a92;
    border: 1px solid currentColor;
    transition: background-color .15s ease, color .15s ease;
}
.pagination a:hover { color: #00d4d4; border-color: #00d4d4; text-decoration: none; }
.pagination a.current {
    background: #00d4d4; color: #16161a; border-color: #00d4d4;
    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-family: var(--serif); font-size: 2.25rem; margin: 0 0 1rem; line-height: 1.2; }
.board-view__meta { display: flex; gap: 2rem; color: var(--muted); font-size: 0.85rem; margin: 0; }
.board-view__meta dt { display: inline; font-weight: normal; }
.board-view__meta dd { display: inline; margin: 0 0 0 0.4rem; }
.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: 1.05rem; line-height: 1.8; padding: 1rem 0; }
.board-view__footer { padding-top: 2rem; border-top: 1px solid var(--border); margin-top: 2rem; }

.btn { display: inline-block; padding: 0.6rem 1.4rem; border: 1px solid var(--border); color: var(--text); font-size: 0.9rem; }
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---------- 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.6; }
