:root {
  color-scheme: light;
  --background: #ffffff;
  --text: #1f2937;
  --text-strong: #111827;
  --text-muted: #4b5563;
  --border: #1f2937;
  --accent: #2563eb;
  --link-decoration: #d1d5db;
  --link-decoration-hover: #3b82f6;
  --author-decoration: rgba(59, 130, 246, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    "Noto Sans KR", "Pretendard Variable", Pretendard, Inter, Arial, Helvetica,
    sans-serif;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--text-strong);
  outline-offset: 3px;
}

main {
  min-height: 100vh;
  padding: 64px 24px;
  background: var(--background);
  transition: background-color 300ms, color 300ms;
}

.resume {
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
}

.intro {
  margin-bottom: 64px;
  text-align: center;
}

.intro h1 {
  margin: 0 0 16px;
  color: var(--text-strong);
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}

section {
  margin-bottom: 48px;
}

h2 {
  margin: 0 0 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0;
}

.entry-list,
.interest-list,
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-list {
  display: grid;
  gap: 16px;
}

.entry {
  display: block;
  padding: 16px;
}

.education-period,
.publication-venue {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
}

.entry-content {
  min-width: 0;
}

.entry-content h3 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.publication-title a {
  text-decoration-color: var(--link-decoration);
  text-underline-offset: 4px;
  transition: text-decoration-color 150ms;
}

.publication-title a:hover {
  text-decoration-color: var(--link-decoration-hover);
}

.institution,
.authors {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 22px;
}

.authors strong {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--author-decoration);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.interest-list,
.contact-list {
  display: grid;
  gap: 24px;
}

.interest-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-list {
  grid-template-columns: minmax(0, 1fr) repeat(3, max-content);
  align-items: end;
  gap: 12px;
}

.interest-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 4px;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.interest-list li::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: var(--text-strong);
  content: "";
}

address {
  font-style: normal;
}

.contact-email-link {
  display: grid;
  gap: 4px;
  padding: 10px 0 4px;
  text-decoration: none;
}

.contact-label {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.contact-value {
  color: var(--text-strong);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--link-decoration);
  text-underline-offset: 4px;
  transition: color 150ms, text-decoration-color 150ms;
}

.contact-email-link:hover .contact-value {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.contact-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms;
}

.contact-button:hover {
  color: var(--accent);
}

.external-arrow {
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 639px) {
  .intro h1 {
    font-size: 36px;
    line-height: 40px;
  }

  .interest-list,
  .contact-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-button {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #111827;
    --text: #f3f4f6;
    --text-strong: #ffffff;
    --text-muted: #9ca3af;
    --border: #1f2937;
    --accent: #60a5fa;
    --link-decoration: #4b5563;
    --link-decoration-hover: #60a5fa;
  }
}
