/* ============================================================
   Lab site stylesheet
   Edit the variables below to rebrand the whole site at once.
   ============================================================ */

:root {
  --accent: #14532d;          /* primary brand color (links, headings) */
  --accent-soft: #e7f0ea;     /* tinted backgrounds */
  --ink: #1a1a1a;             /* body text */
  --ink-muted: #5c6370;       /* secondary text */
  --rule: #e2e5e9;            /* borders and dividers */
  --bg: #ffffff;
  --bg-alt: #f7f8f9;
  --maxw: 880px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "Noto Sans KR", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; display: block; }

/* ---------- layout ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

main { padding: 48px 0 64px; }

section + section { margin-top: 48px; }

/* ---------- header / nav ---------- */

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }

.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 15px;
}

.site-nav a { color: var(--ink-muted); }
.site-nav a.active { color: var(--accent); font-weight: 600; }

/* ---------- typography ---------- */

h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 8px;
}

h2 {
  font-size: 20px;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

h3 { font-size: 17px; margin: 0 0 6px; }

.lead {
  font-size: 18px;
  color: var(--ink-muted);
  margin: 0 0 32px;
}

.muted { color: var(--ink-muted); }

/* ---------- hero (home) ---------- */

.hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.hero img {
  border-radius: 6px;
  border: 1px solid var(--rule);
}

/* ---------- cards / grids ---------- */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 20px;
  background: var(--bg);
}

.card h3 { color: var(--accent); }
.card p:last-child { margin-bottom: 0; }

/* ---------- people ---------- */

.person {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.person:last-child { border-bottom: none; }
.person img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.person .role { color: var(--ink-muted); font-size: 14px; margin: 0 0 6px; }
.person p { margin: 0 0 6px; }

/* ---------- publications ---------- */

.pub-list { list-style: none; padding: 0; margin: 0; }

.pub-list li {
  padding: 14px 0 14px 44px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.pub-list li:last-child { border-bottom: none; }

.pub-list .num {
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--ink-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.pub-list .venue { font-style: italic; }
.pub-list .me { font-weight: 700; }

.tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- news ---------- */

.news-list { list-style: none; padding: 0; margin: 0; }

.news-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.news-list li:last-child { border-bottom: none; }

.news-list time {
  color: var(--ink-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

/* ---------- callout ---------- */

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
}

.callout h2 { border: none; padding: 0; margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-alt);
  padding: 32px 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.site-footer p { margin: 0 0 4px; }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  h1 { font-size: 26px; }
  .hero { grid-template-columns: 1fr; }
  .hero img { max-width: 180px; }
  .person { grid-template-columns: 72px 1fr; gap: 14px; }
  .news-list li { grid-template-columns: 1fr; gap: 2px; }
  .site-header .wrap { padding-bottom: 14px; }
}
