* {
  font-family: "Roboto Mono", monospace;
  font-weight: 400;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #000;
  padding: 2em;
  margin: 0;
  margin-bottom: 5em;
}

.italic-text {
  font-style: italic;
}

a {
  color: #000;
}

a.anchor {
  display: block;
  position: relative;
  top: -32px;
  visibility: hidden;
}

h1, h2, h3 {
  font-weight: 500;
  margin-top: 0;
  max-width: 800px;
}

h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25em;
}

h2 {
  font-size: 1.3rem;
  margin-top: 2em;
  margin-bottom: 1em;
}

header {
  margin-top: 0;
  margin-bottom: 3em;
  max-width: 800px;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5em;
  font-size: 0.95rem;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

#menu {
  position: fixed;
  top: 1em;
  right: 0;
  padding: 1.5em;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

section, footer {
  margin: 5em 0;
}

footer {
  max-width: 800px;
}

section p {
  max-width: 800px;
  line-height: 1.65;
  margin: 1.2em 0;
}

.statement {
  margin-bottom: 4em;
}

.statement-meta, .statement-meta a {
  font-size: 0.95rem;
  color: #444;
}

/* Mosaic Gallery */
.mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  width: 100%;
  margin: 2.5em 0;
}

.mosaic-elt {
  display: block;
  text-decoration: none;
  line-height: 0;
  transition: transform 0.3s ease-in-out;
}

.mosaic-elt:hover {
  transform: scale(1.08);
  z-index: 10;
  position: relative;
}

.mosaic-elt img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  image-rendering: pixelated;
}

@media(min-width: 768px) {
  section {
    max-width: calc(100% - 180px);
  }

  a.anchor {
    top: -32px;
  }
}

@media(max-width: 767px) {
  body {
    padding: 1.25em;
  }

  header {
    margin-bottom: 1.5em;
  }

  #menu {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 0.5em;
    margin-bottom: 2em;
    gap: 0.5em 1.2em;
    background-color: transparent;
  }
}
