:root {
  --bg: #f6f1e8;
  --paper: #fffdf8;
  --ink: #14212b;
  --muted: #64717f;
  --line: #e4d9c8;
  --accent: #0f766e;
  --accent-soft: #dff5f0;
  --gold: #d99b28;
  --hot: #d94f30;
  --shadow: 0 22px 70px rgba(32, 44, 54, .10);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); line-height: 1.68; }
a { color: inherit; text-decoration: none; }
.site-header { background: radial-gradient(circle at 8% 12%, #cceee7 0, transparent 27%), radial-gradient(circle at 85% 8%, #ffe2a4 0, transparent 26%), linear-gradient(180deg, #fbf8f1 0%, var(--bg) 100%); }
.nav { display: flex; justify-content: space-between; align-items: center; max-width: 1180px; margin: 0 auto; padding: 24px 28px; }
.brand { font-weight: 900; letter-spacing: -.04em; font-size: 22px; }
.links { display: flex; gap: 18px; color: #4c5a66; font-size: 14px; font-weight: 750; }
.hero { max-width: 1180px; margin: 0 auto; padding: 72px 28px 92px; }
.hero.magazine { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: end; }
.hero-main h1 { font-size: clamp(42px, 6vw, 78px); line-height: 1.02; letter-spacing: -.065em; margin: 10px 0 22px; max-width: 800px; }
.lead { font-size: 20px; color: #40505c; max-width: 760px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.72); font-weight: 850; }
.button.primary { background: var(--ink); color: white; border-color: var(--ink); }
.section { max-width: 1180px; margin: 0 auto; padding: 62px 28px; }
.category-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 30px; }
.category-card, .card, .post-card, .featured-post { background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.category-card { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.category-card strong { font-size: 18px; letter-spacing: -.03em; }
.category-card span, .post-card p, .card p, li { color: var(--muted); }
.layout-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
h1 { font-size: clamp(40px, 6vw, 70px); line-height: 1.05; letter-spacing: -.06em; margin: 10px 0 18px; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -.045em; margin: 0; }
h3 { font-size: 22px; line-height: 1.28; letter-spacing: -.035em; margin: 10px 0; }
.featured-post { padding: 28px; display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.post-card { padding: 24px; }
.post-card.draft { background: rgba(255,255,255,.55); }
time { display: block; color: #8a7661; font-size: 13px; margin-top: 16px; font-weight: 700; }
.tag { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 900; }
.tag.hot { background: #fff0dc; color: var(--hot); }
.sidebar { display: grid; gap: 16px; position: sticky; top: 18px; }
.card { padding: 24px; }
.ad-slot { border-style: dashed; text-align: center; min-height: 160px; display: grid; place-content: center; color: var(--muted); }
.clean-list { padding-left: 18px; margin: 0; }
.growth-roadmap { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 24px; }
.steps div { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: grid; gap: 6px; }
.steps b { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: white; display: grid; place-items: center; }
.steps strong { letter-spacing: -.03em; }
.steps span { color: var(--muted); font-size: 14px; }
.text-link, .footer-links a { color: var(--accent); font-weight: 900; }
.contact { border-top: 1px solid var(--line); padding-top: 34px; }
.article { max-width: 760px; margin: 0 auto; padding: 70px 28px 120px; }
.article.wide { max-width: 1040px; }
.article h2 { font-size: 28px; margin-top: 46px; }
blockquote { margin: 28px 0; padding: 22px 26px; border-left: 5px solid var(--gold); background: #fff8; border-radius: 18px; font-size: 20px; font-weight: 850; }
.notice { margin-top: 32px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff8; color: var(--muted); }
.footer-links { margin-top: 24px; color: var(--accent); font-weight: 850; }
@media (max-width: 940px) { .hero.magazine, .layout-main { grid-template-columns: 1fr; } .category-strip, .steps { grid-template-columns: repeat(2, 1fr); } .sidebar { position: static; } }
@media (max-width: 680px) { .links { display: none; } .category-strip, .post-grid, .post-grid.two-col, .steps { grid-template-columns: 1fr; } .hero { padding-top: 42px; } .featured-post { flex-direction: column; } }

.chapter-plan { margin: 34px 0; }
.section-inline { margin-top: 52px; }
.section-inline .section-head { margin-bottom: 18px; }

.topbar { position: sticky; top: 0; z-index: 50; background: rgba(246,241,232,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.global-nav { max-width: 1180px; }
.global-nav .links { overflow-x: auto; white-space: nowrap; padding-bottom: 2px; }
.category-strip { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 940px) { .category-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .global-nav .links { display: flex; font-size: 13px; } .category-strip { grid-template-columns: 1fr; } }
.popular-section { padding-top: 40px; }

.chapter-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr); gap: 24px; align-items: center; border-top: 5px solid var(--chapter-color, var(--ink)); background-size: cover; background-position: center; }
.chapter-hero h1 { margin-bottom: 12px; }
.chapter-cover { width: 100%; max-height: 280px; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.category-card { border-top: 4px solid var(--chapter-color, transparent); }
@media (max-width: 760px) { .chapter-hero { grid-template-columns: 1fr; } }

.admin-dot { color: inherit; opacity: .28; text-decoration: none; padding: 0 4px; }
.admin-dot:hover, .admin-dot:focus { opacity: .9; color: var(--accent); }
.admin-warning { border-left: 5px solid #f59e0b; }

.post-hero-readable { padding: 28px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.post-hero-readable h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.045em; margin: 10px 0 14px; }
.post-meta-row { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.post-meta-row span + span::before { content: '·'; margin-right: 12px; color: var(--line-strong, #c9bda8); }
.article > p { font-size: 18px; line-height: 1.85; }
.article > h2 { margin-top: 44px; }

.admin-help .post-card p { font-size: 16px; line-height: 1.75; }
.admin-note ul { margin: 0 0 18px; }
.article .ad-slot { display: none; }

.admin-home { max-width: 1180px; margin: 0 auto; padding: 54px 22px 80px; }
.admin-hero { padding: 46px; border: 1px solid var(--line); border-radius: 34px; background: linear-gradient(135deg, #fffaf0, #f2efe7); box-shadow: var(--shadow); }
.admin-hero h1 { font-size: clamp(40px, 7vw, 78px); line-height: 1; letter-spacing: -0.06em; margin: 10px 0 16px; }
.admin-hero p { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.admin-action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.admin-big-button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 18px; border: 1px solid var(--line); background: #fff; font-weight: 800; text-decoration: none; color: var(--ink); }
.admin-big-button.primary { background: var(--ink); color: #fff; }
.admin-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 22px 0; }
.admin-tile { display: block; padding: 22px; border-radius: 24px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-soft, none); }
.admin-tile span { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.admin-tile strong { display: block; font-size: 22px; margin: 8px 0; }
.admin-tile p { color: var(--muted); line-height: 1.65; margin: 0; }
.admin-note-panel { margin-top: 20px; }
@media (max-width: 920px) { .admin-quick-grid { grid-template-columns: repeat(2, 1fr); } .admin-hero { padding: 30px; } }
@media (max-width: 620px) { .admin-quick-grid { grid-template-columns: 1fr; } .admin-action-row { flex-direction: column; } }

.limited-login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, #fff7ed, #f6f1e8 55%, #eee4d4); }
.limited-login-card { width: min(520px, 100%); padding: 34px; border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.limited-login-card h1 { font-size: clamp(34px, 7vw, 58px); letter-spacing: -0.055em; margin: 8px 0 12px; }
.limited-login-card label { display: block; font-weight: 800; margin: 18px 0 8px; }
.limited-login-card input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; font-size: 16px; }
.limited-login-card button { width: 100%; height: 52px; margin-top: 18px; border: 0; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 900; font-size: 16px; }
.limited-login-message { min-height: 24px; color: var(--accent); font-weight: 800; }
.small-muted { color: var(--muted); font-size: 13px; line-height: 1.6; }

.interaction-widget { margin-top: 48px; padding: 26px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft, none); }
.interaction-stats { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-weight: 800; margin-bottom: 16px; }
.reaction-button, .comment-form button { border: 0; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 900; padding: 12px 18px; }
.comment-form { display: grid; gap: 10px; margin-top: 18px; }
.comment-form input, .comment-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px; font: inherit; }
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-list { margin-top: 20px; display: grid; gap: 12px; }
.comment-list article { padding: 14px; border-radius: 16px; background: #f8f4ec; }
.comment-list p { margin: 6px 0; }
.comment-list time, .empty-comments { color: var(--muted); font-size: 13px; }
