@font-face {
  font-family: 'Atkinson';
  src: url('static/Atkinson-subsett.woff2') format('woff2 supports variations'),
      url('static/Atkinson-subsett.woff2') format('woff2-variations');
  unicode-range: U+0020-007F,U+00A0-00FF,U+20AC,U+2010,U+2013,U+2014,U+2018,U+2019,U+201A,U+201C,U+201D,U+201E,U+2039,U+203A,U+2026,U+2022;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  
  --bg-color: light-dark(#FFFCF0, #100F0F);
  --text-color: light-dark(#100F0F,  #CECDC3);
}

html {
  line-height: 1.4;
  font-size: clamp(0.7rem, 0.7rem + 1.5vw, 1.25rem);
  font-family: Atkinson, Verdana, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

body {
  background-color: #868671ff;
  background: linear-gradient(40deg, #535235 40%, #b5beca 100%);

  color: light-dark(#100F0F, #FFFCF0);

  background-image: url("/static/IMG_4854-dithered.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;

  /* background-attachment: fixed; */

  /* Use pixel perfect rendering for the background as it is dithered*/
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;

  /* Removes the small bit of extra scrolling distance */
  margin: 0;
}

a:link {
  color: light-dark(#100F0F, #FFFCF0);
}

a:visited {
  color: light-dark(#5E409D, #8B7EC8);
}

a:hover {
  text-decoration: none;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 100vh;
}

.card {
  z-index: 2;

  padding: 1rem;
  margin: 0.5rem;

  border: 0.15rem solid #768D21;
  border-radius: 6px;
  
  background-color: light-dark(#FFFCF0, #100F0F);
  /* margin-inline: auto; */
  max-width: 55ch;

  text-align: justify;

  h1 {
    margin-top: 0;
  }
}

.bottom-right {
  z-index: 0;
  position: absolute;
  bottom: 0;
  right: 0;

  margin: 0.5rem;
  padding: 0.2em;

  max-width: 70vw;

  border: 0.15rem solid #768D21;
  border-radius: 6px;
  
  background-color: light-dark(#FFFCF0, #100F0F);

  font-size: 0.7rem;

  text-align: justify;
  
  p {
    color: light-dark(#6F6E69, #878580);
    margin: 0.1em;
  }
}

/* Hide image description when screen too small*/
@media screen and (height <= 485px) {
  .bottom-right {
    visibility: hidden;
  }
}
