@import url("/static/feather.css");
@import url("/static/normalize.css");
@import url("/static/colors.css");
@import url("/static/forms.css");

:root {
  font-family: "Inter", sans-serif;
  color-scheme: light dark;
  --box-radius: 0.75em;
}
@supports (font-variation-settings: normal) {
  :root {
    font-family: "InterVariable", sans-serif;
    font-optical-sizing: auto;
  }
}

html {
  height: 100%;
}

body {
  background-color: var(--crust);
  color: var(--text);
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
}

a {
  font-weight: bolder;
  color: var(--mauve);
  &:hover {
    text-decoration: underline;
  }
}

header {
  background-color: var(--base);
  border-radius: 0.75em;
  display: flex;
  margin: 1em;
  height: 2.5em;

  div,
  menu {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .menu {
    border-left: 1px solid var(--light_dent);

    a {
      transition: 0.5s;
      display: flex;
      align-items: center;
      color: var(--text);
      text-decoration: none;
      font-weight: bold;
      height: 100%;
      padding: 0 1em;

      &.active {
        color: var(--mauve);
        border-bottom: 2px solid var(--mauve);
      }
      &:hover {
        background-color: var(--menu_hover);
      }
    }
  }

  .title a {
    color: var(--text);
    @media screen and (min-width: 768px) {
      font-size: 1.5em;
    }
  }

  .logo {
    display: flex;
    justify-content: center;
    padding: 0.25em;

    border-radius: var(--box-radius) 0 0 var(--box-radius);
    background-color: light-dark(var(--mantle), var(--surface0));
    border-right: 1px solid var(--dark_dent);

    img {
      height: 2em;
      margin: 0 0.25em;
    }
  }
}

main {
  display: flex;
  justify-content: center;
  .wrapper {
    @media screen and (min-width: 768px) {
      width: 50em;
      display: block;
    }

    h1.hero {
      font-size: 3em;
      margin-top: 0;
      text-align: center;
    }
    display: block;
  }

  .box {
    background-color: var(--base);
    border-radius: 0.75em;
    padding: 2em;
    margin: 1em;

    &.flex {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
    }
  }

  .section {
    margin: 2em 0;
  }
}

footer {
  height: 2.5em;
  display: block;
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--base);
  border-radius: 0.75em;
  display: flex;
  margin: 1em;

  div {
    font-size: 0.66em;
  }
}

.button {
  display: flex;
  background-color: var(--surface0);
  text-decoration: none !important;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;

  /* // To reset from the <button> element. */
  border: none;
  outline: none;
  padding: 0;

  border-radius: 0.75em;
  height: 2.5em;

  &:hover {
    background-color: oklch(from var(--surface0) calc(l + 0.05) c h);
  }

  &.green .icon {
    background-color: oklch(from var(--green) calc(l * 0.25) calc(c * 0.25) h);
  }

  .icon {
    border-radius: 0.75em 0 0 0.75em;
    background-color: oklch(
      from var(--lavender) calc(l * 0.75) calc(c * 0.5) h
    );
    width: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;

    img {
      width: 66%;
    }
  }

  .label {
    text-transform: uppercase;
    color: var(--text);
    padding: 0 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 10em;
  }
}

.service {
  background-color: var(--base);
  background-color: var(--base);
  border-radius: 0.75em;
  color: var(--text);
  transition: 0.3s;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  height: 7em;
  margin: 1.5em 0;

  > a {
    width: 8em;
    img {
      margin: 1.5em;
      height: 72px;
      width: 72px;
      filter: drop-shadow(3px 3px 2px var(--crust));
    }
  }

  .body {
    flex-grow: 1;
    a {
      text-decoration: none;
    }
  }

  .actions {
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 3em;
    border-left: 1px solid var(--crust);
    border-radius: 0 var(--box-radius) var(--box-radius) 0;
    background-color: var(--mantle);

    a {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-grow: 1;
      border-top: 1px solid var(--light_dent);
      border-bottom: 1px solid var(--dark_dent);
      transition: 0.2s;

      &:hover {
        background-color: var(--menu_hover);
      }

      &:first-child {
        border-top: none;
        border-radius: 0 var(--box-radius) 0 0;
      }
      &:last-child {
        border-bottom: none;
        border-radius: 0 0 var(--box-radius) 0;
      }
    }
  }
}
