:root{
  --font-serif:    'Source Serif 4', Georgia, serif;
  --font-sans:     'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --color-primary: #1f6f78;
  --color-accent:  #e1a23a;
  --color-bg:      #f7faf9;
  --color-text:    #1d1f21;
  --font-serif:    'Source Serif 4', Georgia, serif;
  --font-sans:     'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  /* Brand palette: blue → purple */
  --color-primary: #3B57A6; /* indigo (links, headings accents) */
  --color-accent:  #7B3FA0; /* royal purple (buttons, highlights) */

  /* Neutrals (keep the clean, airy feel) */
  --color-bg:      #F7FAF9; /* page background */
  --color-surface: #FFFFFF; /* cards, header/footer surfaces */
  --color-text:    #1D1F21; /* body text */
  --color-muted:   rgba(0,0,0,0.6); /* subtitles/meta text */

  /* Subtle tints for UI chrome */
  --tint-1:        rgba(59, 87, 166, 0.08);  /* primary tint */
  --tint-2:        rgba(123, 63, 160, 0.10); /* accent tint */

  /* Harmonised gradient (use sparingly: hero, avatar fallbacks) */
  --grad-start:    #3B57A6;  /* indigo */
  --grad-mid:      #3AA0B2;  /* soft teal nod to logo center */
  --grad-end:      #7B3FA0;  /* purple */

  /* Helpful derived colors */
  --link-hover:    #2E4690;  /* darker primary for hover */
  --border-subtle: rgba(0,0,0,0.06);
  --shadow-soft:   0 10px 22px rgba(0,0,0,0.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--color-bg);color:var(--color-text);font-family:var(--font-sans);line-height:1.65}

a{color:var(--color-primary);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px;margin:0 auto;padding:0 1.25rem}

/* Header */
.site-header{background:#fff;border-bottom:1px solid rgba(0,0,0,0.06);position:sticky;top:0;z-index:40}
.navbar{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:.8rem 0}
.branding{display:flex;align-items:baseline;gap:.5rem}
.branding .site-title{font-family:var(--font-serif);font-weight:800;letter-spacing:.4px;color:var(--color-primary);font-size:1.55rem;margin:0;text-decoration:none;}
.branding .site-subtitle{color:rgba(0,0,0,.6);font-size:1.05rem}
.nav-links{display:flex;gap:1rem;align-items:center;font-size:1.05rem}
.nav-toggle{display:none}
@media (max-width:800px){.nav-links{display:none}.nav-toggle{display:inline-flex;background:transparent;border:none;font-size:1.4rem}.nav-panel{display:block}.nav-panel.hidden{display:none}}

/* Hero */
.hero{background:linear-gradient(180deg, rgba(31,111,120,.08), transparent);padding-bottom:2rem;border-bottom:1px solid rgba(0,0,0,.06)}
.hero-inner{padding:1.25rem 0 0}
.hero-text{text-align:center;margin:1.25rem auto 1.5rem}
.hero-title{font-family:var(--font-serif);font-size:clamp(1.6rem,3vw,2.4rem);margin:.4rem 0}
.hero-subtitle{color:rgba(0,0,0,.7);max-width:800px;margin:.25rem auto 0}
.hero-slider{position:relative;height:420px;border-radius:18px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,.08)}
.slide{position:absolute;inset:0;opacity:0;transition:opacity .8s ease;background-position:center;background-size:cover}
.slide::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.25))}
.slide.active{opacity:1}

/* Cards & grids */
.grid{display:grid;gap:1.25rem}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
@media (max-width:900px){.grid-3{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.grid-3,.grid-2{grid-template-columns:1fr}}
.card{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;transition:transform .12s ease, box-shadow .12s ease}
.card:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(0,0,0,.08)}
.card-img{aspect-ratio:16/9;background-size:cover;background-position:center}
.card-body{padding:1rem}
.card-title{font-weight:700;margin:0 0 .4rem}
.card-meta{color:rgba(0,0,0,.55);font-size:.9rem}

