/* NexBridge Alpha Insights — reading pages (Korean). Brand colours follow the homepage (black / ivory / gold). */
:root {
  --ink: #1A1A1A;
  --ink-2: #4A4A4A;
  --muted: #6B6B6B;
  --paper: #FBF9F4;
  --panel: #F3EEE3;
  --line: #E4DCCB;
  --gold: #A8833F;        /* darker than the homepage gold so links pass contrast on ivory */
  --gold-lt: #C9A96E;
  --black: #0A0A0A;
  --ivory: #F5F0E8;
  --measure: 720px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 17px; line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2 { font-family: 'Noto Serif KR', serif; color: var(--black); line-height: 1.4; }

/* header / footer */
header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 32px; background: var(--black); color: var(--ivory);
  border-bottom: 1px solid rgba(201,169,110,.25);
}
header.site .brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; }
header.site .brand span { display: flex; flex-direction: column; line-height: 1.1; }
header.site .brand b { font-family: Inter, 'Noto Sans KR', sans-serif; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
header.site .brand i { font-size: 12px; color: var(--gold-lt); letter-spacing: .06em; }
header.site nav { display: flex; gap: 22px; flex-wrap: wrap; }
header.site nav a { color: rgba(245,240,232,.75); text-decoration: none; font-size: 14px; }
header.site nav a:hover { color: var(--gold-lt); }
footer.site { margin-top: 72px; padding: 32px; background: var(--black); color: rgba(245,240,232,.7); font-size: 13px; line-height: 1.7; }
footer.site p { max-width: 960px; margin: 0 auto 6px; }
footer.site a { color: var(--gold-lt); }

main { max-width: var(--measure); margin: 0 auto; padding: 40px 20px 0; }
main.index { max-width: 880px; }

/* article */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
article h1 { font-size: clamp(26px, 4.2vw, 34px); margin: 0 0 12px; }
.byline { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.byline a { color: var(--ink-2); }
article h2 { font-size: 21px; margin: 40px 0 10px; }
.body p, .summary p { margin: 0 0 18px; }
.summary { background: var(--panel); border-left: 3px solid var(--gold); padding: 18px 22px 4px; margin: 0 0 28px; }
.summary h2, .facts h2 { font-family: 'Noto Sans KR', sans-serif; font-size: 13px; letter-spacing: .08em; color: var(--gold); margin: 0 0 8px; }
.facts { margin: 0 0 32px; }
.facts table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.facts th { width: 28%; color: var(--ink-2); font-weight: 500; background: rgba(243,238,227,.6); }
.facts .note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
figure { margin: 0 0 32px; }
figure img { width: 100%; height: auto; display: block; border: 1px solid var(--line); background: #fff; }
.linkcard a { display: block; padding: 12px 16px; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.sources ul, .history ul, .related ul { padding-left: 20px; margin: 0; }
.sources li, .history li, .related li { margin: 0 0 8px; }
.sources li span { font-size: 13px; color: var(--muted); margin-left: 4px; }
.history { font-size: 15px; color: var(--ink-2); }
.author { display: flex; gap: 18px; margin: 44px 0 20px; padding: 20px; border: 1px solid var(--line); background: #fff; }
.author img { width: 72px; height: 108px; object-fit: cover; flex: none; }
.author p { margin: 0 0 6px; font-size: 15px; line-height: 1.7; }
.author .who a { font-weight: 700; color: var(--black); text-decoration: none; }
.author .who span { color: var(--muted); font-size: 13px; margin-left: 6px; }
.disclaimer { font-size: 13px; color: var(--muted); line-height: 1.7; }
.related { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--line); }
.related h2 { font-size: 19px; }

/* index */
.intro h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 12px; }
.intro p { color: var(--ink-2); margin: 0 0 10px; }
.intro .byline { margin-top: 8px; }
.index h2 { font-size: 22px; margin: 44px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cards li { background: #fff; border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; }
.cards a { font-family: 'Noto Serif KR', serif; font-weight: 600; color: var(--black); text-decoration: none; line-height: 1.5; font-size: 17px; }
.cards a:hover { color: var(--gold); }
.cards p { font-size: 14px; color: var(--ink-2); line-height: 1.7; margin: 10px 0; flex: 1; }
.cards span, .list span { font-size: 13px; color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; }
.toc a { font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink-2); }
.toc a:hover { border-color: var(--gold); color: var(--gold); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.list li a { color: var(--ink); text-decoration: none; }
.list li a:hover { color: var(--gold); }
.list li span { flex: none; }

/* author page */
.author-head { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 12px; }
.author-head img { width: 180px; height: auto; display: block; border: 1px solid var(--line); }
.author-head h1 { margin: 0 0 6px; font-size: 34px; }
.author-head h1 span { font-family: 'Noto Sans KR', sans-serif; font-size: 16px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.author-head .role { color: var(--ink-2); margin: 0 0 12px; }
.creds { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.creds li { font-size: 13px; padding: 3px 10px; border: 1px solid var(--gold-lt); color: var(--ink-2); }
.author-page h2 { font-size: 21px; margin: 36px 0 10px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  header.site { padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  header.site nav { gap: 16px; }
  main { padding: 28px 16px 0; }
  .facts th { width: 34%; }
  .list li { flex-direction: column; gap: 2px; }
  .author-head { flex-direction: column; }
  .author-head img { width: 140px; }
  footer.site { padding: 24px 16px; }
}
