/* ==========================================================================
   Scorletti Lab — stylesheet
   Palette drawn from the lab's lipid-droplet micrograph: deep navy + amber.
   Plain CSS, no build step. Mobile-first.
   ========================================================================== */

:root {
  --navy-900: #0f2338;
  --navy-800: #16324d;
  --navy-700: #1e4266;
  --steel: #5b84a8;
  --amber: #e8a13d;
  --amber-deep: #b97718;
  --gold-light: #f6c76b;
  --paper: #faf8f4;
  --card: #ffffff;
  --ink: #1c2a38;
  --muted: #55677a;
  --line: #e5ded2;
  --plain-bg: #fdf3e2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--navy-800);
  margin: 0 0 0.5em;
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--navy-700); text-decoration-color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--amber-deep); }

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

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header / nav ------------------------------------------------------- */

.site-header {
  background: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand span {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}

.site-nav a {
  color: #cfdbe6;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: #fff; }

.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--amber);
}

/* --- Hero (home) -------------------------------------------------------- */

.hero {
  background:
    linear-gradient(100deg, rgba(15,35,56,0.95) 0%, rgba(15,35,56,0.82) 45%, rgba(15,35,56,0.40) 100%),
    url("../images/lipid-droplets.jpg") center / cover no-repeat;
  color: #fff;
  padding: 88px 0 72px;
}

.hero h1 {
  color: #fff;
  font-size: 1.9rem;
  max-width: 28ch;
  margin-bottom: 0.4em;
  text-shadow: 0 2px 18px rgba(8, 20, 34, 0.6);
}

.hero .hero-sub {
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: #e9eff5;
  max-width: 56ch;
  margin: 0 0 0.6em;
  text-shadow: 0 1px 12px rgba(8, 20, 34, 0.75);
}

.hero .lede {
  font-size: 1.15rem;
  max-width: 52ch;
  color: #f0f5fa;
  text-shadow: 0 1px 12px rgba(8, 20, 34, 0.75);
}

.hero .affil {
  margin-top: 1.6em;
  font-size: 0.95rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 10px rgba(8, 20, 34, 0.75);
}

.hero .cta-row { margin-top: 1.8em; display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Inner-page banner --------------------------------------------------- */

.page-banner {
  background:
    linear-gradient(90deg, rgba(15,35,56,0.88) 0%, rgba(15,35,56,0.62) 100%),
    url("../images/lipid-droplets.jpg") center 35% / cover no-repeat;
  color: #fff;
  padding: 44px 0 36px;
}

.page-banner h1 { color: #fff; margin-bottom: 0.2em; }

.page-banner p {
  color: #dde6ee;
  max-width: 62ch;
  margin: 0;
  font-size: 1.05rem;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--amber);
}

.btn-solid { background: var(--amber); color: var(--navy-900); }
.btn-solid:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-900); }

.btn-ghost { color: #fff; }
.btn-ghost:hover { background: rgba(232,161,61,0.15); color: #fff; }

.btn-navy { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }

/* --- Sections ------------------------------------------------------------ */

.section { padding: 56px 0; }
.section.alt { background: #f2ede4; }

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 6px;
}

.vision {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--navy-800);
  border-left: 4px solid var(--amber);
  padding: 4px 0 4px 20px;
  margin: 0 0 1.3em;
  max-width: 58ch;
}

/* --- Cards ---------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: 6px;
  padding: 22px 22px 18px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15,35,56,0.10);
  color: var(--ink);
}

.card h3 { margin-bottom: 0.4em; }

.card p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.card .more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--amber-deep);
}

/* --- Research page -------------------------------------------------------- */

.thrust {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.thrust:last-of-type { border-bottom: none; }

.thrust h2 { max-width: 30ch; }

.thrust-meta { font-size: 0.92rem; color: var(--muted); margin: -2px 0 18px; }

.plain {
  background: var(--plain-bg);
  border-left: 4px solid var(--amber);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px 14px;
  margin: 20px 0;
}

.plain .plain-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 6px;
}

.plain p { margin: 0; }

.keypaper {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 14px;
}

.keypaper strong { color: var(--ink); }

/* --- Publications ---------------------------------------------------------- */

.pub-list { list-style: none; padding: 0; margin: 24px 0 0; }

.pub-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}

.pub-list .authors { color: var(--muted); }
.pub-list .authors strong { color: var(--ink); }
.pub-list .title { display: block; font-weight: 600; margin: 2px 0; }
.pub-list .venue { font-style: italic; }

.pub-note {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--amber-deep);
}

.pub-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* --- People ----------------------------------------------------------------- */

.pi-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  margin-top: 24px;
}

.pi-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  border: 3px solid var(--amber);
}

img.pi-photo { object-fit: cover; }

.pi-meta { font-size: 0.95rem; color: var(--muted); margin-bottom: 1em; }

.timeline { list-style: none; padding: 0; margin: 10px 0 0; font-size: 0.95rem; }
.timeline li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.timeline .yrs { display: inline-block; min-width: 110px; color: var(--amber-deep); font-weight: 600; }

/* --- Join ---------------------------------------------------------------------- */

.position {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 0 6px 6px 0;
  padding: 22px 24px;
  margin-top: 20px;
}

.position h3 { margin-bottom: 0.3em; }

.position h4 { margin: 1.5em 0 0.4em; font-size: 1.05rem; }

.position-meta { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.2em; }

.values { columns: 1; margin-top: 10px; }

/* --- Contact ------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

.contact-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px;
}

/* --- To-fill placeholders (visible until confirmed) ------------------------------ */

.todo {
  display: inline-block;
  border: 1px dashed var(--amber-deep);
  border-radius: 4px;
  padding: 0 6px;
  color: var(--amber-deep);
  font-size: 0.9em;
  background: var(--plain-bg);
}

/* --- CTA band --------------------------------------------------------------------- */

.cta-band {
  background:
    linear-gradient(90deg, rgba(15,35,56,0.92) 0%, rgba(30,66,102,0.85) 100%),
    url("../images/lipid-droplets.jpg") center 70% / cover no-repeat;
  color: #fff;
  padding: 48px 0;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #dde6ee; max-width: 60ch; }

/* --- Footer ------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-900);
  color: #9fb3c4;
  padding: 36px 0;
  font-size: 0.88rem;
}

.site-footer a { color: #cfdbe6; }
.site-footer .foot-grid { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.site-footer p { margin: 0 0 6px; }

/* --- Larger screens ------------------------------------------------------------------ */

@media (min-width: 700px) {
  h1 { font-size: 2.4rem; }
  .hero h1 { font-size: 2.6rem; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .pi-card { grid-template-columns: 200px 1fr; }
  .pi-photo { width: 180px; height: 180px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .values { columns: 2; column-gap: 40px; }
}