/* Content */
.page-title{font-family:var(--font-serif);font-weight:900;margin:1.2rem 0 .8rem;font-size:clamp(1.4rem,2.5vw,2rem)}
.content{padding:1rem 0 2.5rem}
.prose p{margin:0 0 1rem}
.prose h2,.prose h3{margin:2rem 0 .6rem;font-family:var(--font-serif)}
.prose img{max-width:100%;border-radius:10px}

/* === Footer (dark banner) === */
.site-footer--dark {
  --footer-bg: #0f1320;
  --footer-text: rgba(255,255,255,0.92);
  --footer-muted: rgba(255,255,255,0.7);
  --footer-border: rgba(255,255,255,0.08);

  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 2rem;
}

.site-footer--dark a { color: var(--footer-text); text-decoration: none; }
.site-footer--dark a:hover { color: var(--color-accent); text-decoration: none; }

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 2rem 0 1.2rem;
}
@media (max-width: 900px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand-link {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem;
  transition: transform .2s ease, color .2s ease;
}
.footer-brand-link:hover { transform: scale(1.02); }

.footer-logo { width: 44px; height: auto; display: block; transition: filter .2s ease; }
.footer-brand-link:hover .footer-logo { filter: brightness(0.9) saturate(1.15); }

.footer-title { font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.footer-tagline { color: var(--footer-muted); font-size: .95rem; }

.footer-address {
  font-style: normal; color: var(--footer-muted); margin-top: .6rem; line-height: 1.5;
}
.footer-address a { color: var(--footer-text); border-bottom: 1px dashed var(--footer-border); }
.footer-address a:hover { color: var(--color-accent); border-bottom-color: transparent; }

.footer-links .footer-heading,
.footer-latest .footer-heading {
  font-weight: 700; margin-bottom: .5rem;
}
.footer-links ul, .footer-latest ul { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-latest li { margin: .35rem 0; }

.footer-post-date {
  color: var(--footer-muted);
  font-size: .9rem;
  margin-left: .35rem;
}

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  margin-top: .5rem;
  padding: .7rem 0;
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (max-width: 560px) { .footer-bottom-inner { flex-direction: column; align-items: flex-start; } }


/* Home: people strip */
.home-people { padding: 2rem 0 1rem; }
.home-people-head { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; }
.home-people-more { font-weight:600; }

.avatar-grid {
  display:grid; gap:1rem;
  grid-template-columns: repeat(6, minmax(0,1fr));
}
@media (max-width:1000px){ .avatar-grid{ grid-template-columns: repeat(5,1fr);} }
@media (max-width:800px){  .avatar-grid{ grid-template-columns: repeat(4,1fr);} }
@media (max-width:600px){  .avatar-grid{ grid-template-columns: repeat(3,1fr);} }
@media (max-width:420px){  .avatar-grid{ grid-template-columns: repeat(2,1fr);} }

.avatar-card {
  background:#fff; border:1px solid rgba(0,0,0,0.06); border-radius:14px;
  padding:0.9rem 0.7rem; text-align:center; display:flex; flex-direction:column; align-items:center;
  transition:transform .12s ease, box-shadow .12s ease;
}
.avatar-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.08); }

.avatar-img, .avatar-fallback {
  width:84px; height:84px; border-radius:9999px; margin-bottom:0.6rem;
  background-size:cover; background-position:center; flex:0 0 auto;
}
.avatar-fallback {
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-family: var(--font-serif);
  background: radial-gradient(circle at 30% 30%, var(--color-primary), var(--color-accent));
  color:#fff;
}
.avatar-name { font-weight:700; line-height:1.25; }
.avatar-role { font-size:0.9rem; color: rgba(0,0,0,0.6); }

/* Subtle hover effect for site title/logo */

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

.site-brand:hover {
  text-decoration: none;                /* keep no underline */
  transform: scale(1.05);             /* slight zoom */
  color: var(--link-hover);             /* darker primary defined in :root */
}

.site-brand:hover .brand-text {
  color: var(--link-hover);             /* make just the text shift color */
}

.site-brand:hover .brand-mark {
  filter: brightness(0.9) saturate(1.15);
}

/*.brand-mark {
  transition: filter 0.25s ease, transform 0.25s ease;
}*/

.site-brand:hover .brand-mark {
  filter: brightness(0.85) saturate(1.2);
  /*transform: scale(1.04); /* tiny zoom for a “lifted” feel */
}


/* right menu - zoom slightly, darken, and bold on hover*/
header a:hover { 
  text-decoration: none; 
  transform: scale(1.05);
  color: var(--link-hover);
  font-weight: 500; 
}


/*logo styling */
.site-logo {
  height: 44px;         /* was ~36px, bumped for balance */
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.branding {
  display: flex;
  align-items: center;
  gap: 0.6rem;           /* space between logo and text */
}

/* about page styling */
.about-columns h2 { 
  margin-top: 0; 
  color: var(--color-primary);
}
.about-columns ul { 
  margin: 0.5rem 0 0; 
  padding-left: 1.1rem; 
}


/* Social icons under member cards */
.avatar-social {
  display:flex;
  gap: .5rem;
  justify-content:center;
  margin-top: .45rem;
  text-decoration: none;
}

.avatar-social a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  color: var(--color-primary);
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease, color .12s ease, border-color .12s ease;
}

.avatar-social a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  color: var(--color-accent);
  border-color: rgba(0,0,0,0.12);
  text-decoration: none;   /* make sure it doesn’t come back on hover */
}

