/* ---------------------------------------------------------------
   MICS Lab - stylesheet
   Edit the variables below to change the look of the whole site.
   --------------------------------------------------------------- */
:root {
  --accent:      #3a5f7d;   /* main brand color - the blue in the logo */
  --accent-soft: #eaeff4;   /* light tint of the brand color        */
  --ink:         #2b3947;   /* body text - the dark in the logo     */
  --ink-muted:   #5f6b78;   /* secondary text                       */
  --line:        #e3e7eb;   /* borders and rules                    */
  --bg:          #ffffff;
  --bg-alt:      #f7f8fa;   /* alternating section background       */
  --max:         1040px;    /* content width                        */
  --radius:      8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Noto Sans KR", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.05rem; }

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

/* ---------- header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand a { color: var(--ink); text-decoration: none; }
.brand .mark { font-size: 1.3rem; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.brand .full { font-size: .82rem; color: var(--ink-muted); }
.brand .logo { height: 42px; width: auto; display: block; }

nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { color: var(--ink-muted); font-size: .92rem; font-weight: 500; }
nav a:hover, nav a.active { color: var(--accent); text-decoration: none; }
nav a.active { font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 60px; border-bottom: 1px solid var(--line); }
.hero .eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.hero h1 { font-size: 2.6rem; max-width: 20ch; }
.hero p { font-size: 1.08rem; color: var(--ink-muted); max-width: 62ch; }
.hero .actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 10px 20px; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-size: .92rem; font-weight: 500;
}
.btn:hover { text-decoration: none; opacity: .9; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }

/* ---------- generic section ---------- */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 30px; }
.section-head p { color: var(--ink-muted); margin: 0; }

.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--ink-muted); font-size: .93rem; }

/* ---------- people ---------- */
.person { text-align: center; }
.person img, .person .avatar {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--radius); background: var(--accent-soft);
  display: grid; place-items: center;
  color: var(--accent); font-size: 1.6rem; font-weight: 600;
}
.person .name { font-weight: 600; margin-top: 12px; }
.person .role { font-size: .85rem; color: var(--ink-muted); }
.person .topic { font-size: .82rem; color: var(--ink-muted); margin-top: 4px; }

.pi { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: start; }
.pi .person { max-width: 200px; }   /* keep the PI photo from going full-width */
@media (max-width: 640px) { .pi { grid-template-columns: 1fr; } }
.grid.students { grid-template-columns: repeat(auto-fill, 200px); }   /* same size as the PI photo */

/* ---------- publications ---------- */
.pub-year {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--accent);
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 34px 0 16px;
}
.pub { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pub .title { font-weight: 600; }
.pub .authors { font-size: .9rem; color: var(--ink-muted); }
.pub .authors .me { color: var(--ink); font-weight: 600; }
.pub .venue { font-size: .88rem; color: var(--ink-muted); font-style: italic; }
.pub .links { margin-top: 6px; display: flex; gap: 10px; }
.pub .links a {
  font-size: .78rem; border: 1px solid var(--line); border-radius: 4px;
  padding: 2px 9px; color: var(--ink-muted);
}
.pub .links a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px;
  border-radius: 20px; background: var(--accent-soft); color: var(--accent);
  margin-left: 8px; vertical-align: middle;
}

/* ---------- news ---------- */
.news li { list-style: none; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; }
.news ul { margin: 0; padding: 0; }
.news .date { flex: 0 0 92px; font-size: .85rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-alt);
  padding: 34px 0; font-size: .88rem; color: var(--ink-muted);
}
.site-footer a { color: var(--ink-muted); }

/* ---------- misc ---------- */
.todo { background: #fff8e1; border-left: 3px solid #f0b429; padding: 10px 14px; font-size: .88rem; margin: 18px 0; }
dl.info { display: grid; grid-template-columns: 140px 1fr; gap: 10px 20px; margin: 0; }
dl.info dt { font-weight: 600; }
dl.info dd { margin: 0; color: var(--ink-muted); }

/* ---------- gallery ---------- */
.gallery h1 { text-align: center; margin-bottom: 10px; }
.gallery .year { text-align: center; color: var(--accent); margin: 40px 0 18px; }
.gallery ul { margin: 0; padding: 0; }
.gallery li { list-style: none; padding: 9px 0; }
.gallery li a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.gallery li a:hover { color: var(--accent); }
.gallery .when { color: var(--ink-muted); }
.gallery .back { display: inline-block; margin-bottom: 18px; font-size: .92rem; }
.gallery h1 + .when { text-align: center; margin-bottom: 28px; }
.gallery .photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.gallery .photos img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  border-radius: var(--radius); background: var(--bg-alt);
}
.gallery .photos a:hover img { opacity: .9; }
