/* Bent Jensen — personal homepage.
   Intentionally boring. Do not improve. */

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #000;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 16px;
}

main {
  flex: 1;
  width: 100%;
  max-width: 672px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

@media (min-width: 640px) {
  main,
  footer > div {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

footer {
  margin-top: auto;
}

footer > div {
  width: 100%;
  max-width: 672px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
}

footer p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #525252;
}

/* Header */
h1 {
  margin: 0;
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
}

.tagline {
  margin: 0.5rem 0 0;
}

.contents {
  margin-top: 1rem;
  font-size: 0.875rem;
}

/* Sections */
h2 {
  margin: 3rem 0 1rem;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.025em;
  scroll-margin-top: 1.5rem;
}

hr {
  border: 0;
  border-top: 1px solid #d4d4d4;
  margin: 2rem 0;
}

footer hr {
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1rem;
  line-height: 1.625;
}

address {
  font-style: normal;
}

/* The intro paragraph right after a heading */
p.mb {
  margin-bottom: 1rem;
}

.note {
  font-size: 0.875rem;
  color: #525252;
  margin-bottom: 1rem;
}

/* Lists */
ul {
  list-style: disc outside;
  padding-left: 1.5rem;
  margin: 0 0 1rem;
  line-height: 1.625;
}

ul li + li {
  margin-top: 0.5rem;
}

ul.loose li + li {
  margin-top: 0.75rem;
}

/* Monospace details: dates and the PGP fingerprint */
.date {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  color: #525252;
}

pre {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
}

.nowrap {
  white-space: nowrap;
}

/* Links: the classic defaults. Boring on purpose. */
a {
  color: #0000ee;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

a:hover {
  color: #551a8b;
}
