/* BLUES — palette sampled from the logo gradient */
:root {
  --navy: #20355d;
  --blue: #2a5884;
  --sky: #66a8d2;
  --mist: #b2d7e9;
  --ice: #eef6fb;
  --ink: #1b2333;
  --muted: #5a6577;
  --rule: #dde5ee;
  --bg: #ffffff;
  --spectrum: linear-gradient(90deg, var(--navy) 0%, var(--blue) 35%, var(--sky) 70%, var(--mist) 100%);
  --font: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --wrap: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); margin: 0 0 0.5rem; }
h2 { font-size: 1.5rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* header */
.site-header { background: #fff; position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.logo img { display: block; width: 340px; max-width: 70vw; height: auto; }
.site-header nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; margin: 0; padding: 0; }
.site-header nav a { text-decoration: none; color: var(--navy); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover { border-bottom-color: var(--mist); }
.site-header nav a[aria-current] { border-bottom-color: var(--sky); }
.spectrum { height: 4px; background: var(--spectrum); }

/* hero */
.hero { background: var(--ice); padding: 4.5rem 0 4rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -8rem; top: -6rem; width: 30rem; height: 30rem; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--mist), transparent 70%); opacity: 0.7; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--blue); margin: 0 0 1rem; }
.hero h1 { max-width: 22em; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; margin-top: 0.75rem; }
.hero .lede { color: var(--ink); }

.section-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; margin: 3rem 0 1.25rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule); }

