:root {
    --bg-color: #fafafa;
    --surface: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --primary: #65a30d;
    --border-color: #e5e7eb;
    --section-bg-alt: #f3f4f6;
    --danger: #dc2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard Variable', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links button.link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
}

.nav-links button.link-btn:hover {
    color: var(--danger);
}

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: border-color 0.15s;
}

.list-item:hover {
    border-color: #d1d5db;
}

.list-item .item-title {
    font-size: 15px;
    font-weight: 600;
}

.list-item .item-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.empty {
    color: var(--text-muted);
    font-size: 14px;
    padding: 24px 0;
}

form.stacked {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text-main);
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--text-main);
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary);
}

.error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.success-msg {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.post-body {
    white-space: pre-wrap;
    margin-top: 16px;
    line-height: 1.8;
}

.top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.login-wrap {
    max-width: 360px;
    margin: 120px auto 0;
    padding: 0 24px;
}
