/* PennPAL lab site — Penn brand styling.
   Palette & typography per the personal site's docs/design-system.md:
   Penn Blue #011F5B (structure), Penn Red #990000 (accent),
   Penn Gold #F2C100 (legible accent on dark backgrounds),
   EB Garamond (prose), Roboto (UI chrome). */

:root {
  --penn-blue: #011F5B;
  --penn-red: #990000;
  --penn-gold: #F2C100;
  --ink: #1a1a1a;
  --light-gray: #f7f7f9;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --sans: "Roboto", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink);
  background: #fff;
}

/* ---- Header / nav ---- */
#site-header.header {
  background: var(--penn-blue);
  border-bottom: 5px solid var(--penn-red);
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.site-nav { display: flex; gap: 1.5rem; }
.nav-link {
  font-family: var(--serif);
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
}
.navbar-brand:hover,
.nav-link:hover { color: var(--penn-gold); }

/* ---- Layout ---- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--penn-blue);
  font-weight: 600;
}
h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 1.9rem; margin-top: 2.5rem; }
h3 { font-size: 1.55rem; margin-top: 1.75rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.15rem; }

a { color: var(--penn-blue); }
a:hover { color: var(--penn-red); }

ul > li::marker { color: var(--penn-red); }

/* ---- Tables (alumni / theses) ---- */
table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  width: 100%;
  font-size: 1rem;
  margin: 1rem 0 2rem;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e5ea;
  vertical-align: top;
}
th { font-family: var(--sans); color: var(--penn-blue); }

/* ---- Photo strip gallery (ported from custom.css) ---- */
.photo-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 0;
  line-height: 0;
  mask-image: linear-gradient(to right, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
  scrollbar-width: thin;
}
.photo-strip::-webkit-scrollbar { height: 6px; }
.photo-strip::-webkit-scrollbar-thumb { background: #c5c5cc; border-radius: 3px; }
.photo-strip::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
.photo-strip::-webkit-scrollbar-track { background: transparent; }
.photo-strip img {
  display: block;
  height: 220px;
  width: auto;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
p.gallery-caption {
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.2;
  color: #9ca3af;
  text-align: center;
  margin: -0.25rem 0 0;
}

/* ---- Funding & Support band (ported from custom.css) ---- */
.funding-band {
  margin: 3rem auto 0;
  padding: 2rem 1rem;
  background: var(--light-gray);
  border-top: 1px solid #e5e5ea;
  text-align: center;
}
.funding-band h2 { margin-bottom: 0.5rem; }
.funding-band .funding-intro { font-family: var(--sans); color: #555; margin-bottom: 1.5rem; }
.funding-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 2.5rem;
}
.funding-logos a { display: inline-flex; align-items: center; }
.funding-logos img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.funding-logos a:hover img { transform: scale(1.05); }
@media (max-width: 600px) {
  .funding-logos { gap: 1.25rem 1.5rem; }
  .funding-logos img { height: 48px; }
}

@media (max-width: 480px) {
  .header-inner { flex-wrap: wrap; gap: 0.5rem; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--penn-blue);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9rem;
  margin-top: 3rem;
}
.footer-inner { max-width: 1000px; margin: 0 auto; padding: 1.5rem 1.25rem; text-align: center; }
.site-footer a { color: var(--penn-gold); }
