/* Computational Zoonoses Lab
   Design matched to the version Lili approved (Lovable): warm sand background, terracotta primary,
   dusk-brown team/footer bands, Fraunces display + Manrope text. Single light theme by design. */
:root {
  --bg: #fcf6ee;
  --fg: #301c15;
  --card: #fffbf6;
  --primary: #ba4e25;
  --primary-fg: #fffaf3;
  --sand: #f6e9da;
  --muted: #f4e9dd;
  --muted-fg: #6f584d;
  --accent: #db9d4f;
  --sage: #446352;
  --sage-fg: #f6f8f2;
  --dusk: #301812;
  --dusk-fg: #f8ece0;
  --border: #e6d4c3;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 1rem;
  --wrap: 72rem;
  --gutter: 1.25rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--text); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; z-index: 50; background: var(--fg); color: var(--bg); padding: .5rem 1rem; }
.skip:focus { left: 1rem; }

/* Buttons and labels */
.btn { display: inline-block; border-radius: 999px; padding: .75rem 1.5rem; font-weight: 600; text-decoration: none; transition: opacity .15s, background-color .15s; }
.btn:hover { opacity: .9; }
.btn-sm { padding: .45rem 1.1rem; font-size: .92rem; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-ghost { border: 1px solid rgba(248, 236, 224, .45); color: var(--dusk-fg); }
.btn-ghost:hover { background: rgba(248, 236, 224, .1); opacity: 1; }
.btn-light { background: var(--bg); color: var(--primary); }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); margin-bottom: .75rem; }
.eyebrow-light { color: var(--accent); }
.section-title { font-size: clamp(2.2rem, 4.5vw, 3rem); line-height: 1.2; }
.sub-title { font-size: clamp(1.6rem, 3vw, 1.9rem); margin-top: 5rem; }
.sage { color: var(--sage); font-weight: 700; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(252, 246, 238, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(230, 212, 195, .6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--display); font-size: 1.25rem; text-decoration: none; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; font-size: .95rem; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--fg); opacity: .85; }
.site-nav a:not(.btn):hover, .site-nav a.is-active { color: var(--primary); opacity: 1; }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; isolation: isolate; color: var(--dusk-fg); background: var(--dusk); overflow: hidden; min-height: min(92vh, 52rem); display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--dusk) 0%, rgba(48, 24, 18, .5) 50%, rgba(48, 24, 18, 0) 100%); }
.hero-inner { width: 100%; padding-block: 8rem 5rem; }
.hero .eyebrow { letter-spacing: .25em; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(3rem, 8vw, 4.5rem); line-height: 1.05; max-width: 12ch; }
.hero-lede { margin-top: 1.5rem; max-width: 36rem; font-size: clamp(1.1rem, 2vw, 1.25rem); color: rgba(248, 236, 224, .85); }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* Sections */
.section { padding-block: clamp(4.5rem, 9vw, 7rem); }
.section-sand { background: var(--sand); }
.section-dusk { background: var(--dusk); color: var(--dusk-fg); }

/* Overview */
.overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.statement { font-size: clamp(2.2rem, 4.8vw, 3.2rem); line-height: 1.15; }
.overview-text { display: grid; gap: 1.5rem; color: var(--muted-fg); font-size: 1.05rem; line-height: 1.7; }
.overview-text > p:first-child { font-size: 1.15rem; color: var(--fg); }
.questions { border-left: 3px solid var(--accent); padding-left: 1.25rem; display: grid; gap: 1rem; color: var(--fg); }

/* Research cards */
.areas { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.area-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(48, 28, 21, .08); display: flex; flex-direction: column; }
.area-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.area-body { padding: 1.75rem; display: grid; gap: .75rem; align-content: start; }
.area-num { font-family: var(--display); font-size: 1.9rem; color: var(--accent); line-height: 1; }
.area-body h3 { font-size: 1.45rem; }
.area-body p { color: var(--muted-fg); font-size: .95rem; line-height: 1.65; }

