/* Maya L. Foster's's Website: 2026-10-06 */
:root{
  --bg: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --brand: #2563eb;
  --brand-ink: #0b4ad4;
  --card: #f7fafc;
  --card-soft: #f1f5f9;
  --border: #cfd7e3; /*cfd7e3, e5e7eb*/
  --measure: 75ch;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family: 'Inter', sans-serif;
  line-height:1.6;
  font-size:14px;
}


h1,h2,h3,h4,h5{font-family: "Inter", sans-serif; line-height:1.25; margin:0 0 .5rem; font-style: normal !important;}
h1{font-size:2rem}
h2{font-size:1.5rem; margin-top:1.5rem}
h3{font-size:1.25rem}
.h4{font-size:1.125rem}
.h5{font-size:1rem}
.h6{font-size:.95rem}

a{color:var(--brand); text-decoration:none}
a:hover{text-decoration:underline; color:var(--brand-ink)}

img{max-width:100%; height:auto; display:block}

.container{max-width:1100px; margin:0 auto; padding:0 1rem}
.narrow{max-width:var(--measure)}

.section{padding:1rem 0; border-top:1px solid var(--border)}
.section.alt{background: #fafafa}

.site-header{
  border-bottom:1px solid var(--border);
  padding:1.5rem 0;
  position:sticky; top:0; backdrop-filter:saturate(180%) blur(8px);
  background:rgba(255,255,255,.92); z-index:20;
}
.site-title{margin:.25rem 0 .5rem}
.lede{color:var(--muted); margin:0 0 .5rem}
.meta{color:var(--muted); margin:0 0 .75rem}
.nav ul{display:flex; gap:1rem; flex-wrap:wrap; padding:0; margin:0; list-style:none}
<!-- .nav a{padding:.25rem .5rem; border-radius:.25rem} -->
.nav a{padding:.25rem 0;  margin-right:1rem; border-radius:.25rem}
.nav a:focus{outline:2px solid var(--brand); outline-offset:2px}

.avatar{width:160px; border-radius:12px; box-shadow:0 2px 6px rgba(0,0,0,.08)}

.card{
  border:1px solid var(--border);
  border-radius:12px;
  padding:1rem;
  background:#fff;
}
.card.soft{background:var(--card-soft)}

.button{
  display:inline-block;
  padding:.55rem .9rem;
  border-radius:.5rem;
  background:var(--brand);
  color:#fff;
}
.button:hover{background:var(--brand-ink); text-decoration:none}

.pubs{padding-left:1.1rem}
.pubs li{margin:.5rem 0}

.bullets{padding-left:1.1rem; margin:.5rem 0}
.bullets li{margin:.25rem 0}

.media-list{padding-left:1.1rem}
.media-list li{margin:.4rem 0}

.responsive-vid{position:relative; padding-top:56.25%}
.responsive-vid iframe{position:absolute; left:0; top:0; width:100%; height:100%; border:0}

.site-footer{padding:2rem 0; border-top:1px solid var(--border); color:var(--muted)}

.skip-link{position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden}
.skip-link:focus{left:1rem; top:1rem; width:auto; height:auto; background:#fff; border:2px solid var(--brand); padding:.5rem}

/*
@media (max-width: 860px){
  .site-header{position:static}
}
*/

/* Publications: uniform 3-column media */
.pub-feature{
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* equal widths */
  gap: 20px;
  align-items: start;                    /* let heights differ naturally */
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}
.pub-feature:first-of-type{ border-top: none; }

/* Left: image (force consistent width; crop tall images) */
.pub-media-left .pub-thumb{
  width: 100%;
  aspect-ratio: 16 / 9;    /* pick one ratio for uniformity */
  object-fit: cover;       /* fill box without distortion */
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

/* Middle: center details vertically + horizontally */
.pub-details{
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: .25rem .5rem;
}
.pub-title{ margin: .25rem 0 .25rem; font-size: 1.1rem; }
.pub-authors, .pub-venue{ margin: .15rem 0; color: var(--muted); }
.pub-links a{ margin: 0 .25rem; }

/* Right: video with fixed aspect, full width */
.pub-media-right .pub-video{
  aspect-ratio: 16 / 9;
  width: 100%;
  position: relative;
}
.pub-media-right .pub-video iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Stack 3 media cleanly on small screens */
@media (max-width: 860px){
  .pub-feature{ grid-template-columns: 1fr; }
}

.section-heading{
  display:flex;
  align-items:baseline;
  justify-content:flex-start;
  gap:12px;
  flex-wrap:wrap;
}
.section-heading h2{ margin:0; }
.section-heading .actions{ margin:0; }
.section-heading .button{ white-space:nowrap;
}

#contact,
#contact * { text-align: left !important; }

/* If centering utilities elsewhere inside Contact, neutralize them here */
#contact .center,
#contact .text-center,
#contact .text-center-md { text-align: left !important; }

/* Make in-page anchors land below the sticky header */
:root { --header-offset: 70px; }      /* tweak to match header height */
html { scroll-padding-top: var(--header-offset); }
.section { scroll-margin-top: var(--header-offset); }

/* Left-align specific section titles */
.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.section-title {
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
  background: #fff;
}
.section-title h2 {
  margin: 0;
  text-align: left;
}

/* Ongoing Projects: thumbnail left, text right */
.proj{
  display: grid;
  grid-template-columns: 160px 1fr;   /* thumbnail | text */
  gap: 14px;
  align-items: start;
  margin-top: .5rem;                 /* space below the title */
}
.proj_no_image{
  display: block;
  grid-template-columns: 160px 1fr;   /* text */
  gap: 14px;
  align-items: start;
  margin-top: .5rem;                 /* space below the title */
}
.proj-thumb{
  width: 160px;
  height: 160px;
  aspect-ratio: 1 / 1;               /* keeps square; supported widely */
  object-fit: cover;                 /* crops nicely without distortion */
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}
.proj-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  box-sizing: border-box;
}
@media (max-width: 760px){
  .proj{
    grid-template-columns: 1fr;      /* stack on small screens */
  }
  .proj-thumb{
    width: 100%;
    height: auto;                     /* full-width image on mobile */
    <!-- aspect-ratio: 1 / 1; -->
  }
}

/* Minimal fallback grid if css/grd.css fails to load */
.grid{ display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:1.25rem; }
.col{ grid-column: auto / span 12; }         /* default full width */

.span-3{ grid-column: span 3; }
.span-5{ grid-column: span 5; }
.span-6{ grid-column: span 6; }
.span-7{ grid-column: span 7; }
.span-9{ grid-column: span 9; }
.span-12{ grid-column: span 12; }

@media (max-width: 860px){
  .span-md-12{ grid-column: span 12 !important; }
}
.align-center{ align-items: center; }
.gap-lg{ gap: 1.5rem; }

/* Compact header tweaks */
.site-header{
  padding: .75rem 0;              
}
.site-header .grid{
  gap: .75rem;                    /* tighter grid spacing in header */
}
.site-title{ margin: .1rem 0 .25rem; }
h1.site-title{ font-size: 1.75rem; }  /* was 2rem */
.lede{ margin: 0 0 .25rem; line-height: 1.3; }
.meta{ margin: 0 0 .4rem; font-size: .95rem; }
.nav ul{ gap: .55rem; }           /* was 1rem */
.nav a{ padding: .2rem .4rem; }   /* a bit slimmer pills */
.avatar{ width: 120px; }          /* was 160px; try 96–120px */

/* Mobile hamburger nav */
/*.nav-toggle{
  display:none;
  background:transparent;
  border:0;
  padding:.4rem;
  margin-left:auto;
  border-radius:.5rem;
  color:var(--ink);
}*/

/* iOS-safe mobile nav overrides */
@media (max-width: 860px){
  /* Header scrolls away; no filter to avoid containing context on iOS */
  .site-header{
    position: static !important;
    z-index: 1 !important;
    padding-right: 68px;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Show the fixed hamburger */
  #nav-toggle{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--border);
    border-radius: .5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    touch-action: manipulation;
    pointer-events: auto !important;
  }

  /* Dropdown panel fixed to viewport, aligned to the button */
  #nav-primary{
    position: fixed !important;
    top: 54px !important;       /* just under the button */
    right: 12px !important;
    left: auto !important;
    width: min(82vw, 160px) !important;  /* adjust width if you like */
    z-index: 9998 !important;

    background: #fff;
    border: 0; box-shadow: none;
    max-height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    transition: max-height .25s ease;
  }
  #nav-primary.open{
    max-height: 70vh !important;
    border: 1px solid var(--border) !important;
    border-radius: .5rem !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.08) !important;
    pointer-events: auto !important;
  }

  /* Right-aligned links in the dropdown */
  #nav-primary > ul{
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    text-align: right !important;
    gap: .25rem !important;
    padding: .4rem .6rem 0.8rem !important;
    margin: 0 !important;
  }
  #nav-primary li{ width: 100% !important; }
  #nav-primary a{
    display: block !important;
    width: 100% !important;
    text-align: right !important;
    padding: .35rem .5rem !important;
  }
}

