/* Web fonts copyright their respective authors. See `license.txt` files in font directories for details. */
@import url("../fonts/Figtree/Figtree.css");
@import url("../fonts/IBMPlexMono/IBMPlexMono.css");

@layer variables {
  :root {
    --color-bg: #f4f4f5;
    --color-muted-high: #a1a1aa;
    --color-muted-mid: #52525b;
    --color-muted-low: #3f3f46;
    --color-fg: #18181b;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --color-bg: #09090b;
      --color-muted-high: #3f3f46;
      --color-muted-mid: #71717a;
      --color-muted-low: #d4d4d8;
      --color-fg: #f4f4f5;
    }
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  line-height: calc(1em + 0.5rem);
}

html {
  height: 100%;
  line-height: 1.5;
}

body {
  background-color: var(--color-bg);
  color: var(--color-fg);

  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 60rem;
  max-width: 100%;
  margin-inline: auto;
  padding: 2rem;

  font-family: "Figtree", system-ui, sans-serif;
}

code {
  font-family: "IBM Plex Mono";
}

header {
  display: flex;
  flex-direction: column;
  width: 50rem;
  max-width: 100%;
  margin-block: auto;

  svg {
    fill: currentColor;
  }

  h2 {
    text-align: end;
    font-size: clamp(16px, 4cqw, 32px);
  }
}

footer {
  margin-block-start: auto;

  a {
    font-size: clamp(16px, 5cqw, 32px);
    color: var(--color-muted-mid);
    text-decoration: none;
    font-weight: 600;

    &:hover {
      text-decoration: underline solid currentColor 0.1em;
    }
  }
}