/* Projects */
.projects { margin-top: 3rem; display: grid; gap: 1.5rem; }
.project-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.project-card h3 { font-size: 1.6rem; }
.project-card > div:first-child > p { margin-top: .9rem; color: var(--muted-fg); line-height: 1.7; }
.chips { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { background: var(--sage); color: var(--sage-fg); border-radius: 999px; padding: .3rem .8rem; font-size: .75rem; font-weight: 500; }
.mini-label { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: .6rem; }
.collabs ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .9rem; }
.collabs a { text-decoration: none; font-weight: 600; }
.collabs a:hover { color: var(--primary); }
.collabs span { color: var(--muted-fg); }
.past { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.past-card { background: var(--muted); border-radius: var(--radius); padding: 1.75rem; display: grid; gap: .75rem; align-content: start; }
.past-card h4 { font-size: 1.2rem; }
.past-card p { font-size: .9rem; color: var(--muted-fg); line-height: 1.65; }
.past-card .meta { font-size: .8rem; color: var(--fg); }
.past-card .meta span { font-weight: 600; color: var(--primary); }
.past-card .meta a { text-decoration: none; }
.past-card .meta a:hover { color: var(--primary); }

/* Team */
.pi { margin-top: 3.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2.5rem; align-items: center; }
.pi img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--radius); }
.pi-label { font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); }
.pi h3 { margin-top: .5rem; font-size: clamp(2rem, 4vw, 2.6rem); }
.pi-bio { margin-top: 1.25rem; font-size: 1.1rem; line-height: 1.7; color: rgba(248, 236, 224, .82); max-width: 42rem; }
.members { margin-top: 4rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.member { text-decoration: none; color: inherit; display: block; }
a.member:hover { opacity: .9; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: .75rem; background: rgba(248, 236, 224, .08); }
.member h4 { margin-top: 1rem; font-size: 1.15rem; }
.member .role { margin-top: .15rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.member .bio { margin-top: .5rem; font-size: .88rem; line-height: 1.55; color: rgba(248, 236, 224, .7); }
.alumni { margin-top: 2rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.alum { display: flex; align-items: center; gap: .75rem; border-radius: .75rem; padding: .5rem; text-decoration: none; color: inherit; min-width: 0; }
a.alum:hover { background: rgba(248, 236, 224, .06); }
.alum img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; flex: none; }
.alum div { min-width: 0; }
.alum-name { font-size: .88rem; font-weight: 600; line-height: 1.25; }
.alum-role { font-size: .75rem; color: rgba(248, 236, 224, .6); line-height: 1.3; }

/* Publications */
.filters { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { font: inherit; font-size: .88rem; font-weight: 500; border: 0; border-radius: 999px; padding: .4rem 1rem; cursor: pointer; background: var(--muted); color: var(--muted-fg); transition: background-color .15s; }
.pill:hover { background: var(--sand); }
.pill.is-active { background: var(--primary); color: var(--primary-fg); }
.pubs { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.pub { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: .5rem; padding-block: 1.5rem; border-top: 1px solid var(--border); }
.pub:first-child { border-top: 0; }
.pub-year { font-family: var(--display); font-size: 1.25rem; color: var(--accent); }
.pub h3 { font-family: var(--text); font-size: 1rem; font-weight: 600; line-height: 1.45; }
.pub h3 a { text-decoration: none; }
.pub h3 a:hover { color: var(--primary); }
.pub h3 a::after { content: " \2197"; font-size: .85em; color: var(--primary); }
.pub-authors { margin-top: .25rem; font-size: .88rem; color: var(--muted-fg); }
.pub-authors b { color: var(--fg); font-weight: 600; }
.pub-venue { margin-top: .25rem; font-size: .88rem; font-style: italic; color: var(--sage); }

/* News */
.news { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.news-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(48, 28, 21, .08); display: flex; flex-direction: column; }
.news-card > img, .video-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card > div { padding: 1.5rem; display: grid; gap: .6rem; align-content: start; }
.news-card h3 { font-size: 1.3rem; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { color: var(--primary); }
.news-card p { font-size: .9rem; color: var(--muted-fg); line-height: 1.65; }
.news-card .date { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.video-thumb { position: relative; display: block; background: var(--dusk); }
.play { position: absolute; left: 50%; top: 50%; width: 3.5rem; height: 3.5rem; margin: -1.75rem 0 0 -1.75rem; border-radius: 50%; background: var(--primary); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.play::after { content: ""; position: absolute; left: 1.35rem; top: 1rem; border-left: 1.1rem solid var(--primary-fg); border-top: .75rem solid transparent; border-bottom: .75rem solid transparent; }
.video-thumb:hover .play { opacity: .9; }

/* Join */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: stretch; }
.join-text { margin-top: 1.5rem; display: grid; gap: 1rem; color: var(--muted-fg); line-height: 1.7; }
.join-img { width: 100%; height: 100%; min-height: 20rem; max-height: 32.5rem; object-fit: cover; border-radius: var(--radius); }
.paths { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.path { background: var(--card); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 1px 3px rgba(48, 28, 21, .08); }
.path h3 { font-size: 1.3rem; }
.path p { margin-top: .75rem; font-size: .9rem; color: var(--muted-fg); }
.cta { margin-top: 4rem; background: var(--primary); color: var(--primary-fg); border-radius: 1.5rem; padding: 3.5rem 2rem; text-align: center; }
.cta h3 { font-size: clamp(1.9rem, 4vw, 2.4rem); }
.cta p { margin: 1rem auto 0; max-width: 36rem; color: rgba(255, 250, 243, .85); }
.cta .btn { margin-top: 2rem; }
.cta .cta-email { margin-top: .9rem; font-size: .85rem; opacity: .8; user-select: all; }

/* Footer */
.site-footer { background: var(--dusk); color: rgba(248, 236, 224, .7); padding-block: 2.5rem; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-brand img { width: 2rem; height: 2rem; border-radius: 50%; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 1000px) {
  .members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .alumni { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .overview, .project-card, .pi, .join { grid-template-columns: minmax(0, 1fr); }
  .areas, .news, .paths { grid-template-columns: minmax(0, 1fr); }
  .past { grid-template-columns: minmax(0, 1fr); }
  .members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alumni { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pi img { max-width: 20rem; }
  .join-img { max-height: 22rem; }
  .nav-toggle { display: block; font: inherit; font-size: .95rem; font-weight: 600; background: none; color: var(--fg); border: 1px solid var(--border); border-radius: 999px; padding: .4rem 1rem; cursor: pointer; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: .5rem var(--gutter) 1.25rem; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding-block: .7rem; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: 1rem; text-align: center; }
}
@media (max-width: 520px) {
  .alumni { grid-template-columns: minmax(0, 1fr); }
  .pub { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .hero-inner { padding-block: 7rem 3.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Privacy page */
.prose { max-width: 42rem; display: grid; gap: 1.1rem; color: var(--muted-fg); line-height: 1.7; }
.prose .lead { font-size: 1.15rem; color: var(--fg); }
.prose h3 { font-size: 1.35rem; color: var(--fg); margin-top: .75rem; }
.prose a { color: var(--primary); }
