/* Marius Hees — job market site. Design mirrors the print documents:
   serif, single readable column, understated. */

:root {
  --ink: #1a1a1a;
  --muted: #555;
  --rule: #999;
  --accent: #1a4d80;
  --bg: #f4f2ec;   /* eggshell / light warm grey */
}

* { box-sizing: border-box; }

/* baseline zoom: scales the whole rem-based layout like 130% browser zoom */
html { font-size: 130%; }

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--ink);
  background: var(--bg);
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  line-height: 1.55;
  font-size: 1.05rem;
}

header { display: flex; gap: 1.5rem; align-items: flex-start; justify-content: space-between; }
.header-text { flex: 1; }

h1 {
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
}

.subtitle { margin: 0 0 0.5rem; font-size: 1.05rem; }
.jobmarket { margin: 0 0 0.5rem; font-style: italic; }
.links { margin: 0; }

.photo {
  width: 12.5rem;
  height: 12.5rem;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 50%;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.navlinks { display: flex; gap: 1.6rem; }

nav a {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

nav a:hover { color: var(--accent); text-decoration: none; }
nav a[aria-current="page"] { color: var(--accent); }

.navlogo img { height: 3.4rem; width: auto; display: block; }

.overview {
  font-size: 0.98rem;
  border-left: 2px solid var(--rule);
  padding-left: 0.9rem;
  margin: 0 0 1.4rem;
}

.toc-head { margin: 0.5rem 0 0.15rem; }
.toc-head:first-child { margin-top: 0; }
ul.toc { list-style: none; margin: 0; padding-left: 1rem; }
ul.toc li { margin: 0.1rem 0; }

.pagetitle {
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
}

.sublinks { font-size: 0.95rem; margin-top: 0.4rem; }
.soon { color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.gallery img { width: 100%; height: 13rem; object-fit: cover; display: block; }

hr { border: none; border-top: 1px solid var(--rule); margin: 1.1rem 0 1.4rem; }

h2 {
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.8rem 0 0.6rem;
}

h3 { font-size: 1.1rem; margin: 1rem 0 0.2rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.fields { color: var(--ink); }
.coauthors { margin: 0 0 0.3rem; color: var(--muted); font-style: italic; }
.status { margin: 0 0 0.4rem; color: var(--muted); font-style: italic; }
.abstract { text-align: justify; hyphens: auto; }

details { margin: 0.2rem 0 0.6rem; }
summary { cursor: pointer; color: var(--accent); font-style: italic; }

.refs { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.refs div { flex: 1 1 12rem; }
.placement { margin-top: 0.9rem; font-size: 0.95rem; color: var(--muted); }

footer { font-size: 0.95rem; color: var(--muted); }
.updated { font-size: 0.85rem; }

@media (max-width: 40rem) {
  html { font-size: 108%; }
  header { flex-direction: column-reverse; }
  .photo { width: 10rem; height: 10rem; }
  nav { flex-wrap: wrap; justify-content: center; }
  .navlinks { gap: 1.1rem; flex-wrap: wrap; justify-content: center; }
  body { font-size: 1rem; padding-top: 1.5rem; }
}