/* Global: fixed button + single visible icon */
#nav-toggle{
  position: fixed;        /* fixed to the viewport */
  top: 10px; 
  right: 12px;
  z-index: 2147483647;    /* sit above everything */
  display: none;          /* only shown on mobile via media query */
}
#nav-toggle svg{ display: none; }
#nav-toggle[aria-expanded="false"] .icon-ham{ display: block; }
#nav-toggle[aria-expanded="true"]  .icon-close{ display: block; }

@media (max-width: 860px){
  /* Belt-and-suspenders override in case any earlier rule wins */
  header.site-header nav#nav-primary { position: fixed !important; }
}

/* Research and Creative Interests cards */
.research_creative_interests{
  list-style:none; margin: .75rem 0 0; padding:0;
  display:grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 860px){ .research_creative_interests{ grid-template-columns: 1fr; } }

.research_creative_interest{
  display:grid; grid-template-columns: 56px 1fr; gap:12px;
  align-items:start; padding:.9rem; border:1px solid var(--border);
  border-radius:12px; background:#fff;
}
.research_creative_interest-no_logo{
  display:block; grid-template-columns: 56px 1fr; gap:12px;
  align-items:start; padding:.9rem; border:1px solid var(--border);
  border-radius:12px; background:#fff;
}
.research_creative_interest-logo{
  width:56px; height:56px; border-radius:8px; object-fit:contain;
  background:#fff; border:1px solid var(--border);
}
.research_creative_interest-body{ min-width:0; }
.research_creative_interest-meta{ color:var(--muted); font-size:.95rem; line-height:1.3; }
.research_creative_interest-title{ margin:.15rem 0 .35rem; font-size:1.05rem; line-height:1.35; font-style: normal !important;}
.research_creative_interest-actions a{ font-weight:600; }