:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #647067;
  --paper: #f7f7f2;
  --surface: #ffffff;
  --line: #dfe4dd;
  --accent: #176b45;
  --accent-soft: #e1f1e8;
  --warm: #f0e7d5;
  --shadow: 0 18px 50px rgba(23, 33, 27, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif; line-height: 1.75; word-break: keep-all; }
a { color: var(--accent); text-underline-offset: .2em; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; background: var(--ink); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(223, 228, 221, .9); background: rgba(247, 247, 242, .92); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { color: var(--ink); font-weight: 850; font-size: 19px; text-decoration: none; letter-spacing: -.03em; }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.page-layout { padding: 64px 0 96px; }
.hero { min-height: 450px; display: grid; align-content: center; padding: 72px clamp(24px, 6vw, 80px); border: 1px solid var(--line); border-radius: 32px; background: radial-gradient(circle at 86% 10%, var(--warm), transparent 28%), linear-gradient(145deg, #fff 12%, #eef3ec 100%); box-shadow: var(--shadow); }
.hero h1 { max-width: 760px; margin: 12px 0 24px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(44px, 7vw, 82px); line-height: 1.05; letter-spacing: -.055em; }
.hero > p:last-child { max-width: 680px; margin: 0; color: var(--muted); font-size: 19px; }
.eyebrow { margin: 0; color: var(--accent); font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.post-section { padding-top: 88px; }
.section-heading h2, .category-head h1, .page-copy h1 { margin: 8px 0 30px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(34px, 5vw, 56px); line-height: 1.15; letter-spacing: -.04em; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { min-height: 310px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card h2 { margin: 12px 0; font-size: 24px; line-height: 1.35; letter-spacing: -.035em; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card > p:not(.eyebrow) { color: var(--muted); }
.card-meta { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.empty-state { padding: 72px 20px; text-align: center; }
.empty-state h2 { margin: 10px 0; font-size: 34px; }
.empty-state p:last-child { color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 250px; justify-content: center; gap: 70px; padding: 64px 0 110px; }
.article { min-width: 0; padding: 50px clamp(22px, 5vw, 60px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 12px 45px rgba(23, 33, 27, .05); }
.article > h1 { margin: 28px 0 20px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(38px, 6vw, 58px); line-height: 1.15; letter-spacing: -.05em; }
.article h2 { margin: 70px 0 20px; padding-top: 12px; border-top: 2px solid var(--ink); font-size: 29px; line-height: 1.3; letter-spacing: -.035em; }
.article h3 { margin: 38px 0 16px; font-size: 22px; line-height: 1.4; }
.article p, .article li { font-size: 17px; }
.article li + li { margin-top: 8px; }
.article code { padding: 2px 5px; border-radius: 5px; background: #eef1ed; font-size: .9em; }
.product-visual { width: 100%; max-width: 100%; min-width: 0; margin: 22px 0 34px; }
.product-visual > a { position: relative; display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; overflow: hidden; contain: layout paint; border: 1px solid var(--line); border-radius: 18px; background: #f2f3ee; box-shadow: 0 12px 34px rgba(23, 33, 27, .08); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.product-visual > a:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(23, 33, 27, .13); }
.product-visual > a:focus-visible { outline: 3px solid rgba(23, 107, 69, .35); outline-offset: 3px; }
.product-visual .product-visual-art { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; }
.product-visual .product-visual-person { position: absolute; z-index: 1; top: 17%; left: 42%; width: 20%; max-width: 150px; height: auto; max-height: 70%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(49, 39, 33, .18)); pointer-events: none; }
.product-visual-cta { position: absolute; z-index: 2; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 10px 14px; border-radius: 999px; background: rgba(23, 33, 27, .92); color: white; font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 20px rgba(23, 33, 27, .2); }
.product-visual figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.product-visual figcaption a { color: inherit; }
.disclosure { margin: 0 0 34px; padding: 18px 20px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); font-size: 14px; }
.table-wrap { margin: 24px 0 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 650px; background: white; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
th { background: #f0f3ef; font-weight: 800; }
tr:last-child td { border-bottom: 0; }
.check-item { list-style: none; margin-left: -22px; display: flex; gap: 10px; }
.check-item span { color: var(--accent); font-weight: 900; }
.toc { position: sticky; top: 102px; align-self: start; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); }
.toc strong { display: block; margin-bottom: 12px; font-size: 14px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li + li { margin-top: 7px; }
.toc a { color: var(--muted); font-size: 13px; text-decoration: none; }
.page-copy { max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vw, 68px); border: 1px solid var(--line); border-radius: 24px; background: white; }
.page-copy p { color: #3f4c43; font-size: 18px; }
.page-copy h2 { margin-top: 48px; }
.category-head { margin-bottom: 34px; }
.category-head p:last-child { color: var(--muted); }
footer { padding: 48px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer strong { color: var(--ink); }
footer p { margin: 6px 0; }

@media (max-width: 920px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 760px); }
  .toc { position: static; order: -1; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 24px, 1180px); }
  .header-inner { min-height: 62px; }
  .site-header nav a:not(:first-child) { display: none; }
  .page-layout, .article-layout { padding-top: 28px; }
  .hero { min-height: 410px; padding: 42px 24px; border-radius: 22px; }
  .hero h1 { font-size: 45px; }
  .post-section { padding-top: 58px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { min-height: 260px; }
  .article { padding: 28px 20px 50px; border-radius: 18px; }
  .article > h1 { font-size: 38px; }
  .article h2 { margin-top: 52px; font-size: 25px; }
  .article p, .article li { font-size: 16px; }
  .product-visual { margin: 18px 0 28px; }
  .product-visual > a { border-radius: 14px; }
  .product-visual-cta { right: 10px; bottom: 10px; gap: 6px; padding: 7px 9px; font-size: 11px; }
}
