:root {
  font-family: Inter, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: light-dark(#213547, rgba(255, 255, 255, 0.87));

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  --link-hover: light-dark(#CA7C25, #EBC4AA);
  --btn-background: light-dark(#f9f9f9, #1a1a1a);
  --start-gradient: light-dark(#f1ded7, #41281F);
  --end-gradient: light-dark(oklch(from var(--start-gradient) calc(l * 0.8) c h), oklch(from var(--start-gradient) calc(l * 1.2) c h));
  --popup-background-light: light-dark(#E7E2E2, #242424);
  --popup-color: light-dark(#213547, rgba(255, 255, 255, 0.87));
}

a {
  font-weight: 500;
  text-decoration: inherit;
}
a:hover {
  color: var(--link-hover);
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--start-gradient) 0%, var(--end-gradient) 50%, var(--start-gradient) 100%);
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

section {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

#app {
  max-width: 1280px;
  min-width: 90vw;
  min-height: 90vh;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
}

header {
  display: grid;
  justify-content: right;
  align-items: center;
  grid-template-columns: auto 1fr;

  .logo {
    float: left;

    img {
      height: 4em;
      will-change: filter;
      transition: filter 300ms;

      &:hover {
        filter: drop-shadow(0 0 2em #CDC5C5);
      }
    }
  }

  .links {
    display: flex;
    justify-content: right;
    gap: 1.5em;
    font-size: 1.2em;
  }
}

footer {
  display: flex;
  justify-content: center;
  font-size: 0.8em;
}

.hidden {
  display: none;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: var(--btn-background);
  cursor: pointer;
  transition: border-color 0.25s;

  &:hover {
    border-color: #646cff;
  }

  &:focus, &:focus-visible {
    outline: 4px auto -webkit-focus-ring-color;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

@media (prefers-color-scheme: light) {
}
