/* Sungyoun Chung - academic website. Plain HTML + CSS, no build step (GitHub Pages serves it as is). */
:root {
  --ink: #1d2328;
  --muted: #5b6670;
  --accent: #176996;        /* same blue as the CV paper titles */
  --accent-soft: #e8f1f7;
  --rule: #d9dee3;
  --bg: #ffffff;
  --max: 860px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* top navigation */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--rule);
}
nav .inner {
  max-width: var(--max); margin: 0 auto; padding: 0.7rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
nav .brand { font-variant: small-caps; font-size: 1.15rem; letter-spacing: 0.04em; color: var(--ink); }
nav .links a { margin-left: 1.1rem; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.92rem; color: var(--muted); }
nav .links a:hover { color: var(--accent); text-decoration: none; }

main { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem 3rem; }
section { padding-top: 2.2rem; }
h2 {
  font-variant: small-caps; font-weight: 400; font-size: 1.45rem; letter-spacing: 0.03em;
  margin: 0 0 0.9rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--ink);
}
h3 { font-size: 1.05rem; margin: 1.3rem 0 0.3rem; }

/* hero */
.hero { display: flex; gap: 2rem; align-items: center; padding-top: 2.6rem; flex-wrap: wrap; }
.photo {
  width: 200px; height: 250px; border-radius: 8px; object-fit: cover; flex: 0 0 auto;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-variant: small-caps; color: var(--accent);
}
.hero h1 { font-variant: small-caps; font-weight: 400; font-size: 2.4rem; margin: 0; letter-spacing: 0.02em; }
.hero .title { margin: 0.2rem 0 0.6rem; color: var(--muted); }
.badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: 0.15rem 0.8rem; font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.85rem; font-weight: 600;
}
.hero .contact { margin-top: 0.6rem; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.93rem; }
.hero .contact a { margin-right: 1rem; }

/* papers */
.paper { margin: 0 0 1.4rem; }
.paper .ptitle { font-weight: 700; color: var(--accent); }
.paper .meta { color: var(--muted); font-style: italic; font-size: 0.95rem; }
.paper .links a {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.85rem;
  border: 1px solid var(--accent); border-radius: 4px; padding: 0.05rem 0.5rem; margin-right: 0.4rem;
}
.paper .links a:hover { background: var(--accent); color: #fff; text-decoration: none; }
details { margin-top: 0.35rem; }
details summary { cursor: pointer; color: var(--muted); font-size: 0.92rem; }
details p { font-size: 0.95rem; margin: 0.4rem 0 0; }
.jmp { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 0.9rem 1.1rem; border-radius: 4px; }
.jmp .label {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin: 0.25rem 0; }
.row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.row .when { color: var(--muted); white-space: nowrap; text-align: right; }
.row .notes { font-size: 0.9rem; color: var(--muted); font-style: italic; }

footer {
  max-width: var(--max); margin: 0 auto; padding: 1.2rem 1.25rem 2.5rem;
  border-top: 1px solid var(--rule); color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.85rem;
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { gap: 1.2rem; }
  .photo { width: 140px; height: 175px; font-size: 2.2rem; }
  .hero h1 { font-size: 1.9rem; }
  nav .links a { margin-left: 0.7rem; }
}
