/* ==========================================================================
   pixel06 — Newspaper / Editorial
   크림 배경 + 세리프 + 신문풍 컬럼 레이아웃.
   ========================================================================== */

:root {
    --bg:      #f6f1e7;
    --surface: #fffdf6;
    --text:    #1a1a1a;
    --muted:   #6e6a5e;
    --accent:  #8b1d1d;       /* 신문 헤드라인 빨강 */
    --rule:    #2a2a2a;
    --serif:   "Times New Roman", Georgia, "Noto Serif KR", serif;
    --headline: "Playfair Display", Georgia, serif;
    --sans:    -apple-system, "Helvetica Neue", sans-serif;
}

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

/* ---------- Header ---------- */
.site-header { border-top: 4px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.5rem 0; background: var(--surface); }
.site-header__inner { max-width: 1180px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: baseline; gap: 2rem; flex-wrap: wrap; }
.site-header__title { margin: 0; font-family: var(--headline); font-weight: 900; font-size: 2.5rem; letter-spacing: -0.02em; }
.site-header__title a { color: var(--text); }
.site-header__nav { display: flex; gap: 1.5rem; padding-top: 0.6rem; border-top: 1px solid var(--rule); padding: 0.5rem 0 0; margin-top: 0.5rem; align-self: flex-end; }
.site-header__nav a { font-family: var(--sans); color: var(--text); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.15em; }
.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.85rem; border: 1px solid var(--rule); background: var(--surface); font-family: var(--sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; 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% + 4px); background: var(--surface); border: 1px solid var(--rule); margin: 0; padding: 0; min-width: 240px; list-style: none; z-index: 10; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.site-switcher__item { border-bottom: 1px dotted var(--rule); }
.site-switcher__item:last-child { border-bottom: none; }
.site-switcher__item a { display: block; padding: 0.55rem 0.95rem; font-family: var(--sans); font-size: 0.85rem; color: var(--text); }
.site-switcher__item a:hover { background: var(--bg); color: var(--accent); }
.site-switcher__item.is-current a { background: var(--accent); color: var(--surface); font-weight: 700; }

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

.hero { padding: 0 0 2rem; border-bottom: 4px double var(--rule); margin-bottom: 3rem; }
.hero__title { font-family: var(--headline); font-size: 4rem; line-height: 1; margin: 0 0 1rem; font-weight: 900; }
.hero__title::first-letter { font-size: 5rem; float: left; line-height: 0.85; padding-right: 0.5rem; color: var(--accent); }
.hero__lead { color: var(--muted); font-size: 1.15rem; margin: 0; font-style: italic; }

.latest-gallery__header, .board__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--rule); }
.latest-gallery__header h2, .board__header h2 { font-family: var(--headline); font-size: 1.85rem; margin: 0; font-weight: 900; }
.latest-gallery__more { font-family: var(--sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.latest-gallery__empty, .board__empty { color: var(--muted); padding: 3rem 0; text-align: center; font-style: italic; }
.board__count { color: var(--muted); margin: 0; font-style: italic; }

/* ---------- 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); gap: 2.5rem; }
@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; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.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: #ddd9d0; overflow: hidden; margin-bottom: 1rem; filter: grayscale(0.15); }
.thumb-card__image img { width: 100%; height: 100%; object-fit: cover; }
.thumb-card__title { display: block; font-family: var(--headline); font-size: 1.2rem; line-height: 1.3; font-weight: 700; margin-bottom: 0.5rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.thumb-card__date, .thumb-card__meta { display: block; font-family: var(--sans); color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.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: #6e6a5e;
    border: 1px solid currentColor;
    transition: background-color .15s ease, color .15s ease;
}
.pagination a:hover { color: #8b1d1d; border-color: #8b1d1d; text-decoration: none; }
.pagination a.current {
    background: #8b1d1d; color: #fdf6f9; border-color: #8b1d1d;
    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: 4px double var(--rule); margin-bottom: 2.5rem; }
.board-view__title { font-family: var(--headline); font-size: 2.5rem; margin: 0 0 1rem; line-height: 1.15; font-weight: 900; }
.board-view__meta { display: flex; gap: 1.5rem; font-family: var(--sans); color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0; flex-wrap: wrap; }
.board-view__meta dt { display: inline; font-weight: normal; }
.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: 1.1rem; line-height: 1.85; padding: 1rem 0; column-count: 1; }
.board-view__body::first-letter { font-size: 3.5rem; float: left; line-height: 0.9; padding: 0.2rem 0.5rem 0 0; font-family: var(--headline); font-weight: 900; color: var(--accent); }
.board-view__footer { padding-top: 1.5rem; border-top: 1px solid var(--rule); margin-top: 2rem; }

.btn { display: inline-block; padding: 0.5rem 1.4rem; border: 1px solid var(--rule); background: var(--surface); color: var(--text); font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; }
.btn:hover { background: var(--accent); color: var(--surface); border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 4px solid var(--rule); margin-top: 4rem; padding: 2rem 0; background: var(--surface); }
.site-footer__inner { max-width: 1180px; margin: 0 auto; padding: 0 2rem; color: var(--muted); font-family: var(--sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; text-align: center; }
.site-footer__id { font-family: var(--serif); text-transform: none; letter-spacing: normal; }
