@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }

:root {
  --lc-navy: #1b2a5c;
  --lc-pill-top: #d4e8fa;
  --lc-pill-bottom: #9fc7ec;
  --lc-best: #99D8C9;
  --lc-second: #9EBCDA;
  --lc-worst: #FDBB84;
  --lc-green: #009E73;
  --lc-red: #D55E00;
  --lc-red-text: #B34A00; /* red text that passes WCAG AA on card and page backgrounds */
  /* --lc-art-bg (figures.css) stays light in dark mode: the raster art needs a light panel. */
  --lc-bg: #ffffff;
  --lc-text: #1f2937;
  --lc-muted: #5b6575;
  --lc-card: #f3f7fc;
  --lc-border: #d6e0ec;
  --lc-btn: #1b2a5c;
  --lc-btn-text: #ffffff;
  --lc-link: #1b5fa8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lc-navy: #b9d6f2; --lc-bg: #0f1522; --lc-text: #e4e9f1; --lc-muted: #9aa6b8;
    --lc-card: #182133; --lc-border: #2b3850; --lc-btn: #b9d6f2; --lc-btn-text: #0f1522;
    --lc-link: #8cc0f2; --lc-pill-top: #2a4a73; --lc-pill-bottom: #1c3354; --lc-red-text: #F2A465; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --lc-navy: #b9d6f2; --lc-bg: #0f1522; --lc-text: #e4e9f1; --lc-muted: #9aa6b8;
  --lc-card: #182133; --lc-border: #2b3850; --lc-btn: #b9d6f2; --lc-btn-text: #0f1522;
  --lc-link: #8cc0f2; --lc-pill-top: #2a4a73; --lc-pill-bottom: #1c3354; --lc-red-text: #F2A465; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--lc-bg); color: var(--lc-text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65; overflow-x: hidden;
}
a { color: var(--lc-link); }
img { max-width: 100%; }
p { margin: 0 0 .9rem; }
.lc-wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.lc-wrap.narrow { max-width: 820px; }
.lc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lc-skip:focus { position: static; width: auto; height: auto; clip: auto; display: block; padding: .5rem 1rem; }

/* header */
.lc-site-header { border-bottom: 1px solid var(--lc-border); padding: .6rem 0; }
.lc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.lc-brand {
  display: flex; align-items: center; gap: .6rem; margin-right: auto; text-decoration: none;
  font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 1.25rem; color: var(--lc-navy);
}
.lc-brand img { height: 26px; width: auto; }
.lc-nav { display: flex; flex-wrap: wrap; gap: .2rem .4rem; }
.lc-nav a {
  padding: .25rem .9rem; border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 600; color: var(--lc-text);
}
.lc-nav a:hover { background: var(--lc-card); }
.lc-nav a[aria-current="page"] { color: var(--lc-navy); background: linear-gradient(var(--lc-pill-top), var(--lc-pill-bottom)); }
.lc-theme {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--lc-border); background: var(--lc-card); color: var(--lc-navy); cursor: pointer; order: 2;
}
.lc-bar .lc-nav { order: 3; width: 100%; }
@media (min-width: 760px) { .lc-bar .lc-nav { order: 1; width: auto; } .lc-theme { order: 2; } }
.lc-theme .lc-icon:last-child { display: none; }
:root[data-theme="dark"] .lc-theme .lc-icon:first-child { display: none; }
:root[data-theme="dark"] .lc-theme .lc-icon:last-child { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lc-theme .lc-icon:first-child { display: none; }
  :root:not([data-theme="light"]) .lc-theme .lc-icon:last-child { display: block; }
}

/* headings and sections */
.lc-section { padding: 2.5rem 0 .5rem; }
.lc-section h2:not(.lc-ctitle) {
  font-family: "Source Serif 4", Georgia, serif; font-size: 1.8rem; font-weight: 600;
  color: var(--lc-navy); text-align: center; margin: 0 0 1.2rem;
}
.lc-pagetitle {
  font-family: "Source Serif 4", Georgia, serif; font-weight: 700; color: var(--lc-navy);
  font-size: clamp(1.7rem, 4.6vw, 2.4rem); line-height: 1.2; text-align: center; margin: 0 0 1.4rem;
}
.lc-page h2.lc-sub { margin-top: 2.5rem; }
.lc-more { text-align: center; margin-top: 1rem; }