.avatar-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* People index grid */
.people-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1000px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .people-grid { grid-template-columns: 1fr; } }

.person-card {
  background: #fff;
  border: 1px solid var(--border-subtle, rgba(0,0,0,0.06));
  border-radius: 14px;
  padding: 1rem .9rem;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease;
}
.person-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft, 0 10px 22px rgba(0,0,0,0.08)); }

.person-photo {
  width: 110px; height: 110px;
  border-radius: 9999px;
  background: radial-gradient(circle at 30% 30%, var(--color-primary), var(--color-accent));
  background-size: cover; background-position: center;
  margin: 0 auto .6rem; display: block;
  overflow: hidden;
}
.person-fallback {
  width: 100%; height: 100%;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:800; font-family: var(--font-serif);
}

.person-name { margin: 0.25rem 0 0; font-weight: 800; }
.person-name a { color: var(--color-text); text-decoration: none; }
.person-name a:hover { color: var(--color-primary); text-decoration: underline; }
.person-role { color: rgba(0,0,0,0.6); font-size: 0.95rem; }

/* Social icons (shared with About) */
.avatar-social {
  display:flex; gap:.5rem; justify-content:center; margin-top:.5rem;
}
.avatar-social a {
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:9999px;
  border:1px solid var(--border-subtle, rgba(0,0,0,0.06));
  color: var(--color-primary); background:#fff;
  transition: transform .12s ease, box-shadow .12s ease, color .12s ease, border-color .12s ease;
}
.avatar-social a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft, 0 10px 22px rgba(0,0,0,0.08));
  color: var(--color-accent); border-color: rgba(0,0,0,0.12);
}
.avatar-social svg { width:14px; height:14px; fill: currentColor; }

/* Person detail layout */
.person-layout .person-header { margin-bottom: 1rem; }
.person-hero { display:flex; align-items:center; gap: 1rem; }
.person-hero-photo {
  width: 120px; height: 120px; border-radius: 9999px;
  background-size: cover; background-position: center;
  background-color: #eaeaea; flex: 0 0 auto;
}
.person-hero-meta { min-width: 0; }
@media (max-width: 560px) {
  .person-hero { flex-direction: column; text-align:center; }
}

.project-image {
  max-width: 700px; /* adjust as you like */
  margin: 1.5rem auto;
}
.project-image img {
  width: 100%;
  height: auto;
  border-radius: 8px; /* optional */
}
.project-links {
  margin-top: 2rem;
}

