/*
  Academic website for Soo Jeong Lee.
  Template adapted from Youngjae Jeong / Youngjae Min.
  Design also inspired by Jason Blevins.

  Main font: clean system sans-serif.
  Code font: monospace.
*/

:root {
  --text: #111111;
  --muted: #4a4a4a;
  --line: #e4e4e4;
  --link: #003399;
  --accent: #f09228;
  --background: #ffffff;
  --soft-background: #f7f7f7;
  --main-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --code-font: Consolas, Monaco, "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: var(--main-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration: none;
  font-family: inherit;
}

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

.page {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

/* Header */

.masthead {
  text-align: center;
  margin: 0 0 34px;
}

.masthead h1 {
  margin: 0 0 8px;
  font-family: var(--main-font);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.masthead p {
  margin: 4px 0;
  color: #666;
  font-family: var(--main-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Profile */

.profile-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  max-width: 780px;
  margin: 0 auto 28px;
}

.photo-block {
  text-align: center;
}

.profile-photo {
  width: 280px;
  height: 340px;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  display: block;
}


.profile-text {
  padding-top: 10px;
  font-family: var(--main-font);
  font-size: 16px;
  line-height: 1.55;
}

.profile-text p {
  margin: 0 0 15px;
}

.contact-heading {
  margin-bottom: 2px !important;
}

/* Navigation */

.section-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 22px 0 38px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--main-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.section-nav a {
  color: var(--text);
  padding: 3px 0 5px;
  font-family: inherit;
}

.section-nav a:hover,
.section-nav a.active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

/* Sections */

.content-section {
  display: none;
  max-width: 780px;
  margin: 0 auto 40px;
  font-family: var(--main-font);
}

.content-section.active-section {
  display: block;
}

h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-family: var(--main-font);
  font-size: 23px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-family: var(--main-font);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
}

h4 {
  margin: 18px 0 4px;
  color: var(--text);
  font-family: var(--main-font);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
}

p {
  margin: 0 0 15px;
}

ul {
  margin-top: 8px;
}

/* News */

.news-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-size: 15px;
}

.news-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  column-gap: 16px;
  align-items: start;
  margin: 10px 0;
  line-height: 1.55;
}

.news-list .date {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.news-text {
  min-width: 0;
}

.tag-upcoming {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 6px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Research */

.research-links {
  margin-top: -4px;
  margin-bottom: 24px;
}

.research-category {
  margin-top: 28px;
}

.research-subheading {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 650;
}

.paper-list {
  margin: 10px 0 28px;
  padding-left: 22px;
  list-style-type: square;
}

.paper-item {
  margin: 0 0 16px;
  padding-left: 4px;
}

.paper-title {
  font-weight: 400;
}

.coauthors,
.status,
.note {
  color: var(--muted);
}

.coauthors,
.status,
.paper-links {
  margin: 3px 0;
}

.paper-links {
  margin-top: 8px;
}

.paper-links a {
  margin-right: 8px;
}

/* Teaching */

.institution-name {
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 12px;
}

.course-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 28px;
  font-size: 15px;
}

.course-table th {
  text-align: left;
  font-weight: 650;
  border-bottom: 2px solid var(--line);
  padding: 8px 10px;
}

.course-table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  vertical-align: top;
}

.course-table a {
  white-space: nowrap;
}

.note {
  font-size: 15px;
}

/* Software */

.software-title-link {
  font-family: var(--main-font);
  font-size: 0.75em;
  font-weight: 400;
}

.software-title-link a {
  font-family: inherit;
  font-weight: 400;
}

.software-list {
  padding-left: 28px;
}

.software-item {
  margin-bottom: 24px;
}

.software-item h3 {
  margin-bottom: 10px;
}

.software p {
  margin-top: 0;
  margin-bottom: 14px;
}

.software h4 {
  margin-top: 18px;
  margin-bottom: 4px;
}

.software h4 + pre {
  margin-top: 0;
}

.software pre {
  display: inline-block;
  margin-top: 0;
  margin-bottom: 6px;
  padding: 6px 10px;
  line-height: 1.3;
  background: var(--soft-background);
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 14px;
}

.software pre code {
  font-size: 14px;
  padding: 0;
  border: none;
  background: transparent;
}

.software-citation {
  font-size: 0.92em;
  line-height: 1.45;
  margin-top: 0;
  margin-left: 0;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 2px solid #ddd;
  color: #444;
}

.software-note {
  font-size: 0.95em;
  color: #555;
  margin-top: 8px;
}



/* Photos / Life@ */

.life-subheading {
  margin-top: 2rem;
  margin-bottom: 0.9rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  column-gap: 0.5rem;  
  row-gap: 1rem;    
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.life-card {
  margin: 0;
}

.life-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  border-radius: 1PX;
  display: block;
}

.life-card figcaption {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  text-align: center;
}

/* Mobile */
@media (max-width: 700px) {
  .life-grid {
    columns: 2 150px;
    column-gap: 8px;
  }

  .life-card {
    margin-bottom: 10px;
  }

  .life-card figcaption {
    font-size: 12.5px;
  }
}

/* Vertical photos: same format, just shown larger/longer */
.life-card.tall img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

/* Make selected vertical photos the same height */
.life-card.portrait img {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

.life-card.wide {
  grid-column: 1 / -1;
}

.life-card.wide img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Code */

code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft-background);
  font-family: var(--code-font);
  font-size: 0.92em;
}

pre,
pre code {
  font-family: var(--code-font);
}

pre code {
  padding: 0;
  border: none;
  background: transparent;
  font-size: inherit;
}

/* Footer */

.site-footer {
  max-width: 780px;
  text-align: right;
  margin: 50px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #a4a1a1;
  font-family: var(--main-font);
  font-size: 10px;
  line-height: 1.35;
}

.site-footer p,
.site-footer a {
  font-size: inherit;
  line-height: inherit;
}

/* Mobile */

@media only screen and (max-width: 799px) {
  body {
    font-size: 16px;
    line-height: 1.55;
  }

  .page {
    width: min(100% - 34px, 760px);
    padding-top: 20px;
  }

  .masthead {
    margin-bottom: 26px;
  }

  .masthead h1 {
    font-size: 38px;
  }

  .masthead p {
    font-size: 14px;
  }

  .profile-row {
    display: block;
    max-width: 540px;
    margin-bottom: 24px;
  }

  .profile-photo {
    width: min(250px, 85vw);
    height: min(320px, 108.8vw);
    margin-bottom: 22px;
  }

  .profile-text {
    padding-top: 0;
    font-size: 16px;
  }

  .section-nav {
    flex-wrap: wrap;
    gap: 12px 18px;
    margin: 20px 0 32px;
    font-size: 15px;
  }

  .content-section {
    max-width: 100%;
  }

  h2 {
    font-size: 25px;
  }

  h3 {
    font-size: 18px;
  }

  .news-list li {
    display: block;
  }

  .news-list .date,
  .date {
    display: block;
    min-width: 0;
    margin-bottom: 1px;
  }

  .course-table,
  .course-table thead,
  .course-table tbody,
  .course-table th,
  .course-table td,
  .course-table tr {
    display: block;
  }

  .course-table thead {
    display: none;
  }

  .course-table tr {
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }

  .course-table td {
    border-bottom: none;
    padding: 4px 0;
  }

  .course-table td::before {
    content: attr(data-label) ": ";
    font-weight: 650;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .photo-item img {
    height: auto;
  }
}


/* Heading color */

h2,
h3,
h4,
.research-subheading {
  color:  #333333;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
