@import url("https://fonts.googleapis.com/css2?family=Raleway&display=swap");

:root {
  --bg-color: #f0f0f0;
  --fg-color: #01000a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg-color: #f0f0f0;
    --bg-color: #01000a;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Raleway", sans-serif;
  background-color: var(--bg-color);
  color: var(--fg-color);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  height: 100svh;

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px;

    #logo {
      font-size: 2em;
    }

    nav ul {
      list-style: none;
      display: flex;
      justify-content: left;
      align-items: center;
      gap: 20px;

      button {
        font: inherit;
        border: none;
        padding: 0;
        margin: 0;
        cursor: pointer;
        background-color: var(--bg-color);
        color: var(--fg-color);
      }
    }
  }

  h1 {
    text-align: center;
  }

  footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px;

    #copyright {
      font-size: 0.8em;
    }

    aside .icon svg {
      stroke: var(--fg-color);
      fill: var(--fg-color);

      width: 32px;
      height: 32px;
    }
  }

  #contactDialog {
    margin: auto;
    border-radius: 8px;
    width: clamp(250px, 400px, 400px);
    background-color: var(--bg-color);
    color: var(--fg-color);

    H2 {
      text-align: center;
    }

    form {
      display: grid;
      padding: 20px 30px 30px 30px;

      .cf-turnstile {
        justify-content: end;
      }
    }

    label {
      margin-top: 20px;
    }

    input {
      font: inherit;
      width: 100%;
      font-size: 1em;
    }

    textarea {
      font: inherit;
      width: 100%;
      line-height: 1.3;
      height: 200px;
      font-size: 1em;
    }
  }

  #contactDialog::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
  }

  #contactButtons {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;

    button {
      font: inherit;
      width: 80px;
    }
  }
}
