:root{
  --paper:#faf6ee; --paper-deep:#f3ecdd; --card:#fffdf8; --ink:#37352f;
  --ink-soft:#6f6350; --line:#e6dbc4; --accent:#a15c3b; --accent-soft:#c98a5e;
  --quote-bg:#f6efe0; --radius:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",
  "Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR",sans-serif;
  font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.layout{max-width:1180px;margin:0 auto;padding:28px 20px 64px;display:flex;gap:28px;align-items:flex-start}
/* sidebar */
.sidebar{flex:0 0 288px;position:sticky;top:28px;background:var(--paper-deep);
  border:1px solid var(--line);border-radius:var(--radius);padding:20px 18px;max-height:calc(100vh - 56px);overflow:auto}
.sidebar .site-name{font-weight:700;font-size:15px;line-height:1.5;color:var(--ink);margin:0 0 4px}
.sidebar .site-sub{font-size:12.5px;color:var(--ink-soft);margin:0 0 14px;line-height:1.5}
.sidebar nav a{display:block;padding:7px 10px;border-radius:10px;color:var(--ink);
  font-size:14px;line-height:1.45;margin:1px 0}
.sidebar nav a:hover{background:#eee2c9;text-decoration:none}
.sidebar nav a.active{background:#e9dcc0;font-weight:700;color:#7c4322}
/* content */
.content{flex:1 1 auto;min-width:0;background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);padding:44px 48px 40px;box-shadow:0 2px 14px rgba(120,96,52,.06)}
.content h1.page-title{font-size:32px;font-weight:700;line-height:1.3;letter-spacing:-.01em;
  margin:0 0 10px;color:var(--ink);word-break:keep-all}
.cover{width:100%;border-radius:12px;margin:14px 0 26px;display:block}
article{word-break:break-word;overflow-wrap:break-word;display:flex;flex-direction:column}
article>*{min-width:0}
/* Notion stores paragraph breaks (blank line) and line breaks as literal
   newlines inside the block text; the original renders them with
   white-space:pre-wrap. Without it every block collapses into one blob. */
article .notion-semantic-string,article p,article blockquote,
article .notion-to-do__title,article .notion-bookmark__title,
article .notion-bookmark__description,article .notion-page__title,
article td,article th{white-space:pre-wrap}
/* original text blocks carry 4px vertical padding inside the block and stack
   flush (margin 0); an empty text block is a 32px spacer line */
article .notion-text{padding:4px 0}
article .notion-text:empty{min-height:32px}
article img,article iframe,article svg,article video{max-width:100%}
article img{height:auto;border-radius:6px}
article p{margin:0}
article h1,article h2,article h3{font-weight:700;color:var(--ink);line-height:1.3;margin:10px 0 2px;padding:3px 0}
article h1{font-size:26px} article h2{font-size:24px} article h3{font-size:20px}
article blockquote{background:var(--quote-bg);border-left:3px solid var(--accent-soft);
  border-radius:0 10px 10px 0;margin:8px 0;padding:8px 16px;color:#57492f}
article ul,article ol{padding-left:1.4em;margin:2px 0}
article li{margin:0}
article hr{border:none;border-top:1px solid var(--line);margin:8px 0}
article table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}
article .notion-divider{border-top:1px solid var(--line);margin:8px 0}
/* callout */
article .notion-callout{background:var(--quote-bg);border:1px solid var(--line);
  border-radius:10px;padding:14px 16px;margin:2px 0 4px;display:flex;gap:10px}
article .notion-callout__icon{flex:0 0 auto}
article .notion-callout__content{flex:1 1 auto;min-width:0}
/* page mention links: one per row, full-width list items (never inline chips) */
article a.notion-page{display:flex;align-items:flex-start;gap:8px;width:100%;max-width:100%;
  background:#fbf7ec;border:1px solid var(--line);border-radius:10px;
  padding:7px 12px;margin:2px 0;color:var(--ink);line-height:1.5}
article a.notion-page:hover{background:#f4ebd3;text-decoration:none}
article a.notion-page .notion-page__icon{flex:0 0 auto}
article a.notion-page .notion-page__title{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
/* columns (ratios preserved from the original via --r) */
article .notion-column-list{display:flex;gap:24px;margin:0;align-items:flex-start}
article .notion-column{flex:var(--r,.5) 1 0;min-width:0}
article .notion-column>:first-child{margin-top:0}
/* images */
article .notion-image{margin:8px 0}
article .notion-image img{display:block}
article .notion-image.page-width img{width:100%}
article .notion-image.align-center{align-items:center}
/* embeds (YouTube/Vimeo): clean 16:9 frame, loader removed in build */
article .notion-embed{display:block;width:100%;margin:0}
article .notion-embed__content,article .notion-embed__container__wrapper,
article .notion-embed__container{display:block;width:100%}
article .notion-embed iframe{display:block;width:100%;aspect-ratio:16/9;height:auto;
  border:0;border-radius:10px;background:#000}
/* to-do rows (used as link lists on some pages) */
article .notion-to-do{margin:0}
article .notion-to-do__content{display:flex;gap:9px;align-items:flex-start}
article .notion-to-do__icon{flex:0 0 auto;margin-top:.28em;line-height:0}
article .notion-checkbox svg{width:15px;height:15px;display:block;fill:#9a8c6d}
article .notion-to-do__title{flex:1 1 auto;min-width:0}
/* bookmark cards */
article .notion-bookmark{margin:4px 0}
article .notion-bookmark>a{display:flex;gap:16px;border:1px solid var(--line);border-radius:12px;
  padding:14px 16px;background:#fff;color:var(--ink)}
article .notion-bookmark>a:hover{text-decoration:none;background:#fbf7ec}
article .notion-bookmark__content{flex:1 1 auto;min-width:0}
article .notion-bookmark__title{font-size:15px;font-weight:600;margin:0 0 4px;line-height:1.45}
article .notion-bookmark__description{font-size:13.5px;color:var(--ink-soft);margin:0 0 6px;line-height:1.55}
article .notion-bookmark__link{font-size:12.5px;color:var(--ink-soft)}
article .notion-bookmark__link p{margin:0}
article .notion-bookmark__cover{flex:0 0 180px;min-width:0}
article .notion-bookmark__cover img{width:100%;height:100%;max-height:132px;object-fit:cover;border-radius:8px;display:block}
article .notion-icon svg{width:1.15em;height:1.15em;vertical-align:-.2em}
article .color-red{color:#c22f24} article .color-blue{color:#2f5f8f}
article .color-green{color:#2e7d46}
article .highlighted-color{border-radius:4px;padding:0 2px}
/* prev / next */
.pager{display:flex;justify-content:space-between;gap:14px;margin-top:44px}
.pager a{flex:1;background:var(--paper-deep);border:1px solid var(--line);border-radius:12px;
  padding:14px 18px;color:var(--ink);font-size:14.5px;line-height:1.5;min-width:0;overflow-wrap:anywhere}
.pager a:hover{background:#eee2c9;text-decoration:none}
.pager a.next{text-align:right}
.pager .dir{display:block;font-size:12px;color:var(--ink-soft);margin-bottom:3px}
.pager .spacer{flex:1}
footer{max-width:1180px;margin:0 auto;padding:0 20px 40px;color:var(--ink-soft);font-size:13px}
/* mobile */
.toc-mobile{display:none}
@media (max-width:860px){
  .layout{flex-direction:column;padding:16px 12px 48px}
  .sidebar{display:none}
  .toc-mobile{display:block;background:var(--paper-deep);border:1px solid var(--line);
    border-radius:var(--radius);padding:14px 18px;margin-bottom:16px}
  .toc-mobile summary{font-weight:700;cursor:pointer}
  .toc-mobile nav a{display:block;padding:6px 4px;color:var(--ink);font-size:14.5px}
  .toc-mobile nav a.active{font-weight:700;color:#7c4322}
  .content{padding:28px 20px 32px}
  .content h1.page-title{font-size:25px}
  article .notion-bookmark__cover{flex-basis:104px}
}
@media (max-width:640px){
  article .notion-column-list{flex-direction:column;gap:8px}
  article .notion-column{flex:none;width:100%}
}
