/* ==========================================================================
   pixel07 — Tropical Sunset
   따뜻한 오렌지/핑크 그라디언트 + 라운드 + 비비드 컬러.
   ========================================================================== */

:root {
    --bg:        #fff5ed;
    --surface:   #ffffff;
    --text:      #2d1b3a;
    --muted:     #8a7585;
    --sun:       #ff6b35;
    --coral:     #ff9a76;
    --pink:      #ff6b9d;
    --gold:      #ffc857;
    --gradient:  linear-gradient(135deg, #ff9a76 0%, #ff6b9d 50%, #c44d8c 100%);
    --gradient-soft: linear-gradient(135deg, #ffe5d4, #ffd9e3);
    --border:    #ffd6c2;
    --shadow:    0 12px 30px rgba(255, 107, 53, 0.15);
    --radius:    20px;
    --sans:      "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
    --display:   "Plus Jakarta Sans", "Pretendard", 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.65; }
a { color: var(--sun); text-decoration: none; }
a:hover { color: var(--pink); }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header { padding: 1.5rem 2rem 1rem; }
.site-header__inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.site-header__title { margin: 0; font-family: var(--display); font-size: 1.75rem; font-weight: 800; }
.site-header__title a { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.site-header__nav { display: flex; gap: 0.5rem; }
.site-header__nav a { color: var(--text); padding: 0.5rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.site-header__nav a:hover { background: var(--gradient-soft); color: var(--sun); }

/* ---------- Site Switcher ---------- */
.site-switcher { margin-left: auto; position: relative; }
.site-switcher__summary { list-style: none; cursor: pointer; padding: 0.55rem 1.1rem; background: var(--gradient); color: white; border: none; border-radius: 999px; font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; box-shadow: var(--shadow); }
.site-switcher__summary::-webkit-details-marker { display: none; }
.site-switcher__list { position: absolute; right: 0; top: calc(100% + 0.5rem); background: var(--surface); margin: 0; padding: 0.5rem; min-width: 240px; list-style: none; z-index: 10; box-shadow: var(--shadow); border-radius: var(--radius); }
.site-switcher__item a { display: block; padding: 0.6rem 0.95rem; font-size: 0.9rem; color: var(--text); border-radius: 12px; }
.site-switcher__item a:hover { background: var(--gradient-soft); color: var(--sun); }
.site-switcher__item.is-current a { background: var(--gradient); color: white; font-weight: 700; }

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

.hero { padding: 4rem 3rem; background: var(--gradient); border-radius: 32px; margin-bottom: 3rem; color: white; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero::after { content: "☀"; position: absolute; right: -3rem; bottom: -3rem; font-size: 14rem; opacity: 0.15; }
.hero__title { font-family: var(--display); font-size: 3.25rem; line-height: 1.1; margin: 0 0 1rem; font-weight: 800; }
.hero__lead { font-size: 1.15rem; margin: 0; opacity: 0.95; }

.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(--display); font-size: 1.75rem; margin: 0; font-weight: 800; }
.latest-gallery__more { font-size: 0.9rem; color: var(--sun); font-weight: 600; }
.latest-gallery__empty, .board__empty { color: var(--muted); padding: 3rem 0; text-align: center; }
.board__count { color: var(--muted); margin: 0; }
.board__count strong { color: var(--sun); }

/* ---------- 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-radius: var(--radius); overflow: hidden; color: inherit; box-shadow: 0 4px 16px rgba(255,107,53,0.08); transition: all 0.3s; position: relative; }
.thumb-card:hover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: 0 16px 30px rgba(255,107,53,0.2); text-decoration: none; }
.thumb-card__image { display: block; aspect-ratio: 1/1; background: var(--gradient-soft); overflow: hidden; }
.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.08); }
.thumb-card__title { display: block; padding: 1rem 1.1rem 0.5rem; font-family: var(--display); font-size: 1.05rem; font-weight: 700; 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 1.1rem 1.1rem; 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: 999px;
    color: #8a7585;
    border: 1px solid currentColor;
    transition: background-color .15s ease, color .15s ease;
}
.pagination a:hover { color: #ff6b35; border-color: #ff6b35; text-decoration: none; }
.pagination a.current {
    background: #ff6b35; color: #ffffff; border-color: #ff6b35;
    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: 28px; padding: 3rem; box-shadow: var(--shadow); }
.board-view__header { padding-bottom: 1.5rem; border-bottom: 2px dashed var(--border); margin-bottom: 2rem; }
.board-view__title { font-family: var(--display); font-size: 2.25rem; margin: 0 0 1rem; line-height: 1.2; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.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; }
.board-view__meta dd { display: inline; margin: 0 0 0 0.4rem; color: var(--text); font-weight: 600; }
.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: 1.5rem 0; }
.board-view__footer { padding-top: 1.5rem; border-top: 2px dashed var(--border); margin-top: 1.5rem; }

.btn { display: inline-block; padding: 0.7rem 1.6rem; background: var(--gradient); color: white; font-weight: 700; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow); }
.btn:hover { color: white; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 5rem; padding: 2rem 0; background: var(--gradient-soft); }
.site-footer__inner { max-width: 1240px; margin: 0 auto; padding: 0 2rem; color: var(--text); font-size: 0.85rem; text-align: center; }
.site-footer__id { font-family: monospace; opacity: 0.6; }