/* area cards */
.area-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.area-card { --c: var(--blue); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-top: 5px solid var(--c); border-radius: 6px; padding: 1.4rem 1.5rem 1.25rem; transition: box-shadow .15s, transform .15s; }
.area-card:hover { box-shadow: 0 10px 28px rgba(32, 53, 93, .12); transform: translateY(-2px); color: var(--ink); }
.area-card h3 { margin: 0.4rem 0 0.6rem; font-size: 1.25rem; }
.area-card p { margin: 0 0 1rem; color: var(--muted); font-size: 0.98rem; flex: 1; }
.area-count { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.more { color: var(--blue); font-weight: 600; font-size: 0.95rem; }
.area-mobile { --c: var(--navy); } .area-web { --c: var(--blue); } .area-ubicomp { --c: var(--sky); }

/* layout helpers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 52rem) { .split, .two-col { grid-template-columns: 1fr; gap: 0; } }
.page-head { padding-top: 2.75rem; padding-bottom: 0.5rem; }
.crumbs { font-size: 0.9rem; margin: 0 0 0.75rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.prose { max-width: 44rem; }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 44rem; }
.prose li { margin: 0.3rem 0; }
.lede-prose p { font-size: 1.15rem; color: var(--muted); }
.area-head h1 { border-left: 6px solid var(--c, var(--blue)); padding-left: 0.9rem; }
.side-box { background: var(--ice); border-radius: 6px; padding: 1.25rem 1.5rem; margin-top: 1rem; }
.side-box h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.project-list { list-style: none; padding: 0; margin: 0; }
.project-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
.project-list li:last-child { border-bottom: 0; }

.button { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; padding: 0.6rem 1.15rem; border-radius: 4px; font-weight: 600; font-size: 0.95rem; }
.button:hover { background: var(--blue); color: #fff; }
.button-light { background: #fff; color: var(--navy); }
.button-light:hover { background: var(--ice); color: var(--navy); }
.button-quiet { background: var(--ice); color: var(--navy); }
.button-quiet:hover { background: var(--mist); color: var(--navy); }

.callout { display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 3.5rem 0 1rem; padding: 2rem 2.25rem; border-radius: 8px; color: #fff; background: linear-gradient(100deg, var(--navy) 0%, var(--blue) 55%, #3d82b5 100%); }
.callout h2 { color: #fff; margin: 0 0 0.4rem; }
.callout p { margin: 0; max-width: 38rem; }
.callout > div { text-shadow: 0 1px 2px rgba(0,0,0,.18); }

/* publications */
.paper-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.paper { padding: 1rem 0 1.05rem; border-bottom: 1px solid var(--rule); }
.paper:last-child { border-bottom: 0; }
.paper-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.78rem; }
.venue { font-weight: 700; color: var(--navy); letter-spacing: 0.04em; text-transform: uppercase; }
.tag { text-decoration: none; padding: 0.05rem 0.55rem; border-radius: 99px; background: var(--ice); color: var(--blue); }
.tag-mobile { background: #e3e8f1; color: var(--navy); } .tag-web { background: #e2edf6; color: var(--blue); } .tag-ubicomp { background: #e4f2fa; color: #2b6f9c; }
.kind { padding: 0.05rem 0.55rem; border-radius: 99px; border: 1px solid var(--rule); color: var(--muted); }
.award { padding: 0.05rem 0.55rem; border-radius: 99px; background: #fff4d6; color: #7a5300; font-weight: 600; }
.award::before { content: "★ "; }
.paper-title { font-size: 1.08rem; margin: 0.3rem 0 0.25rem; font-weight: 600; }
.paper-title a { color: var(--ink); text-decoration: none; }
.paper-title a:hover { color: var(--blue); text-decoration: underline; }
.authors { margin: 0; color: var(--muted); font-size: 0.95rem; }
.authors a.member { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--sky); }
.authors a.member:hover { color: var(--blue); }
.authors.big { font-size: 1.1rem; }
.paper-links { margin: 0.35rem 0 0; font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.paper-links .pdf { font-weight: 700; }
.compact .paper { padding: 0.8rem 0; }
.compact .paper-title { font-size: 1rem; }
.compact .paper-links { display: none; }
.year { font-size: 2rem; color: var(--mist); margin: 2.25rem 0 0.25rem; font-weight: 800; letter-spacing: -0.02em; }
.year-group:first-child .year { margin-top: 0.5rem; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding: 1rem 0 1.25rem; border-bottom: 1px solid var(--rule); margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font: inherit; font-size: 0.88rem; border: 1px solid var(--rule); background: #fff; color: var(--navy); padding: 0.35rem 0.85rem; border-radius: 99px; cursor: pointer; }
.chip:hover { border-color: var(--sky); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.search input { font: inherit; font-size: 0.95rem; padding: 0.45rem 0.8rem; border: 1px solid var(--rule); border-radius: 4px; width: 18rem; max-width: 100%; }
.filter-status { margin: 0; font-size: 0.88rem; color: var(--muted); }

.paper-page { padding-top: 2.5rem; }
.paper-page > * { max-width: 50rem; }
.paper-page h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); margin-top: 0.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 1rem; }
.paper-page h2 { font-size: 1.1rem; margin-top: 2rem; }
.citation { background: var(--ice); border-left: 4px solid var(--sky); padding: 0.25rem 1.5rem 0.5rem; margin-top: 2rem; border-radius: 0 6px 6px 0; }
.citation p { font-size: 0.95rem; }

/* people */
.people-group { margin-bottom: 0.5rem; }
.people-list { margin: 0; padding-left: 1.2rem; columns: 3 15rem; column-gap: 2.5rem; }
.people-list li { padding: 0.25rem 0; break-inside: avoid; }
.people-list li::marker { color: var(--sky); }
.people-list .person-role { color: var(--muted); font-size: 0.92rem; margin-left: 0.5rem; }
.people-list .person-role::before { content: "· "; }
.alumni-list { columns: 4 11rem; }
.person { margin: 0.5rem 0 1rem; max-width: 44rem; }
.person-page .person-role { color: var(--muted); margin: 0; }
.person-page { padding-top: 2.5rem; }

.course-block { margin: 1.5rem 0 2rem; }
.course-block h2 { margin-bottom: 0.2rem; }
.course-prose h2 { margin-top: 2.25rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.course-prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

/* footer */
.site-footer { margin-top: 5rem; background: var(--navy); color: #d5e3f0; font-size: 0.92rem; }
.site-footer::before { content: ""; display: block; height: 4px; background: var(--spectrum); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 2.25rem; padding-bottom: 1rem; }
.footer-inner p { margin: 0.2rem 0; }
.footer-name { color: #fff; font-weight: 600; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.site-footer a { color: #fff; }
.footer-note { padding-bottom: 2rem; font-size: 0.82rem; color: var(--mist); }

@media (max-width: 40rem) {
  .hero { padding: 3rem 0 2.75rem; }
  .callout { padding: 1.5rem; }
  .header-inner { justify-content: center; }
  .site-header { position: static; }
}
@media print {
  .site-header nav, .filters, .site-footer, .callout { display: none; }
  .site-header { position: static; }
}
