/* A common reading scale for the existing prototype layouts. */
@font-face {
  font-family: "Pretendard Variable";
  src: url("assets/fonts/PretendardVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --font: "Pretendard Variable", "Malgun Gothic", "Segoe UI", sans-serif;
  --ink: #192a31;
  --muted: #4d6166;
  --accent: #37666b;
  --line: #cdd7d1;
}

body { font-size: 16px; line-height: 1.75; letter-spacing: -.005em; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; }
button, input, select { line-height: 1.6; }
button { letter-spacing: inherit; }
input::placeholder { color: var(--muted); opacity: 1; }
nav a { font-size: 15px; font-weight: 500; color: var(--muted); }
nav a.active { font-weight: 650; }
.brand { font-weight: 750; }
.brand-caption { font-size: 10px; letter-spacing: .07em; }
.motion-control { width: 36px; height: 36px; }
.motion-control > span:first-child { font-size: 16px; }
.page-heading h1 { font-size: 44px; font-weight: 550; letter-spacing: -.025em; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.section-top h2 { font-size: 29px; font-weight: 550; }
.round-link, .text-link { font-size: 14px; font-weight: 500; }
.quiet-button { font-size: 13px; }
.small-note, .site-footer { font-size: 12px; line-height: 1.8; }
.tag { font-size: 12px; line-height: 1.6; padding: 4px 10px; }
.area-pill { font-size: 14px; }
.minimal-home .hero-copy h1 { font-weight: 550; letter-spacing: -.035em; }
.home-hero.minimal-home { min-height: calc(100svh - 176px); }
.minimal-home .hero-description { font-size: 16px; line-height: 1.9; }

/* People: names lead, with readable affiliations and research descriptions. */
.faculty-info h2 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.faculty-info .name-en { font-family: var(--font); font-style: normal; font-size: 20px; font-weight: 450; letter-spacing: 0; }
.faculty-info p { font-size: 15px; line-height: 1.85; }
.faculty-profile { gap: 34px; }
.faculty-profile > .round-link { font-size: 14px; }
.member-card h3 { font-size: 21px; font-weight: 600; }
.member-card .name-en { font-size: 14px; line-height: 1.6; margin: 4px 0 8px; }
.member-card p { font-size: 14px; line-height: 1.75; }
.member-card .member-link { font-size: 13px; font-weight: 500; }
.segmented button { font-size: 14px; padding: 8px 16px; min-width: 68px; }
.alumni-row { padding: 25px 0; }
.alumni-row h3 { font-size: 19px; font-weight: 600; }
.degree-label { font-size: 12px; font-weight: 500; letter-spacing: 0; }
.alumni-row p { font-size: 14px; line-height: 1.75; }
.alumni-row .thesis-preview {
  font-size: 14px; color: var(--muted); line-height: 1.8;
  max-width: none; white-space: normal; text-overflow: clip;
  overflow: visible; word-break: keep-all; overflow-wrap: anywhere;
  margin-top: 9px;
}

/* Publications: keep titles, authors, venues and controls legible. */
.topic-orbit { font-size: 13px; font-weight: 500; gap: 12px; line-height: 1.4; }
.topic-circle { width: 60px; height: 60px; }
.topic-circle .count { font-size: 17px; font-weight: 550; letter-spacing: 0; }
.topic-orbits::before { top: 55px; }
.archive-toolbar { gap: 22px; padding: 18px 0; }
.search-field input { font-size: 16px; padding: 8px 0; }
.search-field kbd { font-size: 12px; }
.select-field { font-size: 11px; font-weight: 600; letter-spacing: .07em; }
.select-field select { font-size: 14px; font-weight: 400; }
.archive-summary { font-size: 14px; }
.year-rail { gap: 10px; }
.year-rail button { font-size: 14px; }
.paper-year-heading { font-family: var(--font); font-size: 30px; font-weight: 550; letter-spacing: -.02em; }
.paper-row { padding: 27px 10px 27px 0; }
.paper-row h3 { font-size: 19px; line-height: 1.6; font-weight: 600; letter-spacing: -.015em; max-width: none; margin: 8px 0 10px; word-break: keep-all; overflow-wrap: anywhere; }
.paper-number { font-family: var(--font); font-size: 13px; color: var(--muted); }
.paper-topic { font-size: 12px; line-height: 1.6; letter-spacing: 0; font-weight: 500; color: var(--muted); flex-wrap: wrap; gap: 6px; }
.paper-topic::before { width: 6px; height: 6px; flex: none; }
.paper-meta { font-size: 14px; line-height: 1.85; }
.load-more { font-size: 14px; }

/* Detail panels use the same scale as the page they came from. */
dialog { width: min(640px,100vw); }
#dialog-title { font-size: 28px; line-height: 1.5; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.dialog-author { font-size: 15px; line-height: 1.8; }
.detail-label { font-size: 12px; font-weight: 550; letter-spacing: .09em; }
.detail-value { font-size: 16px; line-height: 1.85; }
.detail-links a, .detail-links button { font-size: 14px; }
.related-paper { font-size: 16px; line-height: 1.75; padding: 18px 0; word-break: keep-all; overflow-wrap: anywhere; }
.related-paper span { font-size: 13px; }
.copy-feedback { font-size: 14px; }
.research-topic-list button { font-size: 16px; }
.research-topic-list button span:last-child { font-size: 14px; }
.topic-connection { font-size: 14px; }
.contact-panel h2 { font-size: 36px; font-weight: 550; }
.contact-panel p { font-size: 16px; }
.contact-panel .round-link { font-size: 17px; }

/* Keep the orbit labels stable; change their typography only. */
#view-about .page-heading h1 { font-size: 30px; font-weight: 550; }
#view-about .map-node text { stroke: var(--bg); stroke-width: 5px; }
#view-about .area-node .map-label { font-size: 16px; font-weight: 600; }
#view-about .topic-node .map-label { font-size: 13px; font-weight: 500; fill: #334e56; }
#view-about .map-summary { font-size: 12px; color: var(--muted); }
#view-about .map-caption { font-size: 12px; color: var(--muted); }
#view-about .map-controls { bottom: 50px; }
#view-about .map-controls button { width: 36px; height: 34px; font-size: 18px; }
#view-about .map-paper-preview span { font-size: 12px; }
#view-about .map-paper-preview p { font-size: 15px; }

@media (max-width: 1050px) and (min-width: 761px) {
  .faculty-profile { grid-template-columns: 155px 1fr; gap: 25px; }
  .faculty-info .name-en { display: block; margin: 4px 0 9px; }
  .current-people { gap: 24px; }
}

@media (max-width: 760px) {
  nav { gap: 7px; }
  nav a { font-size: 13px; }
  .brand-caption { font-size: 8px; }
  .page-heading h1 { font-size: 34px; }
  .page-heading { align-items: flex-start; }
  .section-top h2 { font-size: 26px; }
  .minimal-home .hero-description { font-size: 14px; }
  .home-hero.minimal-home { min-height: calc(100svh - 202px); }
  .minimal-home .hero-copy h1 { font-size: clamp(30px,7.6vw,44px); }
  .faculty-profile { grid-template-columns: 86px minmax(0,1fr); gap: 18px; }
  .faculty-info h2 { font-size: 25px; }
  .faculty-info .name-en { font-size: 17px; display: block; margin: 4px 0 10px; }
  .faculty-info p { font-size: 14px; }
  .faculty-profile > .round-link { grid-column: 2; margin-top: 2px; }
  .faculty-info .tag-list { margin-top: 14px; }
  .tag { font-size: 11px; }
  .current-people { gap: 30px 24px; }
  .member-card h3 { font-size: 20px; }
  .member-card .name-en, .member-card p { font-size: 13px; }
  .alumni-row h3 { font-size: 18px; }
  .alumni-row .thesis-preview { font-size: 14px; }
  .alumni-toolbar { gap: 20px; }
  .archive-toolbar { gap: 12px 20px; }
  .archive-summary { gap: 16px; align-items: flex-start; font-size: 13px; }
  .archive-summary .quiet-button { flex: none; }
  .topic-orbit { font-size: 12px; }
  .topic-circle { width: 49px; height: 49px; }
  .topic-circle .count { font-size: 16px; }
  .paper-row { grid-template-columns: 24px minmax(0,1fr) 17px; padding: 23px 0; }
  .paper-row h3 { font-size: 17px; }
  .paper-meta { font-size: 13px; }
  .paper-topic { font-size: 11px; }
  .paper-number { font-size: 12px; }
  .site-footer { font-size: 11px; }
  dialog { padding: 65px 24px 30px; }
  #dialog-title { font-size: 24px; }
  .detail-value, .related-paper { font-size: 15px; }
  #view-about .page-heading h1 { font-size: 26px; }
  #view-about .orbit-stage { height: calc(100svh - 128px); }
  #view-about .map-summary { font-size: 11px; }
  #view-about .map-caption { font-size: 10px; }
  #view-about .area-node .map-label { font-size: 12px; }
  #view-about .topic-node .map-label { font-size: 11px; }
  #view-about .map-node text { stroke-width: 4px; }
}
