/* 과학쌤과학사 공용 스킨 — 어두운 박물관 + 청동/금 포인트 (폰트는 OFL만) */
:root {
  --bg: #14110c;
  --bg-2: #1c1811;
  --line: #3a3226;
  --gold: #c9a24a;
  --gold-d: #8a5a2b;
  --text: #f1e9d8;
  --muted: #a89d88;
  --tile-bg: #2a2620;
  --tile-text: #9a9184;
  --holo: #3dd6ff;
  --f-title: 'Black Han Sans', sans-serif;
  --f-body: 'Noto Sans KR', sans-serif;
  --gutter: 16px;
  --maxw: 1180px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  background-image: radial-gradient(ellipse at 50% -10%, rgba(201,162,74,.16), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gold); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* 상단바 */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(20,17,12,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; }
.topbar .brand { font-family: var(--f-title); font-weight: 400; font-size: 20px; color: var(--gold); text-decoration: none; letter-spacing: .5px; white-space: nowrap; }
.topbar .credit { font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.topbar .credit:hover { color: var(--gold); }

main { flex: 1; }
h1, h2, h3 { font-family: var(--f-title); font-weight: 400; word-break: keep-all; }

.sec { padding-top: 36px; padding-bottom: 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(22px, 3.4vw, 28px); color: var(--text); }
.sec-head h2::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--gold); transform: rotate(45deg) translateY(-3px); }
.sec-head p { color: var(--muted); font-size: 14px; }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 40px var(--gutter) 28px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer a { color: var(--muted); }

.err { color: #f2a07b; background: #2b1a12; border: 1px solid #5a2f1d; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
