@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
}

/*
 * Yoonsik Park — a quiet, content-first academic homepage.
 * Change the tokens below to adjust the entire visual system.
 * All content is readable without JavaScript or web fonts.
 */
:root {
  --bg: #f7f7f5;
  --surface: #fdfdfc;
  --text: #242622;
  --text-soft: #4d514a;
  --muted: #65695f;
  --line: #dedfd9;
  --line-dark: #c3c6bc;
  --ink: #292d27;
  --subtle: #eeefe9;
  --radius: 16px;
  --site-width: 1060px;
  --header-height: 76px;
  --ease: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 28px); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Source Sans 3", Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button, summary { cursor: pointer; }
button { background: none; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--text); }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
p { margin: 0; }
strong { font-weight: 700; color: var(--text); }
[hidden] { display: none !important; }
::selection { background: #dce1d3; color: #20251b; }
:focus-visible { outline: 2px solid #3f5540; outline-offset: 5px; border-radius: 4px; }
main:focus { outline: none; }
.container { width: min(calc(100% - 80px), var(--site-width)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset: 14px auto auto 20px; z-index: 300; transform: translateY(-160%); padding: 10px 18px; border-radius: 8px; background: var(--ink); color: white; }
.skip-link:focus { transform: translateY(0); }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 247, 245, .95); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header-inner { min-height: var(--header-height); display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; font-size: 17px; font-weight: 600; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 3px; }
.site-nav a { padding: 10px 11px; font-size: 14px; color: var(--muted); border-radius: 7px; white-space: nowrap; transition: background var(--ease), color var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="location"] { color: var(--text); background: var(--subtle); }
.menu-toggle { border: 1px solid var(--line-dark); border-radius: 8px; padding: 9px 12px; min-height: 44px; gap: 8px; align-items: center; font-size: 14px; }
.menu-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

/* Intro: original portrait-led composition, tightened typography. */
.main-content { padding-top: 64px; padding-bottom: 90px; }
.about-section { padding-bottom: 58px; border-bottom: 1px solid var(--line-dark); }
.about-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 50px; align-items: start; }
.portrait-column { padding-top: 3px; }
.photo-frame { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: var(--subtle); }
.photo-frame picture { display: block; height: 100%; }
.profile-photo { width: 100%; height: 100%; object-fit: cover; object-position: 48% 46%; }
.eyebrow { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; line-height: 1.5; }
h1 { margin: 0 0 20px; font-size: 48px; line-height: 1.1; letter-spacing: -.025em; font-weight: 600; }
.about-copy { max-width: 66ch; color: var(--text-soft); }
.about-copy p + p { margin-top: 15px; }
.about-copy a, .news-body a, .entry-points a, .entry-organization a { text-decoration: underline; text-decoration-color: #aeb4a5; text-decoration-thickness: 1px; }
.about-copy a:hover, .news-body a:hover, .entry-points a:hover, .entry-organization a:hover { text-decoration-color: var(--text); }
.profile-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 17px; }
.contact-link { display: inline-flex; align-items: center; min-height: 40px; color: var(--text); font-size: 16px; text-decoration: underline; text-decoration-color: var(--line-dark); text-underline-offset: 5px; }
.contact-link:hover { text-decoration-color: var(--text); }
.profile-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; min-height: 44px; border: 1px solid var(--line-dark); border-radius: 8px; font-size: 14px; font-weight: 600; transition: border-color var(--ease), background var(--ease); }
.profile-link:hover { background: #e9ece3; border-color: #adb5a2; }
.profile-link-primary { background: var(--ink); border-color: var(--ink); color: white; }
.profile-link-primary:hover { background: #434a3c; border-color: #434a3c; }

/* Section rhythm */
.section { margin-top: 65px; }
.about-section + .section { margin-top: 43px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
h2 { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }

/* Publications: explicit groups, with conference and year in a quiet color badge. */
.publication-group + .publication-group { margin-top: 44px; }
.publication-group-title { margin: 0 0 17px; font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.publication-list { border-top: 1px solid var(--line); }
.publication-item { padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-height) + 28px); }
.publication-item.has-image { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: start; }
.paper-image { width: 100%; height: auto; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; }
.publication-content { min-width: 0; }
.publication-heading { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: start; gap: 14px 28px; }
.publication-title { margin: 0; font-size: 21px; line-height: 1.4; letter-spacing: -.01em; font-weight: 600; }
.venue-badge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; padding: 4px 10px; border: 1px solid var(--venue-border, #dce3eb); border-radius: 5px; background: var(--venue-bg, #eef2f6); color: var(--venue-text, #516172); font-size: 14px; line-height: 1.5; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.publication-authors { margin-top: 9px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.publication-authors strong { font-weight: 600; text-decoration: underline; text-decoration-color: #c6ccbd; text-underline-offset: 3px; }
.publication-distinction { margin-top: 6px; font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--text-soft); }
.publication-summary { max-width: 880px; margin-top: 9px; color: var(--text-soft); font-size: 17px; line-height: 1.6; }
.publication-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 18px; margin-top: 9px; }
.paper-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 5px 0; color: var(--text-soft); font-size: 15px; line-height: 1.55; font-weight: 400; list-style: none; text-decoration: underline; text-decoration-color: var(--line-dark); text-underline-offset: 5px; }
.paper-link:hover { color: var(--text); text-decoration-color: var(--text); }
summary.paper-link::-webkit-details-marker { display: none; }
.paper-link svg, .news-archive svg { fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform var(--ease); }
.citation-details[open] { width: 100%; }
.citation-details[open] summary svg { transform: rotate(180deg); }
.citation-panel { margin-top: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); overflow: hidden; }
.citation-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.copy-button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--text); font-size: 14px; }
.copy-button svg { width: 15px; height: 15px; }
.citation-panel pre { margin: 0; padding: 16px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.65; color: var(--text-soft); }

