/* ─────────────────────────────────────────────────
   Kangmin Lee – Academic Homepage Stylesheet
   Based on whwjdqls.github.io template
───────────────────────────────────────────────── */

:root {
  --bg:           #fdfcfa;
  --bg-soft:      #f4f1ec;
  --text:         #1a1a1a;
  --text-muted:   #6b7280;
  --border:       #e3dfd7;
  --accent:       #1a56a0;          /* deep blue */
  --accent-hover: #c0392b;          /* warm red on hover */
  --accent-soft:  rgba(26, 86, 160, 0.08);
  --code-font:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ui-font:      'Inter', Verdana, Helvetica, sans-serif;
  --display-font: 'Crimson Pro', 'Times New Roman', Georgia, serif;
}

/* ── Base ── */
html, body {
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:focus,
a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

body, td, th, tr, p, a {
  font-family: var(--ui-font);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}

strong {
  font-family: var(--ui-font);
  font-size: 14.5px;
  font-weight: 600;
}

/* ── Headings ── */
h2 {
  margin: 0 0 14px 0;
  font-weight: 600;
  font-family: var(--display-font);
  font-size: 26px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Name ── */
.name {
  padding-top: 20px;
  margin: 0;
  font-family: var(--display-font);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.1;
}

/* ── Paper title ── */
.papertitle {
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}

em {
  color: var(--text-muted);
  font-style: italic;
}

/* ── Section dividers ── */
.section-wrap {
  border-top: 1px solid var(--border);
  margin-top: 12px !important;
}

/* ── Paper rows ── */
.paper-row td {
  transition: background 0.15s ease;
  border-radius: 6px;
}
.paper-row:hover td {
  background: var(--bg-soft);
}

/* Highlight paper — soft red wash + left bar */
.paper-row--highlight td {
  background: linear-gradient(to right, rgba(192, 57, 43, 0.05), transparent 55%);
}
.paper-row--highlight td:first-child {
  box-shadow: inset 3px 0 0 var(--accent-hover);
}
.paper-row--highlight:hover td {
  background: linear-gradient(to right, rgba(192, 57, 43, 0.09), var(--bg-soft) 55%);
}

/* ── Venue badges ── */
.venue-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-family: var(--ui-font);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.7;
  vertical-align: middle;
  margin-top: 4px;
  margin-right: 4px;
  white-space: nowrap;
}
.venue-badge--preprint {
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.venue-badge--accepted {
  background: var(--accent-soft);
  color: var(--accent);
}
.venue-badge--highlight {
  background: rgba(192, 57, 43, 0.10);
  color: var(--accent-hover);
}

/* ── Image hover overlay (Jon Barron style) ── */
.one {
  width: 160px;
  height: 160px;
  position: relative;
}
.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}
.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

/* ── Paper image ── */
.paper-img {
  max-width: 160px;
  height: auto;
  object-fit: contain;
}

/* ── Misc ── */
span.highlight {
  background-color: #ffffd0;
}

.colored-box {
  color: black;
  padding: 20px;
  display: inline-block;
  border-radius: 10px;
}