/* BreadCell archive site */
:root {
  --bg: #fbf8f2;
  --surface: #ffffff;
  --ink: #1f2a24;
  --muted: #5c665f;
  --line: #e4ddd0;
  --accent: #2f6b4f;
  --accent-ink: #ffffff;
  --accent-soft: #e5efe8;
  --warm: #c98a3d;
  --radius: 10px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: #1d4a35; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* archive notice */
.notice { background: var(--ink); color: #e9ece9; font-size: .88rem; }
.notice .wrap { padding-top: 8px; padding-bottom: 8px; }
.notice a { color: #fff; }

/* header */
header.site { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand b { font-size: 1.35rem; letter-spacing: -0.02em; }
.brand b span { color: var(--accent); }
.brand small { color: var(--muted); font-size: .82rem; }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
nav.main a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .95rem; }
nav.main a:hover { background: var(--accent-soft); }
nav.main a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.menu-toggle { display: none; }

@media (max-width: 760px) {
  header.site { position: static; }
  header.site .wrap { padding-top: 10px; padding-bottom: 10px; }
  nav.main { width: 100%; }
  nav.main ul { gap: 2px; }
  nav.main a { padding: 6px 10px; font-size: .9rem; }
}

/* hero */
.hero { position: relative; color: #fff; background: #1f2a24; }
.hero img { width: 100%; height: clamp(320px, 58vh, 560px); object-fit: cover; opacity: .62; }
.hero .text { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.hero .text .wrap { width: 100%; padding-bottom: 40px; }
.hero h1 { color: #fff; max-width: 15em; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero p { font-size: 1.15rem; max-width: 36em; text-shadow: 0 1px 10px rgba(0,0,0,.45); margin: 0; }

.page-head { padding: 48px 0 8px; }
.page-head p.lead { font-size: 1.15rem; color: var(--muted); max-width: 42em; }
main { padding-bottom: 64px; }
.lead { font-size: 1.12rem; }
.muted { color: var(--muted); }

/* intro grid */
.intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-top: 48px; align-items: start; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; gap: 24px; } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(31,42,36,.10); color: var(--ink); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card div { padding: 12px 14px 14px; }
.card b { display: block; }
.card span { color: var(--muted); font-size: .9rem; }

/* lists of links */
.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.linklist li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: flex; gap: 12px; align-items: baseline; }
.tag { flex: none; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; }

/* research sections */
section.theme { border-top: 1px solid var(--line); padding-top: 8px; scroll-margin-top: 80px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin: 16px 0 24px; }
.split.flip > :first-child { order: 2; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 16px; } .split.flip > :first-child { order: 0; } }
figure { margin: 0; }
figure img { border-radius: var(--radius); }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 16px 0 24px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--warm); margin-top: 2.4em; }
.eyebrow + h2 { margin-top: .2em; }
.wide-fig { margin: 16px 0 24px; }

/* publications */
ol.pubs { padding-left: 1.6em; display: grid; gap: 12px; }
ol.pubs li { padding-left: 4px; }
ol.pubs .t { font-weight: 600; }
ol.pubs .j { color: var(--muted); }
.year { color: var(--accent); font-weight: 700; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.timeline .date { font-weight: 700; font-size: .9rem; color: var(--accent); display: block; }
.timeline figure { margin-top: 10px; max-width: 560px; }
.timeline ul { margin: 4px 0 0; padding-left: 1.2em; }
.timeline ul li { padding: 0; border: 0; }
.timeline ul li::before { display: none; }

/* team */
.partner { margin-top: 40px; }
.partner h2 { margin: 0; font-size: 1.35rem; }
.partner .where { color: var(--muted); margin: 2px 0 16px; font-size: .95rem; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person .ph { aspect-ratio: 1/1; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.person .ph span { font-size: 2.4rem; font-weight: 700; color: var(--accent); }
.person .body { padding: 14px 16px 16px; font-size: .92rem; }
.person h3 { margin: 0 0 2px; font-size: 1.05rem; }
.person .role { color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.person p { margin: 0 0 6px; }
.person .lbl { color: var(--muted); }

/* logos */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logos a { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 16px; height: 96px; }
.logos img { max-height: 60px; width: auto; object-fit: contain; }

.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; gap: 20px; align-items: center; max-width: 620px; }
.contact-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; }
@media (max-width: 480px) { .contact-box { flex-direction: column; align-items: flex-start; } }

/* footer */
footer.site { background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0; font-size: .9rem; color: var(--muted); }
footer.site .wrap { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
footer.site .eu { background: #fff; padding: 6px; border-radius: 6px; }
footer.site .eu img { height: 56px; width: auto; }
footer.site p { margin: 0 0 4px; }
@media (max-width: 640px) { footer.site .wrap { grid-template-columns: 1fr; } }

/* image sizing */
.split figure img { width: 100%; max-height: 440px; object-fit: cover; }
.gallery figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.timeline figure img { max-height: 420px; width: auto; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; }
.logos a { flex: 0 1 150px; }
.logo-figs img { object-fit: contain !important; max-height: none !important; background: #fff; }
