/* VOILAb website styles
   Black, white and greys, after the VOILAb slide templates, with pastel accents. */

:root {
  --black: #000000;
  --ink: #111111;
  --grey-1: #2b2b2b;
  --grey-2: #5f5f5f;
  --grey-3: #8a8a8a;
  --grey-4: #d6d6d3;
  --grey-5: #ececea;
  --paper: #f6f6f4;
  --white: #ffffff;
  /* pastel accents */
  --blue: #c9dcec;
  --sage: #d3e5d6;
  --lilac: #e0d8ef;
  --peach: #f5dccd;
  --butter: #f2ebc2;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Times New Roman", Times, "Liberation Serif", serif;
  --radius: 4px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--grey-4); text-underline-offset: .2em; text-decoration-thickness: 2px; transition: text-decoration-color .2s, background .2s; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; color: var(--black); line-height: 1.08; letter-spacing: -.025em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--white); padding: 8px 14px; }
.rule { border: 0; border-top: 1px solid currentColor; margin: 0; opacity: .9; }

/* Wordmark: VOILAb with the stacked serif tagline, as in the slide templates */
.brand { --brand-size: 2.6rem; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--black); }
.brand-name { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-weight: 700; font-size: var(--brand-size); letter-spacing: -.07em; line-height: 1; margin-right: 3px; }
.brand-sub { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-weight: 700; font-size: calc(var(--brand-size) * 14 / 60); line-height: 1.15; letter-spacing: 0; }

/* Header -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--black); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 7px 13px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; border-radius: 999px; }
.site-nav a:hover { background: var(--grey-5); }
.site-nav a[aria-current] { background: var(--black); color: var(--white); }
.nav-toggle { display: none; }

/* Home: black header over the hero, as in the black template */
.page-home .site-header { background: var(--black); border-color: rgba(255, 255, 255, .85); }
.page-home .site-header .brand, .page-home .site-header .site-nav a { color: var(--white); }
.page-home .site-header .site-nav a:hover { background: rgba(255, 255, 255, .14); }

.hero { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; min-height: min(82vh, 760px); }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 72px 0; position: relative; z-index: 1; }
.hero-media { position: relative; display: flex; align-items: center; padding: 48px 0; }
.hero-media img { width: 100%; height: auto; }
.hero .eyebrow { color: var(--grey-4); }
.hero h1 { color: var(--white); font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-weight: 700; font-size: clamp(2.8rem, 6vw, 5.4rem); margin: .25em 0 .3em; letter-spacing: -.035em; line-height: 1; }
.hero p.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255, 255, 255, .78); max-width: 44ch; margin: 0 0 2em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .rule { color: var(--white); margin-bottom: 28px; max-width: 120px; border-top-width: 2px; }
.hero-places { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 44px; }
.place { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--black); }

.button { display: inline-flex; align-items: center; gap: .5em; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; background: var(--black); color: var(--white); border: 1px solid var(--black); transition: background .2s, color .2s; }
.button:hover { background: var(--grey-1); color: var(--white); }
.button.light { background: var(--white); color: var(--black); border-color: var(--white); }
.button.light:hover { background: var(--blue); border-color: var(--blue); color: var(--black); }
.button.ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.button.ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.person-head .button { background: transparent; color: var(--black); border-color: var(--grey-4); font-weight: 500; }
.person-head .button:hover { background: var(--blue); border-color: var(--blue); }

/* Pastel helpers */
.bg-blue { background: var(--blue); } .bg-sage { background: var(--sage); } .bg-lilac { background: var(--lilac); }
.bg-peach { background: var(--peach); } .bg-butter { background: var(--butter); } .bg-grey { background: var(--grey-5); }

