/* httpdocs/stylesheets/typography.css */
@font-face {
  font-family: "Merriweather";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src:
    local("Merriweather Light Italic"),
    local("Merriweather-LightItalic"),
    url(/fonts/Merriweather-LightItalic.woff2) format("woff2");
}
@font-face {
  font-family: "Merriweather";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src:
    local("Merriweather Italic"),
    local("Merriweather-Italic"),
    url(/fonts/Merriweather-Italic.woff2) format("woff2");
}
@font-face {
  font-family: "Merriweather";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src:
    local("Merriweather Bold Italic"),
    local("Merriweather-BoldItalic"),
    url(/fonts/Merriweather-BoldItalic.woff2) format("woff2");
}
@font-face {
  font-family: "Merriweather";
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src:
    local("Merriweather Black Italic"),
    local("Merriweather-BlackItalic"),
    url(/fonts/Merriweather-BlackItalic.woff2) format("woff2");
}
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src:
    local("Merriweather Light"),
    local("Merriweather-Light"),
    url(/fonts/Merriweather-Light.woff2) format("woff2");
}
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    local("Merriweather Regular"),
    local("Merriweather-Regular"),
    url(/fonts/Merriweather-Regular.woff2) format("woff2");
}
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    local("Merriweather Bold"),
    local("Merriweather-Bold"),
    url(/fonts/Merriweather-Bold.woff2) format("woff2");
}
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src:
    local("Merriweather Black"),
    local("Merriweather-Black"),
    url(/fonts/Merriweather-Black.woff2) format("woff2");
}

/* httpdocs/app.css */
:root {
  --color-background: antiquewhite;
  --toggle-background: #131320;
  --color: black;
  --selection-background: chocolate;
  --padding: 5rem;
  --x-pad: 0.4em;
  --font-serif: "Merriweather", serif;
  --font-size: 16px;
}
body.dark-theme {
  --color-background: #131320;
  --toggle-background: antiquewhite;
  --color: #e0e0e0;
  --selection-background: mediumpurple;
}
@keyframes waiting {
  0% {
    bottom: 50px;
    transform: scale(1);
  }
  20% {
    bottom: 40px;
    transform: scaleY(0.95) scaleX(1.05);
  }
  48% {
    transform: scaleY(1.1) scaleX(0.9);
  }
  60% {
    bottom: 150px;
  }
  68% {
    transform: scaleY(0.98) scaleX(1.02);
  }
  80% {
    bottom: 50px;
    transform: scaleY(1.02) scaleX(0.98);
  }
  90% {
    bottom: 70px;
  }
  100% {
    bottom: 50px;
    transform: scale(1);
  }
}
::selection {
  background-color: var(--selection-background);
}
html {
  box-sizing: border-box;
  font-size: var(--font-size);
}
a {
  text-decoration: none;
  color: var(--color);
}
body {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.75;
  margin: 0;
  & nav {
    position: fixed;
    display: flex;
    justify-content: flex-end;
    gap: 2em;
    width: calc(100% - 2em);
    padding: 2em 2em 0 0;
  }
  & main {
    background-color: var(--color-background);
    color: var(--color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 var(--padding);
    transition: background 0.4s;
    & section {
      max-width: 60%;
      & h1 {
        font-size: 3em;
        margin-block: 0;
      }
      & p {
        font-size: 1.5em;
        hyphens: auto;
        transition: opacity 0.4s;
      }
      & p:last-child {
        display: none;
        & a {
          outline: dashed var(--selection-background);
        }
        & img {
          position: fixed;
          bottom: 50px;
          left: 50px;
          animation: waiting 3s ease-out infinite;
        }
      }
    }
    & img {
      width: clamp(14rem, 10vw, max(10vw, 14rem));
      box-shadow: 20px 5px 50px var(--toggle-background);
      border-radius: 50%;
    }
  }
  & footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    & a svg {
      position: relative;
      top: 4px;
      height: 1.25em;
    }
  }
}
@media (max-width: 1024px) {
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 4em;
    justify-content: space-between;
    background: var(--color-background);
    color: var(--color);
    & nav {
      position: relative;
    }
    & main {
      flex-direction: column;
      min-height: unset;
      gap: 4rem;
      background: transparent;
      & section {
        max-width: 100%;
        & h1 {
          text-align: center;
          text-decoration: underline;
          margin-block-end: 3rem;
        }
      }
      & img {
        transform: scale(1.5);
      }
    }
    & footer {
      z-index: -1;
      position: relative;
      margin: 0;
      padding: 2em 0;
    }
  }
}
@media (max-width: 540px) {
  :root {
    --font-size: 10px;
  }
  body {
    & > main > figure > img {
      transform: scale(1.3);
    }
    & footer {
      padding: 0 0 2em 0;
    }
  }
}