/* News */
.news-list { border-top: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 28px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.news-row time { padding-top: 1px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.news-body { color: var(--text-soft); font-size: 17px; }
.news-body p + p { margin-top: 8px; }
.news-archive > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 13px; color: var(--text-soft); font-size: 14px; list-style: none; }
.news-archive > summary::-webkit-details-marker { display: none; }
.news-archive > summary:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.archive-count { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; background: var(--subtle); border-radius: 5px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.when-open { display: none; }
.news-archive[open] .when-open { display: inline; }
.news-archive[open] .when-closed { display: none; }
.news-archive[open] > summary svg { transform: rotate(180deg); }
.news-archive .news-list { margin-top: 10px; }

/* Background */
.entry-list { border-top: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.entry-period { color: var(--muted); font-size: 14px; line-height: 1.65; font-variant-numeric: tabular-nums; padding-top: 2px; }
.entry-content h3 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.entry-organization { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.entry-points { margin: 12px 0 0; padding-left: 17px; color: var(--text-soft); font-size: 17px; }
.entry-points li + li { margin-top: 5px; }
.entry-points li::marker { color: #929987; font-size: .8em; }

/* Footer and utility */
.site-footer { padding-bottom: 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 26px; border-top: 1px solid var(--line-dark); }
.footer-name { font-size: 16px; font-weight: 700; }
.footer-inner p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.footer-contact { text-align: right; }
.footer-contact > a { font-size: 14px; text-decoration: underline; text-decoration-color: var(--line-dark); }
.toast { position: fixed; z-index: 250; bottom: 24px; left: 50%; transform: translate(-50%, 12px); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.5; text-align: center; box-shadow: 0 8px 30px #0002; opacity: 0; pointer-events: none; transition: transform var(--ease), opacity var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.error-page { min-height: 55vh; max-width: 650px; padding-top: 50px; }
.error-page h1 { font-size: 48px; }
.error-page > p:not(.eyebrow) { color: var(--text-soft); margin: 20px 0; }

@media (min-width: 760px) { .menu-toggle { display: none !important; } }
@media (max-width: 1040px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 16px; }
  .site-nav a { padding: 10px 8px; }
  .about-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 38px; }
  h1 { font-size: 46px; }
  .section-heading { align-items: flex-start; }
}
@media (max-width: 759px) {
  :root { --header-height: 68px; }
  .container { width: calc(100% - 40px); }
  .header-inner { flex-wrap: wrap; gap: 0; padding-block: 12px; }
  .brand { min-height: 44px; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 2px; padding-top: 8px; }
  .site-nav a { padding: 10px 12px; }
  .menu-toggle:not([hidden]) { display: inline-flex; }
  .navigation-enhanced .site-nav { display: none; }
  .navigation-enhanced .site-nav.is-open { display: flex; padding-bottom: 5px; }
  .main-content { padding-top: 36px; padding-bottom: 60px; }
  .about-layout { grid-template-columns: 154px minmax(0, 1fr); gap: 27px; }
  .photo-frame { border-radius: 17px; }
  .eyebrow { font-size: 12px; }
  h1 { font-size: 40px; }
  .about-copy { font-size: 17px; }
  .profile-links { gap: 20px; }
  .profile-link { padding: 8px 11px; }
  .about-section { padding-bottom: 38px; }
  .section { margin-top: 48px; }
  .about-section + .section { margin-top: 34px; }
  h2 { font-size: 27px; }
  .section-heading { margin-bottom: 20px; }
  .publication-item { padding-block: 24px; }
  .publication-item.has-image { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
  .publication-heading { column-gap: 20px; }
  .publication-title { font-size: 20px; }
  .publication-authors { font-size: 15px; }
  .news-row { grid-template-columns: 90px minmax(0, 1fr); gap: 20px; }
  .entry { grid-template-columns: 155px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
  .about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 94px; column-gap: 16px; row-gap: 0; }
  .about-content { display: contents; }
  .portrait-column { width: 94px; grid-column: 2; grid-row: 1; padding-top: 0; }
  .photo-frame { aspect-ratio: 1; border-radius: 16px; }
  .profile-photo { object-position: center 38%; }
  .about-content > h1 { grid-column: 1; grid-row: 1; font-size: 38px; margin: 0; align-self: center; line-height: 1.1; }
  .about-copy { grid-column: 1 / -1; grid-row: 2; margin-top: 24px; font-size: 17px; }
  .profile-links { grid-column: 1 / -1; grid-row: 3; margin-top: 14px; }
  .section-heading { gap: 15px; flex-wrap: wrap; }
  h2 { font-size: 26px; }
  .publication-item.has-image { display: block; }
  .publication-heading { display: flex; flex-direction: column; gap: 11px; }
  .venue-badge { order: -1; align-self: flex-start; margin-top: 0; }
  .publication-group + .publication-group { margin-top: 34px; }
  .publication-title { font-size: 20px; line-height: 1.4; }
  .publication-summary { font-size: 17px; }
  .paper-link { min-height: 40px; font-size: 15px; padding: 7px 0; }
  .paper-image { width: min(100%, 320px); margin-bottom: 18px; }
  .news-row { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding-block: 14px; }
  .news-row time { font-size: 14px; padding-top: 3px; }
  .news-body { font-size: 17px; }
  .entry { display: flex; flex-direction: column; gap: 8px; padding-block: 21px; }
  .entry-period { font-size: 14px; }
  .entry-content h3 { font-size: 19px; }
  .entry-organization { font-size: 14px; }
  .footer-inner { flex-direction: column; gap: 17px; padding-top: 23px; }
  .footer-contact { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root { --bg: #fff; --text: #111; --text-soft: #333; --muted: #444; --line: #ddd; }
  body { font-size: 11pt; background: #fff; }
  .container { width: 100%; }
  .site-header, .skip-link, .toast, .copy-button, .site-footer { display: none !important; }
  .main-content { padding: 0; }
  .about-layout { display: grid; grid-template-columns: 135px 1fr; gap: 28px; }
  .about-section { padding-bottom: 22px; }
  .about-content { display: block; }
  .portrait-column { width: auto; }
  .photo-frame { aspect-ratio: 4/5; }
  h1 { font-size: 30pt; }
  h2 { font-size: 18pt; }
  .about-copy, .publication-summary, .entry-points, .news-body { font-size: 10pt; }
  .section { margin-top: 26px; }
  .publication-item, .entry { break-inside: avoid; }
  .publication-item { padding-block: 16px; }
  .publication-item.has-image { grid-template-columns: 110px 1fr; }
  .publication-heading { display: grid; grid-template-columns: minmax(0, 1fr) max-content; }
  .venue-badge { order: initial; font-size: 9pt; background: #fff; color: #333; border-color: #bbb; }
  .publication-group-title { break-after: avoid; }
  .citation-details { display: none; }
  .profile-link, .paper-link { color: #111; background: #fff; }
}

.pub-highlight {
  display: inline-block;
  padding: 2px 8px;
  background: #f1f3f5;
  color: #57636f;
  border: 1px solid #e1e5e9;
  border-radius: 4px;

  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
}