/* hero */
.lc-hero { text-align: center; padding-top: 3rem; padding-bottom: 1rem; }
.lc-title {
  font-family: "Source Serif 4", Georgia, serif; font-weight: 700; color: var(--lc-navy);
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; margin: 1rem auto;
}
.lc-tagline { margin: 1.2rem auto 0; font-size: 1.1rem; }
.lc-venue {
  display: inline-block; padding: .25rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; line-height: 1.5;
  color: var(--lc-navy); background: linear-gradient(var(--lc-pill-top), var(--lc-pill-bottom));
}
.lc-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.2rem 1.8rem; margin: 1.4rem 0; }
.lc-logos img { height: 52px; width: auto; }
:root[data-theme="dark"] .lc-logos img { background: #fff; border-radius: 8px; padding: 4px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lc-logos img { background: #fff; border-radius: 8px; padding: 4px; }
}

/* buttons */
.lc-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin: 1rem 0 .3rem; }
.lc-buttons.left { justify-content: flex-start; gap: .5rem; margin: .5rem 0 0; }
.lc-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.3rem; border-radius: 999px;
  background: var(--lc-btn); color: var(--lc-btn-text); font-weight: 600; text-decoration: none; font-size: .95rem;
  transition: transform .15s, opacity .15s;
}
.lc-btn.small { padding: .2rem .9rem; font-size: .82rem; }
a.lc-btn:hover { transform: translateY(-2px); color: var(--lc-btn-text); }

/* cards */
.lc-card {
  background: var(--lc-card); border: 1px solid var(--lc-border); border-radius: 12px; padding: 1rem;
  border-top: 4px solid var(--lc-second);
}
.lc-card .lc-ctitle { text-align: left; font-family: inherit; color: var(--lc-navy); font-weight: 600; font-size: 1.1rem; margin: .6rem 0 .3rem; }
.lc-cards-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.lc-item p { font-size: .95rem; margin-bottom: .4rem; }
.lc-thumb { width: 100%; height: auto; border-radius: 8px; margin-bottom: .6rem; }
.lc-themes { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.6rem; }

/* people */
.lc-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.lc-person { display: flex; gap: 1rem; align-items: flex-start; }
.lc-person-body { min-width: 0; }
.lc-person .lc-ctitle { margin-top: 0; }
.lc-avatar { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--lc-border); }
.lc-initial {
  display: flex; align-items: center; justify-content: center; font-family: "Source Serif 4", Georgia, serif;
  font-size: 2.4rem; font-weight: 700; color: var(--lc-navy); background: linear-gradient(var(--lc-pill-top), var(--lc-pill-bottom));
}
.lc-role { color: var(--lc-muted); font-size: .9rem; margin-bottom: .5rem; }
.lc-bio { font-size: .92rem; }
.lc-bio p { margin-bottom: .5rem; }
.lc-iconlinks { display: flex; gap: .4rem; margin: .4rem 0 0; }
.lc-iconlinks a {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  color: var(--lc-navy); border: 1px solid var(--lc-border);
}
.lc-iconlinks a:hover { background: var(--lc-bg); }
@media (max-width: 520px) { .lc-person { flex-direction: column; align-items: center; text-align: center; } .lc-person .lc-ctitle { text-align: center; } .lc-iconlinks { justify-content: center; } }

/* news */
.lc-news { list-style: none; padding: 0; margin: 0; }
.lc-news li { display: flex; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--lc-border); }
.lc-news time { flex: none; width: 5.5rem; color: var(--lc-muted); font-size: .9rem; font-weight: 600; }
.lc-news div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .lc-news li { flex-direction: column; gap: .1rem; } }

/* publications */
.lc-papers ol, .lc-papers ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.lc-papers h2.bibliography { text-align: left; font-size: 1.4rem; margin: 2rem 0 .8rem; border-bottom: 1px solid var(--lc-border); }
.lc-papers li { padding: 0; }
.lc-paper { padding: .9rem 0; border-bottom: 1px solid var(--lc-border); overflow-wrap: anywhere; }
.lc-paper-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; }
.lc-paper-head .lc-venue { font-size: .75rem; padding: .1rem .7rem; }
.lc-paper-title { font-weight: 600; color: var(--lc-navy); }
.lc-authors-line { font-size: .92rem; }
.lc-venue-line, .lc-note-inline { font-size: .9rem; color: var(--lc-muted); }

/* footer */
.lc-footer { margin-top: 3rem; padding: 2rem 0; border-top: 1px solid var(--lc-border); text-align: center; color: var(--lc-muted); font-size: .9rem; }
.lc-footer p { margin-bottom: .5rem; }
.lc-footer a { text-decoration: underline; }
@media (max-width: 600px) { .lc-logos img { height: 40px; } }
