/* SU-CICLAP — site styles */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --accent: #2563eb;
  --accent-soft: #e8efff;
  --ink: #1b2330;
  --muted: #5b6575;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --radius: 10px;
  --max: 1120px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }
.brand-mark { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
}
.site-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(37, 99, 235, 0.35), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 96px 0 104px;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9db8ff;
  margin: 0 0 16px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 18ch;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: #d5deeb;
  max-width: 62ch;
  margin: 0 0 32px;
}

/* Pixel-art campus cover behind the home hero */
.hero-cover {
  position: relative;
  background:
    linear-gradient(90deg, rgba(11, 37, 69, 0.9) 0%, rgba(11, 37, 69, 0.72) 38%, rgba(11, 37, 69, 0.15) 62%, rgba(11, 37, 69, 0) 100%),
    url("../img/campus-cover.jpg") center 30% / cover no-repeat,
    var(--navy);
  padding: 120px 0 132px;
}
.hero-cover h1, .hero-cover .lead { text-shadow: 0 1px 12px rgba(11, 37, 69, 0.5); }
.hero .motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: #c9d6ee;
  margin: -8px 0 22px;
}
.hero-credit {
  position: absolute;
  right: 16px;
  bottom: 10px;
  margin: 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(11, 37, 69, 0.7);
  padding: 2px 8px;
  border-radius: 4px;
}
.hero-credit a { color: rgba(255, 255, 255, 0.8); text-decoration: underline; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 10px 10px 0;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: #e9eef7; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }

/* ---------- About ---------- */

.about {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 860px) {
  .about { grid-template-columns: 380px 1fr; }
}
.about-logo { width: 100%; max-width: 380px; margin: 0 auto; }
.about h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.about p { color: var(--muted); margin: 0 0 24px; max-width: 62ch; }
.fens-logo { display: block; margin-top: 28px; }
.fens-logo img { height: 52px; width: auto; }

/* ---------- Page header (inner pages) ---------- */

.page-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
}
.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.page-header p { color: var(--muted); margin: 0; max-width: 65ch; }

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

.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { color: var(--muted); margin: 0; }

.kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ---------- Research cards ---------- */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 12px 30px -12px rgba(11, 37, 69, 0.18);
  transform: translateY(-2px);
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- Teaching ---------- */

.course-card { padding: 0; overflow: hidden; }
.course-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--navy);
}
.course-card .course-body { padding: 24px 28px 28px; }
.course-card .kicker { margin-bottom: 8px; }
.course-card p { margin-top: 10px; }
.course-card .instructor { display: block; margin-top: 12px; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.course-card .instructor a { font-weight: 600; }

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

.people-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.people-grid-faculty { gap: 36px 32px; }
@media (min-width: 760px) {
  .people-grid-faculty { grid-template-columns: repeat(3, 1fr); }
}

.empty { color: var(--muted); font-style: italic; margin: 0; }

.person { text-align: left; }
.person-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  background: var(--bg-alt);
  margin-bottom: 14px;
}
.person h3 { font-size: 1.15rem; margin-bottom: 2px; }
.person .role { color: var(--muted); font-size: 0.92rem; margin: 0 0 8px; }
.person .links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.88rem; font-weight: 500; }

.callout {
  border: 1px dashed #c4cfdf;
  border-radius: var(--radius);
  padding: 28px 32px;
  background: #fff;
}
.callout h3 { margin-bottom: 6px; }
.callout p { margin: 0; color: var(--muted); }

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

.pub-year {
  font-size: 1.9rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 28px;
}
.pub-type {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 40px 0 16px;
}
.pubs {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 900px;
}
.pubs li {
  padding: 18px 0 18px 20px;
  border-left: 3px solid var(--line);
  margin-bottom: 6px;
  transition: border-color 0.2s;
}
.pubs li:hover { border-left-color: var(--accent); }
.pubs span { display: block; }
.pub-title { font-weight: 600; color: var(--ink); line-height: 1.45; }
.pub-authors { color: var(--muted); font-size: 0.93rem; margin-top: 4px; }
.pub-authors strong { color: var(--ink); font-weight: 600; }
.pub-venue { font-size: 0.93rem; margin-top: 2px; }
.pub-venue a { font-weight: 600; margin-left: 4px; }

/* ---------- Collaborators ---------- */

.map {
  margin: 0 0 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f8f5f3;
}
.map img { width: 100%; }

.partners-head {
  font-size: 1.6rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
  margin: 0 0 8px;
}
.partners-head + .partners + .partners-head { margin-top: 48px; }

.partners {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  column-gap: 32px;
}
.partners li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.partners a { font-weight: 600; color: var(--ink); }
.partners a:hover { color: var(--accent); }
.partners span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Generic prose ---------- */

.prose { max-width: 72ch; }
.prose p { margin: 0 0 1em; }

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

.contact {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.contact h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; margin-bottom: 4px; }
.contact p { margin: 0; color: var(--muted); }

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

.site-footer {
  background: var(--navy);
  color: #b7c3d6;
  padding: 40px 0;
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: #fff; }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { position: static; }
  .site-header .container { padding-top: 12px; padding-bottom: 8px; }
  .site-nav { margin: 0 -14px; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 56px 0; }
}
