/* Ariadne AI Lab site
   Layout: white masthead with the lab logo, thin red rule (from the logo underline),
   one narrow reading column, quiet navy headings, red used only for the rule and links. */
:root {
  --navy: #2c318c;
  --navy-deep: #1f2466;
  --red: #ec2227;
  --slate: #555b8f;
  --bg: #ffffff;
  --bg-soft: #f4f5fa;
  --fg: #1d2140;
  --fg-muted: #555b8f;
  --rule: #dcdff0;
  --link: #2c318c;
  --font-display: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* masthead */
.masthead { border-bottom: 3px solid var(--red); background: var(--navy); }
.topbar { background: var(--navy-deep); }
.topbar .wrap { padding-block: 0.5rem; display: flex; }
.topbar img { height: 26px; width: auto; display: block; }
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 64px; width: auto; max-width: 100%; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #ffffff; border-bottom-color: rgba(255, 255, 255, 0.5); }
.nav a:focus-visible { outline-color: #ffffff; }
.nav a[aria-current="page"] { color: #ffffff; border-bottom-color: var(--red); }

/* content */
main { flex: 1; }
main .wrap { padding-block: 2.5rem 3.5rem; }
.prose { max-width: 42rem; min-width: 0; }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); text-wrap: balance; line-height: 1.2; margin: 0; }
h1 { font-size: 2rem; font-weight: 600; }
h2 { font-size: 1.45rem; font-weight: 600; margin-top: 2.6rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.8rem; }
p { margin: 0.7rem 0 0; }
ul { margin: 0.6rem 0 0; padding-left: 1.25rem; }
li { margin-top: 0.25rem; }
.lede { font-size: 1.25rem; color: var(--fg); }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 0.4rem;
}
.meta { color: var(--fg-muted); font-size: 1rem; margin-top: 0.35rem; }
.meta b { color: var(--fg); font-weight: 600; }

/* research areas and projects as a list, not cards */
.areas { display: grid; gap: 1.4rem; margin-top: 1.2rem; }
.areas div { min-width: 0; }
.areas h3 { margin-top: 0; }
.areas p { font-size: 1.05rem; }
.project { padding-block: 1.6rem; border-top: 1px solid var(--rule); }
.project:first-of-type { border-top: 0; padding-top: 0.6rem; }
.project h3 { margin-top: 0; font-size: 1.3rem; }
.project .meta { margin-top: 0.3rem; }
.project .link { display: inline-block; margin-top: 0.8rem; font-family: var(--font-display); font-size: 0.95rem; font-weight: 500; }
.partners { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; }
.partners li { margin: 0; }
.partners img { height: 64px; width: auto; max-width: 13rem; object-fit: contain; display: block; }
.placeholder { color: var(--red); font-size: 0.9rem; }

/* people */
.people { list-style: none; padding: 0; margin: 0.6rem 0 0; }
.people li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.8rem; padding-block: 0.45rem; border-top: 1px solid var(--rule); }
.people li:first-child { border-top: 0; }
.people .name { font-weight: 600; min-width: 12rem; }
.people .role { color: var(--fg-muted); font-size: 1rem; flex: 1; min-width: 0; }
.people .links { font-size: 0.9rem; display: flex; gap: 0.8rem; }
.people .email { font-size: 0.95rem; }

/* contact */
.contact dl { margin: 1rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; }
.contact dt { font-family: var(--font-display); font-weight: 500; color: var(--slate); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0.2rem; }
.contact dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* footer */
footer { border-top: 3px solid var(--red); background: var(--navy); color: #ffffff; font-size: 0.95rem; }
footer a { color: #ffffff; }
footer a:hover { color: #ffffff; text-decoration-thickness: 2px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 2rem; padding-block: 1.1rem; }
footer .funding { padding-block: 1rem 0; }
footer .placeholder { color: #ffd1d2; }
footer .funding p { margin: 0 0 0.35rem; font-size: 0.9rem; }

@media (max-width: 600px) {
  body { font-size: 1.05rem; }
  h1 { font-size: 1.6rem; }
  .brand img { height: 52px; }
  .partners img { height: 44px; }
  .contact dl { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .contact dd { margin-bottom: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