/* Collaboration detail pages */
.collab-image {
  max-width: 500px;   /* tweak this number to taste (e.g., 560 / 800) */
  margin: 1.5rem auto;
}
.collab-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* optional */
}
.collab-links { margin-top: 2rem; }


/* Wider, even grid */
.home-people .avatar-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* slightly wider cards */
  gap: 1.25rem;
  align-items: stretch; /* stretch items to tallest in the row */
}

/* Make each card a column and pin icons to bottom */
.home-people .avatar-card{
  display: flex;
  flex-direction: column;
  height: 100%;                /* ensures equal heights per row */
  padding: 1rem;
  border-radius: 14px;
}

/* Tidy image circle (optional if you already have this) */
.home-people .avatar-img{
  width: 96px; height: 96px;
  margin: 0 auto .75rem;
  border-radius: 9999px;
  background-size: cover;
  background-position: center;
}

/* Reserve space for name/role to align cards vertically */
.home-people .avatar-name{
  text-align: center;
  font-weight: 600;
  line-height: 1.25;
  min-height: calc(1.25em * 2);  /* up to 2 lines of name */
}

.home-people .avatar-role{
  text-align: center;
  opacity: .8;                  /* or your muted color */
  line-height: 1.25;
  min-height: calc(1.25em * 2);  /* up to 2 lines of role */
}

/* Icons row aligned across the row */
.home-people .avatar-social{
  margin-top: auto;             /* pushes icons to the bottom of the card */
  display: flex;
  justify-content: center;
  gap: .5rem;
}

/* Reusable pill chips */
.pill-list{
  display:flex; flex-wrap:wrap; gap:.4rem; margin:.6rem 0 0;
  padding:0; list-style:none;
}
.pill-list--sm { gap:.3rem; margin-top:.4rem; }
.pill{
  display:inline-block; padding:.25rem .55rem; border-radius:999px;
  font-size:.85rem; line-height:1; background:rgba(0,0,0,.06);
}

/* Optional: match your theme */
.dark .pill{ background:rgba(255,255,255,.12); }

.home-people .avatar-card{
  position: relative;  /* needed for the stretched link */
}

.home-people .avatar-link{
  position: absolute;
  inset: 0;           /* stretch to full card */
  z-index: 1;         /* sits under the socials */
}

/* Keep social icons clickable above the stretched link */
.home-people .avatar-social{
  position: relative;
  z-index: 2;
}

/* Logo SVG styling */
.site-brand { display:flex; align-items:center; gap:.5rem; }
.brand-mark svg { height:28px; width:auto; display:block; }
.dark .brand-mark svg { fill: currentColor; }  /* if your SVG paths use fill=currentColor */


.branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none; /* optional */
}

.brand-mark svg {
  height: 28px;  /* adjust as needed */
  width: auto;
  display: block;
}

.brand-text {
  font-size: 2rem; /* matches your title size */
  font-weight: 600;
}
.site-subtitle {
  font-size: 0.95rem;
  opacity: 0.8; /* lighter look */
}

.brand-mark {
  height: 64px;   /* or 32px if you prefer */
  width: auto;    /* keeps correct aspect ratio */
  display: block;
}

/* for smaller screens, scale down */
@media (max-width: 600px) {
  .brand-mark { height: 40px; }
  .brand-text { font-size: 1.4rem; }
}

/* Adjust spacing */
.site-subtitle {
  font-size: 1rem;
  opacity: 0.8;
}

/* logo on about page */
.about-intro {
  display: flex;
  align-items: center;
  gap: 0.8rem;       /* space between logo and text */
  margin-bottom: 1.5rem;
}

.about-intro .about-logo {
  width: 50px;       /* adjust to taste */
  height: auto;
  flex-shrink: 0;
}


/* 404 emoji */
.page-404 .emoji {
  font-size: 2em;     /* a bit bigger than text */
  line-height: 1;
  vertical-align: -0.15em;
}
