/* brialong.com */

:root {
  --teal: #2389a6;
  --teal-dark: #1b6a80;
  --ink: #2f2e2e;
  --muted: #6d6b6b;
  --line: #e4e4e4;
  --page: 980px;
  --prose: 680px;
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }
p a, li a, dd a { text-decoration: underline; text-decoration-color: rgba(35, 137, 166, .35); text-underline-offset: 2px; }
p a:hover, li a:hover, dd a:hover { text-decoration-color: currentColor; }

b, strong { font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }

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

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  padding-bottom: 18px;
}
.site-name { font-size: 29px; font-weight: 300; letter-spacing: 0.04em; color: var(--ink); white-space: nowrap; }
.site-name:hover { color: var(--ink); text-decoration: none; }
.home .site-name { visibility: hidden; }

.nav { display: flex; flex-wrap: wrap; gap: 2px 22px; margin: 0; padding: 0; list-style: none; }
.nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--teal); }

/* page */
.content { padding-top: 36px; padding-bottom: 72px; }
.page-head { margin-bottom: 28px; }
.page-title { margin: 0; font-size: 26px; font-weight: 300; letter-spacing: 0.03em; color: var(--teal); }
.lede { margin: 4px 0 0; color: var(--muted); }

h1, h2, h3 { margin: 0; line-height: 1.3; }
.h2 { font-size: 19px; font-weight: 400; color: var(--teal); margin: 0 0 12px; }
.prose > .h2:not(:first-child), .pubs .h2:not(:first-child) { margin-top: 40px; }
.h3 { font-size: 15.5px; font-weight: 700; margin: 26px 0 8px; }
.jump { margin: 0 0 36px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.jump span { color: #bbb; margin: 0 10px; }
.jump a { white-space: nowrap; }
[id] { scroll-margin-top: 16px; }
.q { font-size: 15px; font-weight: 700; margin: 22px 0 6px; }

p { margin: 0 0 1em; }
.label { margin: 20px 0 8px; font-style: italic; color: var(--muted); }
.more { margin-top: 14px; color: var(--muted); font-size: 14px; }
.prose { max-width: var(--prose); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }

/* citations */
.me { font-weight: 700; }
.pubs { max-width: 800px; }
.pub { margin: 0 0 12px; padding-left: 20px; text-indent: -20px; font-size: 14.5px; line-height: 1.6; }
a.tag { white-space: nowrap; text-decoration: none; }
a.tag::before { content: "["; color: var(--muted); }
a.tag::after { content: "]"; color: var(--muted); }
a.tag:hover { text-decoration: underline; }
.footnote { margin-top: 32px; font-size: 13px; color: var(--muted); }

/* about */
.home .content { padding-top: 56px; }
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.profile { text-align: center; }
.photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; margin: 0 auto 18px; }
.profile-name { font-size: 24px; font-weight: 300; letter-spacing: 0.03em; color: var(--teal); margin-bottom: 8px; }
.profile-role { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.profile-links { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.profile-links span { color: #bbb; margin: 0 8px; }
.profile-links a { text-decoration: none; }
.about-main { max-width: var(--prose); padding-top: 6px; }
.about-title { margin: -6px 0 22px; font-size: 32px; font-weight: 300; letter-spacing: 0.02em; color: #555; }
.about-main p { line-height: 1.75; margin-bottom: 1.4em; color: #5a5a5a; letter-spacing: 0.01em; }
.about-main p.intro { color: var(--ink); font-size: 16px; }
.about-main p b { color: var(--ink); font-weight: 400; }

/* research */
.row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.row + .row { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.figs { display: flex; flex-direction: column; gap: 16px; }
.figs figure { margin: 0; }
.figs figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* texforms */
.texgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin: 18px 0 32px; align-items: start; }
.texgrid figure { margin: 0; }
.cap { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.figure5 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin: 18px 0 32px; }
.prose .texgrid, .prose .figure5 { width: min(930px, calc(100vw - 48px)); }

/* join the lab */
.lab-logo { float: right; margin: 0 0 12px 28px; }
.lab-logo img { width: 170px; height: auto; }
.lab-links { color: var(--muted); }
.lab-links span { color: #bbb; margin: 0 8px; }

/* cv, contact */
.cv-actions { margin-bottom: 16px; }
.cv-frame { display: block; width: 100%; height: 1000px; border: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: 180px 1fr; gap: 14px 0; margin: 0; max-width: 640px; }
.contact dt { font-weight: 700; }
.contact dd { margin: 0; }
.contact .note { color: var(--muted); }
.contact .lab-row { display: flex; align-items: flex-start; gap: 28px; }
.lab-mark img { width: 90px; height: auto; }

/* small screens */
@media (max-width: 760px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 18px; padding-bottom: 12px; }
  .home .site-name { display: none; }
  .nav { gap: 2px 16px; }
  .about, .row { grid-template-columns: 1fr; gap: 20px; }
  .photo { width: 140px; height: 140px; }
  .profile { text-align: left; }
  .photo { margin-left: 0; }
  .profile-links { display: inline-block; }
  .home .content { padding-top: 32px; }
  .figs { flex-direction: row; flex-wrap: wrap; }
  .figs > * { flex: 1 1 200px; max-width: 320px; }
  .texgrid, .figure5 { grid-template-columns: 1fr; }
  .prose .texgrid, .prose .figure5 { width: auto; }
  .lab-logo img { width: 110px; }
    .contact { grid-template-columns: 1fr; gap: 2px; }
  .contact dd { margin-bottom: 12px; }
  .cv-frame { height: 75vh; }
}
.about-main p a { color: inherit; text-decoration-color: rgba(0, 0, 0, .35); }
.about-main p a:hover { color: var(--teal); }

/* soft cross-fade between pages (browsers without support just switch instantly) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; animation-timing-function: ease; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
