---
import config from "../../config.yaml";
---

<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="description" content="Astro description" />
    <meta name="viewport" content="width=device-width" />
    <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
    <meta name="generator" content={Astro.generator} />
    <title>{config.title}</title>
  </head>
  <body>
    <slot />
  </body>
</html>

<style define:vars={{ background: `url(${config.background})` }}>
  .container {
    width: calc(100% - 25rem);
  }
  body {
    font-family: system-ui, sans-serif;
    background: var(--background);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    color: whitesmoke;
    /* backdrop-filter: brightness(0.5); */
    /* width: 100%;
    height: 100%;
    margin: 0;
    padding: 0; */
  }
</style>
