/* SKY Lab — a small, self-contained academic website. */
:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --ink: #252321;
  --muted: #716b64;
  --maroon: #500000;
  --maroon-light: #f0e7e2;
  --line: #dedad3;
  --white: #fffefb;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #e8d8ce; color: var(--maroon); }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 5px;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 400; }
.container { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 20;
  top: 12px;
  left: 20px;
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--maroon);
  color: white;
  font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: flex; min-width: 0; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 92px; height: 92px; flex: 0 0 auto; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.brand-affiliation {
  display: block;
  max-width: 170px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 31px; }
.site-nav a {
  position: relative;
  padding-block: 12px;
  color: var(--muted);
  font-size: 16px;
  text-decoration: none;
  transition: color 150ms ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--maroon); }
.site-nav a[aria-current="page"] { font-weight: 600; }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--maroon);
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--maroon);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 650;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 65px;
  align-items: center;
  padding-block: 88px 84px;
}
.hero-title {
  margin-bottom: 26px;
  font-size: clamp(45px, 4.75vw, 64px);
  line-height: 1.08;
  letter-spacing: -2.3px;
}
.hero-title em { color: var(--maroon); font-weight: 400; }
.hero-description { max-width: 580px; margin-bottom: 31px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.hero-description a { color: inherit; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--maroon);
  border-radius: 3px;
  background: var(--maroon);
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
}
.button:hover { background: #6a1818; border-color: #6a1818; }
.button.secondary { background: transparent; border-color: #c8beb4; color: var(--ink); }
.button.secondary:hover { background: #efebe5; border-color: #b8aca1; }
.hero-aside { position: relative; min-width: 0; }
.sky-graphic { width: 100%; height: auto; overflow: visible; }
.research-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 15px; margin-top: 10px; }
.research-tags span { color: var(--muted); font-size: 14px; line-height: 1.7; }
.research-tags span + span::before { content: "·"; margin-right: 15px; color: #aa9f93; }
.home-photo { margin: 0; }
.home-photo > a { display: block; border-radius: 5px; }
.home-photo img { width: 100%; height: auto; border-radius: 5px; }
.home-photo figcaption { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 31px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading h2 { margin-bottom: 0; font-size: 33px; line-height: 1.2; letter-spacing: -.8px; }
.section-heading p:not(.eyebrow) { margin-bottom: 0; max-width: 460px; color: var(--muted); font-size: 17px; }
.text-link { display: inline-block; flex-shrink: 0; color: var(--maroon); font-size: 16px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.recent-publications { padding-block: 50px 70px; }
.recent-publications .section-heading h2 { font-size: 33px; }
.recent-publications .publication-item:first-child { padding-top: 0; }

.page-intro { padding-block: 66px 45px; }
.page-intro .eyebrow { margin-bottom: 15px; }
.page-intro h1 { margin-bottom: 19px; font-size: clamp(43px, 5vw, 60px); line-height: 1.08; letter-spacing: -1.8px; }
.page-description { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.people-section { padding-block: 35px 51px; border-top: 1px solid var(--line); }
.group-heading { display: flex; align-items: baseline; gap: 13px; margin-bottom: 28px; }
.group-heading h2 { margin: 0; font-size: 29px; line-height: 1.2; letter-spacing: -.5px; }
.group-count { color: var(--muted); font-size: 15px; font-weight: 400; }
.people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 29px; row-gap: 37px; }
.person-card { min-width: 0; scroll-margin-top: 2rem; }
.portrait-link { display: block; }
.person-info { min-width: 0; overflow-wrap: anywhere; }
.person-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 17px;
  overflow: hidden;
  border-radius: 5px;
  background: #e9e5de;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.person-initials { width: 100%; height: 100%; display: grid; place-items: center; color: #a48c7e; background: #eee8df; font-family: var(--serif); font-size: 55px; }
.person-name, h3.person-name { margin: 0 0 6px; font-family: var(--serif); font-size: 25px; line-height: 1.3; font-weight: 400; letter-spacing: -.35px; }
.person-name h3 { margin: 0; font: inherit; }
.person-name a { color: var(--ink); text-decoration: none; }
.person-name a:hover { color: var(--maroon); text-decoration: underline; }
.person-role { margin: 6px 0 12px; color: var(--muted); font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.person-links { display: flex; flex-wrap: wrap; gap: 7px 13px; }
.person-links a { display: inline-block; max-width: 100%; min-height: 34px; padding-block: 4px; color: var(--maroon); font-size: 15px; line-height: 1.7; text-decoration: none; overflow-wrap: anywhere; }
.person-links a:hover { text-decoration: underline; }
.pi-card { display: flex; align-items: center; gap: 35px; max-width: 780px; }
.pi-card .portrait-link { width: 210px; flex: 0 0 210px; }
.pi-card .person-photo { width: 210px; flex: 0 0 210px; margin-bottom: 0; }
.pi-card .person-name { font-size: 31px; margin-bottom: 8px; }
.pi-card .person-role { font-size: 18px; margin-bottom: 17px; }
.pi-card .person-links a { font-size: 16px; }
.people-section:last-child { padding-bottom: 76px; }
.author-profile { display: flex; align-items: center; gap: 32px; margin-bottom: 43px; padding-bottom: 43px; border-bottom: 1px solid var(--line); }
.author-profile .person-photo { width: 180px; flex: 0 0 180px; margin-bottom: 0; }
.author-profile .person-role { margin-bottom: 17px; font-size: 17px; }
.author-profile > div { min-width: 0; }
.author-profile .person-links a { font-size: 16px; }
.page-intro .back-link { margin-bottom: 30px; }

.publication-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px auto;
  align-items: end;
  gap: 18px;
  margin: 0 0 42px;
  padding: 23px 0 26px;
  border-block: 1px solid var(--line);
}
.search-field, .filter-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.search-field label, .filter-field label { color: var(--muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.search-field input, .filter-field select {
  width: 100%;
  height: 48px;
  padding: 9px 12px;
  border: 1px solid #ccc5bc;
  border-radius: 3px;
  background-color: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}
.search-field input::placeholder { color: #938a80; opacity: 1; }
.filter-field select { padding-right: 25px; }
.result-count { margin: 0; padding-bottom: 11px; min-width: 0; color: var(--muted); font-size: 15px; text-align: right; }
.publication-year { padding-bottom: 36px; }
.year-heading { display: flex; align-items: baseline; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.year-heading h2 { margin: 0; color: var(--maroon); font-size: 33px; line-height: 1.2; letter-spacing: -.7px; }
.year-heading span { color: var(--muted); font-size: 15px; }
.publication-list { list-style: none; padding: 0; margin: 0; }
.publication-item {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  column-gap: 34px;
  padding-block: 27px 26px;
  border-bottom: 1px solid var(--line);
}
.publication-meta { grid-column: 1; grid-row: 1 / span 3; padding-top: 4px; }
.publication-meta .venue { display: block; margin-bottom: 7px; color: var(--maroon); font-size: 15px; line-height: 1.6; font-weight: 650; }
.publication-meta time { display: block; color: var(--muted); font-size: 15px; line-height: 1.6; }
.publication-title { grid-column: 2; margin: 0 0 12px; font-family: var(--serif); font-size: 25px; line-height: 1.35; font-weight: 400; letter-spacing: -.25px; overflow-wrap: anywhere; }
.publication-title a { color: var(--ink); text-decoration: none; }
.publication-title a:hover { color: var(--maroon); text-decoration: underline; text-decoration-thickness: 1px; }
.publication-authors { grid-column: 2; margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.author-link { color: inherit; font-weight: 400; text-decoration-color: #c6bdb3; text-decoration-thickness: 1px; }
.author-link:hover { color: var(--maroon); text-decoration-color: currentColor; }
.lab-author { color: #514b45; font-weight: 600; }
a.lab-author { text-decoration-color: #b6aca2; }
.publication-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.publication-links a, .detail-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 12px;
  border: 1px solid #d6c9be;
  border-radius: 3px;
  color: var(--maroon);
  background: transparent;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 500;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
}
.publication-links a:hover, .detail-links a:hover { border-color: #ad8d7c; background: #eee5dd; }
.empty-state { padding: 45px 20px 75px; color: var(--muted); text-align: center; }
.empty-state h2 { color: var(--ink); font-size: 30px; }
.publication-detail { max-width: 850px; padding-block: 54px 90px; }
.back-link { display: inline-block; margin-bottom: 48px; color: var(--muted); font-size: 16px; text-decoration: none; }
.back-link:hover { color: var(--maroon); text-decoration: underline; }
.publication-detail h1 { margin-bottom: 24px; font-size: clamp(34px, 4.2vw, 50px); line-height: 1.18; letter-spacing: -1.3px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 20px; color: var(--maroon); font-size: 16px; font-weight: 600; }
.detail-meta time { color: var(--muted); font-weight: 400; }
.detail-authors { margin-bottom: 28px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.detail-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.detail-links a { padding: 7px 14px; font-size: 16px; }
.publication-detail h2 { margin-top: 38px; font-size: 29px; }
.publication-detail > p { color: var(--muted); line-height: 1.85; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 29px 34px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.site-footer strong { color: var(--ink); font-weight: 600; }
.footer-brand { display: inline-block; margin-bottom: 7px; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -.5px; text-decoration: none; }
.footer-links { display: grid; gap: 2px; color: var(--muted); text-align: right; }
.footer-links span, .footer-links small { font-size: 15px; line-height: 1.9; }
.footer-links a { color: var(--muted); font-size: 15px; text-decoration: none; }
.footer-links a:hover { color: var(--maroon); text-decoration: underline; }

@media (min-width: 1450px) {
  .hero { padding-block: 99px 95px; }
}
@media (max-width: 1000px) {
  .container { width: calc(100% - 64px); }
  .hero { gap: 27px; padding-block: 66px; }
  .hero-title { font-size: 48px; letter-spacing: -1.7px; }
  .hero-aside { margin-top: 20px; }
  .research-tags { gap: 5px 10px; }
  .research-tags span + span::before { margin-right: 10px; }
  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 25px; }
  .publication-toolbar { grid-template-columns: minmax(170px, 1fr) 130px auto; gap: 14px; }
  .publication-item { grid-template-columns: 170px minmax(0, 1fr); column-gap: 25px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 100px; flex-wrap: wrap; gap: 0 24px; padding-block: 12px; }
  .brand { gap: 10px; }
  .brand-mark { width: 76px; height: 76px; }
  .brand-affiliation { max-width: 160px; letter-spacing: .8px; }
  .site-nav { gap: 8px 24px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-block: 53px 58px; }
  .hero-title { max-width: 600px; font-size: 56px; letter-spacing: -1.7px; }
  .hero-description { max-width: 600px; }
  .hero-actions { gap: 12px; }
  .hero-aside { width: 100%; max-width: 430px; margin: 0 auto; }
  .section-heading h2 { font-size: 31px; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 25px; row-gap: 36px; }
  .pi-card { gap: 26px; }
  .pi-card .portrait-link { width: 170px; flex-basis: 170px; }
  .pi-card .person-photo { width: 170px; flex-basis: 170px; }
  .page-intro { padding-block: 47px 33px; }
  .page-intro h1 { font-size: 47px; }
  .publication-toolbar { grid-template-columns: minmax(0, 1fr) 160px; }
  .result-count { grid-column: 1 / -1; padding-bottom: 0; text-align: left; }
  .publication-item { display: block; padding-block: 27px; }
  .publication-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding-top: 0; margin-bottom: 12px; }
  .publication-meta .venue { margin-bottom: 0; }
  .publication-title { font-size: 25px; }
  .footer-inner { align-items: start; }
  .footer-links { max-width: 240px; }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 36px); }
  .header-inner { justify-content: flex-start; padding-block: 10px 15px; }
  .brand-affiliation { max-width: 175px; }
  .brand-mark { width: 80px; height: 80px; }
  .brand { gap: 12px; }
  .site-nav { width: 100%; gap: 8px 27px; }
  .site-nav a { padding-block: 10px; }
  .hero { gap: 28px; padding-block: 44px 37px; }
  .hero-title { max-width: 470px; margin-bottom: 22px; font-size: clamp(36px, 9.8vw, 50px); line-height: 1.12; letter-spacing: -1.35px; }
  .hero .eyebrow { margin-bottom: 18px; letter-spacing: 1px; }
  .hero-description { max-width: 470px; font-size: 18px; }
  .button { padding-inline: 18px; }
  .hero-aside { max-width: 380px; }
  .research-tags { margin-top: 0; gap: 7px 15px; }
  .research-tags span + span::before { margin-right: 15px; }
  .home-photo figcaption { margin-top: 10px; }
  .recent-publications { padding-block: 36px 47px; }
  .recent-publications .section-heading h2 { font-size: 31px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 28px; }
  .section-heading h2 { font-size: 31px; }
  .page-intro h1 { font-size: 44px; }
  .people-section { padding-block: 29px 37px; }
  .group-heading { margin-bottom: 23px; }
  .group-heading h2 { font-size: 28px; }
  .people-grid { gap: 32px 22px; }
  .person-photo { margin-bottom: 16px; }
  .person-name, h3.person-name { font-size: 24px; }
  .person-links { gap: 3px 14px; }
  .person-links a { min-height: 40px; padding-block: 7px; }
  .pi-card { gap: 20px; align-items: start; }
  .pi-card .portrait-link { width: 132px; flex-basis: 132px; }
  .pi-card .person-photo { width: 132px; flex-basis: 132px; }
  .pi-card .person-name { margin-top: 3px; font-size: 30px; }
  .pi-card .person-role { margin-bottom: 12px; }
  .author-profile { gap: 23px; margin-bottom: 32px; padding-bottom: 32px; }
  .author-profile .person-photo { width: 132px; flex-basis: 132px; }
  .publication-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 12px; margin-bottom: 29px; padding-block: 21px; }
  .search-field { grid-column: 1 / -1; }
  .result-count { grid-column: 2; align-self: end; padding: 0 0 10px; text-align: right; }
  .year-heading { padding-bottom: 13px; }
  .year-heading h2 { font-size: 30px; }
  .publication-title { font-size: 25px; }
  .publication-links { gap: 9px; }
  .publication-links a { min-height: 44px; padding: 7px 13px; }
  .publication-year { padding-bottom: 25px; }
  .publication-detail { padding-block: 35px 55px; }
  .back-link { margin-bottom: 33px; }
  .publication-detail h1 { font-size: 35px; letter-spacing: -.8px; }
  .footer-inner { display: block; padding-block: 24px 29px; }
  .footer-links { max-width: none; margin-top: 15px; text-align: left; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 40px; }
}
@media (max-width: 420px) {
  .people-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .people-grid .person-card { max-width: 340px; }
  .pi-card, .author-profile { align-items: flex-start; flex-direction: column; gap: 21px; }
  .pi-card .portrait-link { width: 210px; flex-basis: auto; }
  .pi-card .person-photo { width: 210px; }
  .author-profile .person-photo { width: 180px; flex-basis: auto; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 28px); }
  .site-nav { gap: 8px 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  :root { --paper: white; --ink: #111; --muted: #444; --line: #ccc; }
  body { font-size: 10pt; }
  .container { width: 100%; max-width: none; }
  .site-nav, .skip-link, .publication-toolbar, .hero-actions, .footer-links, .back-link { display: none !important; }
  .header-inner { min-height: 65px; }
  .hero, .page-intro { padding-block: 25px; }
  .hero-title { font-size: 35pt; }
  .page-intro h1 { font-size: 32pt; }
  .publication-year { padding-bottom: 16px; }
  .publication-item { padding-block: 15px; break-inside: avoid; }
  .publication-title { font-size: 14pt; }
  .publication-authors { font-size: 9pt; }
  .people-section { padding-block: 20px; }
  .person-card { break-inside: avoid; }
  .site-footer { margin-top: 20px; }
  a { color: inherit; }
}
