/* =========================
   Global Styles
========================= */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding-top: 100px;
  background-color: #f6ecdd;
  color: #482c06;
}

section,
footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

h2 {
  text-align: left;
  font-size: 1.6rem;   /* 1rem = 보통 16px, 따라서 2rem ≈ 32px */
}

h3 {
  text-align: left;
}

/* =========================
   Navbar
========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #482c06;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  z-index: 1000;
  box-sizing: border-box;
}

.navbar-left {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.navbar h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #f6ecdd;
}

.navbar .subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #f6ecdd;
}

.nav-links a {
  margin: 0 0.6rem;
  text-decoration: none;
  color: #f6ecdd;
  font-weight: bold;
  font-size: 0.95rem;
}

/* =========================
   Typography
========================= */
.tight {
  margin: 0;
  line-height: 1.8; /* 줄 간격 */
}

/* =========================
   Projects Section
========================= */
/* #MLprojects {
  margin-block: 2rem;
}

#MLprojects h2 {
  margin-bottom: 1rem;
} */

.project-card {
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  margin-bottom: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.project-card.highlight {
  border-color: #dfe8ff;
  background: #f7faff;
}

.project-header h3 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.project-header h3 a {
  text-decoration: none;
}

.year {
  font-size: 0.9rem;
  color: #667085;
  font-weight: 500;
  background: #e5ebf8;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  text-align: right;
}

.place {
  font-size: 0.9rem;
  color: #667085;
  font-weight: 500;
  background: #e5ebf8;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  text-align: right;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0.6rem;
}

.tags span {
  font-size: 0.78rem;
  color: #475467;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  border: 1px solid #e2e8f0;
}

.project-figure {
  margin: 0.6rem auto 0.8rem;
  text-align: center;
}

.project-figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.project-figure figcaption {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.3rem;
}

.bullets {
  margin: 0.6rem 0 0.8rem;
  padding-left: 1.1rem;
}

.bullets li {
  margin: 0.25rem 0;
}

/* =========================
   Grid / Layout Helpers
========================= */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.6rem 0 0.8rem;
}

.thumb-grid figure {
  margin: 0;
}

.thumb-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.thumb-grid figcaption {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.more summary {
  cursor: pointer;
  margin-top: 0.3rem;
  font-weight: 600;
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.cols h4 {
  margin: 0.2rem 0 0.2rem;
}

.links {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  text-align: right;
}

.btn {
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  text-decoration: underline;
}

.btn.secondary {
  background: #0f766e;
}

/* =========================
   Responsive
========================= */
@media (max-width: 800px) {
  .thumb-grid {
    grid-template-columns: 1fr;
  }
  .cols {
    grid-template-columns: 1fr;
  }
}