/* Home sections -------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 20px; margin-bottom: 36px; border-bottom: 1px solid var(--black); }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin: .15em 0 0; }
.section-head a { white-space: nowrap; font-weight: 600; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }
.intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: .2em 0 .5em; }
.intro p { color: var(--grey-2); font-size: 1.05rem; }
.intro .video { margin: 0; }
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.places > div { padding: 32px 32px 28px; border-radius: var(--radius); }
.places h3 { font-size: 1.6rem; margin: .2em 0 .4em; }
.places p { margin: .2em 0; color: var(--grey-1); }
.dark { background: var(--black); color: rgba(255, 255, 255, .78); }
.dark h2, .dark h3 { color: var(--white); }
.dark .eyebrow { color: var(--grey-4); }
.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: .25em auto .4em; max-width: 20ch; }
.cta p { max-width: 56ch; margin: 0 auto 1.8em; }
.cta a:not(.button) { color: var(--white); text-decoration-color: rgba(255, 255, 255, .4); }

.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-2); margin: 0; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* Cards --------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; margin: 32px 0; }
.card-grid-wide { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey-5); border-radius: var(--radius); }
.card-wide .card-media { aspect-ratio: 16 / 8; }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { filter: grayscale(0); transform: scale(1.03); }
.card-body { padding: 18px 0 0; display: flex; flex-direction: column; flex: 1; }
.card .eyebrow { align-self: flex-start; padding: 3px 10px; border-radius: 999px; color: var(--black); font-size: .68rem; }
.card h3 { font-size: 1.5rem; margin: .45em 0 .35em; }
.card p { color: var(--grey-2); font-size: .96rem; margin: 0 0 1.2em; }
.card .more { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--black); }
.card .more span { display: inline-block; transition: transform .2s; }
.card:hover .more span { transform: translateX(4px); }
.card:nth-child(5n+1) .eyebrow { background: var(--blue); }
.card:nth-child(5n+2) .eyebrow { background: var(--sage); }
.card:nth-child(5n+3) .eyebrow { background: var(--lilac); }
.card:nth-child(5n+4) .eyebrow { background: var(--peach); }
.card:nth-child(5n+5) .eyebrow { background: var(--butter); }
.prose .card-grid { margin: 40px 0; }
.prose .card h3 { margin-top: .45em; }

/* Page header ---------------------------------------------------------- */
.page-head { padding: clamp(56px, 8vw, 100px) 0 0; }
.page-head .wrap::after { content: ""; display: block; border-bottom: 1px solid var(--black); padding-top: clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); margin: .2em 0 .3em; max-width: 20ch; letter-spacing: -.04em; }
.page-head .lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--grey-2); max-width: 60ch; margin: 0; }
.page-head .eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--blue); color: var(--black); }
.page-people .page-head .eyebrow { background: var(--sage); }
.page-publications .page-head .eyebrow { background: var(--lilac); }
.page-media .page-head .eyebrow { background: var(--peach); }
.page-head.has-banner { position: relative; color: var(--white); padding-top: clamp(150px, 18vw, 250px); background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .9)), var(--banner) center / cover, var(--black); }
.page-head.has-banner .wrap::after { border-color: rgba(255, 255, 255, .7); }
.page-head.has-banner h1 { color: var(--white); }
.page-head.has-banner .lead { color: rgba(255, 255, 255, .85); }
.page-head.has-banner .eyebrow a:hover { text-decoration: underline; }

.person-head-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: end; }
.person-head-grid::after { grid-column: 1 / -1; }
.person-head-photo img { width: 240px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.person-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.person-head .lead { margin-bottom: 1.2em; }
.person-head .eyebrow { background: var(--sage); }

/* Prose --------------------------------------------------------------- */
.prose { max-width: 760px; padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 110px); }
.page-people .prose, .page-media .prose, .page-research-index .prose { max-width: none; }
.prose > p:first-child { font-size: 1.12rem; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .4em; letter-spacing: -.015em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { overflow-wrap: anywhere; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--grey-3); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--black); font-size: 1.2rem; color: var(--black); }
.prose hr { border: 0; border-top: 1px solid var(--black); margin: 3em 0; }
.prose code { font-size: .88em; background: var(--grey-5); padding: .1em .35em; border-radius: 3px; }
.callout { background: var(--blue); border-radius: var(--radius); padding: 20px 26px; margin: 2em 0; }
.callout p { margin: .3em 0; }
.callout a { text-decoration-color: rgba(0, 0, 0, .35); }

/* Figures and videos --------------------------------------------------- */
.figure, .video { margin: 2.2em 0; }
.figure img { border-radius: var(--radius); width: 100%; }
figcaption { font-size: .87rem; color: var(--grey-2); margin-top: .8em; line-height: 1.5; padding-left: 12px; border-left: 2px solid var(--grey-4); }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 2.2em 0; }
.figure-pair .figure { margin: 0; }
.figure-pair .figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden; background: var(--black) center / cover no-repeat; }
.yt::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .18); transition: background .3s; }
.yt:hover::before { background: rgba(0, 0, 0, 0); }
.yt-play { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; background: var(--white); transition: transform .25s, background .25s; }
.yt-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--black); }
.yt:hover .yt-play { transform: scale(1.08); background: var(--blue); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 44px 28px; margin: 2em 0; }
.video-grid .video { margin: 0; }
.video-grid figcaption strong { display: block; font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; color: var(--black); margin-bottom: .25em; }

