:root {
  --bg: #0A0E19;
  --surface: #121A2B;
  --surface-2: #172036;
  --line: #22304A;
  --text: #F2F4F8;
  --text-2: #C9D0DE;
  --muted: #8D97AD;
  --accent: #C6FF3D;
  --c-github: #C6FF3D;
  --c-huggingface: #FFD43B;
  --c-news: #6EE7FF;
  --c-gamedev: #FF6B9A;
  --c-opensource: #A78BFA;
  --c-research: #FF9F43;
  --radius: 18px;
  --max: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Pretendard", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(10,14,25,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; font-size: 18px; }
.logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav { display: flex; gap: 20px; font-size: 15px; color: var(--text-2); }
.nav a:hover { color: var(--accent); }
.nav a.on { color: var(--accent); font-weight: 800; }

/* hub (/) */
.hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 50px; }
.hub-sec { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.hub-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hub-head a { font-weight: 900; font-size: 20px; }
.hub-head .date { color: var(--muted); font-size: 13px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--accent); color: #0A0E19; font-size: 13px; font-weight: 800; vertical-align: 2px; }
.hub-items { display: grid; gap: 8px; }
.hub-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; font-size: 15px; font-weight: 600; color: var(--text-2); }
.hub-item:hover { color: var(--text); }
.hub-item img, .hub-item .ph { width: 72px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.hub-deep { font-size: 13px; color: var(--accent); font-weight: 700; }
.hub-sec .btn { align-self: flex-start; margin-top: auto; }
.soon { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
.disclaimer { margin: 0 0 22px; padding: 12px 16px; border-radius: 12px; font-size: 14px; color: var(--text-2);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.article .disclaimer { margin-top: 18px; }
.notice.warn { color: var(--text-2); }
@media (max-width: 760px) { .hub { grid-template-columns: 1fr; } }

/* hero */
.hero { padding-top: 56px; padding-bottom: 32px; }
.kicker { color: var(--accent); font-weight: 700; letter-spacing: .12em; font-size: 13px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.12; font-weight: 900; letter-spacing: -.03em; margin-top: 10px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .date { color: var(--muted); margin-top: 12px; font-size: 16px; }
.hero .lead { color: var(--text-2); margin-top: 14px; font-size: 17px; max-width: 680px; }

/* chips */
.chip { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: var(--c); border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
/* 기본 강조색 = 섹션 색 (카테고리 색이 있으면 아래에서 덮어씀) */
.item, .article, .chip, .point, .summary { --c: var(--accent); }
.cat-github { --c: var(--c-github); } .cat-huggingface { --c: var(--c-huggingface); } .cat-news { --c: var(--c-news); }
.cat-gamedev { --c: var(--c-gamedev); } .cat-opensource { --c: var(--c-opensource); } .cat-research { --c: var(--c-research); }

/* briefing list */
.items { display: grid; gap: 22px; padding-bottom: 40px; }
.item { display: grid; grid-template-columns: 380px 1fr; gap: 26px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; }
.item .media { position: relative; background: var(--surface-2); min-height: 220px; overflow: hidden; }
/* 이미지 전체가 보이도록 contain + 같은 이미지를 흐리게 깐 배경 */
.item .media::before { content: ""; position: absolute; inset: -20px; background: var(--img) center/cover; filter: blur(18px) brightness(.55); }
.item .media img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.item .media.solid::before { display: none; }
.credit { position: absolute; right: 8px; bottom: 8px; font-size: 11px; color: var(--text-2); background: rgba(10,14,25,.78); padding: 3px 8px; border-radius: 6px; }
.item .body { padding: 24px 26px 24px 0; display: flex; flex-direction: column; gap: 12px; }
.item .num { color: var(--muted); font-weight: 800; font-size: 14px; }
.item h2 { font-size: 24px; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; }
.item ul { list-style: none; display: grid; gap: 6px; color: var(--text-2); font-size: 15.5px; }
.item li { position: relative; padding-left: 18px; }
.item li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.why { background: color-mix(in srgb, var(--c) 8%, var(--surface-2)); border-left: 4px solid var(--c); padding: 10px 14px; border-radius: 10px; font-size: 15px; color: var(--text-2); }
.why b { color: var(--c); margin-right: 6px; }
.item .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; font-size: 14px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: #0A0E19; border-color: var(--accent); }
.src { color: var(--muted); }

/* card gallery */
.section-title { font-size: 20px; font-weight: 800; margin: 18px 0 14px; }
.gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.gallery img { width: 260px; flex: none; border-radius: 14px; border: 1px solid var(--line); scroll-snap-align: start; aspect-ratio: 4/5; object-fit: cover; }

/* article (deep dive) */
.article { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.article .cover { border-radius: var(--radius); overflow: hidden; position: relative; margin: 22px 0 8px; border: 1px solid var(--line); background: var(--surface-2); }
.article h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.2; font-weight: 900; letter-spacing: -.03em; margin-top: 14px; }
.article .hook { font-size: 19px; color: var(--text-2); margin-top: 12px; }
.article .series { color: var(--muted); font-size: 14px; margin-left: 8px; }
.point { margin-top: 44px; }
.point .label { color: var(--c); font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.point .label span { font-size: 28px; margin-right: 8px; }
.point h2 { font-size: 26px; line-height: 1.3; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
.point p, .point li { font-size: 17px; color: var(--text-2); }
.point p { margin-top: 12px; }
.point strong { color: var(--text); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--c) 35%, transparent) 62%); }
.point ul { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.point li { position: relative; padding-left: 20px; }
.point li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.point figure { margin-top: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--surface-2); }
.point figure img { width: 100%; }
.point figcaption, .article .cover figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.fact { display: flex; gap: 16px; align-items: baseline; margin-top: 16px; padding: 14px 18px; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.fact .v { font-size: 30px; font-weight: 900; color: var(--c); white-space: nowrap; }
.fact .l { color: var(--text-2); font-size: 15px; white-space: pre-line; }
.summary { margin-top: 48px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.summary h2 { font-size: 22px; font-weight: 900; }
.summary h2 em { font-style: normal; color: var(--c); }
.summary ol { margin: 14px 0 0 20px; display: grid; gap: 8px; color: var(--text-2); font-size: 16.5px; }
.source-box { margin-top: 20px; font-size: 15px; color: var(--muted); }
.source-box a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.back { display: inline-block; margin-top: 36px; color: var(--muted); font-size: 15px; }
.back:hover { color: var(--accent); }

/* archive */
.archive { display: grid; gap: 14px; padding: 10px 0 60px; }
.day { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.day .d { font-weight: 800; color: var(--accent); }
.day ul { list-style: none; display: grid; gap: 4px; color: var(--text-2); font-size: 15px; }
.day a:hover { color: var(--accent); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.notice { font-size: 13px; color: var(--muted); margin-top: 10px; }

@media (max-width: 760px) {
  .item { grid-template-columns: 1fr; gap: 0; }
  .item .media { min-height: 0; aspect-ratio: 16/9; }
  .item .body { padding: 18px; }
  .nav { gap: 14px; font-size: 14px; }
  .day { grid-template-columns: 1fr; gap: 8px; }
  .gallery img { width: 210px; }
}

/* 자체 홍보 (웹사이트 전용): 모든 화면에서 하단 고정 바 */
.promo-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(18,26,43,.95); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); font-size: 13px; }
.pb-in { max-width: var(--max); margin: 0 auto; height: 52px; padding: 0 16px; display: flex; align-items: center; gap: 14px; }
body.has-promo-bar { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
.pb-label { flex: none; font-size: 11px; font-weight: 700; color: var(--muted); }
.pb-items { flex: 1; min-width: 0; display: flex; gap: 12px; }
.pb-item { display: none; flex: 1; min-width: 0; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 10px; }
.pb-item.on { display: flex; }
.pb-item:hover { background: var(--surface-2); }
.pb-item img, .pb-item .ph { width: 32px; height: 32px; flex: none; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.pb-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pb-txt b, .pb-txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-txt span { font-size: 12px; color: var(--muted); }
.pb-cta { flex: none; margin-left: auto; padding: 5px 12px; border-radius: 8px; background: var(--accent); color: #0A0E19; font-weight: 800; font-size: 12px; }
@media (min-width: 760px) { .pb-item { display: flex; } }
@media (max-width: 480px) { .pb-label { display: none; } }
