:root {
  --bg: #ffffff;
  --surface: #fafafa;

  --text: #222222;
  --muted: #666666;
  --light-muted: #888888;

  --line: #e5e5e5;

  --accent: #8f1d2c;
  --accent-dark: #6f1622;

  --max-width: 1040px;
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  background: var(--bg);
  color: var(--text);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  font-size: 15px;
  line-height: 1.55;
}


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


a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}


p {
  margin: 0 0 10px;
}


/* =========================================================
   Layout
   ========================================================= */

.shell {
  width: min(
    calc(100% - 44px),
    var(--max-width)
  );

  margin: 0 auto;
}


.narrow {
  max-width: 800px;
}


/* =========================================================
   Header
   ========================================================= */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}


.header-inner {
  min-height: 52px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


.identity {
  display: flex;
  align-items: baseline;

  gap: 7px;

  color: var(--text);
  text-decoration: none;
}


.identity:hover {
  color: var(--text);
  text-decoration: none;
}


.identity-name {
  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 1.05rem;
  font-weight: 600;
}


.identity-korean {
  color: var(--light-muted);

  font-size: 0.78rem;
}


/* =========================================================
   Navigation
   ========================================================= */

.nav {
  display: flex;
  gap: 22px;
}


.nav a {
  padding: 16px 0 13px;

  border-bottom: 2px solid transparent;

  color: var(--muted);

  font-size: 0.86rem;
  font-weight: 500;

  text-decoration: none;
}


.nav a:hover {
  color: var(--text);
  text-decoration: none;
}


.nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}


/* =========================================================
   General typography
   ========================================================= */

h1,
h2,
h3 {
  margin-top: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-weight: 500;
  line-height: 1.2;
}


h1 {
  font-size:
    clamp(
      2.2rem,
      4vw,
      3rem
    );
}


h2 {
  font-size: 1.6rem;
}


h3 {
  font-size: 1.08rem;
}


.muted-name {
  color: #777777;

  font-size: 0.68em;
  font-weight: 400;
}


.eyebrow,
.section-kicker,
.course-term {
  margin: 0 0 8px;

  color: var(--accent);

  font-size: 0.7rem;
  font-weight: 600;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* =========================================================
   Homepage introduction
   ========================================================= */

.home-intro {
  padding: 52px 0 42px;
}


.home-intro-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 2fr)
    minmax(220px, 0.55fr);

  gap: 70px;

  align-items: start;
}


.home-primary {
  max-width: 720px;
}


.home-primary h1 {
  margin-bottom: 14px;
}


.home-position {
  margin-bottom: 18px;

  color: #333333;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 1.13rem;
  line-height: 1.5;
}


.home-bio {
  max-width: 700px;

  margin-bottom: 12px;

  color: #444444;

  line-height: 1.6;
}


.research-topics {
  display: flex;
  flex-wrap: wrap;

  gap: 4px 12px;

  margin-top: 20px;
}


.research-topics span {
  color: var(--muted);

  font-size: 0.87rem;
}


.research-topics span:not(:last-child)::after {
  content: "·";

  margin-left: 12px;

  color: #bbbbbb;
}


/* =========================================================
   Homepage contact
   ========================================================= */

.home-contact {
  padding-left: 22px;

  border-left: 1px solid var(--line);
}


.info-block {
  margin-bottom: 20px;
}


.info-block:last-child {
  margin-bottom: 0;
}


.info-block h2 {
  margin: 0 0 4px;

  color: #555555;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 0.72rem;
  font-weight: 650;

  letter-spacing: 0.05em;
  text-transform: uppercase;
}


.info-block p {
  margin: 0;

  font-size: 0.92rem;
  line-height: 1.45;
}


/* =========================================================
   Homepage lower information
   ========================================================= */

.home-details {
  padding: 34px 0 42px;

  border-top: 1px solid var(--line);
}


.detail-grid {
  display: grid;

  grid-template-columns:
    1fr
    1fr
    0.75fr;

  gap: 55px;
}


.detail-column h2 {
  margin-bottom: 15px;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 0.84rem;
  font-weight: 650;

  letter-spacing: 0.02em;
}


.detail-term {
  margin-bottom: 10px;

  color: var(--muted);

  font-size: 0.78rem;
  font-weight: 600;

  letter-spacing: 0.05em;
  text-transform: uppercase;
}


.teaching-list {
  display: grid;
  gap: 12px;
}


.teaching-item,
.resource-item {
  display: grid;
  gap: 2px;
}


.teaching-item strong,
.resource-item strong {
  font-size: 0.92rem;
  font-weight: 650;
}


