/* bmnsmets.com — single stylesheet, no build step. */

/* Self-hosted Roboto (SIL OFL 1.1, see fonts/OFL-Roboto.txt). */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/roboto-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/roboto-latin-700-normal.woff2") format("woff2"); }

/* Self-hosted STIX Two Math subset (SIL OFL 1.1, see fonts/OFL-STIXTwoMath.txt) for MathML.
   Covers Latin/Greek (incl. math italic), ℝℕℤℚℂ, arrows and math operators. */
@font-face { font-family: "STIX Two Math"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/stix-two-math-subset.woff2") format("woff2"); }

:root {
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --bg: #ffffff;
  --content-bg: #f5f5f5;   /* light grey behind the main content, as on the old site */
  --fg: rgba(0, 0, 0, .8);
  --muted: rgba(0, 0, 0, .54);
  --rule: #e3e3e3;
  --accent: #cc0000;
  --accent-soft: #fbeaea;
  --tag-bg: #e6e6e6;
  --maxw: 63rem;
  color-scheme: only light;
}


*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  scrollbar-gutter: stable;   /* reserve scrollbar space on every page, so the layout does not shift */
}

body {
  margin: 0;
  min-height: 100vh;            /* footer at the bottom of short pages */
  display: flex;
  flex-direction: column;
  background: var(--content-bg);
  color: var(--fg);
  font: 1.0625rem/1.6 var(--font-body);
}

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

math { font-family: "STIX Two Math", math; }

h1, h2, h3 { font-weight: 400; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; margin-top: 2rem; }

/* ---------- header / nav ---------- */

.site-header {
  position: relative;
  z-index: 1;
  background: var(--bg);
  box-shadow: 0 .125rem .25rem 0 rgba(0, 0, 0, .11);  /* as on the old Academic theme */
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .55rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: .5rem 2.5rem;
}
.site-header nav a {
  color: var(--accent);
  margin-left: 1.1rem;
}
.site-header nav a:first-child { margin-left: 0; }
.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .35em;
  text-decoration-thickness: 2px;
}

/* ---------- main ---------- */

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

/* ---------- home: profile ---------- */

.profile {
  display: grid;
  grid-template-columns: 19.5rem 1fr;
  gap: 2.5rem;
  align-items: start;
}
.profile-card { text-align: center; letter-spacing: .03em; }  /* wider look of the old Montserrat text */
.avatar {
  display: block;
  margin: 0 auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--tag-bg);
}
.profile-card .name { font-size: 1.75em; font-weight: 400; margin: .8rem 0 .1rem; }
.profile-card .role { margin: 0; color: var(--muted); font-size: 1.05em; }
.profile-card .affil { margin: .1rem 0 .8rem; font-size: 1.05em; }
.contact { list-style: none; padding: 0; margin: 0; }
.contact li { margin: .15rem 0; }
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -.125em;
  margin-right: .45em;
}
.contact .icon { width: 1.25em; }  /* fits the wide cap; keeps the link texts aligned */

.bio { margin: 0; }  /* same spacing as the bare text it replaced */

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
}
.columns h3 { font-size: 1.3rem; font-weight: 700; margin-top: 1.5rem; }
.columns ul { padding-left: 1.1rem; margin: 0; }
.edu { list-style: none; padding: 0 !important; }
.edu li { position: relative; padding-left: 2em; margin-bottom: .55rem; }
.edu .cap {
  position: absolute;
  left: 0;
  top: .3em;
  width: 1.25em;
  height: 1em;
}
.edu .course { display: block; font-size: .95rem; }
.edu .where { display: block; color: var(--muted); font-size: .8rem; }

@media (max-width: 40rem) {
  .profile { grid-template-columns: 1fr; gap: 1.5rem; }
  .columns { grid-template-columns: 1fr; }
}

/* ---------- publication / talk lists ---------- */

.entries {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.year { margin: 2.5rem 0 0; color: var(--muted); }
h1 + .year { margin-top: 1.5rem; }
.year + .entries { margin-top: .5rem; }
.entries > li {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}
.entries > li:target {
  background: var(--accent-soft);
  margin: 0 -1rem;
  padding: 1rem;
}
.entries > li { display: flow-root; }
.thumb {
  float: right;
  width: 150px;
  height: auto;
  margin: .2rem 0 .5rem 1.25rem;
  border-radius: 3px;
}
@media (max-width: 40rem) {
  .thumb { width: 6rem; margin-left: .9rem; }
}
.entries .title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}
.entries .authors,
.entries .venue {
  display: block;
  font-size: .95rem;
}
.entries .venue { color: var(--muted); font-style: italic; }

.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--muted);
  background: var(--tag-bg);
  border-radius: 3px;
  padding: .05rem .4rem;
  margin-right: .4rem;
  vertical-align: .12em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .45rem;
}
.links a {
  font-size: .82rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: .05rem .5rem;
}
.links a:hover, .links a:focus-visible {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .85rem;
}
.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.2rem 1rem;
}
