/* blog.borasoft.net — borasoft.net 과 같은 색·글꼴. 글씨는 여리게, 그림자는 옅게. */
:root {
  --onyx: #0b0b0d; --onyx-2: #131316; --onyx-3: #1b1b20;
  --ivory: #f3efe7; --ivory-2: #e9e3d8; --paper: #faf8f4;
  --ink: #17161a; --ink-2: #4b4852; --mist: #8f8a82; --mist-2: #b9b3a8;
  --gold: #c8a96b; --gold-d: #9a7b41; --amethyst: #7a5cd6; --amethyst-deep: #2b1d55;
  --line-d: rgba(243,239,231,.12); --line-l: rgba(23,22,26,.12);
  --serif: "Noto Serif KR", "Cormorant Garamond", serif;
  --display: "Cormorant Garamond", "Noto Serif KR", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 400; background: var(--paper); color: var(--ink); line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(740px, 100% - 40px); margin-inline: auto; }

/* 머리 */
.top { background: var(--onyx); color: var(--ivory); border-bottom: 1px solid var(--line-d); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; font: 500 21px/1 var(--display); letter-spacing: .08em; text-decoration: none; }
.logo .gem { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff 0 6%, #e9defc 12%, var(--amethyst) 42%, var(--amethyst-deep) 88%); }
.logo small { font: 400 12px/1 var(--sans); letter-spacing: .3em; color: var(--gold); text-transform: uppercase; margin-left: 2px; }
.top nav { display: flex; gap: 26px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist-2); }
.top nav a { text-decoration: none; transition: color .3s; }
.top nav a:hover { color: var(--ivory); }
@media (max-width: 520px) { .top nav a.opt { display: none; } }

