:root {
  --black: #232323;
  --white: whitesmoke;
  --grey: #838383;
  --yellow: #FAB411;
  --red: #C0262C;
  --green: #016837;
  --orange: #F05A24;
  --width: 39em;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('./fonts/GeistMono/webfonts/GeistMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('./fonts/GeistMono/webfonts/GeistMono-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('./fonts/GeistMono/webfonts/GeistMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 1em;
  line-height: 1.313em;
  font-family: 'Geist Mono', monospace;
  list-style-type: none;
}
html {
  max-width: var(--width);
  padding: 2em;
  margin: 0 auto;
  background-color: var(--white);
  color: var(--black);
}

body { padding-bottom: 2em; }

h1, h2 { font-weight: 700;  }
h2 { margin-top: 4em; }
strong { font-weight: 600; }
h3, p { font-weight: 400; }
h3, p { margin-top: 1em; }
p + h3 { margin-top: 3em; }
a { color: var(--black); }
i { color: var(--grey); }


.img-wrapper {
  display: flex;
  padding: 3em 4em;
  margin: 3em -8em;
}

@media (max-width: 51em) {
  .img-wrapper {
    padding: 2em;
    margin: 2em -2em;
  }  
}

.img-wrapper--yellow { background: var(--yellow); }
.img-wrapper--red { background: var(--red); }
.img-wrapper--green { background: var(--green); }
.img-wrapper--orange { background: var(--orange); }

.img-wrapper img {
  flex: 1 1 0;
  min-width: 0;height: auto;
  border-radius: 0.5em;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.img-wrapper--al0 img:first-of-type ~ img:not(:last-of-type) { margin-left: -6em; }
.img-wrapper--al0 img:last-of-type { margin-left: 2em; }

.img--overlap { margin-left: -6em; }
.img--space { margin-left: 2em; }


footer {
  display: flex;
  justify-content: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: whitesmoke;
}

footer ul {
  width: 100%;
  max-width: var(--width);
  display: flex;
  align-items: center;
  column-gap: 2em;
  flex-wrap: wrap;
  padding: 0.5em 2em 1em 2em;
}

footer li { display: flex; align-items: center; gap: 0.5em; }

.key {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  border-radius: 0.25em;
  background: #232323;
}

.key span { color: whitesmoke; font-size: 0.625em; background: transparent; }