/* ==========================================================
   사이버 보안 연구실 — 학술 미니멀 스타일
   흰 배경 · 검정 텍스트 · 파랑 링크 · 네이비 히어로 (홈)
   색상/폰트/간격은 아래 :root 변수와 각 섹션에서 조정
   ========================================================== */

:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --link: #0b5bd3;
  --rule: #e5e5e7;
  --navy: #27348B; /* 히어로 배경 = RGB 39, 52, 139 */
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* 짧은 페이지(Members 등)에서 스크롤바가 사라지며 중앙 레이아웃이
     좌우로 밀리지 않도록, 스크롤바 자리를 항상 예약 */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
  word-break: keep-all;
}

.container {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- 헤더 ---- */

.site-header .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 20px;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav { display: inline-flex; gap: 26px; }

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.02rem;
}

.nav a:hover { color: var(--link); }
.nav a.current { font-weight: 700; }

/* ---- 홈 히어로 ---- */

.hero {
  background: var(--navy);
  color: #fff;
  padding: 104px 0 128px;
}

.hero-uni {
  font-size: 1.9rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.3;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 4px 0 0;
}

.hero-intro {
  margin: 64px 0 0;
  font-family: var(--mono);
  font-size: 1.02rem;
  line-height: 2;
  max-width: 40em;
}

.hero a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---- 본문 공통 ---- */

main { min-height: 55vh; }

h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; margin: 40px 0 16px; }
h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; margin: 56px 0 12px; }
h3 { font-size: 1.1rem;  font-weight: 700; margin: 32px 0 6px; }

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin: 4px 0; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

strong { font-weight: 700; }

.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

.muted { color: var(--muted); }

.load-error {
  color: var(--muted);
  border: 1px dashed var(--rule);
  border-radius: 6px;
  padding: 12px 16px;
}

figure { margin: 32px 0; text-align: center; }
figure img { max-width: 100%; height: auto; }
figcaption { color: var(--muted); font-size: 0.9rem; font-style: italic; margin-top: 8px; }

/* ---- 뉴스 ---- */

.news { list-style: none; padding: 0; }

.news li {
  display: flex;
  gap: 16px;
  margin: 10px 0;
}

.news .date {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--muted);
  padding-top: 3px;
}

/* ---- 구성원 ---- */

.member { margin: 24px 0 32px; }

.member .name { font-size: 1.15rem; font-weight: 700; margin: 0; }
.member .name .en { font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.member .role { color: var(--muted); margin: 2px 0 4px; }
.member .contact { font-family: var(--mono); font-size: 0.92rem; margin: 0 0 4px; }
.member .links { font-size: 0.95rem; margin: 4px 0 0; }
.member .links a { margin-right: 10px; }

.recruit { margin-top: 44px; }

/* ---- 논문 ---- */

.pub { margin: 0 0 24px; }

.pub .venue {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.pub .title { font-weight: 700; margin: 1px 0; }
.pub .authors { font-size: 0.95rem; color: var(--muted); }

/* ---- 수상 · 과제 ---- */

.rows { list-style: none; padding: 0; }

.rows li {
  display: flex;
  gap: 16px;
  margin: 10px 0;
}

.rows .year {
  flex: 0 0 3.2em;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--muted);
  padding-top: 3px;
}

.rows .what .note { color: var(--muted); }

.proj { margin: 0 0 18px; }
.proj .title { font-weight: 700; }
.proj .meta { font-size: 0.92rem; color: var(--muted); }

/* ---- 연락처 ---- */

.contact-list { list-style: none; padding: 0; }
.contact-list li { margin: 6px 0; }
.contact-list .k {
  display: inline-block;
  width: 4.5em;
  color: var(--muted);
}

/* ---- 푸터 ---- */

.footer { margin-top: 80px; }

.footer .container {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---- 반응형 ---- */

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .nav { gap: 18px; }
  .hero { padding: 64px 0 88px; }
  .hero-uni { font-size: 1.4rem; }
  .hero-title { font-size: 2.4rem; }
  .hero-intro { margin-top: 44px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; margin-top: 44px; }
  .news li, .rows li { flex-direction: column; gap: 0; }
}
