/* QOD Lab (qodl.eu): Inter / Onest, black hero, deep-navy header bar,
   white content. Based on the previous Inspiro WordPress theme. */
@import url("fonts/inter.f0f136c0a63e.css");
@import url("fonts/onest.36b561b993f9.css");

:root {
  --fg: #101014;
  --muted: #6c6c77;
  --primary: #050f4a;
  --accent: #0a4cb5;
  --link: #0a4cb5;
  --bg: #f4f5f9;          /* soft blue-grey page background instead of pure white */
  --card-bg: #ffffff;
  --border: #dfe2ea;
  --surface: #e9ecf3;
  --font-body: "Inter", system-ui, sans-serif;
  --font-heading: "Onest", "Inter", system-ui, sans-serif;
}

.site-header { background: var(--primary); color: #fff; }
/* over the hero photo the header is transparent (only when there is a photo: white text needs it) */
.home:has(.hero.has-image) .site-header { background: transparent; text-shadow: 0 1px 8px rgb(0 0 0 / .6); }
.home .site-header .submenu { text-shadow: none; }
/* phones: the open menu grows past the photo, so it gets the solid header colour */
@media (max-width: 900px) { .home .site-header:has(.nav-toggle[aria-expanded="true"]) { background: var(--primary); text-shadow: none; } }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.45rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; max-width: 14ch; }
.theme-qodl .brand-logo { display: none; } /* text wordmark as on the old site */
.main-nav { font-weight: 500; font-size: 1rem; }

.page-header { padding: 4rem 0 1.5rem; }
.page-header h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 700; }
.section-nav .pill { border-width: 1px; padding: .35rem 1rem; font-size: .95rem; }
.section-nav .pill.active, .section-nav .pill:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.hero { background: #000; color: #fff; }
.hero h1 { font-family: var(--font-body); font-weight: 700; letter-spacing: -.02em; }

.news-ticker h2, .highlights h2 { text-transform: uppercase; letter-spacing: .06em; font-size: 1.1rem; color: var(--muted); }
.news-list time { color: var(--primary); }

.people-list .person-name { font-size: 1.05rem; }
.people-list .person-name a { text-decoration: underline; text-decoration-thickness: 1px; }
.people-list .person-title { color: #3a3a44; }
.people-list .person-contact li { margin: .15rem 0; }

/* footer in the deep navy of the header, not black */
.site-footer { background: linear-gradient(180deg, #0a1450 0%, #050d3a 100%); color: #d7dbef; }
.site-footer a { color: #ffffff; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); }
.footer-partners { border-top: 1px solid rgb(255 255 255 / .12); }
.footer-partners .logo-row img { filter: brightness(0) invert(1); opacity: .85; }

/* white panels on the tinted background */
.people-list .person { background: var(--card-bg); padding: 1.25rem; border-radius: var(--radius); border-bottom: 0; margin-bottom: 1rem; box-shadow: var(--shadow); }
.publications li, .outputs li, .news-card { border-bottom-color: var(--border); }
figure.code:not(.code-bash) { background: #ffffff; } /* shell listings stay dark */
