:root {
    --bg: #fffafa;
    --surface: #ffffff;
    --text: #2f2729;
    --muted: #75686c;
    --line: #eee2e5;
    --accent: #9d4057;
    --accent-soft: #f8eaee;
    --dark: #472f36;
    --max: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.wrap {
    width: min(calc(100% - 36px), var(--max));
    margin: 0 auto;
}

.site-header {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    font-size: 21px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -.04em;
}

.brand span {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 22px;
    font-size: 14px;
}

.hero {
    padding: 82px 0 66px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(
            circle at 85% 15%,
            #f5dde4 0,
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #fff 0%,
            #fff7f9 100%
        );
}

.eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 720px;
    margin: 12px 0 16px;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.12;
    letter-spacing: -.06em;
}

.hero p {
    max-width: 660px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.section {
    padding: 56px 0 84px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -.04em;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    min-height: 250px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(70,35,45,.08);
}

.card .meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
}

.card h3 {
    margin: 18px 0 10px;
    font-size: 22px;
    line-height: 1.42;
    letter-spacing: -.04em;
}

.card p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 15px;
}

.card .more {
    margin-top: auto;
    font-weight: 700;
}

.empty {
    padding: 70px 30px;
    text-align: center;
    background: #fff;
    border: 1px dashed #dccbd0;
    border-radius: 16px;
    color: var(--muted);
}

.article-shell {
    width: min(calc(100% - 36px), 820px);
    margin: 0 auto;
    padding: 62px 0 90px;
}

.article-header {
    margin-bottom: 40px;
}

.article-header h1 {
    margin: 14px 0 18px;
    font-size: clamp(34px, 6vw, 52px);
    line-height: 1.22;
    letter-spacing: -.055em;
}

.article-excerpt {
    color: var(--muted);
    font-size: 18px;
}

.article-body {
    font-size: 17px;
}

.article-body h2 {
    margin: 46px 0 16px;
    font-size: 28px;
    letter-spacing: -.04em;
}

.article-body h3 {
    margin: 34px 0 12px;
    font-size: 22px;
}

.article-body p {
    margin: 0 0 21px;
}

.article-body blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: #fff;
    border-left: 4px solid var(--accent);
}

.related-links {
    margin-top: 42px;
    padding: 22px;
    background: var(--accent-soft);
    border-radius: 14px;
}

.related-links strong {
    display: block;
    margin-bottom: 6px;
}

.footer {
    padding: 34px 0 44px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.admin-shell {
    width: min(calc(100% - 32px), 1050px);
    margin: 42px auto 90px;
}

.admin-panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 18px;
}

.admin-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #d9cdd0;
    border-radius: 10px;
    padding: 11px 12px;
    background: white;
    color: var(--text);
    font: inherit;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

textarea.body {
    min-height: 330px;
    font-family: Consolas, monospace;
    font-size: 14px;
}

button,
.button {
    display: inline-flex;
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    background: var(--accent);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.button.secondary,
button.secondary {
    background: #6d6265;
}

button.danger {
    background: #8e2f3f;
}

.notice {
    padding: 12px 14px;
    margin-bottom: 18px;
    background: #eef8ee;
    border-radius: 9px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 9px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.admin-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox input {
    width: auto;
}

@media (max-width: 780px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .admin-row {
        grid-template-columns: 1fr;
    }

    .header-inner {
        min-height: 68px;
    }

    .hero {
        padding: 58px 0 50px;
    }

    .nav {
        display: none;
    }

    .article-shell {
        padding-top: 40px;
    }
}
