/* Florian Hübler, personal homepage. Plain HTML and CSS, no dependencies. */

:root {
  --text: #1a1a1a;
  --muted: #555;
  --link: #0b3d91;
  --rule: #ccc;
  --bg: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e6e6;
    --muted: #a0a0a0;
    --link: #8ab4f8;
    --rule: #444;
    --bg: #121212;
  }
}

html {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 106%;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

body {
  max-width: 40em;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1 {
  font-size: 1.9rem;
  font-weight: normal;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.25rem;
  font-weight: normal;
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1.05rem;
  font-weight: normal;
  font-style: italic;
  margin: 1.9rem 0 0.6rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.identity {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.identity-text {
  flex: 1 1 0;
  min-width: 0;
}

.portrait {
  flex: none;
  width: 160px;
  height: auto;
}

.identity h1 {
  margin-top: 0;
}

.affiliation {
  color: var(--muted);
  margin-bottom: 1rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

/* Publications */

.publications {
  padding-left: 2.25em;
  margin: 0;
}

.publications li {
  margin-bottom: 1.1em;
}

.publications .title {
  font-weight: bold;
}

.publications .author-self {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.publications .venue,
.publications .links {
  color: var(--muted);
}

.publications .links a {
  color: var(--link);
}

.publications sup {
  font-size: 0.75em;
  line-height: 0;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.75em;
}

/* Teaching and service */

.teaching,
.talks,
.supervision,
.service {
  padding-left: 1.25em;
  margin: 0;
}

.teaching li,
.talks li,
.supervision li,
.service li {
  margin-bottom: 0.5em;
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35em 1.5em;
  margin: 0;
}

.contact dt {
  color: var(--muted);
}

.contact dd {
  margin: 0;
}

footer {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

@media (max-width: 34em) {
  body {
    padding: 1.25rem 1rem 2rem;
  }
  h1 {
    font-size: 1.6rem;
  }
  .identity {
    flex-direction: column;
    gap: 1rem;
  }
  .portrait {
    width: 180px;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact dd {
    margin-bottom: 0.6em;
  }
}
