:root {
  --color-main: #0071e3;
  --color-sub: #ff9500;
  --color-bg: #f5f5f7;
  --color-surface: #ffffff;
  --color-text: #1d1d1f;
  --color-muted: #86868b;
  --color-border: #d2d2d7;
  --color-accent-soft: #e8f2ff;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", sans-serif;
  --font-serif: "New York", "Noto Serif KR", Georgia, serif;
  --max-width: 980px;
  --article-width: 692px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
  --header-blur: saturate(180%) blur(20px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.47059;
  font-size: 17px;
  letter-spacing: -0.022em;
}
img { max-width: 100%; height: auto; }
a {
  color: var(--color-main);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: #0077ed; text-decoration: underline; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.container { width: min(100% - 3rem, var(--max-width)); margin-inline: auto; }

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 0.75rem 0;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: inherit; flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--color-text); display: grid; place-items: center; font-size: 1rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong {
  font-size: 1.08rem; color: var(--color-text); font-weight: 600;
  letter-spacing: -0.02em; white-space: nowrap;
}
.nav-toggle {
  display: none; background: rgba(0, 0, 0, 0.05); border: none;
  border-radius: 8px; width: 40px; height: 40px; cursor: pointer;
  transition: background 0.2s ease; flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(0, 0, 0, 0.1); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--color-text);
  margin: 0 auto; position: relative; border-radius: 1px;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.main-nav { display: flex; align-items: center; margin-left: auto; }
.nav-list {
  display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0;
}
.nav-link {
  display: inline-block; padding: 0.5rem 0.85rem;
  text-decoration: none; color: var(--color-text); font-weight: 500;
  font-size: 0.94rem; letter-spacing: -0.01em;
  border-radius: 8px; transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover {
  background: rgba(0, 0, 0, 0.04); color: var(--color-text); text-decoration: none;
}
.nav-link.active {
  background: var(--color-text); color: #fff;
}
.nav-link.active:hover { background: #333; color: #fff; }

/* Category subnav */
.site-subnav {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.subnav-inner {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.55rem 0; overflow: hidden;
}
.subnav-label {
  font-size: 0.78rem; font-weight: 600; color: var(--color-muted);
  white-space: nowrap; flex-shrink: 0; letter-spacing: 0.02em;
}
.subnav-list {
  display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; flex: 1;
}
.subnav-list::-webkit-scrollbar { display: none; }
.subnav-chip {
  display: inline-block; padding: 0.4rem 0.9rem;
  font-size: 0.82rem; font-weight: 500; color: var(--color-text);
  background: var(--color-bg); border-radius: 980px;
  text-decoration: none; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.subnav-chip:hover {
  background: var(--color-accent-soft); color: var(--color-main);
  text-decoration: none; box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.2);
}
.subnav-chip.active {
  background: var(--color-main); color: #fff;
  box-shadow: none;
}
.subnav-chip.active:hover {
  background: #0077ed; color: #fff;
}

/* Hero */
.hero {
  background: var(--color-bg);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  align-items: center; max-width: 720px; margin: 0 auto;
}
@media (min-width: 901px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr; max-width: none;
    text-align: left;
  }
  .hero-actions { justify-content: flex-start; }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.05; margin: 0 0 1rem;
  font-weight: 600; letter-spacing: -0.03em;
}
.hero-lead {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--color-muted); margin-bottom: 1.25rem;
  line-height: 1.4; letter-spacing: -0.01em;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: center; margin-top: 1.75rem;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.35rem; border-radius: 980px; font-weight: 400;
  text-decoration: none; border: none; cursor: pointer;
  font-size: 0.94rem; letter-spacing: -0.01em;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--color-main); color: #fff;
}
.btn-primary:hover {
  background: #0077ed; text-decoration: none; color: #fff;
  transform: scale(1.02);
}
.btn-secondary {
  background: transparent; color: var(--color-main);
  box-shadow: inset 0 0 0 1px var(--color-main);
}
.btn-secondary:hover {
  background: rgba(0, 113, 227, 0.06); text-decoration: none; color: var(--color-main);
}
.hero-card {
  background: var(--color-surface); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
  text-align: left;
}
.hero-card h2 {
  margin-top: 0; font-size: 0.88rem; color: var(--color-muted);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em;
}
.hero-card ul {
  margin: 0; padding-left: 1.1rem; color: var(--color-text);
  font-size: 0.94rem; line-height: 1.6;
}
.hero-card li { margin-bottom: 0.35rem; color: var(--color-muted); }
.hero-card li::marker { color: var(--color-main); }

/* Sections */
.page-main { padding: 3rem 0 4.5rem; min-height: 50vh; }
.section { margin-bottom: 4rem; }
.section-header {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1rem; margin-bottom: 1.75rem;
}
.section-header h2 {
  margin: 0; font-size: 1.75rem; font-weight: 600;
  letter-spacing: -0.02em;
}
.section-header p { margin: 0; color: var(--color-muted); font-size: 0.94rem; }
.text-link {
  font-weight: 400; text-decoration: none; font-size: 0.94rem;
  color: var(--color-main);
}
.text-link:hover { text-decoration: underline; }

/* Cards */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
}
.post-card {
  background: var(--color-surface); border: none;
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.post-card:hover {
  box-shadow: var(--shadow-hover); transform: translateY(-4px);
}
.card-link { display: block; padding: 1.5rem; text-decoration: none; color: inherit; height: 100%; }
.card-link:hover { text-decoration: none; }
.card-category, .card-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 500;
  color: var(--color-main); background: var(--color-accent-soft);
  padding: 0.25rem 0.65rem; border-radius: 980px; margin-bottom: 0.65rem;
  letter-spacing: 0.01em;
}
.post-card h3 {
  margin: 0 0 0.5rem; font-size: 1.12rem; line-height: 1.35;
  font-weight: 600; letter-spacing: -0.02em;
}
.post-card p { margin: 0 0 0.85rem; color: var(--color-muted); font-size: 0.88rem; line-height: 1.5; }
.post-card time { font-size: 0.78rem; color: var(--color-muted); }
.column-card { border-left: none; }
.column-card .card-link { border-left: 3px solid var(--color-sub); }

