:root {
    --primary: #40372F;
    --gold: #F6D979;
    --background: #FFFDF8;
    --sub: #F7F3EB;
    --ink-soft: #756A60;
    --line: #E9E1D5;
    --white: #FFFFFF;
    --shadow: 0 24px 70px rgba(64, 55, 47, 0.12);
    --radius-large: 30px;
    --radius-medium: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--primary);
    background: var(--background);
    font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 42px;
}

.pagination-pages { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.pagination a {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 800;
}
.pagination a.active { background: var(--gold); border-color: var(--gold); }
.pagination a.disabled { pointer-events: none; opacity: .38; }
.pagination-arrow { gap: 4px; }

@media (max-width: 640px) {
    .pagination { gap: 6px; margin-top: 32px; }
    .pagination a { min-width: 40px; min-height: 40px; padding: 7px 10px; }
    .pagination-arrow span { display: none; }
}

.page-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.section-space {
    padding: clamp(88px, 10vw, 150px) 0;
}

.section-kicker {
    margin: 0 0 14px;
    color: #9C7B25;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    max-width: 680px;
    margin-bottom: 42px;
}

.section-title.wide {
    max-width: 840px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(3.5rem, 8vw, 6.8rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.04;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(2.3rem, 4.8vw, 4.6rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
}

h3 {
    font-weight: 800;
    letter-spacing: 0;
}

@media (min-width: 992px) {
    body:not(.admin-page) h2 {
        font-size: clamp(2.2rem, 3vw, 2.7rem);
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 253, 248, 0.9);
    border-bottom: 1px solid rgba(233, 225, 213, 0.8);
    backdrop-filter: blur(16px);
}

main[id],
section[id] {
    scroll-margin-top: 88px;
}

.navbar {
    min-height: 76px;
    padding: 0;
}

.site-header .navbar > .page-shell {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: var(--primary);
    font-weight: 900;
}

.brand-symbol {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.site-header .brand:not(:has(.brand-symbol))::before {
    content: "";
    display: block;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    background: url('/images/logo-symbol.png') center / contain no-repeat;
}

.site-nav {
    gap: 6px;
    align-items: center;
}

.site-nav .nav-link {
    color: var(--ink-soft);
    padding: 10px 14px;
    font-weight: 700;
}

.site-nav .nav-link:hover {
    color: var(--primary);
}

.site-nav .nav-contact {
    color: var(--primary);
    background: var(--gold);
    border-radius: 999px;
}

.btn-brand,
.btn-quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn-brand:hover,.btn-quiet:hover { transform:translateY(-2px); }
.btn-brand:hover { box-shadow:0 16px 38px rgba(246,217,121,.58); }

.btn-brand {
    color: var(--primary);
    background: var(--gold);
    box-shadow: 0 12px 34px rgba(246, 217, 121, 0.45);
}

.btn-quiet {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.78);
    border-color: var(--line);
}

.text-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 24px;
    color: var(--primary);
    font-weight: 900;
}

.archive-link { display:inline-grid; gap:4px; align-items:start; }
.archive-link > span { font-weight:900; }
.archive-link small { color:var(--ink-soft); font-size:.82rem; font-weight:700; line-height:1.35; }
.archive-link small strong { color:#9C7B25; font-size:1em; font-weight:900; }
.mobile-top-button {
    display: none;
}
