/* ==========================================================================
   pixel04 — Brutalist
   굵은 검은 테두리 + 모노스페이스 + 노랑/빨강 강조.
   ========================================================================== */

:root {
    --bg:      #f4f4f0;
    --surface: #ffffff;
    --text:    #000000;
    --muted:   #555555;
    --accent:  #ffcc00;
    --danger:  #ff3333;
    --border:  #000000;
    --mono:    "JetBrains Mono", "Courier New", monospace;
    --sans:    -apple-system, "Helvetica Neue", Arial, 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.5; }
a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { background: var(--accent); }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header { border-bottom: 4px solid var(--border); }
.site-header__inner { max-width: 1280px; margin: 0 auto; padding: 1.25rem 2rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.site-header__title { margin: 0; font-family: var(--mono); font-weight: 900; font-size: 1.5rem; text-transform: uppercase; letter-spacing: -0.02em; }
.site-header__title a { color: var(--text); text-decoration: none; }
.site-header__title a:hover { background: var(--accent); }
.site-header__nav { display: flex; gap: 0.75rem; }
.site-header__nav a { font-family: var(--mono); font-weight: 700; padding: 0.4rem 0.75rem; text-transform: uppercase; font-size: 0.85rem; text-decoration: none; border: 2px solid var(--border); }
.site-header__nav a:hover { background: var(--text); color: var(--bg); }

/* ---------- Site Switcher ---------- */
.site-switcher { margin-left: auto; position: relative; }
.site-switcher__summary { list-style: none; cursor: pointer; padding: 0.4rem 0.85rem; border: 2px solid var(--border); background: var(--accent); font-family: var(--mono); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; 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: 3px solid var(--border); margin: 0; padding: 0; min-width: 240px; list-style: none; z-index: 10; }
.site-switcher__item { border-bottom: 2px solid var(--border); }
.site-switcher__item:last-child { border-bottom: none; }
.site-switcher__item a { display: block; padding: 0.6rem 1rem; font-family: var(--mono); font-size: 0.85rem; text-decoration: none; }
.site-switcher__item a:hover { background: var(--text); color: var(--bg); }
.site-switcher__item.is-current a { background: var(--accent); font-weight: 700; }

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

.hero { padding: 3rem 2.5rem; background: var(--accent); border: 4px solid var(--border); margin-bottom: 2rem; box-shadow: 12px 12px 0 var(--border); }
.hero__title { font-family: var(--mono); font-size: 3.5rem; font-weight: 900; line-height: 1; margin: 0 0 1rem; text-transform: uppercase; }
.hero__lead { font-family: var(--mono); font-size: 1.1rem; margin: 0; }

.latest-gallery__header, .board__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 4px solid var(--border); }
.latest-gallery__header h2, .board__header h2 { font-family: var(--mono); font-size: 1.5rem; margin: 0; text-transform: uppercase; }
.latest-gallery__more { font-family: var(--mono); font-weight: 700; padding: 0.4rem 0.85rem; background: var(--text); color: var(--bg); text-decoration: none; }
.latest-gallery__empty, .board__empty { padding: 4rem 0; text-align: center; font-family: var(--mono); border: 3px dashed var(--border); }
.board__count { font-family: var(--mono); margin: 0; }
.board__count strong { background: var(--accent); padding: 0.1rem 0.5rem; }

/* ---------- 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; background: var(--surface); border: 3px solid var(--border); color: inherit; text-decoration: none; transition: transform 0.15s; }
.thumb-card:hover { background: var(--accent); transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--border); }
.thumb-card__image { display: block; aspect-ratio: 1/1; background: var(--text); border-bottom: 3px solid var(--border); overflow: hidden; }
.thumb-card__image img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1); }
.thumb-card__title { display: block; padding: 0.85rem 1rem; font-family: var(--mono); font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.thumb-card__date, .thumb-card__meta { display: block; padding: 0 1rem 0.85rem; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); text-transform: uppercase; }
.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: #555555;
    border: 1px solid currentColor;
    transition: background-color .15s ease, color .15s ease;
}
.pagination a:hover { color: #ffcc00; border-color: #ffcc00; text-decoration: none; }
.pagination a.current {
    background: #ffcc00; color: #ffffff; border-color: #ffcc00;
    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: 1.5rem; background: var(--text); color: var(--bg); margin-bottom: 2rem; }
.board-view__title { font-family: var(--mono); font-size: 2rem; margin: 0 0 1rem; line-height: 1.2; text-transform: uppercase; }
.board-view__meta { display: flex; gap: 1.5rem; font-family: var(--mono); font-size: 0.8rem; 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; }
.board-view__thumb { margin-bottom: 2rem; }
.board-view__thumb img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.board-view__body { padding: 1rem 0; line-height: 1.8; }
.board-view__footer { padding-top: 2rem; border-top: 4px solid var(--border); margin-top: 2rem; }

.btn { display: inline-block; padding: 0.6rem 1.4rem; border: 3px solid var(--border); background: var(--accent); color: var(--text); font-family: var(--mono); font-weight: 700; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: var(--text); color: var(--bg); }

/* ---------- Footer ---------- */
.site-footer { border-top: 4px solid var(--border); margin-top: 4rem; padding: 1.5rem 0; background: var(--text); color: var(--bg); }
.site-footer__inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; font-family: var(--mono); font-size: 0.8rem; }
.site-footer__id { opacity: 0.7; }
