/* ==========================================================================
   dherasymuk.com
   Palette: black / grey / white bands. Logos and photo keep their own colours.
   No animations: hover states change colour instantly.
   ========================================================================== */

:root{
  --black:#111111;
  --grey:#f4f4f2;
  --white:#ffffff;

  --ink:#1a1a1a;
  --ink-90:rgba(26,26,26,.9);
  --muted:#6b6b6b;
  --border:#e4e4e0;

  --on-black:#f5f5f5;
  --on-black-muted:#a5a5a5;
  --on-black-border:#2e2e2e;

  --heading:"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --body:"Mulish",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;

  --maxw:1152px;
  --header-h:61px;
  --affil-h:max(200px, 26vh);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}

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

img{max-width:100%;height:auto;display:block}
h1,h2,h3{margin:0;font-family:var(--heading);font-weight:600;letter-spacing:-.02em}
p{margin:0}
a{color:inherit}
ul{margin:0;padding:0}

/* ---------- bands ---------- */
.band{width:100%}
.band--black{background:var(--black);color:var(--on-black)}
.band--grey{background:var(--grey)}
.band--white{background:var(--white)}
.wrap{max-width:var(--maxw);margin:0 auto;padding:48px 24px}
@media (min-width:768px){.wrap{padding:80px 24px}}