/* 글 머리 */
.hero { background: radial-gradient(900px 480px at 82% 0%, rgba(122,92,214,.2), transparent 62%), radial-gradient(700px 420px at 6% 100%, rgba(200,169,107,.1), transparent 60%), var(--onyx); color: var(--ivory); padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 80px); }
.eyebrow { font: 500 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.hero h1 { font: 500 clamp(30px, 5vw, 52px)/1.28 var(--serif); letter-spacing: -.02em; margin-top: 22px; }
.hero .lead { margin-top: 22px; font-size: clamp(16px, 1.6vw, 18px); color: var(--mist-2); max-width: 640px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 30px; font-size: 13px; color: var(--mist); }
.meta span + span::before { content: "·"; margin-right: 18px; color: #4a4741; }

/* 본문 */
article { padding: clamp(40px, 6vw, 72px) 0 40px; font-size: 17px; }
article p { margin-top: 1.15em; }
article h2 { font: 500 clamp(24px, 3vw, 31px)/1.4 var(--serif); letter-spacing: -.01em; margin-top: 3.2em; padding-top: 1.4em; border-top: 1px solid var(--line-l); scroll-margin-top: 20px; }
article h2 .n { display: block; font: 500 13px/1 var(--display); letter-spacing: .24em; color: var(--gold-d); margin-bottom: 14px; }
article h3 { font: 500 20px/1.5 var(--serif); margin-top: 2.2em; scroll-margin-top: 20px; }
article a { color: #5b43b0; text-decoration: underline; text-decoration-color: rgba(91,67,176,.35); text-underline-offset: 3px; }
article a:hover { text-decoration-color: currentColor; }
article strong, article b { font-weight: 500; background: linear-gradient(transparent 62%, rgba(200,169,107,.32) 62%); }
article ul, article ol { margin-top: 1em; padding-left: 1.3em; }
article li { margin-top: .45em; }
article li::marker { color: var(--gold-d); }
sup a { font-size: 12px; text-decoration: none !important; color: var(--gold-d) !important; padding: 0 1px; }
.tldr { margin-top: 0; padding: 26px 28px; background: #fff; border: 1px solid var(--line-l); border-radius: 14px; }
.tldr h2 { all: unset; display: block; font: 500 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-d); }
.tldr ul { margin-top: 14px; }
.note { margin-top: 1.6em; padding: 18px 22px; border-left: 2px solid var(--gold); background: rgba(200,169,107,.09); font-size: 15.5px; border-radius: 0 10px 10px 0; }
.note b:first-child { background: none; color: var(--gold-d); letter-spacing: .06em; }
.warn { border-left-color: #b4553f; background: rgba(180,85,63,.07); }
.warn b:first-child { color: #9c4632; }
.toc { margin-top: 28px; padding: 22px 26px; border: 1px solid var(--line-l); border-radius: 14px; font-size: 15px; }
.toc b { background: none; font: 500 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-d); }
.toc ol { margin-top: 10px; columns: 2; column-gap: 32px; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: #5b43b0; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* 표 */
.tbl { margin-top: 1.5em; overflow-x: auto; border: 1px solid var(--line-l); border-radius: 12px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 460px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-l); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 500; font-size: 12px; letter-spacing: .12em; color: var(--ink-2); background: var(--paper); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
caption { caption-side: bottom; padding: 10px 16px 12px; font-size: 13px; color: var(--ink-2); text-align: left; border-top: 1px solid var(--line-l); }

/* 첨부 그림(스레드 카드) */
figure.card { margin: 2em auto 0; width: min(420px, 100%); }
figure.card img { border-radius: 14px; border: 1px solid var(--line-l); box-shadow: 0 14px 34px rgba(23,22,26,.08); }
figure.card figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-2); text-align: center; }

/* 순서 */
.steps { list-style: none; padding: 0; margin-top: 1.6em; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 58px; border-top: 1px solid var(--line-l); margin: 0; }
.steps li:last-child { border-bottom: 1px solid var(--line-l); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 18px; font: 500 15px/1.6 var(--display); letter-spacing: .14em; color: var(--gold-d); }
.steps b { background: none; display: block; font: 500 18px/1.5 var(--serif); }
.steps span { color: var(--ink-2); font-size: 15.5px; }

/* 출처 */
.sources { margin-top: 1.4em; padding: 0; list-style: none; counter-reset: src; font-size: 14.5px; }
.sources li { counter-increment: src; position: relative; padding: 12px 0 12px 44px; border-top: 1px solid var(--line-l); margin: 0; scroll-margin-top: 20px; }
.sources li::before { content: "[" counter(src) "]"; position: absolute; left: 0; color: var(--gold-d); font-variant-numeric: tabular-nums; }
.sources li:target { background: rgba(200,169,107,.14); }
.sources small { display: block; color: var(--ink-2); font-size: 13px; }

/* 끝 소개 */
.outro { margin-top: 56px; background: var(--onyx); color: var(--ivory); border-radius: 18px; padding: clamp(28px, 5vw, 44px); display: grid; gap: 14px; }
.outro h2 { all: unset; display: block; font: 500 26px/1.4 var(--serif); }
.outro p { margin: 0; color: var(--mist-2); font-size: 16px; }
.outro a.btn { justify-self: start; margin-top: 8px; padding: 12px 24px; border: 1px solid rgba(243,239,231,.3); border-radius: 999px; color: var(--ivory); text-decoration: none; font-size: 14px; letter-spacing: .06em; transition: border-color .3s; }
.outro a.btn:hover { border-color: var(--gold); }

/* 글 목록 */
.list { padding: clamp(40px, 6vw, 72px) 0; display: grid; gap: 22px; }
.post { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; padding: 22px; background: #fff; border: 1px solid var(--line-l); border-radius: 16px; text-decoration: none; transition: border-color .3s, transform .3s; }
.post:hover { border-color: var(--gold); transform: translateY(-2px); }
.post img { border-radius: 10px; aspect-ratio: 1200/630; object-fit: cover; }
.post time { font-size: 12px; letter-spacing: .2em; color: var(--gold-d); }
.post h2 { font: 500 23px/1.45 var(--serif); margin-top: 8px; }
.post p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 720px) { .post { grid-template-columns: 1fr; } }

footer { margin-top: 64px; background: var(--onyx); color: var(--mist); font-size: 13px; padding: 40px 0; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ivory); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
