/* Marks Lab — shared stylesheet
   Plain, text-focused layout in the spirit of The Astrochymist.
   Colors are set once here; change them in :root. */

:root {
  --bg: #fbfbf8;
  --text: #000000;
  --muted: #000000;
  --rule: #b9b9b0;
  --link: #000000;
  --link-visited: #000000;
  --heading: #000000;
  --placeholder-bg: #fff6d6;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12pt;
  line-height: 1.5;
}

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

a { color: var(--link); }
a:visited { color: var(--link-visited); }

/* ---------- Header and navigation ---------- */
header.site {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  text-align: center;
  border-bottom: 3px double var(--rule);
  padding-bottom: 12px;
}
header.site .logo { height: 80px; width: auto; max-width: 100%; flex: 0 0 auto; }
header.site .title-block { min-width: 0; flex: 0 1 auto; }
@media (min-width: 700px) {
  header.site { flex-wrap: nowrap; }
  header.site .title-block { text-align: left; }
}
header.site h1 {
  margin: 0;
  font-size: 36px;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: var(--heading);
}
header.site .subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-style: italic;
}

nav.site {
  text-align: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
nav.site a { margin: 0 0.5em; white-space: nowrap; }
nav.site a.current { color: var(--text); font-weight: bold; text-decoration: none; }

/* ---------- Content ---------- */
h2 {
  font-size: 23px;
  font-weight: normal;
  color: var(--heading);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  margin: 1.8em 0 0.6em;
}
h3 { font-size: 18px; margin: 1.3em 0 0.3em; color: var(--heading); }
p { margin: 0.5em 0; }

.topics { color: var(--muted); }

/* News and event lists */
ul.news { list-style: none; padding: 0; margin: 0; }
ul.news li { padding: 6px 0; border-bottom: 1px dotted var(--rule); display: flex; gap: 1em; }
ul.news .date { font-weight: bold; flex: 0 0 7em; }

.placeholder {
  background: var(--placeholder-bg);
  padding: 0 3px;
}

/* Members */
.member { display: flex; gap: 16px; align-items: flex-start; margin: 10px 0; }
.member img, .member .photo { width: 120px; height: 150px; object-fit: cover; flex: 0 0 120px;
  border: 1px solid var(--rule); }
.member .photo { display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); }

/* Two columns of member entries, one column on phones */
.members { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
@media (max-width: 560px) { .members { grid-template-columns: 1fr; } }

/* Figures */
figure {
  margin: 1em 0;
  text-align: center;
}
figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: #ffffff;
}
figure.narrow img { max-width: 360px; }
figcaption { color: var(--muted); text-align: left; margin-top: 4px; }

/* Publications and CV lists */
ol.pubs { padding-left: 2.6em; }
ol.pubs li { margin: 0 0 0.7em; }
.journal { font-style: italic; }
.doi { white-space: nowrap; }

table.cv { width: 100%; border-collapse: collapse; }
table.cv td { vertical-align: top; padding: 4px 0; }
table.cv td.when { width: 13em; color: var(--muted); padding-right: 1em; }

.contact dt { font-weight: bold; float: left; width: 6em; }
.contact dd { margin: 0 0 4px 6.5em; }

footer.site {
  margin-top: 40px;
  border-top: 3px double var(--rule);
  padding-top: 10px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 560px) {
  table.cv td { display: block; width: auto; }
  table.cv td.when { width: auto; padding-bottom: 0; }
  ul.news li { display: block; }
  ul.news .date { display: block; }
}
