:root {
  --bg: #f7f7f7;
  --text: #181818;
}

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

html,
body {
  height: 100%;
}

* {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.3 "Times New Roman", serif;
  letter-spacing: 0.2px;
}

h1,
h2 {
  margin-bottom: 0.5rem;
}

h2 {
  line-height: 1.1;
}

a {
  color: limegreen;
}

img {
  width: 100%;
}

figure {
  line-height: 0;
}

blockquote {
  font-style: italic;
  padding-left: 2rem;
}

body > * {
  padding: 1rem;
}

article:not(:last-child) {
  margin-bottom: 2rem;
  border-bottom: 1px solid black;
  padding-bottom: 2rem;
}

.project-inner > *:not(:last-child),
blockquote:not(:last-child),
p:not(:last-child),
figure:not(:last-child) {
  margin-bottom: 0.5rem;
}

.subtitle,
.meta {
  font-style: italic;
}

@media (min-width: 960px) {
  header {
    max-width: 50vw;
  }
  main {
    column-count: 2;
    column-gap: 0.5rem;
  }

  /* keep each project intact in a single column */
  main > article {
    break-inside: avoid;
    break-inside: avoid-column; /* newer syntax */
    -webkit-column-break-inside: avoid; /* Safari/old Chrome */
    page-break-inside: avoid; /* print fallback */
  }
}
::selection {
  background: limegreen;
  color: #fff;
}