/* Category cards */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.category-card {
  background: var(--color-surface); border-radius: var(--radius); padding: 1.75rem;
  text-decoration: none; color: inherit; display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.category-card:hover {
  box-shadow: var(--shadow-hover); transform: translateY(-3px); text-decoration: none;
}
.category-card h3 {
  margin: 0 0 0.5rem; color: var(--color-text);
  font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em;
}
.category-card p { margin: 0; color: var(--color-muted); font-size: 0.9rem; line-height: 1.5; }
.category-count {
  margin-top: 1rem; font-size: 0.82rem; font-weight: 500;
  color: var(--color-main);
}

/* Info boxes */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.info-box {
  background: var(--color-surface); border: none;
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.info-box h3 { margin-top: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.principles-list { list-style: none; padding: 0; margin: 0; }
.principles-list li {
  padding: 0.85rem 0; border-bottom: 1px solid var(--color-border);
  padding-left: 1.5rem; position: relative; font-size: 0.94rem; color: var(--color-muted);
}
.principles-list li:last-child { border-bottom: none; }
.principles-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--color-main); font-weight: 600;
}
.editor-mini {
  display: flex; gap: 1.25rem; align-items: start;
  background: var(--color-surface); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.editor-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-text); color: #fff;
  display: grid; place-items: center; font-weight: 600; flex-shrink: 0;
  font-size: 0.9rem;
}
.editor-box {
  display: flex; gap: 1.25rem; margin-top: 2.5rem; padding: 1.75rem;
  background: var(--color-surface); border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.cta-box {
  text-align: center; padding: 3rem 2rem; background: var(--color-surface);
  border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.cta-box h2 { margin-top: 0; font-weight: 600; letter-spacing: -0.02em; }

/* Breadcrumb */
.breadcrumb { font-size: 0.82rem; margin-bottom: 1.5rem; color: var(--color-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 0.35rem; color: var(--color-border); }
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-main); }

/* Article */
.article-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: var(--article-width); margin: 0 auto; }
.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15; margin: 0.5rem 0;
  font-weight: 600; letter-spacing: -0.03em;
}
.article-subtitle { color: var(--color-muted); font-size: 1.15rem; margin: 0 0 1.25rem; line-height: 1.4; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  font-size: 0.82rem; color: var(--color-muted);
}
.article-toc {
  background: var(--color-surface); border: none;
  border-radius: var(--radius-sm); padding: 1.25rem 1.5rem; margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.article-toc h2 { font-size: 0.82rem; margin: 0 0 0.65rem; font-weight: 500; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.article-toc ol { margin: 0; padding-left: 1.2rem; font-size: 0.88rem; }
.article-toc a { color: var(--color-text); }
.article-body { font-size: 1.02rem; line-height: 1.65; }
.article-body h2 {
  margin-top: 2.5rem; font-size: 1.4rem;
  font-weight: 600; letter-spacing: -0.02em;
}
.article-body ul, .article-body ol { padding-left: 1.25rem; }
.article-figure {
  margin: 2rem 0; border-radius: var(--radius);
  overflow: hidden; background: var(--color-bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.article-img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
  background: #e8e8ed;
}
.article-figure figcaption {
  padding: 0.75rem 1rem; font-size: 0.82rem;
  color: var(--color-muted); text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  line-height: 1.45;
}
.photo-credit { font-size: 0.75rem; opacity: 0.75; }
.summary-box, .mistakes-box, .checklist-box, .perspective-box {
  margin: 1.75rem 0; padding: 1.35rem 1.5rem; border-radius: var(--radius-sm);
}
.honey-tip-box {
  background: #fff8ed; border-left: none;
  padding: 1.15rem 1.35rem; margin: 1.5rem 0; border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(255, 149, 0, 0.15);
}
.honey-tip-box strong { color: #c93400; }
.summary-box {
  background: var(--color-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.12);
}
.mistakes-box {
  background: #fff5f5;
  box-shadow: inset 0 0 0 1px rgba(255, 59, 48, 0.12);
}
.checklist-box {
  background: #f5f5f7;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.perspective-box {
  background: #f5f0ff;
  box-shadow: inset 0 0 0 1px rgba(175, 82, 222, 0.12);
}
.check-list { list-style: none; padding: 0; }
.check-list li::before { content: "☐ "; color: var(--color-muted); }
.faq-section dt { font-weight: 600; margin-top: 1.25rem; letter-spacing: -0.01em; }
.faq-section dd { margin: 0.35rem 0 0; color: var(--color-muted); line-height: 1.5; }
.related-posts ul { list-style: none; padding: 0; }
.related-posts li { padding: 0.55rem 0; border-bottom: 1px solid var(--color-border); }
.related-posts li:last-child { border-bottom: none; }
.article-note {
  font-size: 0.82rem; color: var(--color-muted); margin-top: 3rem;
  padding-top: 1.5rem; border-top: 1px solid var(--color-border);
}
.owner-link { font-weight: 500; color: var(--color-main); }

/* Static pages */
.page-hero { margin-bottom: 2.5rem; text-align: center; }
.page-hero h1 {
  margin: 0 0 0.65rem; font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600; letter-spacing: -0.03em;
}
.page-content { max-width: var(--article-width); margin: 0 auto; }
.page-content h2 {
  margin-top: 2.5rem; font-size: 1.35rem;
  font-weight: 600; letter-spacing: -0.02em;
}
.prose p { margin: 0 0 1.15rem; color: var(--color-text); line-height: 1.65; }
.contact-form { display: grid; gap: 1.25rem; max-width: 520px; }
.contact-form label { display: grid; gap: 0.4rem; font-weight: 500; font-size: 0.88rem; color: var(--color-muted); }
.contact-form input, .contact-form textarea, .contact-form select {
  padding: 0.75rem 1rem; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); font: inherit; background: var(--color-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--color-main);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}
.form-note { font-size: 0.82rem; color: var(--color-muted); }
.admin-banner {
  background: rgba(255, 149, 0, 0.08); border: none;
  padding: 0.85rem 1.15rem; border-radius: var(--radius-sm);
  margin-bottom: 1.25rem; font-size: 0.88rem; color: var(--color-text);
  box-shadow: inset 0 0 0 1px rgba(255, 149, 0, 0.2);
}
.author-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 1.75rem;
  align-items: start; margin-bottom: 2.5rem;
}
.author-hero .editor-avatar { width: 80px; height: 80px; font-size: 1.6rem; }

/* Footer */
.site-footer {
  background: #1d1d1f; color: #a1a1a6;
  padding: 3.5rem 0 1.5rem; margin-top: 3rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem;
}
.site-footer h2, .site-footer h3 {
  color: #f5f5f7; font-size: 0.82rem; margin: 0 0 0.85rem;
  font-weight: 500; letter-spacing: 0.02em;
}
.site-footer a { color: #a1a1a6; transition: color 0.2s ease; }
.site-footer a:hover { color: #f5f5f7; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.82rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem; color: #6e6e73;
}
.footer-note { margin-top: 0.5rem; line-height: 1.5; }
.empty-msg { color: var(--color-muted); }

/* 404 */
.error-page { text-align: center; padding: 6rem 1rem; }
.error-page h1 {
  font-size: clamp(4rem, 12vw, 7rem); margin: 0;
  color: var(--color-text); font-weight: 600; letter-spacing: -0.04em;
}

.footer-cookie-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-cookie-btn:hover { color: var(--color-main); }

/* Cookie consent */
.cookie-consent {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
  padding: 1rem; background: rgba(29, 29, 31, 0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
}
.cookie-consent-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.cookie-consent-text { margin: 0; font-size: 0.85rem; line-height: 1.55; flex: 1 1 280px; color: #d2d2d7; }
.cookie-consent-text a { color: #2997ff; }
.cookie-consent-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-consent .btn-secondary {
  background: transparent; color: #f5f5f7; border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Responsive */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .container { width: min(100% - 2rem, var(--max-width)); }
  .hero { padding: 3rem 0 2.5rem; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-direction: column; align-items: stretch;
    padding: 0.75rem; margin-left: 0;
    display: none; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0.25rem; width: 100%; }
  .nav-link { display: block; padding: 0.75rem 1rem; font-size: 1rem; }
  .subnav-label { display: none; }
  .subnav-inner { padding: 0.5rem 0; }
  .section-header { flex-direction: column; align-items: start; }
}