/* ==========================================================================
   Laurent Loinard — personal academic site
   Palette: deep-space navy + M87* amber ring accent on warm paper
   Type: Fraunces (display) + Source Sans 3 (text)
   ========================================================================== */

:root {
  --navy-950: #080e1a;
  --navy-900: #0b1526;
  --navy-800: #12203a;
  --navy-700: #1c2f52;
  --amber: #e0a43c;
  --amber-soft: #f3cd85;
  --paper: #faf7f1;
  --card: #ffffff;
  --ink: #1e2733;
  --muted: #5b6b7c;
  --line: #e5dfd2;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.06rem;
  line-height: 1.65;
}

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

a { color: var(--navy-700); text-decoration: underline; text-decoration-color: rgba(224,164,60,.55); text-underline-offset: 3px; }
a:hover { color: var(--amber); }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

/* ---------- The ring: signature mark ---------- */
.ring {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 42% 40%,
    rgba(243,205,133,0) 0 34%,
    var(--amber-soft) 46%,
    var(--amber) 58%,
    rgba(224,164,60,.25) 72%,
    transparent 78%);
  flex: none;
}

/* ---------- Header / navigation ---------- */
.site-header {
  background:
    radial-gradient(1.5px 1.5px at 12% 30%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 32% 70%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 55% 25%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 76% 60%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 35%, rgba(255,255,255,.45), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: #eef2f8;
}

.nav-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem; font-weight: 600; letter-spacing: .01em;
  color: #f4f6fa; text-decoration: none;
  padding: 10px 0;
}
.brand:hover { color: var(--amber-soft); }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  margin-left: auto;
  cursor: pointer;
  padding: 10px;
  border-radius: 6px;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block; width: 22px; height: 2px;
  background: #eef2f8; position: relative; content: "";
}
.nav-toggle-label span::before { position: absolute; top: -7px; }
.nav-toggle-label span::after { position: absolute; top: 7px; }

nav.menu { margin-left: auto; }
nav.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
nav.menu li { position: relative; }
nav.menu a {
  display: block; padding: 20px 14px;
  color: #dbe3ee; text-decoration: none;
  font-size: .98rem; letter-spacing: .02em;
}
nav.menu a:hover { color: var(--amber-soft); }
nav.menu a[aria-current="page"] {
  color: var(--amber);
  box-shadow: inset 0 -3px 0 var(--amber);
}

/* dropdown */
nav.menu li > ul {
  display: none;
  position: absolute; left: 0; top: 100%;
  min-width: 260px;
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0 0 10px 10px;
  padding: 6px 0;
  z-index: 30;
  box-shadow: 0 14px 30px rgba(4,8,16,.45);
}
nav.menu li:hover > ul,
nav.menu li:focus-within > ul { display: block; }
nav.menu li > ul a { padding: 10px 16px; font-size: .93rem; }