.teaching-item span,
.resource-item span {
  color: var(--muted);

  font-size: 0.86rem;
  line-height: 1.45;
}


.resource-item {
  margin-bottom: 14px;
}


.detail-link {
  margin: 17px 0 0;

  font-size: 0.83rem;
}


.link-list {
  margin: 0;
  padding: 0;

  list-style: none;
}


.link-list li {
  margin-bottom: 8px;

  font-size: 0.9rem;
}


/* =========================================================
   Interior pages
   ========================================================= */

.page-header {
  padding: 44px 0 28px;
}


.page-header h1 {
  margin-bottom: 10px;

  font-size:
    clamp(
      2.1rem,
      4vw,
      2.8rem
    );
}


.lede {
  max-width: 680px;

  color: #444444;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 1.08rem;
  line-height: 1.5;
}


.lede.compact {
  max-width: 620px;
}


.section {
  padding: 34px 0;

  border-top: 1px solid var(--line);
}


.section-alt {
  background: var(--surface);
}


.section-intro {
  max-width: 700px;

  color: var(--muted);
}


/* =========================================================
   Section headings
   ========================================================= */

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 20px;
}


.section-heading-row h2 {
  margin-bottom: 0;
}


.text-link {
  font-size: 0.86rem;
  font-weight: 500;

  white-space: nowrap;
}


/* =========================================================
   Course listing
   ========================================================= */

.course-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 24px;
}


.course-card {
  padding: 16px 0 4px;

  border-top: 1px solid var(--line);
}


.course-card h3 {
  margin-bottom: 5px;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 0.98rem;
  font-weight: 650;
}


.course-card p:last-child {
  margin-bottom: 0;

  color: var(--muted);

  font-size: 0.88rem;
}


/* =========================================================
   Topics
   ========================================================= */

.topic-list {
  display: flex;
  flex-wrap: wrap;

  gap: 5px 12px;

  margin-top: 15px;
}


.topic-list span {
  color: #444444;

  font-size: 0.88rem;
}


.topic-list span:not(:last-child)::after {
  content: "·";

  margin-left: 12px;

  color: #bbbbbb;
}


/* =========================================================
   Teaching table
   ========================================================= */

.table-wrap {
  overflow-x: auto;
}


.teaching-table {
  width: 100%;

  min-width: 650px;

  border-collapse: collapse;
}


.teaching-table th,
.teaching-table td {
  padding: 11px 12px;

  border-bottom: 1px solid var(--line);

  text-align: left;
  vertical-align: top;
}


.teaching-table th:first-child,
.teaching-table td:first-child {
  padding-left: 0;
}


.teaching-table th:last-child,
.teaching-table td:last-child {
  padding-right: 0;
}


.teaching-table th {
  color: var(--muted);

  font-size: 0.72rem;
  font-weight: 600;

  letter-spacing: 0.06em;
  text-transform: uppercase;
}


.teaching-table td {
  font-size: 0.91rem;
}


.teaching-table tbody tr:last-child td {
  border-bottom: 0;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: 18px 0;

  border-top: 1px solid var(--line);

  color: var(--muted);

  font-size: 0.78rem;
}


.footer-inner {
  display: flex;

  justify-content: space-between;

  gap: 20px;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 800px) {

  .home-intro-grid {
    grid-template-columns: 1fr;

    gap: 32px;
  }


  .home-contact {
    padding-left: 0;
    padding-top: 24px;

    border-left: 0;
    border-top: 1px solid var(--line);

    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 20px 30px;
  }


  .info-block {
    margin-bottom: 0;
  }


  .detail-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 36px;
  }


  .detail-column:last-child {
    grid-column: 1 / -1;
  }


  .course-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 560px) {

  .shell {
    width: min(
      calc(100% - 28px),
      var(--max-width)
    );
  }


  .header-inner {
    min-height: 48px;
  }


  .identity-korean {
    display: none;
  }


  .nav {
    gap: 14px;
  }


  .nav a {
    padding: 14px 0 11px;

    font-size: 0.82rem;
  }


  .home-intro {
    padding: 34px 0 30px;
  }


  .home-contact {
    grid-template-columns: 1fr;

    gap: 18px;
  }


  .home-details {
    padding: 28px 0 34px;
  }


  .detail-grid {
    grid-template-columns: 1fr;

    gap: 30px;
  }


  .detail-column:last-child {
    grid-column: auto;
  }


  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;

    gap: 8px;
  }


  .text-link {
    white-space: normal;
  }


  .footer-inner {
    flex-direction: column;

    gap: 4px;
  }

}