.section-title{font-size:26px;line-height:1.2}
.section-title--sm{font-size:21px}
.section-title--lg{font-size:30px}
.section-lede{margin-top:12px;font-size:14px;color:var(--muted)}
@media (min-width:768px){
  .section-title{font-size:31px}
  .section-title--sm{font-size:25px}
  .section-title--lg{font-size:40px}
  .section-lede{font-size:16px}
}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:40;
  background:var(--white);
  border-bottom:1px solid var(--border);
}
.site-header nav{
  max-width:var(--maxw);margin:0 auto;height:60px;padding:0 24px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
@media (max-width:560px){
  .site-header nav{height:auto;flex-direction:column;align-items:flex-start;gap:8px;padding:12px 20px}
  .menu{gap:18px;font-size:14px;flex-wrap:wrap}
}
.brand{font-family:var(--heading);font-size:15px;font-weight:600;letter-spacing:-.01em;text-decoration:none;color:var(--ink);white-space:nowrap}
.menu{display:flex;align-items:center;gap:24px;list-style:none;font-size:15px}
.menu a{color:var(--muted);text-decoration:none}
.menu a:hover{color:var(--ink)}
.menu a[aria-current="page"]{color:var(--ink);font-weight:600}

/* ---------- 1. hero (black) ---------- */
/* hero + affiliations add up to exactly one viewport, so the logo band
   is never cut off on load: (100vh - header) - affiliations */
.hero{display:flex;align-items:center;min-height:calc(100vh - var(--header-h) - var(--affil-h))}
.hero .wrap{width:100%;padding-top:32px;padding-bottom:32px}
@media (min-width:900px){
  .hero .wrap{
    display:grid;grid-template-columns:auto minmax(0,1fr);gap:56px;align-items:center;
  }
}
.hero__portrait{
  width:200px;height:200px;margin:0 0 26px;
  border-radius:50%;object-fit:cover;object-position:50% 18%;
  background:#2a2a2a;flex-shrink:0;
}
.hero__name{font-size:38px;line-height:1.1;color:#fff}
.hero__tagline{
  margin-top:14px;font-size:14px;font-weight:400;
  letter-spacing:.16em;text-transform:uppercase;color:var(--on-black-muted);
}

.social{
  margin:22px 0 0;padding:0;list-style:none;
  display:flex;align-items:center;gap:22px;flex-wrap:wrap;
}
.social a{display:block;color:#cfcfcf;text-decoration:none}
.social a:hover{color:#fff}
.social svg{width:28px;height:28px;fill:currentColor;display:block}
/* the CV wordmark glyph is wide and only fills part of its box, so it is
   sized by height with the viewBox cropped to the letterforms */
.social .cv-icon{height:25px;width:auto}
.social__email{margin-left:6px}
.social__email a{font-size:18.5px;color:var(--on-black-muted)}
.social__email a:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}

.hero__intro{margin:26px 0 0;max-width:62ch;font-size:17px;line-height:1.75;color:#dcdcdc}
.hero__intro p + p{margin-top:14px}

@media (min-width:900px){
  .hero__portrait{width:272px;height:272px;margin:0}
  .hero__name{font-size:50px}
}

/* ---------- 2. affiliations (grey) ---------- */
/* Logos are flat grey assets. Heights are chosen so the NYU torch square,
   the CDS torch square and the r/ai box all render at the same size. */
@media (min-width:768px) and (max-width:1023px){:root{--affil-h:max(240px, 26vh)}}
.affiliations{display:flex;align-items:center;min-height:var(--affil-h)}
.affiliations .wrap{width:100%;padding-top:24px;padding-bottom:24px}
.affiliations ul{
  list-style:none;display:flex;align-items:center;justify-content:space-around;
  gap:40px;flex-wrap:wrap;
}
.affiliations a{display:flex;align-items:center;gap:16px;text-decoration:none;color:#8a8a8a}
.affiliations .nyu img{height:61px;width:auto}      /* square = 60px (square is 98% of art height) */
.affiliations .cds img{height:73px;width:auto}      /* square = 60px (square is 82% of art height) */
.affiliations .rai img{height:60px;width:60px}
.affiliations .rai span{font-family:var(--heading);font-weight:500;font-size:16px;line-height:1.3;text-align:left}
@media (max-width:767px){
  .affiliations{min-height:0}
  .affiliations ul{gap:28px;justify-content:center}
  .affiliations .nyu img{height:39px;width:auto}
  .affiliations .cds img{height:46px;width:auto}
  .affiliations .rai img{height:38px;width:38px}
  .affiliations .rai span{font-size:15px}
}

/* ---------- 3. about (white) ---------- */
.about__body{
  margin-top:32px;font-size:16px;line-height:1.75;text-align:justify;color:var(--ink-90);
}
.about__body p + p{margin-top:16px}
.about__col + .about__col{margin-top:16px}
@media (min-width:768px){
  .about__body{display:flex;gap:48px;font-size:18px}
  .about__col{flex:1}
  .about__col + .about__col{margin-top:0}
}
.link-underline{
  text-decoration:underline;text-underline-offset:4px;
  text-decoration-color:var(--muted);
}
.link-underline:hover{text-decoration-color:var(--ink)}

/* ---------- 4. interests + education (grey) ---------- */
.two-col{display:grid;gap:48px}
@media (min-width:768px){.two-col{grid-template-columns:1fr 1fr;gap:64px}}
.bullets{margin-top:24px;padding-left:20px;list-style:disc;color:var(--ink-90)}
.bullets li{margin-bottom:8px}
.bullets--spaced li{margin-bottom:14px}
.bullets .degree{font-weight:600}
.bullets .place{color:var(--muted)}

/* ---------- 5. recent updates (white) ---------- */
.updates{margin-top:24px;list-style:none;color:var(--ink-90)}
.updates li{display:flex;flex-direction:column;gap:2px;margin-bottom:14px}
.updates .date{
  flex-shrink:0;font-size:12px;text-transform:uppercase;letter-spacing:.15em;color:var(--muted);
}
.updates .item-icon{
  width:16px;height:16px;margin-right:8px;vertical-align:-3px;
  display:inline-block;color:var(--muted);
}
.updates .item-icon svg{width:16px;height:16px;stroke:currentColor;fill:none;
  stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* an update with a url: the whole line links, underlined on hover */
.updates .update-link{color:inherit;text-decoration:none}
.updates .update-link:hover{text-decoration:underline;text-underline-offset:4px}
.updates .arrow{
  width:14px;height:14px;margin-left:5px;
  display:inline-block;vertical-align:middle;
  stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.updates .update-link:hover .arrow{stroke:var(--ink)}

@media (min-width:768px){
  .updates li{flex-direction:row;gap:16px}
  .updates .date{width:104px;padding-top:5px}
}

/* ---------- 6. career timeline (grey) ---------- */
.timeline{margin-top:36px;list-style:none;position:relative}
.timeline::before{
  content:"";position:absolute;left:41px;top:16px;bottom:16px;
  width:1px;background:#d8d8d4;
}
.timeline li{
  position:relative;display:grid;grid-template-columns:84px 1fr;gap:26px;
  align-items:center;padding-bottom:28px;
}
.timeline li:last-child{padding-bottom:0}
.timeline__bead{
  width:84px;height:84px;border-radius:50%;
  background:var(--white);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  position:relative;z-index:1;
}
.timeline__bead img{max-width:56px;max-height:34px;width:auto;filter:grayscale(100%)}
.timeline__bead .rai-box{width:44px;height:44px;max-width:none;max-height:none}
.timeline__bead .initials{font-family:var(--heading);font-weight:600;font-size:13px;letter-spacing:.04em;color:var(--muted)}
.timeline__role{font-family:var(--heading);font-weight:600;font-size:17px;line-height:1.35;letter-spacing:-.01em;display:block}
.timeline__org{display:block;font-size:16px;color:var(--muted);margin-top:1px}
.timeline__when{
  display:block;margin-top:6px;
  font-size:11px;text-transform:uppercase;letter-spacing:.15em;color:var(--muted);
}
@media (max-width:767px){
  .timeline::before{left:31px}
  .timeline li{grid-template-columns:62px 1fr;gap:18px;align-items:start;padding-bottom:24px}
  .timeline__bead{width:62px;height:62px}
  .timeline__bead img{max-width:40px;max-height:25px}
  .timeline__bead .rai-box{width:34px;height:34px}
  .timeline__role{font-size:18px}
}

/* ---------- sub-page heading (black) ---------- */
/* Short version of the hero: no photo, no viewport-height rule. */
.page-head .wrap{padding-top:56px;padding-bottom:56px}
.page-head__title{font-size:38px;line-height:1.1;color:#fff}
.page-head__lede{margin-top:12px;max-width:62ch;font-size:17px;color:var(--on-black-muted)}
@media (min-width:768px){
  .page-head .wrap{padding-top:88px;padding-bottom:88px}
  .page-head__title{font-size:52px}
}

/* ---------- talks ---------- */
/* Same date-in-the-left-column rhythm as Recent Updates on the home page. */
.talks{list-style:none;counter-reset:none}
.talk{display:flex;flex-direction:column;gap:4px;padding:22px 0;border-bottom:1px solid var(--border)}
.talk:first-child{padding-top:0}
.talk:last-child{border-bottom:0;padding-bottom:0}
.talk__date{
  flex-shrink:0;font-size:12px;text-transform:uppercase;letter-spacing:.15em;color:var(--muted);
}
.talk__title{font-size:19px;line-height:1.35;font-weight:600}
.talk__venue{margin-top:5px;color:var(--ink-90)}
.talk__meta{margin-top:2px;font-size:15px;color:var(--muted)}
.talk__where--todo{font-style:italic;color:#a8a8a8}
.talk__links{display:flex;flex-wrap:wrap;gap:20px;list-style:none;margin-top:9px;font-size:15px}
.talk__links a{
  display:inline-flex;align-items:center;color:var(--ink);text-decoration:none;
  text-decoration:underline;text-decoration-color:var(--border);text-underline-offset:4px;
}
.talk__links a:hover{text-decoration-color:var(--ink)}
.talk__links .arrow{
  width:13px;height:13px;margin-left:5px;
  stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.talk__links a:hover .arrow{stroke:var(--ink)}
@media (min-width:768px){
  .talk{flex-direction:row;gap:16px;padding:26px 0}
  .talk__date{width:104px;padding-top:6px}
  .talk__title{font-size:21px}
}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--border);background:var(--white)}
.site-footer .wrap{
  padding-top:32px;padding-bottom:32px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  font-size:13px;color:var(--muted);
}
.site-footer .sep{margin:0 8px}
.site-footer a{text-decoration:none;color:var(--muted)}
.site-footer a:hover{color:var(--ink)}
.site-footer__contact{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.site-footer__contact ul{display:flex;align-items:center;gap:20px;list-style:none}
.site-footer__contact svg{width:17px;height:17px;fill:currentColor;display:block}

/* ==========================================================================
   Publications page
   ========================================================================== */
.page .wrap{padding-top:48px;padding-bottom:72px}
@media (min-width:768px){.page .wrap{padding-top:64px;padding-bottom:96px}}
.page__title{font-size:30px;line-height:1.15}
@media (min-width:768px){.page__title{font-size:40px}}

.pubs{list-style:none;margin:40px 0 0;display:flex;flex-direction:column;gap:22px}

.pub{
  display:grid;gap:22px;align-items:center;
  border:1px solid var(--border);background:var(--grey);
  padding:20px;
}
.pub:hover{border-color:#c9c9c5}
@media (min-width:760px){
  .pub{grid-template-columns:232px minmax(0,1fr);gap:26px;padding:22px 24px}
  .pub--text{grid-template-columns:minmax(0,1fr)}   /* entries without a figure */
}

/* figure from the paper */
.pub__figure{
  display:block;background:var(--white);border:1px solid var(--border);
  padding:10px;
}
.pub__figure img{width:100%;height:auto;display:block}
.pub__dot{margin:0 7px}

/* group heading between card groups */
.pubs__group{
  margin:18px 0 -6px;font-size:11.5px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--muted);
}
.pubs__group:first-child{margin-top:0}

/* card text */
.pub__venue{
  font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
  margin-bottom:8px;
}
.pub__title{font-size:18px;line-height:1.32;letter-spacing:-.01em}
.pub__title a{color:inherit;text-decoration:none}
.pub__title a:hover{text-decoration:underline;text-underline-offset:4px}
.pub__authors{margin-top:8px;font-size:14.5px;color:var(--muted)}
.pub__authors strong{color:var(--ink);font-weight:600}
.pub__note{font-size:13px}
.pub__summary{margin-top:10px;font-size:15px;line-height:1.6;color:var(--ink-90)}

.pub__tags{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.pub__tags li{
  border:1px solid var(--border);background:var(--white);border-radius:999px;
  padding:2px 10px;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);
}

.pub__links{list-style:none;display:flex;flex-wrap:wrap;gap:18px;margin-top:16px}
.pub__links a{
  display:inline-flex;align-items:center;gap:7px;
  font-size:13.5px;color:var(--muted);text-decoration:none;
}
.pub__links a:hover{color:var(--ink)}
.pub__links a:hover .pub-icon{stroke:var(--ink)}
.pub-icon{
  width:15px;height:15px;stroke:var(--muted);fill:none;
  stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.pub-icon--solid{fill:var(--muted);stroke:none}          /* brand marks */
.pub__links a:hover .pub-icon--solid{fill:var(--ink);stroke:none}

/* --- single publication page --- */
.paper{max-width:760px}
.paper__back{font-size:13px;color:var(--muted);text-decoration:none}
.paper__back:hover{color:var(--ink)}
.paper__venue{
  margin-top:26px;font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--muted);
}
.paper__title{margin-top:8px;font-size:24px;line-height:1.28}
@media (min-width:768px){.paper__title{font-size:30px}}
.paper__date{margin-top:4px;font-size:13px;color:var(--muted)}
.paper .pub__links{margin-top:14px}
.paper__figure{
  margin-top:28px;border:1px solid var(--border);background:var(--white);padding:14px;
}
.paper__figure img{width:100%;height:auto;display:block}
.paper__abstract{margin-top:30px}
.paper__label{
  font-size:11.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);
}
.paper__abstract p{
  margin-top:12px;font-size:16px;line-height:1.75;text-align:justify;color:var(--ink-90);
}
.paper__abstract p + p{margin-top:16px}
.paper .pub__tags{margin-top:26px}

/* ---------- software ---------- */
.software{margin-top:28px;list-style:none}
/* direct children only — the link chips are list items too */
.software > li + li{margin-top:32px;padding-top:32px;border-top:1px solid var(--border)}
.band--grey .software > li + li{border-top-color:#e2e2dd}
.software__head{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap}
.software__name{font-family:var(--heading);font-size:20px;line-height:1.3}
/* one <li> per row of chips — an entry with `link_columns` puts more than one
   chip in a row, and they stay packed together rather than lining up in a
   reserved column, so every row comes out about the same width */
.software__links{display:flex;flex-direction:column;align-items:flex-start;gap:8px;list-style:none}
.software__links li{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.chip{
  display:inline-flex;align-items:center;gap:7px;
  padding:4px 13px;border:1px solid var(--border);border-radius:999px;
  background:var(--white);color:var(--muted);
  font-size:13px;line-height:1.6;text-decoration:none;white-space:nowrap;
}
.chip:hover{background:var(--black);border-color:var(--black);color:#fff}
.chip svg{
  width:14px;height:14px;flex-shrink:0;display:block;
  stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.chip svg.brand{stroke:none;fill:currentColor}
.software__text{margin-top:14px;max-width:80ch;font-size:16px;line-height:1.75;color:var(--ink-90);text-align:justify}
.software__text p + p{margin-top:14px}
@media (min-width:768px){
  .software__name{font-size:22px}
  .software__text{font-size:17px}
}
/* Wide enough for two columns: the name and its links sit on the left and the
   description takes the rest of the band, so no width is left unused. The left
   column is a fixed width so every description starts at the same x. */
@media (min-width:1000px){
  .software > li{display:grid;grid-template-columns:minmax(0,296px) minmax(0,1fr);gap:48px;align-items:start}
  .software__head{flex-direction:column;align-items:flex-start;gap:14px}
  .software__text{margin-top:0;max-width:none}
}