/* People --------------------------------------------------------------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 24px; margin: 28px 0 60px; }
.person { text-decoration: none; color: var(--ink); }
.person-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--grey-5); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s, transform .5s cubic-bezier(.2, .7, .2, 1); }
.person:hover .person-photo img { filter: grayscale(0); transform: scale(1.03); }
.person h3 { font-size: 1.15rem; margin: .8em 0 .15em; letter-spacing: -.015em; }
.person p { margin: 0; font-size: .88rem; color: var(--grey-2); line-height: 1.45; }
.person .affiliation { margin-top: .35em; font-size: .8rem; font-weight: 600; color: var(--ink); }
.person-head .affiliations { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4em; }
.person-head .affiliation { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--sage); font-size: .85rem; font-weight: 600; }
.person-head .affiliation:nth-child(2) { background: var(--peach); }
.person-head .affiliation:nth-child(3) { background: var(--lilac); }
.person-head .emails { display: flex; flex-wrap: wrap; gap: 10px; }
.person-head .lead { margin-bottom: .6em !important; }
.page-people .prose h2 { border-top: 1px solid var(--black); padding-top: .8em; }
.alumni-list { columns: 2; column-gap: 48px; }
.alumni-list li { break-inside: avoid; }

/* Publications ---------------------------------------------------------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; margin: 0 0 28px; }
.toc li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.toc a { display: inline-block; padding: 7px 15px; border-radius: 999px; font-size: .88rem !important; font-weight: 600; text-decoration: none; color: var(--black); }
.toc li:nth-child(5n+1) a { background: var(--blue); }
.toc li:nth-child(5n+2) a { background: var(--sage); }
.toc li:nth-child(5n+3) a { background: var(--lilac); }
.toc li:nth-child(5n+4) a { background: var(--peach); }
.toc li:nth-child(5n+5) a { background: var(--butter); }
.toc a:hover { background: var(--black) !important; color: var(--white); }
.toc a span { font-weight: 400; opacity: .6; margin-left: 4px; }
.pubsearch { position: sticky; top: 77px; z-index: 5; background: var(--white); padding: 14px 0 8px; margin-bottom: 8px; }
.pubsearch label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-2); margin-bottom: 6px; }
.pubsearch input { width: 100%; font: inherit; padding: 12px 18px; border: 1px solid var(--grey-4); border-radius: 999px; background: var(--paper); }
.pubsearch input:focus { outline: none; border-color: var(--black); background: var(--white); }
.pubcount { font-size: .85rem; color: var(--grey-2); margin: 6px 0 0 18px; min-height: 1.4em; }
.page-publications .prose { max-width: 880px; }
.page-publications .prose h2 { scroll-margin-top: 190px; border-top: 1px solid var(--black); padding-top: .7em; }
.page-publications .prose ul:not(.toc) { list-style: none; padding: 0; }
.page-publications .prose ul:not(.toc) li { padding: 16px 0; border-bottom: 1px solid var(--grey-5); font-size: .96rem; line-height: 1.6; margin: 0; }
.page-publications .prose ul:not(.toc) li a { font-size: .86rem; }
.to-top { font-size: .85rem; font-weight: 600; text-decoration: none; }

/* Contact --------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 28px 0 40px; }
.contact-grid > div { border-radius: var(--radius); padding: 22px 24px; }
.contact-grid h3 { margin: 0 0 .5em; font-size: 1.15rem; }
.contact-grid p { margin: 0 0 .6em; font-size: .95rem; line-height: 1.6; }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--black); color: rgba(255, 255, 255, .72); font-size: .92rem; padding: 64px 0 28px; }
.site-footer .brand { color: var(--white); }
.site-footer .rule { color: var(--white); margin: 28px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1fr; gap: 40px; }
.footer-grid-3 { grid-template-columns: 1.6fr 1fr 1fr; }
.footer-grid-3 > div:first-child p:not(.footer-title) { max-width: 38ch; }
.footer-grid p { margin: 0; }
.footer-title { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--white) !important; margin: 0 0 1em !important; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 .45em; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 56px; padding-top: 22px; font-size: .82rem; }
.footer-base p { margin: 0; }

/* Small screens ---------------------------------------------------------- */
@media (max-width: 1020px) {
  .nav-toggle { display: block; position: relative; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: inherit; }
  .nav-toggle span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .25s; }
  .nav-toggle span:nth-child(1) { top: 17px; }
  .nav-toggle span:nth-child(2) { top: 25px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .page-home .nav-toggle { color: var(--white); }
  .site-nav { position: fixed; inset: 76px 0 auto; background: var(--white); border-bottom: 1px solid var(--black); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 12px 20px 20px; }
  .site-nav a, .page-home .site-header .site-nav a { color: var(--ink); font-size: 1.05rem; padding: 12px 14px; }
  .page-home .site-header .site-nav a[aria-current] { color: var(--white); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .intro { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; padding: 32px 0 8px; }
  .hero-text { padding: 8px 0 64px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .card-grid-wide { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .person-head-grid { grid-template-columns: 1fr; gap: 24px; }
  .person-head-photo img { width: 180px; }
  .people-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .figure-pair, .places { grid-template-columns: 1fr; }
  .alumni-list { columns: 1; }
  .section-head { flex-direction: column; align-items: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .pubsearch { top: 77px; }
}