/* ---------- Page hero band ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px 46px;
}
.eyebrow {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber);
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--amber); }
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 12px;
  color: #f6f8fb;
}
.hero .tagline {
  margin: 0;
  max-width: 46em;
  color: #b9c5d6;
  font-size: 1.08rem;
}
.hero-home { display: flex; align-items: center; gap: 40px; padding-bottom: 56px; }
.hero-home .portrait {
  width: 190px; height: 190px; border-radius: 50%;
  object-fit: cover; object-position: 50% 5%; flex: none;
  border: 3px solid var(--amber);
  box-shadow: 0 0 0 6px rgba(224,164,60,.15), 0 18px 40px rgba(4,8,16,.5);
}
.role-lines { margin: 14px 0 0; padding: 0; list-style: none; color: #cdd7e4; }
.role-lines li { display: flex; gap: 10px; align-items: baseline; margin: 4px 0; }
.role-lines li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--amber); flex: none; transform: translateY(1px); }
.role-lines strong { color: #f0e6d2; font-weight: 600; }
.hero-contact { margin: 16px 0 0; font-size: .97rem; color: #9fb0c4; }
.hero-contact a { color: var(--amber-soft); text-decoration-color: rgba(224,164,60,.4); }
.hero-contact a:hover { color: var(--amber); }
.footer-brand span { line-height: 1.6; }
.footer-brand a { color: #dbe3ee; }
.footer-brand a:hover { color: var(--amber-soft); }

/* ---------- Main content ---------- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.prose { max-width: none; }
.prose p { margin: 0 0 1.1em; }

h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.65rem;
  color: var(--navy-800);
  display: flex; align-items: center; gap: 12px;
  margin: 2.2em 0 .7em;
}
h2:first-child { margin-top: 0; }
h2 .ring { width: 20px; height: 20px; }

h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--navy-800);
  margin: 0 0 .35em;
}

.prose::after { content: ""; display: table; clear: both; }

.figure {
  margin: 0 0 34px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20,30,50,.15);
}
.figure img { width: 100%; }
.figure figcaption {
  background: var(--navy-900); color: #b9c5d6;
  font-size: .87rem; padding: 10px 16px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 28px 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: 10px;
  padding: 22px 22px 20px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20,30,50,.14);
  color: var(--ink);
}
.card .card-kicker {
  font-size: .76rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber); margin: 0 0 8px;
}
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .more { display: inline-block; margin-top: 12px; color: var(--navy-700); font-weight: 600; font-size: .93rem; }
.card:hover .more { color: var(--amber); }

/* highlight panel (EHT leadership) */
.panel {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  color: #dfe6f0;
  border-radius: 14px;
  padding: 30px 32px;
  margin: 34px 0;
  border: 1px solid rgba(224,164,60,.35);
}
.panel h2 { color: #f6f8fb; margin-top: 0; }
.panel a { color: var(--amber-soft); }
.panel p:last-child { margin-bottom: 0; }

/* ---------- Awards ---------- */
.awards {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px;
}
.awards li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex; gap: 14px; align-items: baseline;
}
.awards .year {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600; color: var(--amber); font-size: 1.05rem; flex: none;
  min-width: 3em;
}
.awards .what { font-weight: 600; }
.awards .note { display: block; color: var(--muted); font-size: .9rem; font-weight: 400; }

/* ---------- People ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin: 26px 0 44px;
}
.person {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px 22px;
  text-align: left;
}
.person img {
  width: 108px; height: 108px; border-radius: 50%;
  object-fit: cover; margin-bottom: 14px;
  border: 2px solid var(--amber);
  box-shadow: 0 0 0 4px rgba(224,164,60,.12);
}
.person p { margin: 0; color: var(--muted); font-size: .94rem; }
.person .where { color: var(--amber); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; }

.person.compact { display: flex; gap: 18px; align-items: flex-start; }
.person.compact img { width: 74px; height: 74px; margin: 0; flex: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #9fb0c4;
  padding: 40px 24px 34px;
  font-size: .95rem;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: #dbe3ee; text-decoration: none; }
.footer-links a:hover { color: var(--amber-soft); }
.footer-brand { display: flex; align-items: center; gap: 10px; }

/* ---------- Responsive nav ---------- */
@media (max-width: 860px) {
  .nav-toggle-label { display: block; }
  nav.menu {
    display: none;
    width: 100%;
    margin: 0;
  }
  .nav-toggle:checked ~ nav.menu { display: block; padding-bottom: 12px; }
  nav.menu ul { flex-direction: column; gap: 0; }
  nav.menu a { padding: 12px 8px; }
  nav.menu li > ul {
    display: block; position: static; background: transparent;
    border: 0; box-shadow: none; padding: 0 0 0 18px; min-width: 0;
  }
  .hero-home { flex-direction: column-reverse; align-items: flex-start; gap: 26px; }
}

/* small side figure floated next to the opening paragraph */
.figure-side {
  float: left;
  width: 22%;
  min-width: 160px;
  margin: 6px 4% 18px 0;
  box-shadow: 0 8px 22px rgba(20,30,50,.18);
}
.figure-side figcaption { font-size: .78rem; padding: 8px 10px; line-height: 1.4; }

@media (max-width: 640px) {
  .figure-side { float: none; width: 65%; margin: 0 auto 22px; }
}

/* ---------- Selected publications ---------- */
.pubs { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.pubs li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  padding: 14px 20px;
}
.pub-title { font-weight: 600; color: var(--navy-800); text-decoration-color: rgba(224,164,60,.35); }
a.pub-title:hover { color: var(--amber); }
.pub-meta { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.pubs-more { margin: 16px 0 56px; color: var(--muted); font-size: .95rem; }
.pub-desc { margin: 8px 0 0; color: var(--ink); font-size: .95rem; line-height: 1.55; }

/* ---------- Embedded video / playlist ---------- */
.video-wrap { margin: 34px 0; }
.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20,30,50,.18);
}
